Does epublib support non-English epub books?

139 views
Skip to first unread message

erik

unread,
Sep 1, 2011, 12:46:37 AM9/1/11
to epublib
Hi all,

I got empty output of getAuthors() and getTitle() while trying to open
a Chinese epub book. Just wondering if non-English not support yet?

InputStream epubInputStream = assetManager.open("book/ming.epub");
Book book = (new EpubReader()).readEpub(epubInputStream);
Log.i(TAG, "author(s): " + book.getMetadata().getAuthors());
Log.i(TAG, "title: " + book.getTitle());

Thanks in advanced,
Erik

Paul Siegmann

unread,
Sep 2, 2011, 9:15:58 AM9/2/11
to epublib
Hi Erik,

Non-english should work fine.

There used to be a bug in epublib where non-ascii characters in the
metadata were not read correctly.
This has been fixed in this commit:
https://github.com/psiegman/epublib/commit/7ab1239ead45f58150b752421a4ea14d5f78e1c4

Do you use a version that has this patch ?

regards,
Paul Siegmann

erik

unread,
Sep 8, 2011, 12:45:14 AM9/8/11
to epublib
Hi Paul,

Great. Checked out the latest and it works fine.

Thanks
Erik


On Sep 2, 9:15 pm, Paul Siegmann <paul.siegm...@gmail.com> wrote:
> Hi Erik,
>
> Non-english should work fine.
>
> There used to be a bug in epublib where non-ascii characters in the
> metadata were not read correctly.
> This has been fixed in this commit:https://github.com/psiegman/epublib/commit/7ab1239ead45f58150b752421a...

Ravi Prajapati

unread,
Mar 23, 2017, 6:25:52 AM3/23/17
to epublib
Hi Paul,

I am using non-english epub file it reander perfectly but the output file not apply any external file css and fonts.


could you please look into this is there any changes need to do.


Thanks
Reply all
Reply to author
Forward
0 new messages