Skip to main content

Unicode support libraries

Project description

jkUnicode

A Python module for Unicode, glyph name, and orthography information.

Command line usage

The orthography functions can be used via the command line script ortho. For details, see USAGE.md.

Updating the base data

The module takes its information from the official data of the Unicode standard, the Unicode CLDR (Common Local Data Repository), and Adobe’s AGLFN standard. When updating these data, they must be converted to a format that is useable with this module. Scripts are included in the source code to aid this conversion. They can be found in lib/jkUnicode/data and lib/jkUnicode/data-scripts.

Unicode and AGLFN data

  • data/updateUniData.sh – Download the current Unicode and AGLFN data.
  • data-scripts/generatePyUniData.py – Update the Python module based on the downloaded data.

Orthography data

  • data/updateLangData.sh – Download of the Unicode CLDR data.
  • data-scripts/generateJsonLangData.py – Convert the CLDR data to the JSON format.
  • data-scripts/generatePyLangData.py – Update the Python module based on the JSON data.

The scripts should be executed in the given order. After running generateJsonLangData.py, you can edit the orthography definitions by copying any desired JSON file from the folder jkUnicode/json/languages to jkUnicode/json/overrides and editing it. Any files in this folder will override the original files in the next step (generatePyLangData.py).

If you want to add a new language definition that doesn’t override an existing one, you must add it to the overrides folder, and also add its code and name to languages_additional.json.

Any languages without orthography information will be listed in ignored.json. This file is informational only and is not used by jkUnicode.

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

jkUnicode-1.8.2.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

jkUnicode-1.8.2-py2.py3-none-any.whl (517.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file jkUnicode-1.8.2.tar.gz.

File metadata

  • Download URL: jkUnicode-1.8.2.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for jkUnicode-1.8.2.tar.gz
Algorithm Hash digest
SHA256 f09ac78d8afb09729e512d7cf29e9f5751018e582f47742089412aefa1c136a4
MD5 1181baecff2fa88045fa0b9956ba029b
BLAKE2b-256 9606ed8f16186e17ddb317a0def7314d1d572ca395c65033ef23ea677d1ea41a

See more details on using hashes here.

File details

Details for the file jkUnicode-1.8.2-py2.py3-none-any.whl.

File metadata

  • Download URL: jkUnicode-1.8.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 517.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for jkUnicode-1.8.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3a099b470a39ec00c19ae61fadd9cf6a25010914aac1c310ca526341b5a9102f
MD5 6e5c8f5353453c4e9a7e12bd475cf0f1
BLAKE2b-256 189d87821a1e0fdcea8203f110d047f4b1b34b113cf027274b123caf147a7af5

See more details on using hashes here.

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