Struct hyphenation::extended::Extended[][src]

pub struct Extended {
    pub language: Language,
    pub patterns: Patterns,
    pub exceptions: Exceptions,
    pub minima: (usize, usize),
}

A dictionary for extended Knuth–Liang hyphenation, based on the strategy described by Németh in "Automatic non-standard hyphenation in OpenOffice.org".

It comprises the working language, the set of extended patterns and exceptions, and the character boundaries for hyphenation.

Fields

The minimum number of chars from the start and end of a word where breaks may not occur.

Trait Implementations

impl<'de> Deserialize<'de> for Extended
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Extended
[src]

Serialize this value into the given Serde serializer. Read more

impl Clone for Extended
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Extended
[src]

Formats the value using the given formatter. Read more

impl Eq for Extended
[src]

impl PartialEq<Extended> for Extended
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'h> Hyphenator<'h> for Extended
[src]

Plain representation of a word break.

An owned opportunity used to specify and store the predetermined hyphenation of known words. Read more

Hyphenate a word, computing appropriate word breaks and preparing it for iteration. Read more

Important traits for Vec<u8>

The hyphenation opportunities that arise between the specified indices. Read more

Retrieve the known exact hyphenation for this word, if any.

Specify the hyphenation of the given word with an exact sequence of opportunities. Subsequent calls to hyphenate or opportunities will yield this hyphenation instead of generating one from patterns. Read more

The number of chars from the start and end of a word where breaks may not occur. Read more

Important traits for Vec<u8>

The hyphenation opportunities that our dictionary can find in the given word. The word should be lowercase. Read more

The byte indices delimiting the substring where breaks may occur, unless the word is too short to be hyphenated. Read more

impl Load for Extended
[src]

Deserialize a dictionary from the provided reader, verifying that it effectively belongs to the requested language. Read more

Deserialize a dictionary from the provided reader.

Read and deserialize the dictionary at the given path, verifying that it effectively belongs to the requested language. Read more

impl<'d> Score<'d> for Extended
[src]

A value assigned to each index — which is to say, to each potential break between letters — to determine whether the string can be broken at that index. Read more

Whether the given value denotes a valid break.

Important traits for Vec<u8>

Generate a word's hyphenation score, from which opportunities may be extracted. Read more

Auto Trait Implementations

impl Send for Extended

impl Sync for Extended