Skip to main content

Unicode support libraries

Project description

jkUnicode

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

The orthography functions can be used via the command line script ortho. The Unicode info for one or more codepoints can be shown via the command uniinfo.

For using the module from inside Python, see the docs.

uniinfo

uniinfo – Show information about Unicode codepoints.

Usage

uniinfo [-h] codepoint [codepoint ...]

Codepoints can be given in decimal (e.g. 7838), hexadecimal (e.g. 0x1e9e), or Unicode (U+1E9E) notation.

ortho

ortho – Query fonts about orthographic support.

Usage

ortho [-h] [-f] [-i] [-k] [-m] [-p] [-n NEAR_MISS] font [font ...]

Options

-f

-f | --full-only

When called without any options, ortho will determine the orthographic support of the supplied font(s) by looking at the required characters for each orthography. The -f option only lists orthographies for which all required and optional characters are present in the font.

Example

$ ortho ComicJens.ttf 
The font supports 104 orthographies:
Afrikaans
Albanian
Asu
Azeri
Basque
Bemba
Bena
Bosnian
Catalan
[...]
Zulu

$ ortho -f ComicJens.ttf
The font supports 98 orthographies:
Afrikaans
Albanian
Asu
Azeri
Basque
Bemba
Bena
Bosnian
Catalan
[...]
Zulu

-i

-i | --minimum-inclusive

Prints a list of orthographies for which at least all characters from the basic category are present in the font.

Example

$ ortho -i ComicJens-Italic.ttf
The font has minimal or better support for 123 orthographies:
Afrikaans
Albanian
Asu
Azeri
[...]
Zulu

-k

k | --kill-list

Output a list of letters that don't appear together in any supported orthography.

-m

m | --minimum

Report orthographies that have only basic support, i.e. no optional characters and no punctuation present.

-p

-p | --punctuation

Prints a list of orthographies for which all letter category characters are present in the font, but have missing punctuation category characters. For the missing characters, Unicode, glyph name, and Unicode name are reported.

Example

$ ortho -p ComicJens.ttf
Orthographies which can be supported by adding punctuation characters:

Scottish Gaelic
    0x204A	uni204A	Tironian Sign Et

-n

-n NEAR_MISS | --near-miss NEAR_MISS

Prints a list of orthographies which are lacking up to a number of NEAR_MISS characters to be supported. For the missing characters, Unicode, glyph name, and Unicode name are reported.

Example

$ ortho -n 1 ComicJens.ttf
Orthographies which can be supported with max. 1 additional character:

Breton
    0x02BC	uni02BC	Modifier Letter Apostrophe

Hawaiian
    0x02BB	uni02BB	Modifier Letter Turned Comma

Quechua
    0x02BC	uni02BC	Modifier Letter Apostrophe

Tongan
    0x02BB	uni02BB	Modifier Letter Turned Comma

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.12.tar.gz (500.3 kB view details)

Uploaded Source

Built Distribution

jkUnicode-1.8.12-py2.py3-none-any.whl (516.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: jkUnicode-1.8.12.tar.gz
  • Upload date:
  • Size: 500.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for jkUnicode-1.8.12.tar.gz
Algorithm Hash digest
SHA256 76e986f70bf4c09c663579035c10f9ca0261fac6bd94b9df35a1f7c8f393b08c
MD5 8253828ace624eac2d9a061748919c05
BLAKE2b-256 03e7fe3da282508078c273e43a475ba4f68e5169937752b7bcc838c604da4310

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jkUnicode-1.8.12-py2.py3-none-any.whl
  • Upload date:
  • Size: 516.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for jkUnicode-1.8.12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 27a3d36d52e27d97ab9329a4120ca96f40abbda18c28ad4dd14659a1c30a07ec
MD5 98010f2f50a7f07a947b070e702b127e
BLAKE2b-256 8a3590b7ab01edf25c1e5b33f1f077f985d068905a6c6637430cc99583fa64b1

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