Open parsedarweb opened 8 years ago
I guess this is related to the CodeMirror configuration or the editor CSS. This demo shows a working example with CodeMirror, so this is obviously possible to handle it correctly. Maybe this would be easier to fix for a dev who knows Persian (that is why I added a "help wanted" tag).
Same Problem:
Hey there
I tried this application to type in persian, but it seems there's not a correct support for Persian.
Persian is a RTL (righ-to-left) language (like Arabic, Hebrew, probably Japanese and more). Words are typed from right side to left. There's two point here. Let me show them in CSS:
Support for RTL is useful when you have a mixture of English and Persian words that is supported rarely by editors. Some editors like
Leafpad
/gedit
support both to start strings from right side of editor and keep them RTL. Some of them do not have support for neither 'aligning to right' nor RTL, as in:kate
.But, all of them have support for strings purely written in Persian. What do I mean? Here is an example:
the world 'سلام' is the first typed word and the word 'دنیا' is the next. The above phrase 'سلام دنیا' is shown correctly while it's not still RTL or not showed in right side, but it's meaningful.
Here is what happens in Abricotine:
Summary: All things are shown correctly in the table of contents sidebar, but they are disarranged in the editor side.