Trait hyphenation::hyphenator::Hyphenation
[−]
[src]
pub trait Hyphenation<Hyphenator> where Hyphenator: Iterator { fn opportunities(self, corp: &Corpus) -> Vec<usize>; fn hyphenate(self, corp: &Corpus) -> Hyphenator; }
Required Methods
fn opportunities(self, corp: &Corpus) -> Vec<usize>
Returns the byte indices of valid hyphenation points within a word.
fn hyphenate(self, corp: &Corpus) -> Hyphenator
Returns an iterator over orthographic syllables separated by valid hyphenation points.
Note that, in some orthographies, the syllables of a hyphenated word are not necessarily substrings of the original word.