1
0
Fork 0

rename '.' glyph and arrow glyph names according to the new sign language spec

This commit is contained in:
mfranz 2008-02-13 19:06:46 +00:00
parent 2472fa5a89
commit 2aa8e41828
2 changed files with 65 additions and 68 deletions

View file

@ -261,58 +261,55 @@ In the simplest form it contains just 'normal' text, for example:
This will create a black panel of 1m height with "EXIT" written on it
in white versal letters. Actually, each of those characters are
single-letter-glyph-names that are looked up in the <glyph> map of a
single-letter glyph names that are looked up in the <glyph> map of a
texture font <material> entry in $FG_ROOT/materials.xml. It just
happens that the <glyph> entry for <name> 'E' maps to a drawn 'E' in
the font texture. This isn't true for all ASCII characters. Many aren't
mapped at all (and thus not available), others are mapped to non-standard
drawings. The '_', for example, is mapped to an empty black area and can
therefore be used as a space. (The sign specification must not contain
real spaces.) But this is not hard-coded.
real spaces.) The '*' is mapped to a raised period.
Some glyph-names consist of more than one character, and can't, thus, be
Some glyph names consist of more than one character, and can't, thus, be
used directly. They have to be put in a pair of curly braces:
{right-down}
{^rd}
This creates an arrow that points to the right and down. Braces can really
contain a list of glyph-names, separated by commas (no space!).
Single-letter-glyph-names can be used that way, too, or in any mixture
contain a list of glyph names, separated by commas (no space!).
Single-letter glyph names can be used that way, too, or in any mixture
of both methods:
EXIT
{E,X,I,T}
{E}{X}{I}{T}
EX{I,T}
E{X,I}T{left-up,right-down}
Besides single- or multi-letter-glyph-names, there are also commands.
These always start with an '@'.
{@rd}EXIT{@dr}
Both @rd and @dr are abbreviations for the "right-down" arrow, and
the line is equivalent to
{right-down}EXIT{right-down}
E{X,I}T{^lu,^rd}
{^u}EXIT{^u}
The following abbreviations are available -- all expand to arrow symbols:
abbrev. glyph-name
-----------------------------------------------------------------
@u -> up (not really an abbreviation :-)
@d -> down
@l -> left
@r -> right
@ru @ur -> right-up
@rd @dr -> right-down
@lu @ul -> left-up
@ld @dl -> left-down
Multi-letter glyph names are usually used for symbols. Arrow symbol names
always start with a caret ("arrow head") and the left or right direction
always comes first (like the x in a Cartesian coordinate system). Here's
a list of some of the available names (see $FG_ROOT/materials.xml for
more):
^l left arrow
^r right arrow
^u up arrow
^d down arrow
^lu left-up arrow
^ld left-down arrow
^ru right-up arrow
^rd right-down arrow
no-entry "no entry" symbol
critical runway critical area
safety ils safety area
In addition to multi-letter glyph names there are also commands, which
always start with an '@' symbol.
The following commands are available -- for sign properties:
@size=2.3 set sign height to 2.3m (width is derived from that
@ -350,8 +347,8 @@ Frames can be opened/closed using glyph names {start-frame} and {stop-frame}.
Examples:
{@R}10L-28R{@L}C
{@Y,@l}P|{@ul}N{@L}F{@Y}F{@ur}
{@Y,@dl}C ... same as any of {@Y}{@dl}C {@Y,@dl,C} {@Y,left-down,C}
{@Y,^l}P|{^lu}N{@L}F{@Y}F{^ru}
{@Y,^ld}C ... same as any of {@Y}{@ld}C {@Y,@ld,C}
{@B}17
{@material=RedSign,@size=1.6,no-exit}

View file

@ -1502,7 +1502,7 @@ Shared parameters for various materials.
</emissive>
<xsize>4096</xsize>
<ysize>128</ysize>
<glyph> <name>.</name> <left>0.00439</left> <right>0.01758</right> </glyph>
<glyph> <name>*</name> <left>0.00439</left> <right>0.01758</right> </glyph>
<glyph> <name>_</name> <left>0.01392</left> <right>0.02148</right> </glyph>
<glyph> <name>-</name> <left>0.01758</left> <right>0.03418</right> </glyph>
<glyph> <name>A</name> <left>0.03418</left> <right>0.05469</right> </glyph>
@ -1551,14 +1551,14 @@ Shared parameters for various materials.
<glyph> <name>t7</name> <left>0.73120</left> <right>0.74634</right> </glyph>
<glyph> <name>t8</name> <left>0.74634</left> <right>0.76001</right> </glyph>
<glyph> <name>t9</name> <left>0.76001</left> <right>0.77441</right> </glyph>
<glyph> <name>up</name> <left>0.77441</left> <right>0.79200</right> </glyph>
<glyph> <name>down</name> <left>0.79200</left> <right>0.81006</right> </glyph>
<glyph> <name>left</name> <left>0.81006</left> <right>0.83276</right> </glyph>
<glyph> <name>right</name> <left>0.83276</left> <right>0.85571</right> </glyph>
<glyph> <name>left-up</name> <left>0.85571</left> <right>0.87573</right> </glyph>
<glyph> <name>right-up</name> <left>0.87573</left> <right>0.89527</right> </glyph>
<glyph> <name>left-down</name> <left>0.89527</left> <right>0.91529</right> </glyph>
<glyph> <name>right-down</name> <left>0.91529</left> <right>0.93457</right> </glyph>
<glyph> <name>^u</name> <left>0.77441</left> <right>0.79200</right> </glyph>
<glyph> <name>^d</name> <left>0.79200</left> <right>0.81006</right> </glyph>
<glyph> <name>^l</name> <left>0.81006</left> <right>0.83276</right> </glyph>
<glyph> <name>^r</name> <left>0.83276</left> <right>0.85571</right> </glyph>
<glyph> <name>^lu</name> <left>0.85571</left> <right>0.87573</right> </glyph>
<glyph> <name>^ru</name> <left>0.87573</left> <right>0.89527</right> </glyph>
<glyph> <name>^ld</name> <left>0.89527</left> <right>0.91529</right> </glyph>
<glyph> <name>^rd</name> <left>0.91529</left> <right>0.93457</right> </glyph>
<glyph> <name>|</name> <left>0.97974</left> <right>0.98926</right> </glyph>
<glyph> <name>start-frame</name><left>0.98462</left> <right>0.98926</right> </glyph>
<glyph> <name>stop-frame</name> <left>0.99390</left> <right>0.99854</right> </glyph>
@ -1586,7 +1586,7 @@ Shared parameters for various materials.
<xsize>4096</xsize>
<ysize>128</ysize>
<glyph> <name>|</name> <left>0.00000</left> <right>0.00244</right> </glyph>
<glyph> <name>.</name> <left>0.00439</left> <right>0.01758</right> </glyph>
<glyph> <name>*</name> <left>0.00439</left> <right>0.01758</right> </glyph>
<glyph> <name>_</name> <left>0.01392</left> <right>0.02148</right> </glyph>
<glyph> <name>-</name> <left>0.01758</left> <right>0.03418</right> </glyph>
<glyph> <name>A</name> <left>0.03418</left> <right>0.05469</right> </glyph>
@ -1635,14 +1635,14 @@ Shared parameters for various materials.
<glyph> <name>t7</name> <left>0.73120</left> <right>0.74634</right> </glyph>
<glyph> <name>t8</name> <left>0.74634</left> <right>0.76001</right> </glyph>
<glyph> <name>t9</name> <left>0.76001</left> <right>0.77441</right> </glyph>
<glyph> <name>up</name> <left>0.77441</left> <right>0.79200</right> </glyph>
<glyph> <name>down</name> <left>0.79200</left> <right>0.81006</right> </glyph>
<glyph> <name>left</name> <left>0.81006</left> <right>0.83276</right> </glyph>
<glyph> <name>right</name> <left>0.83276</left> <right>0.85571</right> </glyph>
<glyph> <name>left-up</name> <left>0.85571</left> <right>0.87573</right> </glyph>
<glyph> <name>right-up</name> <left>0.87573</left> <right>0.89527</right> </glyph>
<glyph> <name>left-down</name> <left>0.89527</left> <right>0.91529</right> </glyph>
<glyph> <name>right-down</name> <left>0.91529</left> <right>0.93457</right> </glyph>
<glyph> <name>^u</name> <left>0.77441</left> <right>0.79200</right> </glyph>
<glyph> <name>^d</name> <left>0.79200</left> <right>0.81006</right> </glyph>
<glyph> <name>^l</name> <left>0.81006</left> <right>0.83276</right> </glyph>
<glyph> <name>^r</name> <left>0.83276</left> <right>0.85571</right> </glyph>
<glyph> <name>^lu</name> <left>0.85571</left> <right>0.87573</right> </glyph>
<glyph> <name>^ru</name> <left>0.87573</left> <right>0.89527</right> </glyph>
<glyph> <name>^ld</name> <left>0.89527</left> <right>0.91529</right> </glyph>
<glyph> <name>^rd</name> <left>0.91529</left> <right>0.93457</right> </glyph>
<glyph> <name>no-entry</name> <left>0.93872</left> <right>0.96997</right> </glyph>
<glyph> <name>start-frame</name><left>0.98462</left> <right>0.98926</right> </glyph>
<glyph> <name>stop-frame</name> <left>0.99390</left> <right>0.99854</right> </glyph>
@ -1670,7 +1670,7 @@ Shared parameters for various materials.
<xsize>4096</xsize>
<ysize>128</ysize>
<glyph> <name>|</name> <left>0.00000</left> <right>0.00244</right> </glyph>
<glyph> <name>.</name> <left>0.00439</left> <right>0.01758</right> </glyph>
<glyph> <name>*</name> <left>0.00439</left> <right>0.01758</right> </glyph>
<glyph> <name>_</name> <left>0.01392</left> <right>0.02148</right> </glyph>
<glyph> <name>-</name> <left>0.01758</left> <right>0.03418</right> </glyph>
<glyph> <name>A</name> <left>0.03418</left> <right>0.05469</right> </glyph>
@ -1719,14 +1719,14 @@ Shared parameters for various materials.
<glyph> <name>7</name> <left>0.73120</left> <right>0.74634</right> </glyph>
<glyph> <name>8</name> <left>0.74634</left> <right>0.76001</right> </glyph>
<glyph> <name>9</name> <left>0.76001</left> <right>0.77441</right> </glyph>
<glyph> <name>up</name> <left>0.77441</left> <right>0.79200</right> </glyph>
<glyph> <name>down</name> <left>0.79200</left> <right>0.81006</right> </glyph>
<glyph> <name>left</name> <left>0.81006</left> <right>0.83276</right> </glyph>
<glyph> <name>right</name> <left>0.83276</left> <right>0.85571</right> </glyph>
<glyph> <name>left-up</name> <left>0.85571</left> <right>0.87573</right> </glyph>
<glyph> <name>right-up</name> <left>0.87573</left> <right>0.89527</right> </glyph>
<glyph> <name>left-down</name> <left>0.89527</left> <right>0.91529</right> </glyph>
<glyph> <name>right-down</name> <left>0.91529</left> <right>0.93457</right> </glyph>
<glyph> <name>^u</name> <left>0.77441</left> <right>0.79200</right> </glyph>
<glyph> <name>^d</name> <left>0.79200</left> <right>0.81006</right> </glyph>
<glyph> <name>^l</name> <left>0.81006</left> <right>0.83276</right> </glyph>
<glyph> <name>^r</name> <left>0.83276</left> <right>0.85571</right> </glyph>
<glyph> <name>^lu</name> <left>0.85571</left> <right>0.87573</right> </glyph>
<glyph> <name>^ru</name> <left>0.87573</left> <right>0.89527</right> </glyph>
<glyph> <name>^ld</name> <left>0.89527</left> <right>0.91529</right> </glyph>
<glyph> <name>^rd</name> <left>0.91529</left> <right>0.93457</right> </glyph>
<glyph> <name>start-frame</name><left>0.98462</left> <right>0.98926</right> </glyph>
<glyph> <name>stop-frame</name> <left>0.99390</left> <right>0.99854</right> </glyph>
</material>
@ -1753,7 +1753,7 @@ Shared parameters for various materials.
<xsize>4096</xsize>
<ysize>128</ysize>
<glyph> <name>|</name> <left>0.00000</left> <right>0.00244</right> </glyph>
<glyph> <name>.</name> <left>0.00439</left> <right>0.01758</right> </glyph>
<glyph> <name>*</name> <left>0.00439</left> <right>0.01758</right> </glyph>
<glyph> <name>_</name> <left>0.01392</left> <right>0.02148</right> </glyph>
<glyph> <name>-</name> <left>0.01758</left> <right>0.03418</right> </glyph>
<glyph> <name>A</name> <left>0.03418</left> <right>0.05469</right> </glyph>
@ -1802,14 +1802,14 @@ Shared parameters for various materials.
<glyph> <name>t7</name> <left>0.73120</left> <right>0.74634</right> </glyph>
<glyph> <name>t8</name> <left>0.74634</left> <right>0.76001</right> </glyph>
<glyph> <name>t9</name> <left>0.76001</left> <right>0.77441</right> </glyph>
<glyph> <name>up</name> <left>0.77441</left> <right>0.79200</right> </glyph>
<glyph> <name>down</name> <left>0.79200</left> <right>0.81006</right> </glyph>
<glyph> <name>left</name> <left>0.81006</left> <right>0.83276</right> </glyph>
<glyph> <name>right</name> <left>0.83276</left> <right>0.85571</right> </glyph>
<glyph> <name>left-up</name> <left>0.85571</left> <right>0.87573</right> </glyph>
<glyph> <name>right-up</name> <left>0.87573</left> <right>0.89527</right> </glyph>
<glyph> <name>left-down</name> <left>0.89527</left> <right>0.91529</right> </glyph>
<glyph> <name>right-down</name> <left>0.91529</left> <right>0.93457</right> </glyph>
<glyph> <name>^u</name> <left>0.77441</left> <right>0.79200</right> </glyph>
<glyph> <name>^d</name> <left>0.79200</left> <right>0.81006</right> </glyph>
<glyph> <name>^l</name> <left>0.81006</left> <right>0.83276</right> </glyph>
<glyph> <name>^r</name> <left>0.83276</left> <right>0.85571</right> </glyph>
<glyph> <name>^lu</name> <left>0.85571</left> <right>0.87573</right> </glyph>
<glyph> <name>^ru</name> <left>0.87573</left> <right>0.89527</right> </glyph>
<glyph> <name>^ld</name> <left>0.89527</left> <right>0.91529</right> </glyph>
<glyph> <name>^rd</name> <left>0.91529</left> <right>0.93457</right> </glyph>
<glyph> <name>start-frame</name><left>0.98389</left> <right>0.98926</right> </glyph>
<glyph> <name>stop-frame</name> <left>0.99390</left> <right>0.99976</right> </glyph>
</material>