Unicode

object Unicode
kotlin.Any
   ↳ androidx.ui.internal.Unicode

Constants for useful Unicode characters.

Currently, these characters are all related to bidirectional text.

See also:

  • <>, which describes the Unicode bidirectional text algorithm.

Summary

Constants

const String

U+061C ARABIC LETTER MARK

const String

U+2068 FIRST STRONG ISOLATE

const String

U+202A LEFT-TO-RIGHT EMBEDDING

const String

U+2066 LEFT-TO-RIGHT ISOLATE

const String

U+200E LEFT-TO-RIGHT MARK

const String

U+202A LEFT-TO-RIGHT OVERRIDE

const String

U+202C POP DIRECTIONAL FORMATTING

const String

U+2069 POP DIRECTIONAL ISOLATE

const String

U+202B RIGHT-TO-LEFT EMBEDDING

const String

U+2067 RIGHT-TO-LEFT ISOLATE

const String

U+200F RIGHT-TO-LEFT MARK

const String

U+202B RIGHT-TO-LEFT OVERRIDE

Constants

ALM

const val ALM: String

U+061C ARABIC LETTER MARK

Right-to-left zero-width Arabic character.

Value: "\u061C"

FSI

const val FSI: String

U+2068 FIRST STRONG ISOLATE

Treat the following text as isolated and in the direction of its first strong directional character that is not inside a nested isolate.

This essentially "autodetects" the directionality of the text. It is not 100% reliable. For example, Arabic text that starts with an English quote will be detected as LTR, not RTL, which will lead to the text being in a weird order.

Use PDI to end the isolated scope.

Value: "\u2068"

LRE

const val LRE: String

U+202A LEFT-TO-RIGHT EMBEDDING

Treat the following text as embedded left-to-right.

Use PDF to end the embedding.

Value: "\u202A"

LRI

const val LRI: String

U+2066 LEFT-TO-RIGHT ISOLATE

Treat the following text as isolated and left-to-right.

Use PDI to end the isolated scope.

Value: "\u2066"

LRM

const val LRM: String

U+200E LEFT-TO-RIGHT MARK

Left-to-right zero-width character.

Value: "\u200E"

LRO

const val LRO: String

U+202A LEFT-TO-RIGHT OVERRIDE

Force following characters to be treated as strong left-to-right characters.

For example, this causes Hebrew text to render backwards.

Use PDF to end the override.

Value: "\u202D"

PDF

const val PDF: String

U+202C POP DIRECTIONAL FORMATTING

End the scope of the last LRE, RLE, RLO, or LRO.

Value: "\u202C"

PDI

const val PDI: String

U+2069 POP DIRECTIONAL ISOLATE

End the scope of the last LRI, RLI, or FSI.

Value: "\u2069"

RLE

const val RLE: String

U+202B RIGHT-TO-LEFT EMBEDDING

Treat the following text as embedded right-to-left.

Use PDF to end the embedding.

Value: "\u202B"

RLI

const val RLI: String

U+2067 RIGHT-TO-LEFT ISOLATE

Treat the following text as isolated and right-to-left.

Use PDI to end the isolated scope.

Value: "\u2067"

RLM

const val RLM: String

U+200F RIGHT-TO-LEFT MARK

Right-to-left zero-width non-Arabic character.

Value: "\u200F"

RLO

const val RLO: String

U+202B RIGHT-TO-LEFT OVERRIDE

Force following characters to be treated as strong right-to-left characters.

For example, this causes English text to render backwards.

Use PDF to end the override.

Value: "\u202E"