Skip to main content

Crate louis

Crate louis 

Source
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§

EmphasisSpan
An emphasis class active over a contiguous range of input characters.
TranslationModes
TranslationOptions
Per-call options for a translation.
TranslationResult
Translator

Enums§

Direction
A direction for a Rule.
TranslationError
TranslationMode
Flags that modify the behaviour of the translator.