Expand description
A fast rust library for conversion to and from betacode. Includes support for standard and TLG betacode.
§Examples
Convert Robinson-Pierpont style betacode into unicode Greek:
use betacode2::{Betacode, Type::Default};
let word = "Qeo/v".to_greek(Default).unwrap();
assert_eq!(word, "Θεός");
Convert TLG style betacode into unicode Greek:
use betacode2::{Betacode, Type::TLG};
let word = "*QEO/S".to_greek(TLG).unwrap();
assert_eq!(word, "Θεός");
The default converter assumes lowercase ascii letters are lowercase Greek letters and uppercase ascii letters are uppercase Greek letters. The TLG converter assumes all letters are always lowercase unless an asterix appears before the letter.
Enums§
- Conversion fails when an unexpected character is found.
- Choose which betacode format to convert.
Traits§
Functions§
- Convert a betacode ascii string into a Greek unicode string.