
|
[dokuwiki]
||
[Date Prev]
[10-2007 Date Index]
[Date Next]
||
[Thread Prev]
[10-2007 Thread Index]
[Thread Next]
[dokuwiki] Re: RTL issue
- From: Sander Tekelenburg <tekelenb@xxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Tue, 16 Oct 2007 16:20:37 +0200
At 12:18 +0200 UTC, on 2007-10-16, Mehdi wrote:
[...]
> if the line contains arabic characters it surrounds
> it by a <div style="direction:rtl">
Just curious: is there a specific reason to rely on CSS for this, instead of
HTML? You can simply add a dir="rtl" attribute, or, if the content is not
already grouped by some element, mark it up as <bdo> ("BiDirectional
Override"), like this: <bdo lang ="ar" dir="rtl">right to left content</bdo>.
See <http://www.w3.org/TR/html4/struct/dirlang.html#edef-BDO>.
You could still add *[dir=rtl] {direction:rtl} to the CSS, if you think there
might be user agents that don't have that as part of their built-in Style
Sheet. It shouldn't be necessary, but it probably won't hurt.
--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
|

|