tmr232 / Ink2Impress

Create Impress.js presentations with Inkscape!
10 stars 4 forks source link

Bidi-language Support #16

Open tmr232 opened 12 years ago

tmr232 commented 12 years ago

Add support for RTL languages.

tmr232 commented 12 years ago

This is mainly a Chrome bug. It messes with the line order. Till it is fixed - there is a simply hack to overcome this. Wrap each <tspan> element in the <text> element in a <text> element of its own. This does the trick. The misalignment of punctuation can be solved in the script as well be some string manipulation. Probably best to add an 'rtl' flag to the script.

tmr232 commented 12 years ago

Also, both Chrome and FF show Hebrew in a position diffrent than Inkscape.