Changes

Jump to navigation Jump to search
no edit summary
(It’s also interesting to note that for PostScript and TrueType fonts, that number —> name —> number (glyph) mapping happens yet again in the driver. But all that is outside of TeX proper, so to say any more would be confusing.)
 
==Conversion between encodings==
It is possible to convert a string from the current encoding to another using Lua (originally discussed at [http://www.ntg.nl/pipermail/ntg-context/2012/065115.html] and [http://www.ntg.nl/pipermail/ntg-context/2012/065256.html]):
 
<code>
\startluacode
-- Usage:
-- regimes.toregime(<target-encoding>, <text>, <character-on-failure>))
 
regimes.toregime("cp1250", "abcč\192\200žý", "?")) -- Returns "abcč??žý" (one byte per character)
\stopluacode
</code>
==External links==
105

edits

Navigation menu