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 1 = RTLexplicit

Source

Memory Position 0 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
Character ‎מ‎ ‎ד‎ ‎ו‎ ‎ר‎ ‎פ‎ ‎נ‎ ‎י‎ ‎ו‎ ‎ת‎ ‎ה‎ ‎צ‎ ‎י‎ ‎ב‎ ‎ו‎ ‎ר‎ : C + + ‎א‎ ‎ו‎ C + + ?
Bidi Class R R R R WS R R R R R WS R R R R R R CS WS L ES ES L WS R R WS L ES ES ON
Rules Applied N1R
N1R
W6ON
N2R
N2R
W6ON
N1L
W6ON
N1L
N2R
N2R
W6ON
N2R
W6ON
N2R
N2R
Resulting Level
L1

L1

L1

L1

L1

L1

L1

L1

L1

L1

L1

L1

L1

L1

L1

L1

L1

L1

L1


L2


L2


L2


L2

L1

L1

L1

L1


L2

L1

L1

L1

Reordered

Display Position 0 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
Memory Position 30 29 28 27 26 25 24 23 19 20 21 22 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Character ? + + C ‎ו‎ ‎א‎ C + + : ‎ר‎ ‎ו‎ ‎ב‎ ‎י‎ ‎צ‎ ‎ה‎ ‎ת‎ ‎ו‎ ‎י‎ ‎נ‎ ‎פ‎ ‎ר‎ ‎ו‎ ‎ד‎ ‎מ‎

Fonts and Display. If you don't have a good set of Unicode fonts (and modern browser), you may not be able to read some of the characters. Some suggested fonts that you can add for coverage are: Noto Fonts site, Unicode Fonts for Ancient Scripts, Large, multi-script Unicode fonts. See also: Unicode Display Problems.

Version 3.9; ICU version: 70.0; Unicode/Emoji version: 14.0;