Skip to main content

Crate talk

Crate talk 

Source
Expand description

talk: a phonetic encoding. IPA to talk (ascii) to simple (readable) to machine (one 24-bit integer per sound).

Everything is derived from three data files (in base/) and a double-array trie scan.

assert_eq!(talk::ipa_to_talk("tʰa"), "t<h>a");
assert_eq!(talk::talk_to_ipa("t<h>a"), "tʰa");
assert_eq!(talk::readable("t<h>a"), "tʰa");
assert_eq!(
  talk::machine("t<h>a", talk::Notation::Tone, talk::Tier::Mesh).len(),
  2
);

Re-exports§

pub use string::combine::combine;
pub use space::axis::Attachment;
pub use space::axis::MarkGroup;
pub use space::axis::attaches;
pub use space::axis::ipa_axes;
pub use space::codec::Composition;
pub use space::codec::byte_width;
pub use space::codec::decode_unit;
pub use space::codec::encode_unit;
pub use space::codec::machine;
pub use space::codec::machine_bytes;
pub use space::codec::machine_text;
pub use space::codec::pack;
pub use space::codec::size_of;
pub use space::codec::unpack;
pub use space::count::Space;
pub use space::count::bytes_for;
pub use space::count::capacity;
pub use space::count::count_attested;
pub use space::count::count_space;
pub use space::count::unit_for;
pub use space::model::Model;
pub use space::model::ModelAxis;
pub use space::model::ModelBase;
pub use space::model::Notation;
pub use space::model::Tier;
pub use space::model::axes_for;
pub use space::model::model_for;
pub use string::normalize::normalize_ipa;
pub use string::normalize::normalize_ipa_with;
pub use string::normalize::NormalizeIpaOptions;
pub use string::convert::ipa_to_talk;
pub use string::convert::parse_ipa;
pub use string::convert::readable;
pub use string::convert::talk_to_ipa;
pub use string::convert::tokenize;
pub use string::convert::IpaUnit;
pub use string::enumerate::enumerate_sounds;
pub use string::sound::make_sound;
pub use string::sound::segment;
pub use string::types::CODE_LIMIT;
pub use string::types::NO_CODE;
pub use string::types::Attaches;
pub use string::types::Form;
pub use string::types::Kind;
pub use string::types::Modifier;
pub use string::types::Phone;
pub use string::types::Sound;
pub use string::types::SoundInfo;
pub use string::types::SymbolEntry;
pub use string::types::Unit;
pub use syllable::chunk;
pub use syllable::cluster;
pub use syllable::group_clusters_into_syllables;
pub use syllable::group_segments_into_clusters;
pub use syllable::read_segments;
pub use syllable::serialize;
pub use syllable::syllables;
pub use syllable::Chunked;
pub use syllable::Cluster;
pub use syllable::ClusterKey;
pub use syllable::Error;
pub use syllable::Segment;
pub use syllable::SegmentKind;
pub use syllable::Syllable;
pub use syllable::Tone;

Modules§

space
How big the sound space is, and dense integer codes for every tier.
string
syllable
Syllable parsing: split a talk word into syllables, each a sequence of onset, nucleus, and coda clusters.
trie
A double-array trie for static longest-prefix matching.