RTL text turns to LTR when exported to html
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When I write Hebrew text in Zim, it is rendered correctly from right-to-left (RTL). However when I export this text to html, it seems that the new file is left-to-right (LTR).
I suspect the reason is that in regard to RTL, zim is relaying on the good infrastructure of gnome and linux. Html, on the other hand, doesn't automatically distinct RTL text, and a rtl tag must be inserted to the parts of the text that are RTL. I can insert a RTL mark from the right click menu in zim, but as far as I can see it has no effect on the exported html.
Zim can be much more useful for RTL languages (Hebrew, Arabic, Farsi) if it will automatically insert the rtl tags to blocks of RTL text when exporting to html. If it's difficult to implement, at least an option to manualy add these tags from within zim would improve things.
I'm using zim 0.26
I have no experience using RTL languages but a quick internet search indicates that for HTML we need to set an explicit attribute 'dir="RTL"' per page / paragraph or text span. So it seems easy to make a template that sets all text to RTL. However mixed text might be a problem. I need to check how other applications handle this.
Could you attach an example of a simple HTML page containing both RTL and LTR text ?