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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72531a054ddf8cb7e2bdb99e2376eceb44899dd404755f807283b1a0a2b9271a |
|
MD5 | 7fc77529d64bdc78e2112fbb072f0285 |
|
BLAKE2b-256 | fbf0300d40825a217afd920c1f075116f051899f6f15dec6d0edbd3c837ced86 |