notes icon indicating copy to clipboard operation
notes copied to clipboard

Doesn't support RTL text in the web app

Open eladhen opened this issue 6 years ago • 7 comments

The Notes app creates a text file. Most local text editors adhere to some standards concerning Right-To-Left text: starting a RTL line if the first character is in a RTL language, adhering to RTL determining character ->(‏‎) and so on. This doesn't work on the Note online editor. It shows the text LTR no matter what.

A workaround is just using a different local editor (and the android editor presumably implements some standard code, so it doesn't have this problem).


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

eladhen avatar May 05 '18 07:05 eladhen

This most probably is related to the Markdown library we use? @nextcloud/notes

jancborchardt avatar Jun 04 '18 22:06 jancborchardt

Hello,

I wish it could support RTL. Its a great plugin, but its a bummer that I can't use it. Its simple and all I want. In notes in mac, when I type english it is Left to Right but when I type Arabic it is right to left.

Even an option would be handy to switch the content RTL.

Please please consider adding it.

seyzed avatar Apr 09 '20 19:04 seyzed

This is the editor we use, right @korelstar? https://github.com/Ionaru/easy-markdown-editor/issues

@eladhen @artaweb I couldn’t find an issue in their repository about RTL support – could you open an issue there? :) Since it’s the library we use, Nextcloud Notes supporting it is dependent on that editor supporting it.

jancborchardt avatar Jun 03 '20 14:06 jancborchardt

Just did open a feature request on that link.

seyzed avatar Jun 03 '20 14:06 seyzed

Thanks a lot! For reference, the issue is https://github.com/Ionaru/easy-markdown-editor/issues/202

By the way, could "direction: auto" work as well? Then it would adjust based on whatever is used, even if LTR and RTL are used both in the same sentence?

jancborchardt avatar Jun 03 '20 17:06 jancborchardt

Unfortunately, direction auto will not work. There is only 4 properties for "Direction" in css and itsltr|rtl|initial|inherit; in this case, only RTL will work.

But I think you mean dir instead of direction.

I agree that this should be something auto and can support mixed content. dir: auto could be a good handler in this scenario but after a little digging, I see that IE and EDGE does not support it.

https://www.w3.org/International/tests/repo/results/the-dir-attribute-auto

If you guys don't mind it, I don't either, who uses IE or EDGE, even so, having support for 4 major browsers is better than having for none

seyzed avatar Jun 03 '20 20:06 seyzed

@zayalink that would already be a very good enhancement, and we could work on Edge support in a follow-up. Do you want to propose a pull request with that change?

jancborchardt avatar Jul 07 '20 15:07 jancborchardt