Table of Contents

LPDH Reference

Embedding Latin Text

To add a fragment of latin text inside the hieroglyphic text, you use the +T operator. The text to be rendered must be enclosed within parentheses and double quotes (" and ").

Font name and size are specified in the document's Page Setup parameters.

Text can be aligned both vertically and horizontally within the space they occupy. To specify an alignment other than the default, you add the alignment specifier right after +T. Use t to align at the top of the hieroglyphic line, m to align in the middle and b to align at the bottom.

+T("Hello world!")  ---> render Hello world! with default alignment
+Tt("Hello world!") ---> render aligned to top of line
+Tb("Hello world!") ---> render aligned to bottom of line
+Tm("Hello world!") ---> render vertically aligned in the middle of line

If you want to have multiple lines of text, the line breaks can be specified with \n included in the text.

+T("First line\nSecond line\nThird line") 

When multiple lines of text appear, you can also specify an horizontal alignment for the text (l for left, c for centered, and r for right) (which can be combined with a vertical alignment specifier)

+Tr("First line\nSecond line\nThird line") --> right align the text 
+Tbr("First line\nSecond line\nThird line") --> right and bottom 
+Tct("First line\nSecond line\nThird line") --> horizontally centered 

Escaping strings

Since strings are enclosed within double quotes, if you want to output an actual double quote, you must escape it, so that it will not be recognized as the character string delimiter. To do so, preceed it with a backslash \

The backslash character itself, should you need to include it in a string, will also have to be escaped: simply double it

+T("This is \"interesting\"") --> outputs This is "interesting"
+T("Output of a \\ is possible") --> outputs Output of a \ is possible