[poppler] fixing-up TeX accents

Albert Astals Cid aacid at kde.org
Tue Mar 22 12:19:54 PDT 2011


A Dimarts, 22 de març de 2011, Tim Brody va escriure:
> Hi All,
> 
> Can someone give me some feedback on the following approach in
> TextPage::addChar:
> 
> if
> 
> overlap &&
> accent IS-IN fixup-map
> 
> then
> 
> replace accent with combining-char (e.g. 0x0308)
> swap(currentChar,combining-char)
> unicodeNormalizeNFKC(word)
> 
> Where fixup-map is a mapping of TeX-used accents to Unicode combining
> chars.
> 
> Is it ok to always do this? Any circumstance where you would expect to get
> overlapping accents and it not be a TeX-generated combine?

Why not make tex generate the accents correcltly? AFAIR there is an option to 
make Tex not create stupid PDF files.

Albert


More information about the poppler mailing list