No project description provided
Project description
unicodedata-reader
This package reads and parses the Unicode Character Database files.
Many of them are already in the unicodedata module, or in other 3rd party modules. When the desired data is not in any existing modules, this package can read the original data files at https://www.unicode.org/Public/UNIDATA/.
This package can also generate JavaScript functions that can read the proprety values of the Unicode Character Database in browsers. Please see the JavaScript section below.
Install
pip install unicodedata-reader
If you want to clone and install using poetry:
git clone https://github.com/kojiishi/unicodedata-reader
cd unicodedata-reader
poetry install
poetry shell
Python Usages
import unicodedata_reader
reader = unicodedata_reader.UnicodeDataReader.default
lb = reader.line_break()
print(lb.value(0x41))
The example above prints AL
.
Please also see line_break_test.py for more usages.
JavaScript
The UnicodeDataCompressor
class in this package
can generate JavaScript functions that can read the property values
of the Unicode Character Database in browsers.
Please see LineBreak.js for an example of the generated functions and LineBreak.html for an example usage.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for unicodedata_reader-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d2de67bb99406558d76e5dab56f098f44eb9b367ae7b2529b39e892673a36a |
|
MD5 | 328cb4a325367bd0aef4651e46e94b3c |
|
BLAKE2b-256 | 4959a7add9738c44d51b795ca40c061d4e36d0cf4ca5b0d9f3b16f9784c919f1 |