Sage
Welcome to Sage
Volume (22%) Hide Volume
Topics
Character Entities
Sage offers two ways to express special characters.

HTML Character Entities

To use an HTML character entity in Sage, write the character entity as you would in HTML (but without the semi-colon), and enclose it all in square brackets.

For example, in HTML, you might write…

A × B = ∞

In Sage, you would write…

A [&times] B = [&infin]

Both of the above produce…


A × B = ∞


Alternatively, you can use the numeric equivalent (in decimal or hexadecimal)…

A × B = ∞

In Sage, you would write…

A [&#215] B = [&#x221E]

Again, these both produce…


A × B = ∞


Sage Mnemonic Character Entities

Sage also offers a variety of mnemonic tags for common special characters and other HTML tags. For example:

["(]Hang on a minute[...][")], she said. After a long pause, she finally explained: ["(]Doug[')]s information checks out [--] except for one important detail.[")]

Above, the [...] tag denotes an ellipsis, the [--] tag denotes an em dash, and the other tags are for various kinds of curly quotes. The end product is…


“Hang on a minute…”, she said. After a long pause, she finally explained: “Doug’s information checks out — except for one important detail.”


Reference Chart

The following chart lists all Sage Mnemonic Character Entity tags…

Tag Meaning Example Link
! Word Joiner (⁠) -
"( Left Curly Double Quote -
") Right Curly Double Quote -
# Pound Sign # details
#- Figure Dash -
'( Left Curly Single Quote -
') Right Curly Single Quote -
* Bullet details
- En Dash -
-- Em Dash -
--- Single Horizontal Line
-
.. Two Dots -
... Ellipsis -
=== Double Horizontal Line

-
br Line Break details
br? Word Break Opportunity details
j Join (Do Not Word Wrap) details
line Thin Line (In Box Tag Only)

First Line
Second Line
Third Line


details
m- Em Dash -
n- En Dash -
_ Non-Breaking Space(s) x   y details
~ Dash Followed By Word Joiner -

Info

For more information on some of these tags, consult the links in the "Link" column.


Notes

  • The [_] tag represents a single non-breaking space. You can include as many underscores in the tag as you like. So, [___] represents three consecutive non-breaking spaces.

  • For more tags, consult the Sage Tag Reference.


Last Modified: 5/17 1:33:50 pm
In this article (top)  View article's Sage markup
5/17 1:33:50 pm