added deck.xlat module

This commit is contained in:
Luxferre
2025-12-25 12:46:49 +02:00
parent b8c7b3cb5f
commit b7f05d81b2
2 changed files with 81 additions and 0 deletions
+9
View File
@@ -71,6 +71,15 @@ Every chat instance exposes the following methods:
The handler accepts two parameters: a message and a state object, and returns the response and the new state object. If the returned state object is `None`, then the chat loop exits. Non-command handler (i.e. what should be done on any user input that doesn't start with a registered command) is registered under the `default` command.
### `deck.xlat`
Character translation helper library. For now, only supports base Cyrillic character set.
Exports the following functions:
- `enc(s, mapname='CYR')`: encode from the selected character set into Latin
- `dec(s, mapname='CYR')`: decode from Latin into the selected character set
### `deck.fs`
FS helper librаry.