trilium icon indicating copy to clipboard operation
trilium copied to clipboard

Right to left languages support

Open ma-sadeghi opened this issue 6 years ago • 13 comments

It would be great if the editor natively supports right-to-left languages like Arabic and Farsi.

ma-sadeghi avatar Aug 23 '19 14:08 ma-sadeghi

This will come in the next release (0.35) since CKEditor just merged support for RTL.

zadam avatar Aug 23 '19 14:08 zadam

when 0.35 will be released?

fla15 avatar Sep 11 '19 14:09 fla15

0.35-beta has been already released. It contains the new CKEditor which should support RTL but I did not test RTL specifically (I don't really know how anyway). Feedback is welcome.

zadam avatar Sep 11 '19 17:09 zadam

doesn't work. 0 35 0-beta also the font is not standard.

fla15 avatar Sep 12 '19 00:09 fla15

@zadam Any updates? Thanks

ma-sadeghi avatar Dec 13 '19 00:12 ma-sadeghi

Not really, I guess this is one of those "help needed" issues since I have little experience with RTL. Based on CKEditor documentation it should work somehow automatically if the user has RTL environment (which I don't).

zadam avatar Dec 22 '19 10:12 zadam

Please support RTL regardless of the user environment. I'm using Ubuntu and need to RTL support for some my own notes. I already use the gedit editor and it supports RTL. You can also refer to the following link from the Notable: Notable-RTL-Support

BigGitWorld avatar Apr 13 '20 12:04 BigGitWorld

Any Updates?

Hashemian01 avatar Jul 17 '20 12:07 Hashemian01

@zadam there seems to be some partial, easy fixes for this. For example: using CKEditor5 Text Part Language, and this plugin.
I haven't tested them but I can give a hand if you decide to try them.

MAX10541 avatar Feb 04 '22 04:02 MAX10541

Is there any updates? I know a ton of people with rtl language needing this feature

hosseinvand avatar May 07 '22 06:05 hosseinvand

i never worked with RTL document. but as i checked the CKEditor it won't automatically change the text direction. you have to do it manually. so the solution will be to add the icon tool to the tool bar. i did try to replace it with a CKEditor that i build it with having the direction changing icon on the tool bar but it failed while calling the CKEditor file. i watched the CKEditor files but i could'nt read it to compare it. i dont know how they used the editor on the software

but as i didnt read all the code cause of my current limited time. maybe adding the icon be a good solution to the one you already build. i couldnt fit them and i have no idea how that will break the program

matty0blake avatar May 31 '22 21:05 matty0blake

Is there any updates? to solve this problem ?

smhhf23 avatar May 04 '23 10:05 smhhf23

@zadam

Based on CKEditor documentation it should work somehow automatically if the user has RTL environment.

I was just trying, seems it won't change contentLanguageDirection automatically as @matty0blake said.

the solution will be to add the icon tool to the tool bar. i did try to replace it with a CKEditor that i build it with having the direction changing icon on the tool bar.

This sounds a good and easy solution. I have tried to do it but couldn't manage to get all the pieces together since I am not familiar with the API.

yshalsager avatar Jan 20 '24 09:01 yshalsager