Few years ago I wrote about how to create RTL (right-to-left) tiddlers in TiddlyWiki. Creating RTL tiddlers is almost a necessity if you want to create tiddlers in a right-to-left language such as Hebrew or Arabic. TiddlyWiki5, the new version of TiddlyWiki, broke the old solution, but a similar one is can be made. In order to be able to add RTL tiddlers to your TiddlyWiki follow these steps:
- Create a new tiddler. The title doesn’t matter, but something like “RTLStylesheet” would be indicative.
- Paste the following CSS code as the content of the tiddler:
.tc-tagged-RTL .tc-tiddler-title, .tc-tagged-RTL .tc-tags-wrapper, .tc-tagged-RTL .tc-tiddler-body { direction: rtl; } .tc-tiddler-frame.tc-tagged-RTL .tc-tiddler-controls { float: left; }
- Set the tiddler’s type to “Static stylesheet (text/css)”.
- Tag the tiddler with
$:/tags/Stylesheet
. Don’t forget to press “Add” or otherwise it won’t be saved. - Save the tiddler (it should look like the image below before saving).
Now to create a new RTL tidller, simply create a tiddler and tag is with “RTL”.
Editing RTL tiddlers
Unfortunately, I haven’t found a way to automatically set the directions of the text inputs and textareas when editing an RTL tiddler. But this can be done manually pretty easily. In FireFox under Linux simply press Ctrl-Shift-X to change direction, on Windows it should be Ctrl-Shift (right or left shift depending on the direction). The same functionality is accessible in chrome via the context menu (right click).
Reference
This solution is an adaptation of Jermey Ruston answer in response to an inquiry regarding my old solution in the TiddlyWiki Google Group.
The big thank you
Ctrl-Shift-X etc to change direction don’t work in the default configuration. First you need to remove the “Editor tool bar” using the Control Panel.
I edit this method so the whole wiki to be converted into RTL languages.
Here is the code for the stylesheet