Character Entity Reference

Table of contents


Introduction

TML provides the capability to define custom character entities. TML character entities take the same form as standard HMTL character entities. For example, &myEntity; will insert the custom Template or string associated with myEntity.

The built-in entities are defined in the charEntity.js file. When TML encounters an entity string, it inserts a CharEntity component that will extract the entity’s value (a string, a Template object, or an array of string and/or Template objects) and insert it as its contents. Many, but not all, standard HTML entities are supported.

Standard entities

Some entities have slightly different names for clarity.

Symbols

Entity Symbol Description
° ° Degree symbol
&plusMinus; ± plus-minus symbol
± ± plus-minus symbol
“ Left double quotation mark
” Right double quotation mark
&upArrow; Up arrow
&upArrowD; Up double arrow
&rightArrow; Right arrow
&rightArrowD; Right double arrow
&downArrow; Down arrow
&downArrowD; Down double arrow
&leftCaret; left caret
&upCaret; up caret
&rightCaret; right caret
&downCaret; down caret
&leftArrow; Left arrow
&leftArrowD; Left double arrow
• Bullet mark
&hamburger; Three line menu symbol
≈ Appromation symbol
& & Ampersand
&lt; < Less than symbol
&le; Less than or equal symbol
&gt; > Greater than symbol
&ge; Greater than or equal symbol
&plus; + Plus sign
&minus; Minus sign

Spaces, breaks, and hyphens

Entity Symbol Description
&emsp; Em space
&ensp; En space
&hairsp; Very thin (Hair) space
&nbsp;   Non-breaking space
&nnbsp; Narrow non-breaking space
&numNbsp; Number non-breaking space
&numsp; Number space
&puncsp; Punctuation space
&thinNbsp; Thin non-breaking space
&thinsp; Thin space
&lineBreak; Line break: <br />.
&nobreak; Word join
&nbhy; Non-breaking hyphen
&shy; ­ Soft hyphen (hyphen placement suggestion)

Custom symbols

Entity Symbol Description
&info; A information (tip) symbol
&mediaPause; Media pause symbol
&mediaPlay; Media play symbol
&mediaNext; Media next symbol
&mediaDown; Media down symbol, down caret
&mediaUp; Media up symbol, up caret
&mediaLeft; Media left symbol, left caret
&switch; Left-right arrow (centered vertically)
&rightChevron; Right chevron
&downChevron;
Down chevron
&upChevron;
Up chevron
&leftChevron;
Left chevron
&delete; Delete symbol
&directTo; Direct-To symbol
&selectorSym; Selector symbol
&gear; Gear symbol
&trash; Trash can symbol
&user; User symbol
&sync; Sync symbol