unicodechars

Define characters of the unicode character set by name.

Note

The future of this module is currently unclear. It duplicates much of what is in unicodedata from the Python standard library. It is a huge effort to make and maintain seeing how large ever-growing Unicode already is.

It may either get spun out into a separate package or made an invisible internal part of pymisclib.

You have been warned.

pymisclib.unicodechars.UNICODE_CHARS: dict[str, str]

A dictionary containing the name of the unicode character as the key and the character itself as a string.

Deprecated since version 1.5.0: use unicodedata from the Python standard library instead.

pymisclib.unicodechars.UC: argparse.Namespace

A namespace containing namespaces mapped to Unicode blocks. The Unicode blocks contain Unicode symbols by name, the value is the symbol itself.

The following blocks are currently defined:

  • arrows

  • block_elements

  • box_drawings

    • double

    • light

    • heavy

  • c0_controls

  • general_punctuation