unicodedata
The unicodedata module provides access to the Unicode character database, which contains character properties for all Unicode characters.
bidirectional(unichr)
Returns the bidirectional category assigned to unichr as a string, or an empty string if no such value is defined. Returns one of the following:
Value | Description |
---|---|
L | Left-to-Right |
LRE | Left-to-Right Embedding |
LRO | Left-to-Right Override |
R | Right-to-Left |
AL | Right-to-Left Arabic |
RLE | Right-to-Left Embedding |
RLO | Right-to-Left Override |
Pop Directional Format | |
EN | European Number |
ES | European Number Separator |
ET | European Number Terminator |
AN | Arabic Number |
CS | Common Number Separator |
NSM | Non-Spacing Mark |
BN | Boundary Neutral |
B | Paragraph Separator |
S | Segment Separator |
WS | Whitespace |
ON | Other Neutrals |
category(unichr)
Returns a ...
Get Python: Essential Reference, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.