unicodedata.decomposition
Prev: unicodedata.decimal | Up: unicodedata | Next: unicodedata.digit
Rel: unicodedata.bidirectional, unicodedata.category, unicodedata.combining, unicodedata.decimal
Ref: docs.python.org — unicodedata.decomposition
Tags: #public #python3 #stdlib #unicodedata
Import
import unicodedata
from unicodedata import decomposition
Signature & Overview
unicodedata.decomposition(chr, /)
Returns the character decomposition mapping assigned to the character chr as string.
Usage
import unicodedata
assert unicodedata.decomposition('é') == '0065 0301'
Gotchas
- Returns
''if the character has no decomposition.
REPL Inspect
from unicodedata import decomposition
help(decomposition)
Linked from
Related notes
- tuts/python3/stdlib_module/unicodedata/bidirectional Linked here; links to this page; shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata/category Linked here; links to this page; shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata/combining Linked here; links to this page; shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata/decimal Linked here; links to this page; shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata/digit Linked here; links to this page; shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/unicodedata/east_asian_width shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata/is_normalized shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata/lookup shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata/mirrored shared tags: #stdlib, #unicodedata