Skip to main content

No project description provided

Project description

CI PyPI Dependencies

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. 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 the browsers.

Please see u_line_break.js for an example of the generated functions and u_line_break.html for an example usage.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unicodedata-reader-0.1.1.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

unicodedata_reader-0.1.1-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page