Trait detone::IterDecomposeVietnamese
source · pub trait IterDecomposeVietnamese<I: Iterator<Item = char>> {
// Required method
fn decompose_vietnamese_tones(
self,
orthographic: bool,
) -> DecomposeVietnamese<I> ⓘ;
}
Expand description
Trait that adds a decompose_vietnamese_tones
method to iterators
over char
.
Required Methods§
sourcefn decompose_vietnamese_tones(
self,
orthographic: bool,
) -> DecomposeVietnamese<I> ⓘ
fn decompose_vietnamese_tones( self, orthographic: bool, ) -> DecomposeVietnamese<I> ⓘ
Assuming that self
is an iterator yielding a sequence of
char
s in Normalization Form C (this precondition is not
checked!), yields a sequence of char
s with Vietnamese tone
marks less or more decomposed. Note that the output is not
in Unicode Normalization Form D or any Normalization Form.
Circumflex and breve are not detached from their base characters.
If orthographic
is false
, tone marks are decomposed if
there is no precomposed form form the incoming character in
windows-1258. E.g. á is not decomposed, but ý is decomposed to
y followed by combining acute and ấ is decomposed to â followed
by combining acute.
If orthographic
is true
, tone marks are always decomposed.
That is, even á is decomposed.