Unicode symbols
Some Unicode symbols can be produced by placing simple characters in parentheses or square brackets.
Textile example: Unicode symbols
Trademark(tm)
Registered(R)
Copyright (C) 2008
One quarter (1/4) symbol
One half (1/2) symbol
Three quarters (3/4) symbol
Degree (o) symbol
Plus/minus (+/-) symbol
Textile input (editable)
Browser output
HTML output
More about: Unicode symbols
Other Unicode characters and symbols
Unicode symbols can be entered in decimal form, like this:
p{font-size:20pt;}. ☢ ☁ ♘
With a browser that is capable, and a font that supports the characters, you will see this:
☢ ☁ ♘
Conversion of hexadecimal representation of Unicode symbols
For searching and conversion of Unicode symbols into their HTML form, see the Unicode character table tool.
Setting alternate glyphs
Textile’s typographic substitutions can be overridden with the setSymbol
method. If you need to set up Textile to do non-standard substitutions, call setSymbol
before you parse the input with textileThis
or textileRestricted
.
$parser = new \Netcarver\Textile\Parser();
$parser->setSymbol('half', '1⁄2');
$parser->textileThis('Hello [1/2] World!');
The symbol names you can pass to setSymbol()
can be found here.