Wordprocessing Text
Symbols are specified with the w:sym element within the w:r element. A symbol is a special character that does not use any of the run fonts specified in rFonts or in the style hierarchy. The character is determined by pulling the hexadecimal value specified in the char attribute from the font specified in the font attribute.
Attributes:
Attribute | Description |
---|---|
char | Specifies the hexadecimal code for the Unicode character value of the symbol. The value can be stored in either of the following formats:
|
font | Specifies the font to be used to to format the symbol. |
Related HTML/CSS property:
Symbols may be referenced in HTML as character entities using short names (e.g., ©). See the W3 recommendation regarding character references. Symbols may also be referenced with numeric character references in the form &#number (decimal form) or &#xnumber (hexadecimal form). See the W3 recommendation.
Only Unicode characters are officially supported in HTML and only those should be used, as not all browsers will have fonts such as Wingdings. However, fonts may be specified in CSS and numeric character references made to the desired character in the desired font.
<div>This is a copyright symbol referenced using its short name: ©</div>
<div>This is a trademark symbol referenced using a numeric character reference: ™.</div>