[patch] to fix Syntax Warning: Could not parse ligature component "BE" of "S_BE" in parseCharName
Submitted by William Bader
Assigned to poppler-bugs
Created attachment 117019 patch to add three glyph name mappings
I have a PDF that I can post privately that gets the warning Syntax Warning: Could not parse ligature component "BE" of "S_BE" in parseCharName multiple times when processed by poppler. pdfinfo shows that the "Producer" is "Scribus PDF Library 1.4.3.svn".
I think that underscores are delimiters for splitting glyph names into components, but the "liberation-fonts" package has a few glyph names that contain underscores. I found a comment on a bug report that I have included below.
The attached patch adds mappings for those glyphs.
I am using Fedora 20 Linux on x86_64. Neither gs 9.16 or acroread 9.5.5 show warnings when they open the PDF.
https://bugzilla.redhat.com/show_bug.cgi?id=1009650 "The second bug concerns the serbian be, pe and te. They are named S_BE, S_PE and S_TE. Applications that rely on AGL-conformant glyph names to identify the original codepoints read these names as ligatures of a letter S and a letter BE (or PE or TE). As no BE, PE or TE named glyphs exist in the font, no mapping can be found and copying will fail. To fix this, the glyphs should be renamed to uni0431.srb, uni043F.srb and uni0442.srb (or any other suffix)."
https://github.com/adobe-type-tools/agl-specification Adobe Glyph List Specification
Patch 117019, "patch to add three glyph name mappings":