Is this an encoding problem?
Hi, I'm using the lines below in the start of a book '.tex' file. It selects the 'gentium' pre-defined typeface, and the file itself was done using utf8. However, a few unicode characters desapear or cause small problems, like these (unicodes between 2012 and 2015): ― (before spoken text) - (hyphen) I thought they could be missing from the font, but I have already used gentium by just loading the font, before I learned about typefaces. (I did download the font from its site, however, instead of using that from minimals.) Did I do anything wrong? Thanks, Maurício %%%% \enableregime[utf] \mainlanguage[pt] \setuppapersize[a5][a5] \usetypescript[gentium] \setupbodyfont[gentium,20pt] \setupindenting[small] \indenting[yes] \setupwhitespace[small] \definestartstop [verse] [before=\vbox\bgroup\startlines, after=\stoplines\egroup] \defineselector[title][max=2,n=2] \setuplist[chapter][width=0pt] \setupheads[alternative=middle] \setuphead[chapter][number=no,incrementnumber=list] \starttext
On Sun, May 31, 2009 at 22:00, Maurício wrote:
Hi,
I'm using the lines below in the start of a book '.tex' file. It selects the 'gentium' pre-defined typeface, and the file itself was done using utf8.
However, a few unicode characters desapear or cause small problems, like these (unicodes between 2012 and 2015):
― (before spoken text) - (hyphen)
They work here both in mkii and mkiv (Thomas - I have a feeling that naming of book basic in type-gentium and in tfm files is out of sync for some reason), though I wouldn't be surprised if there were any problems with the font (we submitted a faulty ttf version to CTAN once). Does it make any difference if you replace the font in TeX tree with the font downloaded straight from SIL (and maybe regenerate font cache for luatex just in case)? You'll probably need to post a minimal complete example that fails. Mojca
However, a few unicode characters desapear or cause small problems, like these (unicodes between 2012 and 2015):
They work here both in mkii and mkiv (...) Does it make any difference if you replace the font in TeX tree with the font downloaded straight from SIL (and maybe regenerate font cache for luatex just in case)?
Here is md5sum of gentium files. However, I wasn't able to get those characters with any font. My first tought was that input could be in something different from utf8, but I can get the ellipsis from the example below to work. 34cc1c1f334221ba0b67e05011036906 *context/tex/texmf/fonts/truetype/public/gentium/GenI102.TTF c8b88a8ecf5f6f93052fb2d1628438d5 *context/tex/texmf/fonts/truetype/public/gentium/GenBasBI.ttf c968d72c4bfc649e2581a5d6699fd31f *context/tex/texmf/fonts/truetype/public/gentium/GenR102.TTF 03ca29844a7db9b018b2dd4de50be6d6 *context/tex/texmf/fonts/truetype/public/gentium/GenBasB.ttf
You'll probably need to post a minimal complete example that fails.
Here it is. The ellipsis is okay in the output. The horizontal bars, however, just desapear, although they do use some space, as the first letters do not stay aligned with the last line. %%%% \enableregime[utf] \usetypescript[gentium] \setupbodyfont[gentium,20pt] \starttext ― Tá vendo? Você não entende! ― Claro que entendo… This is a line without a dash. \stoptext
participants (2)
-
Maurício
-
Mojca Miklavec