Crates.io | betacode2 |
lib.rs | betacode2 |
version | 1.0.6 |
source | src |
created_at | 2023-07-02 13:43:38.131792 |
updated_at | 2024-08-24 12:58:29.437239 |
description | A fast rust library for conversion to and from betacode. |
homepage | |
repository | https://github.com/scripturial/betacode |
max_upload_size | |
id | 906036 |
size | 24,952 |
A fast rust library for conversion to and from betacode. Includes support for TLG betacode, and standard betacode.
Convert Robinson-Pierpont style betacode into unicode Greek:
use betacode2::{Betacode, Type::Default};
let word = "Qeo/v".to_greek(Default).unwrap();
Convert TLG style betacode into unicode Greek:
use betacode2::{Betacode, Type::TLG};
let word = "*qeo/s".to_greek(TLG).unwrap();
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.