19.11.2014 Views

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

any alternative names, with underscores in place of hyphens and spaces, where any of the following substrings may<br />

be omitted:<br />

"LETTER_"<br />

"DIGIT_"<br />

"RADICAL_"<br />

"NUMERAL_"<br />

If there are multiple such substrings in a given name, any combination of them may be omitted. Again, if this process<br />

yields multiple characters as possible replacement, the unprotected character with the smallest code point is used.<br />

If none of the above replaces the restricted word with a single Unicode character, then the following step is applied,<br />

which transforms certain restricted words by replacing just parts of them with Unicode characters. If the restricted<br />

word begins with the short name (i.e., the name in the table above) of a Greek letter followed by an underscore or a<br />

digit, or ends with the short name of a Greek letter that is preceded by an underscore, or contains the short name of<br />

a Greek letter with an underscore on each side of it, then the short name of the Greek letter is replaced by the Greek<br />

letter itself. In the same manner, the word “micro” is replaced with the Unicode character MICRO SIGN µ (U+00B5,<br />

which looks just like the Greek lowercase mu µ but is different). A special ad-hoc rule is that if a word-part being thus<br />

replaced has an underscore to each side, and the underscore on the right is the last character of the restricted word,<br />

then the underscore on the left is removed as the name is replaced; this is done for the sake of the abbreviations of<br />

certain dimensional units, so that, for example, micro OMEGA will be transformed into µΩ , signifying micro-ohms,<br />

and G OMEGA will be transformed into GΩ , signifying gigaohms.<br />

Here are some other examples:<br />

alpha becomes α OMEGA13 becomes Ω13<br />

alpha hat becomes α hat theta elephant becomes θ elephant<br />

OMEGA becomes Ω XI becomes Ξ<br />

For the sequences of characters other than restricted words, each is converted from left to right, with the longest<br />

possible substring being converted at once, with one exception: <strong>The</strong> sequence “( becomes ⇒<br />

∼> becomes |-> becomes ↦→<br />

>= becomes ≥

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!