BidiType

Added in version 1.22.

Deprecated since version 1.44: Use fribidi for this information

class BidiType

PangoBidiType represents the bidirectional character type of a Unicode character.

The values in this enumeration are specified by the Unicode bidirectional algorithm.

Methods

class BidiType
for_unichar(ch: str) BidiType

Determines the bidirectional type of a character.

The bidirectional type is specified in the Unicode Character Database.

A simplified version of this function is available as unichar_direction.

Added in version 1.22.

Parameters:

ch – a Unicode character

Fields

class BidiType
AL

Right-to-Left Arabic

AN

Arabic Number

B

Paragraph Separator

BN

Boundary Neutral

CS

Common Number Separator

EN

European Number

ES

European Number Separator

ET

European Number Terminator

FSI

First strong isolate. Since 1.48.6

L

Left-to-Right

LRE

Left-to-Right Embedding

LRI

Left-to-Right isolate. Since 1.48.6

LRO

Left-to-Right Override

NSM

Nonspacing Mark

ON

Other Neutrals

PDF

Pop Directional Format

PDI

Pop directional isolate. Since 1.48.6

R

Right-to-Left

RLE

Right-to-Left Embedding

RLI

Right-to-Left isolate. Since 1.48.6

RLO

Right-to-Left Override

S

Segment Separator

WS

Whitespace