rschroll / efm

Epub for Monocle — A pure javascript implementation of the book data interface for Epub2 and Epub3
http://rschroll.github.com/efm
44 stars 15 forks source link

RTL languages support #6

Open fadykamal opened 10 years ago

fadykamal commented 10 years ago

Ebooks like this one aren't supported https://epub-samples.googlecode.com/files/regime-anticancer-arabic-20130327.epub Are RTL language epub books will be supported soon ?

rschroll commented 10 years ago

Testing that sample on my webpage, I noticed two problems:

1) The title page did not display. This had nothing to do with rtl text, but was due to an error unzipping the epub. Upgrading zip.js fixed that.

2) Only the first page of a chapter is displayed; the rest are blank.
I suspect this is actually a problem with Monocle, which actually lays things out, not with EFM, which is just responsible for feeding Monocle data. In this issue (https://github.com/joseph/Monocle/issues/52), haniqassim notes the same problem, and there doesn't seem to have been any resolution. This may also be relevant: https://github.com/joseph/Monocle/issues/80.

(Actually, there's probably a third problem: the page turns are backwards. But again, that's a problem with Monocle.)

I'll leave this open for now, since there's a chance that EFM will have to do something special to pass RTL text to Monocle once Monocle supports it.