albhed

Crates.ioalbhed
lib.rsalbhed
version0.1.0
sourcesrc
created_at2020-08-23 20:03:13.096017
updated_at2020-08-23 20:03:13.096017
descriptionA translator for the Al Bhed language.
homepagehttps://github.com/fosskers/albhed
repositoryhttps://github.com/fosskers/albhed
max_upload_size
id279921
size6,310
Colin Woodbury (fosskers)

documentation

README

albhed

A translator for the Al Bhed language.

Al Bhed is the language spoken by the Al Bhed people in the land of Spira, the main setting of the game Final Fantasy X.

This library doesn't attempt to detect English loanwords that are present in Al Bhed at the time of the game, as in airship/fiend/etc.

Usage

Converting Al Bhed into English:

let al_bhed = "Oui yvnyet uv dra cay?";
let english = al_bhed.chars().filter_map(albhed::from_al_bhed).collect::<String>();
assert_eq!("You afraid of the sea?", english);

Converting English into Al Bhed:

let english = "Beware of Sandstorms!";
let al_bhed = english.chars().filter_map(albhed::to_al_bhed).collect::<String>();
assert_eq!("Pafyna uv Cyhtcdunsc!", al_bhed);

License: MIT

Commit count: 6

cargo fmt