zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.2k stars 1.9k forks source link

Right to left languages support #623

Closed ma-sadeghi closed 5 months ago

ma-sadeghi commented 5 years ago

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

zadam commented 5 years ago

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

fla15 commented 5 years ago

when 0.35 will be released?

zadam commented 5 years ago

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.

fla15 commented 5 years ago

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

ma-sadeghi commented 4 years ago

@zadam Any updates? Thanks

zadam commented 4 years ago

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).

BigGitWorld commented 4 years ago

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

Hashemian01 commented 4 years ago

Any Updates?

MAX10541 commented 2 years ago

@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.

hosseinvand commented 2 years ago

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

matty0blake commented 2 years ago

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

smhhf23 commented 1 year ago

Is there any updates? to solve this problem ?

yshalsager commented 9 months ago

@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.

meichthys commented 5 months ago

Trilium has entered maintenance mode. Future enhancements will be addressed in TrilumNext: https://github.com/TriliumNext/Notes/issues/97