Bug 336243 - Japanese text (hiragana, katakana, and kanji) is sometimes not displayed
Summary: Japanese text (hiragana, katakana, and kanji) is sometimes not displayed
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.19.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL: http://imgur.com/a/pdqC5#0
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-15 00:18 UTC by Brian Christ
Modified: 2014-06-18 23:31 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Christ 2014-06-15 00:18:49 UTC
There is a particular PDF which fails to display Japanese glyphs (hiragana, katakana, and kanji), but only on Okular (see Additional Information and Steps to Reproduce). Copying a line of text and pasting into another program will not copy the Japanese glyphs, indicating that it is more than just a failure to render. 

The PDF displays properly in every other PDF viewer I tested with, leading me to conclude that it is a (rare) bug in Okular and not a bug in the PDF itself.

I have included an imgur album of screenshots with descriptions.

Reproducible: Always

Steps to Reproduce:
1. Download the PDF from this page: http://grammar.nihongoresources.com/doku.php#download_the_book_as_free_pdf
2. Open in Okular
3. Go to any page with Japanese text (Section 1.1.3 on page 6 is a good example)
Actual Results:  
The English text is displayed, while Japanese text is not. There are obvious gaps in the lines where the Japanese text would be if it were rendered. 

Expected Results:  
I would expect the Japanese text to be rendered.

I have opened many Japanese-language PDFs in Okular, and this is the only one to have given me problems. The PDF also renders properly in other viewers. So far, I have tested the following (all on the same PC):

* Okular
* Firefox's built-in PDF viewer
* Master PDF Editor
* Adobe Reader 9
Comment 1 Albert Astals Cid 2014-06-17 22:02:21 UTC
I think i see Japanese just fine. Can you attach a screenshot?
Comment 2 Brian Christ 2014-06-18 00:10:05 UTC
I provided an imgur gallery with several screenshots—see the attached URL. I'll repeat it here: http://imgur.com/a/pdqC5#0
Comment 3 Albert Astals Cid 2014-06-18 22:48:36 UTC
Yeah, i want a screenshot of what you get in Okular :D

Also tell me which poppler and poppler-data versions do you have an attach a screenshot of Okular->File->Properties->Fonts
Comment 4 Albert Astals Cid 2014-06-18 23:20:07 UTC
Ok, Luigi brought to my attention that the screenshot of okular is there in imgur too, hard to use webpage, please answer the other questions though.
Comment 5 Brian Christ 2014-06-18 23:31:04 UTC
I checked, and it turns out that I didn't have poppler-data installed. After installing poppler-data, the Japanese text displayed perfectly (see http://i.imgur.com/XJ77wGc.png for a before-and-after screenshot).

It appears that Arch does not have poppler-data listed as a dependency (optional or otherwise—see https://www.archlinux.org/packages/extra/i686/kdegraphics-okular/ ) for Okular, so I suppose I should mention it over there.

Thanks for pointing me in the right direction.