A unicode and character set explorer.
Project description
charex is a Unicode and character set explorer for understanding issues with character set translation and Unicode normalization.
Why Did I Make This?
I find the ambiguity of text data interesting. In memory its all ones and zeros. There is nothing inherent to the data that makes 0x20 mean a space character, but we’ve mostly agreed that it does. That “mostly” part is what’s interesting to me, and where a lot of fun problems lie.
How Do I Use This?
Right now, the best way to use it is to clone the repository. Then in the root of the repository, run charex as a module.:
python -m charex
That will bring you to the charex shell:
Welcome to the charex shell. Press ? for a list of comands. charex>
From here you can type ? to see the list of available commands:
Welcome to the charex shell. Press ? for a list of comands. charex> ? The following commands are available: * cd: Decode the given address in all codecs. * ce: Encode the given character in all codecs. * cl: List registered character sets. * ct: Count denormalization results. * dm: Build a denormalization map. * dn: Perform denormalizations. * dt: Display details for a code point. * el: List the registered escape schemes. * es: Escape a string using the given scheme. * fl: List registered normalization forms. * help: Display command list. * nl: Perform normalizations. * sh: Run in an interactive shell. For help on individual commands, use "help {command}". charex>
And then type help then a name of one of the commands to learn what it does:
charex> help dn usage: charex dn [-h] [-m MAXDEPTH] [-n NUMBER] [-r] [-s SEED] {nfc,nfd,nfkc,nfkd} base Denormalize a string. positional arguments: {nfc,nfd,nfkc,nfkd} The Unicode normalization form for the denormalization. base The base normalized string. options: -h, --help show this help message and exit -m MAXDEPTH, --maxdepth MAXDEPTH Maximum number of reverse normalizations to use for each character. -n NUMBER, --number NUMBER Maximum number of results to return. -r, --random Randomize the denormalization. -s SEED, --seed SEED Seed the randomized denormalization. charex>
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
Built Distribution
File details
Details for the file charex-0.0.2.tar.gz
.
File metadata
- Download URL: charex-0.0.2.tar.gz
- Upload date:
- Size: 658.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 399d0b59edf37c68d0484187a7c5d769276f76e58891e3f79e85f091aa372bbd |
|
MD5 | 86f9e76540b7594044aeac2a41502085 |
|
BLAKE2b-256 | 407c54b89aaa9a35ec5f3ee2641355cbe2667e2277ec07709822096dde363816 |
File details
Details for the file charex-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: charex-0.0.2-py3-none-any.whl
- Upload date:
- Size: 705.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fced926a09e7b4b61bb2e5994bcf0dbcb442c2129f0061cb39c54f718fec3fc |
|
MD5 | cd534a3e20197e2a58ada12860d387a8 |
|
BLAKE2b-256 | 562e8cd2feb9ce937b0102c0575f3ce7d7609bd0e6bc8a6efff2f328fd551bcb |