RTL text direction?

170 views
Skip to first unread message

Sky Diver

unread,
Nov 13, 2014, 5:44:12 PM11/13/14
to tiddl...@googlegroups.com
Hi,

The following page offers an easy way to support RTL text direction on a per-tiddler basis, by adding an RTL tag to the tiddler:
http://www.guyrutenberg.com/2009/03/28/rtl-tiddlers-in-tiddlywiki/

The info seems relevant to year 2009.

Trying to apply the solution to a TW5 (v5.1.4), I receive the same error as reported here:
http://www.guyrutenberg.com/2009/03/28/rtl-tiddlers-in-tiddlywiki/comment-page-1/#comment-786458

I'm not familiar with the nuts and bolts of TW5, so I'd appreciate some help in adapting the 2009 solution to TW5.
Alternatively, I'll be happy to hear of a newer/better way to do this.

Thanks,

SkyDiver

Jeremy Ruston

unread,
Nov 15, 2014, 4:54:48 AM11/15/14
to TiddlyWiki
Hi SkyDiver

TiddlyWiki5 isn't backwards compatible with TiddlyWiki Classic.

The same effect in TW5 can be achieved by creating a tiddler "$:/mystyles" containing:

.tc-tagged-RTL .tc-title,
.tc-tagged-RTL .tc-subtitle,
.tc-tagged-RTL .tc-tags-wrapper,
.tc-tagged-RTL .tc-tiddler-body {
    direction: rtl;
}

Then any tiddler tagged "RTL" will be displayed as right-to-left text.

Best wishes

Jeremy.




--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Sky Diver

unread,
Nov 17, 2014, 4:21:33 AM11/17/14
to tiddl...@googlegroups.com
Thank you Jeremy,

I tried your suggestion but couldn't get it to work.

To make sure we're on the same page - I attached it here.
It's a clean TW5 v5.1.4 with a $:/mystyles tiddler as you specified and a Test tiddler with a Hebrew phrase.

Please advise.

Thanks,

    SkyDiver

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/IJVOmWAReRw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
TW5.RTL.htm

Tobias Beer

unread,
Nov 17, 2014, 4:42:23 AM11/17/14
to tiddl...@googlegroups.com
Hi Sky Diver,

For TW5 to know that your mystyles tiddler is a stylesheet you need to tag it $:/tags/Stylesheet.
If you also want your mystyles not to wikifiy, give it the content type text/plain.

Best wishes, Tobias.

Sky Diver

unread,
Nov 17, 2014, 5:10:20 AM11/17/14
to tiddl...@googlegroups.com
Awesome Tobias, that did the trick!

I actually saw $:/tags/Stylesheet on a $:/StyleSheet I already have, but I'm more using TW5 than programming it, so I tried adding $:/tags/mystyles to $:/mystyles, which didn't work (obviously).
(*) To be honest, I then tried adding Jeremy's input into the $:/StyleSheet, but now realize that I since I edit with Preview enabled, I didn't see the RTL text in the preview window so I thought it doesn't work.

Thank you (for the "text/plain" comment as well),

    SkyDiver

--

Ton Gerner

unread,
Nov 17, 2014, 5:17:46 AM11/17/14
to tiddl...@googlegroups.com
Hi Tobias,

Although 'Plain text (text/plain)' works, there is a special stylesheet type 'Static stylesheet (text/css)'

Cheers,

Ton

Best wishes, Tobias.

PMario

unread,
Nov 17, 2014, 6:45:33 AM11/17/14
to tiddl...@googlegroups.com

Hi,
It works if you tag your stylesheet tiddler with: $:/tags/Stylesheet ... Don't forget to press the "add" button.
-mario

Sky Diver

unread,
Nov 17, 2014, 7:31:53 AM11/17/14
to tiddl...@googlegroups.com
Throwing an RFE into the air: Tiddler Templates
For example: New Stylesheet Tiddler, which will created a tiddler with $:/MyStyleSheet header, $:/tags/Stylesheet tag and "text/css" as the content type.

I'm not familiar with other special tiddlers so I can't tell if it's worth creating such templates (or maybe even a wizard).
In any case, clicking the '+' button (for example) and getting options like "Blank Tiddler", "Stylesheet Tiddler", etc. may be an interesting concept.
It may also help familiarizing users with effective, yet hidden, features.

Just a suggestion.

Tobias Beer

unread,
Nov 17, 2014, 8:07:02 AM11/17/14
to tiddl...@googlegroups.com
I'm not familiar with other special tiddlers so I can't tell if it's worth creating such templates (or maybe even a wizard).
In any case, clicking the '+' button (for example) and getting options like "Blank Tiddler", "Stylesheet Tiddler", etc. may be an interesting concept.
It may also help familiarizing users with effective, yet hidden, features.

Just a suggestion.
 
Having something like a "create" tab sure sounds like sensible suggestion for the control panel.

Best wishes, Tobias.

Tobias Beer

unread,
Nov 17, 2014, 8:08:16 AM11/17/14
to tiddl...@googlegroups.com
 Having something like a "create" tab sure sounds like sensible suggestion for the control panel.

Well, or something listing all such "user customizations" while providing a create button for each type.

Best wishes, Tobias.

Danielo Rodríguez

unread,
Nov 17, 2014, 8:50:12 AM11/17/14
to tiddl...@googlegroups.com

El lunes, 17 de noviembre de 2014 13:31:53 UTC+1, Sky Diver escribió:
Throwing an RFE into the air: Tiddler Templates
For example: New Stylesheet Tiddler, which will created a tiddler with $:/MyStyleSheet header, $:/tags/Stylesheet tag and "text/css" as the content type.

I'm not familiar with other special tiddlers so I can't tell if it's worth creating such templates (or maybe even a wizard).
In any case, clicking the '+' button (for example) and getting options like "Blank Tiddler", "Stylesheet Tiddler", etc. may be an interesting concept.
It may also help familiarizing users with effective, yet hidden, features.

Just a suggestion.

This is a very cool suggestion. Maybe we can put it into a plugin if it is not included into the core

Sky Diver

unread,
Nov 17, 2014, 11:46:12 AM11/17/14
to tiddl...@googlegroups.com
This is a very cool suggestion. Maybe we can put it into a plugin if it is not included into the core

This will be a good fallback for users who know what plugins are and where to get such a plugin.
However, this will less help those who are not familiar with all that TW has to offer.

To be honest, I thought the default wiki (at http://tiddlywiki.com/) contains just the tiddlers you see in the Contents tab (or not much more than that).
Following the discussion here, I searched StyleSheet there and found a lot of other valuable pieces of information (if I ever saw it in the past - I managed to already forget about it).
So even though I'm a fan and a ~1 year user, not all is visible to the naked eye.

Jeremy Ruston

unread,
Nov 17, 2014, 6:05:23 PM11/17/14
to TiddlyWiki
> Having something like a "create" tab sure sounds like sensible suggestion for the control panel.

Another interesting option that's a bit easier to experiment with is to make a "create-a-tiddler" TiddlyWiki that one visits, chooses from a template, fills in a form, and then drags a link to the resulting tiddler back to ones own wiki (or exports the tiddler as a .tid file). That would avoid having dozens of templates built into the core, and would make it easier to share new "creation templates".

Best wishes

Jeremy.



--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages