khajavi / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

Unicode in ePUB appears as questions marks on some hardware readers #256

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Generate an ePUB file with Unicode, e.g. from this source:

  % Unicode Test

  # Привет, мир!

  Пришло время уникода.

2. Put this file on the BeBOOK One or similar reader (based on Jinke V3 
platform).

3. Open a file on the reader.

What is the expected output? What do you see instead?

All unicode appears as "?????" instead of correct glyphs. They appear correctly 
in FBReader on Linux machine.

What version of the product are you using? On what operating system?

pandoc-1.6 (git)

Please provide any additional information below.

A workaround which I borrowed from this file 
(http://gonzo.kiev.ua/files/fprog5r3.epub): add some fonts to the epub archive 
and load them with @font-face.

Original issue reported on code.google.com by s.astanin on 6 Sep 2010 at 5:31

GoogleCodeExporter commented 9 years ago
This sounds like a problem with the reader rather than pandoc.  The reader 
should use a font with unicode glyphs.  I'm not yet convinced that there is any 
defect in the epub pandoc produces, and I can't really bundle fonts in the epub.

But feel free to comment if you think there's something wrong with pandoc's 
epubs.

Original comment by fiddloso...@gmail.com on 11 Sep 2010 at 2:43

GoogleCodeExporter commented 9 years ago
Well, this could be the problem with the reader, but this reader is a pretty 
popular device. I suspect it is not alone with such a bug.

I suggest to allow users to bundle additional files with epub (be it fonts, 
images, whatever). `--pandoc-bundle` or `pandoc-extra-files` could be a good 
name for such an option.

With such an option and custom stylesheet (--epub-stylesheet), the user can 
easily bundle fonts when he needs to.

Original comment by s.astanin on 13 Sep 2010 at 1:22

GoogleCodeExporter commented 9 years ago
Why not instead make a standalone program that takes an existing epub (produced 
by pandoc or by something else) and bundles the fonts?

Original comment by fiddloso...@gmail.com on 13 Sep 2010 at 3:25