-
Notifications
You must be signed in to change notification settings - Fork 0
/
bidi-text.pml
41 lines (26 loc) · 1.06 KB
/
bidi-text.pml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[- PML 2.0.0 | 2021-09-06 -]
[doc [title PML Sample Document: Bidirectional Text ]
[ch [title RTL Headings & Paragraphs]
To ensure proper alignment and wrapping of RTL-only [c \[ch] nodes,
they must be given the attribute [c html_dir=rtl].
Although RTL-only paragraphs are usually properly handled in automatic,
it's preferable to set the [c html_dir=rtl] attribute on [c \[p] nodes too.
Here's an excerpt from the [i One Thousand and One Nights] classic,
Vol.[sp]I, [i
[link url = https://en.wikisource.org/wiki/Tale_of_the_Bull_and_the_Ass
text = "Tale of the Bull and the Ass "
html_title = "English translation by Richard Francis Burton"
]]:
[!ins-file path=chunks/arabic_arabian-nights.pml]
]
[ch [title RTL Lists]
For lists containing only RTL text, the [c \[list] node is given the
attribute [c html_dir=rtl].
[ch [title Arabic List]
[!ins-file path=chunks/list_arabic.pml]
]
[ch [title Hebrew List]
[!ins-file path=chunks/list_hebrew.pml]
]
]
]