Mnemonic Layout library (lib-layout font encoding)
General Info

Introduction
Screenshots
Mailing Lists and IRC
Alternative Browsers
Special Thanks

FAQ
Understanding Mnemonic
TODO list and ideas
Bug Reports


User Info

Download binaries
Platforms
Compiling Mnemonic
Other useful software


Developer Info

Core
Message modules
Library modules
Object modules
Coding Guidelines
Browse Source
Using CVS


View with any browser

Website questions to:
webmaster@mnemonic.org

Mnemonic questions to:
disc@mnemonic.org

 

Font encoding in the layout library

(warning: most of this is not yet implemented)

Internally, lib-layout only uses UTF8 Unicode character encoding. This means that characters in text boxes as well as mathematical symbols in math boxes are all represented in Unicode form. It is the responsibility of the creator of the lib-layout tree to perform conversions from other encodings (eg. from TeX's backslash notation for greek symbols or from MathML entities to UTF8) when necessary. For example, the xmlhandler takes care of a translation from XML entities to UTF8 characters.

As not all font renderers can be controlled using Unicode, lib-layout does contain conversion routines for a few font formats. In particular, lib-layout knows about the mapping from logical Unicode characters to the encoding in Computer Modern Roman fonts (several entries in the PUA will be used until Unicode.org has included all math characters).

The systematics described above are pretty close to something in use by the MathType program; see their extended Unicode and Unicode to font encoding tables. ftp://ftp.unicode.org/Public/UNIDATA/UnicodeCharacterDatabase.html.