2009/2/26 The Editor <[email protected]>:
>
> I changed the last line in the breadcrumb function to this. Seems to
> work great. You have local parameter, or via site.config (ready to use
> at other points in the code):
>
>        if ($args['direction']=='rtl' ||
> strtolower(BOLTconfig('BOLTtextDirection')) == 'rtl') {
>                $out = array_reverse($out);
>                $separator = str_replace('>', '<', $separator);
>                }
>        return implode($separator, $out);
>        }
>
> I didn't use dir because I use that is a common parameter for
> directory...  And used textDirection in site.config just to be more
> clear.
>
> Never have done anything with rtl. Will this also change the direction
> of the individual letters in the words of the breadcrumb? And if so,
> why wouldn't it reverse the whole thing without needing to changing
> the order of the array? Just curious how it works.

I suppose one could also use rtl=1 as breadcrumb argument, as the
switch is only needed for rtl, the default is left to right and no
switch needed.

No, words are not changed in their order, nor are characters in words.
For some things the browser may switch the order, and there is some
special HTML markup to finely control this (like numbers are always
left to right in Persian, Arabic and Hebrew, even though the words are
rtl)

With Firefox one can set a config option so that text typed in text
boxes will be typed right to left. Then with the right language and
font settings you are ready for proper rtl input.

I still do not know how to prevent individual pages from getting the
dir=rtl parameter into the <HTML >tag. Perhaps you can tell me. Like
for all code pages a rtl setting in site.config shall be ignored. Use
conditionals in site.config?

thanks,
~Hans

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to