docute icon indicating copy to clipboard operation
docute copied to clipboard

Multilanguage with LTR and RTL languges

Open ahangarha opened this issue 5 years ago • 2 comments

As far as I see, docute's layout is basically LTR which is why another project is forked from it to support RTL (only). I see docute supports multi-language but it is for LTR languages. What if one of the languages be RTL like Persian, Arabic, Urdu,...? Does it support? If not, how to do so?

ahangarha avatar May 05 '20 16:05 ahangarha

I've no idea how to add RTL support, but PR welcome. That fork looks pretty nice maybe you can use that directly?

egoist avatar May 07 '20 11:05 egoist

I can help with some part, not all. If you can manage to detect if the selected language belongs to RTL ones (including Persian, Arabic, Urdu,...) and if so, load an additional css, I think I can manage the rest.

I cannot use the Farsi (Persian) fork as it is doing somehow the same thing: forcing one direction which is RTL in that case. What I am proposing is somehow load docute-fa if language is RTL.

ahangarha avatar May 08 '20 09:05 ahangarha