unicharDirection

fnpango.types.Direction unicharDirection(dchar ch)

Determines the inherent direction of a character.

The inherent direction is either [pango.types.Direction.Ltr], [pango.types.Direction.Rtl], or [pango.types.Direction.Neutral].

This function is useful to categorize characters into left-to-right letters, right-to-left letters, and everything else. If full Unicode bidirectional type of a character is needed, funcPango.BidiType.for_unichar can be used instead.

Parameters

cha Unicode character

Returns

the direction of the character.