raiju / phpMobi

An experimental Mobipocket file creator in PHP
Other
128 stars 32 forks source link

Is RTL possible ? #13

Open soderlind opened 8 years ago

soderlind commented 8 years ago

Quick question, is RTL (right to left) language supported?

raiju commented 8 years ago

I haven't tested it, but if the input html correctly hints at rtl it'll probably work. This depends on the kindle's rtl handling (haven't found any good documentation on this).

raiju commented 8 years ago

(Please report back if you do get a chance to test it!)

soderlind commented 8 years ago

I tried adding <html dir='rtl'> and <body dir='rtl'> with no success.

raiju commented 8 years ago

Sorry, I'm not sure how this would be fixed, still couldn't find any good docs on this.

soderlind commented 8 years ago

Only thing I've found is .. if you want rtl, "According to Kovid Goyal ( creator of Calibre) you need to convert to azw3 instead of mobi"

raiju commented 8 years ago

Ah, if that is true, then the current library won't work at all. After a bit of sniffing around, the only thing I found that could inform an implementation is: https://github.com/kovidgoyal/calibre/blob/master/src/calibre/ebooks/conversion/plugins/mobi_output.py#L264. I'm afraid I won't have the time to work on this at all.

soderlind commented 8 years ago

I understand, no problem.

btw, I'm using you library with my WordPress Read Offline plugin.