A series of modifications can be applied to glyph graphics.
All glyph modifiers must be inserted right after the glyph code, and
are introduced with a backslash character (
\). Any number
of modifiers can be specified for a given glyph. They will all be combined
gracefully to render the resulting glyph. If a modifier is repeated more
than once, only the last one will take effect.
\fv modifiers are used to
(respectively) flip horizontally and flip vertically individual
glyph graphics inside a quadrat.
A1\fh ---> flip horizontally glyph A1 D1\fv ---> flip vertically glyph D1 A1\fh\fv ---> flip horizontally AND vertically glyph A1
\a modifier (followed by a single letter to
specify the desired alignment) is used to override the default
horizontal of vertical alignment of glyph inside a quadrat.
Inside a complex quadrat, each glyph is alloted a "cell", which is a rectangular part of the quadrat inside of which it has to fit. Often, the alloted cell will be taller and/or wider than the bounding box (contour) that the graphic will end up taking once scaled. The hieroglyphic graphics engine will by default position the glyph according to predefined alignment rules, but sometimes you may need to override these default alignment rules to achieve correct positioning.
For example, if a quadrat contains a single small glyph, such as
X1, it will, by default, be centered vertically in the
quadrat rectangle. You may wish to have it appear at the bottom or top
of the quadrat rectangle. You would use the
\ab modifiers to do so.
The following alignment are defined:
\al ---> force left alignment \ac ---> force centered alignment (horizontally) \ar ---> force right alignment \at ---> force top alignment \am ---> force middle alignment (vertically) \ab ---> force bottom alignment
Both Vertical and Horizontal alignments can be specified at once to override the default vertical and horizontal alignments.
MDC: With regards to the MDC, the modifiers
\t3 are no longer defined in LPDH. The reason is simple:
the same results can be achieved by combining the rotation modifier
with one of the flipping modifiers.
\r1 in LPDH is simply
The rotation modifier,
\r, must be followed by a positive
(clockwise) or negative (counter-clockwise) degree specifier.
This will cause the glyph to be rotated at the specified angle.
A1\r90 ---> rotate A1 by 90 ° clockwise A1\r-90 ---> rotate A1 by 90 ° counter-clockwise A1\r270 ---> rotate A1 by 270 ° clockwise
The Scale modifier (
\s) is used to override the
scale of the glyph graphic. It must be followed by a positive integer
between 10 and 400, representing the desired scale as a percentage of
A1\s90 ---> scale A1 at 90% A1\s200 ---> scale A1 at 200% A1\r10 ---> scale A1 at 10%
Such scaling often allows a specific glyph in a quadrat to be rendered at a size closer to the original glyph in the source text. The graphics engine covers most situations, but also provides this modifier to allow more precise control over the scaling.
The color modifier (
\cr to color red, or
to color black) can be used to force an individual glyph to be colored in
red of black.
There is also a quadrat sequence modifier (
that can be used to color a whole sequence of quadrats in red or black.
A1\cr ---> make A1 red A1\cb ---> make A1 black (no real effect by itself, since glyphs are black by default) $r A1 A2 A3 $b ---> everything between
$bwill be red $r A1 A2\cb A3 $b ---> everything between
$bwill be red, except for A2, which overrides the red with its own black color modifier