Unicode Utilities: BIDI (UBA)

help | character | properties | confusables | unicode-set | compare-sets | regex | bnf-regex | breaks | transform | bidi | bidi-c | idna | languageid

Shows processing by the UBA (Unicode Bidi Algorithm), which is used to display all Unicode Arabic and Hebrew text. For more information, see bidi info.

This Java implementation supports UBA rules and character properties as of Unicode 6.2. To test current UBA rules, or intermediate versions from Unicode 6.3 forward, see the C Reference demo.

Sample      

Paragraph 1

Base Level 0 = LTRheuristic

Source

Memory Position 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Character m a r k 3 . 1 % ‎م‎ ‎ا‎ ‎ر‎ ْ ‎ك‎ 2 . 0 .
Bidi Class L L L L WS EN CS EN ET WS AL AL AL NSM AL WS EN CS EN CS
Rules Applied N1→L
W7→L
W4→EN
W7→L
W7→L
W5→EN
W7→L
N2→L
W3→R
W3→R
W3→R
W1→AL
W3→R
W3→R
N1→R
W2→AN
W4→AN
W2→AN
W6→ON
N2→L
Resulting Level L0 L0 L0 L0 L0 L0 L0 L0 L0 L0
L1

L1

L1

L1

L1

L1


L2


L2


L2
L0

Reordered

Display Position 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Memory Position 0 1 2 3 4 5 6 7 8 9 16 17 18 15 14 13 12 11 10 19
Character m a r k 3 . 1 % 2 . 0 ‎ك‎ ْ ‎ر‎ ‎ا‎ ‎م‎ .