added deck.xlat module
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user