Expand description
A library to translate text to braille and back
This library is a rust-only implementation of liblouis.
§Status
The API of this library is not stable yet. Breaking changes may occur in any version.
§Usage
use std::path::Path;
use louis::Translator;
use louis::Direction;
let translator = Translator::new(&["en-us-g1.ctb"], Direction::Forward)?;
let braille = translator.translate("hello world")?;
assert_eq!(braille, "⠓⠑⠇⠇⠕⠀⠺⠕⠗⠇⠙");Structs§
- Emphasis
Span - An emphasis class active over a contiguous range of input characters.
- Translation
Modes - Translation
Options - Per-call options for a translation.
- Translation
Result - Translator
Enums§
- Direction
- A direction for a
Rule. - Translation
Error - Translation
Mode - Flags that modify the behaviour of the translator.