PyDocs

Text Processing Services

unicodedata

This module provides access to the Unicode Character Database which
defines character properties for all Unicode characters. The data in
this database is based on the UnicodeData.txt file version
17.0.0 which is publicly available from ftp://ftp.unicode.org/.

The module uses the same names and symbols as defined by the
UnicodeData File Format 17.0.0.
Symbols in unicodedata

b

bidirectional
Returns the bidirectional class assigned to the character chr as string.
block
Return block assigned to the character chr.

c

category
Returns the general category assigned to the character chr as string.
combining
Returns the canonical combining class assigned to the character chr as integer.

d

decimal
Converts a Unicode character into its equivalent decimal value.
decomposition
Returns the character decomposition mapping assigned to the character chr as string.
digit
Converts a Unicode character into its equivalent digit value.

e

east_asian_width
Returns the east asian width assigned to the character chr as string.
extended_pictographic
Returns the Extended_Pictographic property assigned to the character, as boolean.

g

grapheme_cluster_break
Returns the Grapheme_Cluster_Break property assigned to the character.

i

indic_conjunct_break
Returns the Indic_Conjunct_Break property assigned to the character.
is_normalized
Return whether the Unicode string unistr is in the normal form 'form'.
isxidcontinue
Return True if the character has the XID_Continue property, else False.
isxidstart
Return True if the character has the XID_Start property, else False.
iter_graphemes
Returns an iterator to iterate over grapheme clusters.

l

lookup
Look up character by name.

m

mirrored
Returns the mirrored property assigned to the character chr as integer.

n

name
Returns the name assigned to the character chr as a string.
normalize
Return the normal form 'form' for the Unicode string unistr.
numeric
Converts a Unicode character into its equivalent numeric value.

u

ucd_3_2_0
This is an object that has most of the methods of the entire module, but uses the Unicode database version 3.2 instead, for applications that require this specific version of the Unicode database (su…
unidata_version
The version of the Unicode database used in this module.