Metadata-Version: 2.4
Name: t9
Version: 0.2.1
Summary: t9
Author-email: Gareth Davidson <gaz@bitplane.net>
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: pre-commit ; extra == "dev"
Requires-Dist: pytest ; extra == "dev"
Requires-Dist: coverage ; extra == "dev"
Requires-Dist: pytest-cov ; extra == "dev"
Requires-Dist: build ; extra == "dev"
Requires-Dist: twine ; extra == "dev"
Requires-Dist: ruff ; extra == "dev"
Requires-Dist: mkdocs ; extra == "dev"
Requires-Dist: mkdocs-material ; extra == "dev"
Requires-Dist: pydoc-markdown ; extra == "dev"
Provides-Extra: dev

# ☎️  T9

This is a T9 implementation that I wrote a long, long time ago for XBMC
so chat programs could chat via the remote like I could on my Nokia
phone.

That time has long passed, but the other day I was annoyed with how
ugly it is to enter text on my Samsung Smart TV. They're still using
an alphabetical keyboard, the remote doesn't have letters on it.

The language files are huge, but it's organised so the number of reads
depends on the number of buttons pressed. It's pretty fast, and uses
virtually no RAM or CPU. This is required for embedded systems, so
enjoy.

The reader consists of 3 classes, a database node (T9Key), a database
client (T9Dict), and an input parser (T9Input). As a user you'll only
need to bother with the latter.

See demo.py for a good example (works best in a shell), keys are 0-9,
UDLR (navigation) and S (select mode). You'll need loads of RAM the first
time you run it, after it's made the DB it'll need hardly any.

## Language files wanted!

* 🇬🇧 EN-GB: Downloaded from the web, derived from gnu aspell (iirc)
* 🇳🇱 NL-DU: Thanks to Breght Boschker for submitting these :)

To make your own dictionary, have a read of maket9.py.
Keep your wordlists though - the file format might change in future.

## ⚖️ license

[WTFPL](https://bitplane.net/dev/python/t9/LICENSE)

## 🔗 Links

* [🏠 home](https://bitplane.net/dev/python/t9)
  * [📖 pydoc](https://bitplane.net/dev/python/t9/pydoc)
* [😺 github](https://github.com/bitplane/t9)
* [🐍 pypi](https://pypi.org/project/t9)

