FS#20714 - [xpdf-japanese] 20040727-4: PKGBUILD fails to copy Adobe-Japan1.cidToUnicode

Attached to Project: Arch Linux
Opened by alm kkt (almkk) - Thursday, 02 September 2010, 07:06 GMT
Last edited by Gaetan Bisson (vesath) - Thursday, 02 September 2010, 13:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Xpdf (3.02_pl4-2) fails to render some pdf files containing japanese characters.
It seems that if japanese fonts are not embedded in pdf file,
xpdf fails to render the pdf file.

example:
http://www.ai-gakkai.or.jp/jsai/journal/guide.pdf

The first part of error messages when drawing first page of the pdf file above.
================================================================================
Error: Couldn't open cidToUnicode file '/usr/share/xpdf/Adobe-Japan1.cidToUnicode'
Error: Unknown character collection 'Adobe-Japan1'
Error: Couldn't open cidToUnicode file '/usr/share/xpdf/Adobe-Japan1.cidToUnicode'
Error: Unknown character collection 'Adobe-Japan1'
Error: Couldn't open cidToUnicode file '/usr/share/xpdf/Adobe-Japan1.cidToUnicode'
Error: Unknown character collection 'Adobe-Japan1'
Error: Couldn't open cidToUnicode file '/usr/share/xpdf/Adobe-Japan1.cidToUnicode'
Error: Unknown character collection 'Adobe-Japan1'
Error: Couldn't open cidToUnicode file '/usr/share/xpdf/Adobe-Japan1.cidToUnicode'
Error: Unknown character collection 'Adobe-Japan1'
Error: Couldn't find a mapping to Unicode for font 'Ryumin-Light-Identity-H'
Error: Couldn't find a mapping to Unicode for font 'GothicBBB-Medium-Identity-H'
================================================================================

I think this is because PKGBUILD of xpdf-japanese (20040727-4)
fails to copy Adobe-Japan1.cidToUnicode in xpdf-japanese tarball.
After copying Adobe-Japan1.cidToUnicode to
/usr/share/xpdf/Adobe-Japan1.cidToUnicode,
xpdf correctly renders the example pdf file.
This task depends upon

Closed by  Gaetan Bisson (vesath)
Thursday, 02 September 2010, 13:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in xpdf-japanese-20040727-5
Comment by Gaetan Bisson (vesath) - Thursday, 02 September 2010, 08:23 GMT
xpdf-japanese only provides encoding conversion, but no fonts to display Japanese characters.

You can:
1. Install a font that supports Japanese characters (for instance, otf-ipafont from AUR) and rewrite your "/etc/xpdf/xpdf-japanese" to use it (in place of Bitstream Vera).
2. Use a better PDF viewer. (I highly recommend mupdf from AUR; amongst other things, it supports CJK out of the box.)
Comment by alm kkt (almkk) - Thursday, 02 September 2010, 12:27 GMT
Adobe-Japan1.cidToUnicode is not a font. It specifies mappings from CID (character ID) to Unicode.
Comment by Gaetan Bisson (vesath) - Thursday, 02 September 2010, 12:56 GMT
Right; I had misunderstood your bug.
I will fix that soon. :)

Loading...