Character conversions

Unicode symbols can be entered in decimal form.

Textile example: Character conversions

- Straight quotation marks := "example" (converted into curly quotation marks)
- Straight apostrophes :=  'example' (converted into curly apostrophes)
- Ampersand := & (escaped if not part of an HTML entity)
- Angle brackets := < or >  (escaped if outside HTML tags)
- A hyphen := between whitespaces - (becomes a unicode dash)
- Double hyphen := -- (becomes a long dash)
- x between numbers := 3 x 5 (becomes a dimension sign)
- Three periods := ... (become an ellipsis character)

Textile input (editable)

Browser output

HTML output


More about: Character conversions

1. A hyphen is not converted within hyphenated words:

The T-Rex has a movement-based vision.

2 For the dimension sign, conversion also occurs when other characters are in between numbers:

The kitchen measures 5' x 5'6".

3. Somtimes square brackets on either side of an ellipsis points are used to distinguish between an ellipsis that you’ve added and the ellipses that might have been in the original text, like so:

“Bohr […] used the analogy of parallel stairways […].” (Smith 55).

In order to achieve this, the unicode symbol for ellipsis (&#8230;) must be entered directly:

"Bohr [&#8230;] used the analogy of parallel stairways [&#8230;]." (Smith 55).

4. When automatic character conversion is not wanted, the Textile formatting can be temporarily suspended by wrapping the text passage into ==.

Straight apostrophes are =="left alone"== in this example.

5. Foreign quotation marks, such as french guillemets, can be specified in the CSS, and then used in the body with the <q> … </q> tags.

<head>
    <style>
        q { quotes: "\00AB" "\00BB"; }
    </style>
</head>
<body>
    <q>Quoted text here</q>
</body>

See something wrong in this page? Outdated info, a broken link, faulty code example, or whatever? Please write an issue and we’ll fix it.