Text Verses Unicode Text

Codecs Open

Given an understanding of the bidi algorithm we can easily understand why this happened. Because the exclamation mark was typed in between the last RTL letter ‘ب’ ‌ and the LTR letter ‘i’ (of the word ‘in’) its directionality is determined by the base direction of the paragraph, ie. Because the exclamation mark is seen as LTR it joins the directional run that includes the text ‘in Arabic’. The solution for this use case is to break the first two items of the list apart by inserting the strong LTR-typed LRM character.

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *