[pmwiki-users] RTL text in LTR wiki
john.rankin at affinity.co.nz
Thu Oct 15 00:46:21 CDT 2015
The markup to html needs to produce the following:
<p dir="rtl" lang="ar"> ... </p>
The dir attribute tells the browser to display the text right to left and
the lang attribute says it's Arabic.
If the requirement is for one or two Arabic words in an English sentence,
then pmwiki needs to produce <span dir="rtl" lang="ar"> ... </span>.
The solution will depend on whether you need Arabic paragraphs, words and
phrases, or both.
'<span dir="rtl" lang="'.$1.'">'.$2.'</span>';
should work. You would write (:ar text in Arabic :)
> Is there a command or other means to make right-to-left text display
> correctly on a Europhone language wiki?
> I have a text in Arabic that comes out wrong, although the characters are
> okay. But the words are arranged left-to right.
> One other thing - Arabic words in page titles work, but if there is more
> than one word in the title, the software's default to join the words
> creates unfortuitous combinations due to that alphabet's letter joining
> characteristics (hence, I inserted hyphens).
> TIA for any pointers,
> Don Osborn
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
More information about the pmwiki-users