]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/Right-to-left_support/comment_3_49f82c1d9bfb460c1a468e66c9acf97b._comment
Added a comment
[ikiwiki.git] / doc / forum / Right-to-left_support / comment_3_49f82c1d9bfb460c1a468e66c9acf97b._comment
1 [[!comment format=mdwn
2  username="smcv"
3  ip="81.100.115.242"
4  subject="comment 3"
5  date="2014-10-23T07:57:39Z"
6  content="""
7 > The Arabic pages on your wiki seem to have the Arabic in LTR, instead of the intended RTL
8
9 As I said on the other forum thread, it does look to me as though it is RTL;
10 the display bug is that it's left-justified (text-align: left) because the
11 blueview stylesheet explicitly (and unnecessarily?) left-aligns text.
12
13 You can test RTL/LTR in English by putting a distinctive directionless punctuation
14 character at the beginning and end of a paragraph like this:
15
16     <p dir=\"ltr\">• This renders with a bullet on the left and an ellipsis on the right…</p>
17     <p dir=\"rtl\">• This renders with a bullet on the right and an ellipsis on the left…</p>
18
19 The actual text still goes left-to-right because Latin characters are known
20 to be left-to-right by the Unicode bidi algorithm, but the punctuation moves
21 around, and in ikiwiki themes other than blueview and goldtype, the alignment
22 changes too:
23
24 <p dir=\"ltr\">• This renders with a bullet on the left and an ellipsis on the right…</p>
25 <p dir=\"rtl\">• This renders with a bullet on the right and an ellipsis on the left…</p>
26
27 More test-cases:
28
29 * <http://actiontabs.hosted.pseudorandom.co.uk/rtl/>
30 * <http://blueview.hosted.pseudorandom.co.uk/rtl/>
31 * <http://goldtype.hosted.pseudorandom.co.uk/rtl/>
32 * <http://unthemed.hosted.pseudorandom.co.uk/rtl/>
33 """]]