TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
8.02k stars 1.19k forks source link

Right To Left direction #2933

Open pooryamd opened 7 years ago

pooryamd commented 7 years ago

Hi, I am so exited finding this LifeHacking app and I really want to use it for everything in my life! :D

And, I really want it to work in my native language and its direction. Here is what supporting my native language means to me:

1- Simultaneous Right to Left and left to right text directions and alignments. In my opinion, some buttons in the editor to set/change/override paragraph text direction and alignment when needed/intended is the best solution. There is a chance that leaving direction/alignment blank -when/if will be possible- in some cases make texts odd if user switch to different direction language but having a direction in tiddler setting or main div based on creation language will prevent it. (Too explaining. Sorry) In addition, even automatically finding first paragraph character and changing direction based on that can be awesome.

2- Language translation: My native language is Persian. I know about translation guidelines in project site. I am OK with using English translations but it would be good is someone translate it.

3- Right-To-Left theme: It should not only be a RTL body direction, But also margins and paddings and right and left attributes for many parts should be changed. It is not too hard to do so and actually I did it (but not sure did it the way it is supposed to be done. I mean there may be a shorter ways like using javascript functions already in place to handle switching or adding/activating a child theme). I really wanted to make it work for me so I edited CSS parts of the page code. Here is RTL corrected codes about line 9300: TiddlyWiki5 rtl - line about 9300.txt

4- Using my local calendar (Jalali calendar) will make it perfect. There are many javascript functions available to convert timestamps to jalali date. I do not know if it is possible to interact with date functions here.

Let me know if I can help making it more awesome (If I can).

kookma commented 4 years ago

@pooryamd Very interesting! Do you still interested in making Tiddlywiki RTL? If you have your own RTL version, I appreciate to let us know and discuss that!

See also: https://github.com/Jermolene/TiddlyWiki5/issues/1845