[texhax] pdftex and Unicode
rdtennent at gmail.com
Sun Aug 26 02:06:07 CEST 2018
>|I have a document that uses just one font, \tt, and contains the string
>|The document renders perfectly under pdftex.
>|I would like to change the document so that instead of "1/2", it uses the
>|single Unicode character ½ (VULGAR FRACTION ONE HALF, Unicode character
>|> ???Modern??? TeX-alike applications, XeTeX and LuaTeX read their
>|> UTF-8 representations of Unicode as standard. They also use TrueType or
>|> OpenType fonts for output; each such font has tables that tell the
>|> application which part(s) of the Unicode space it covers; the tables
>|> the engines to decide which font to use for which character (assuming
>|> is any choice at all).
>|which left me with the impression that nowadays I don't have to struggle
>|the old 255-glyph limit or any of the concomitant pain of handling
>|and all I needed to do was to change the string "1/2" in the TeX
>|to "½". But that seems not to be the case: nothing at all displayed at the
>|point where I expected to see the "½" in the resultant PDF file.
>|Here is a stripped-down trivial test.tex source file that shows what
>|Line 1: 1/2
>|Line 2: ½
>|No errors are raised by pdftex, but the "½" character is absent in
>|What is the correct way to have pdftex produce the "½" glyph?
More information about the texhax