pub struct TranslationOptions {
pub repair_suffix_separators: bool,
pub restore_menk_shape_emoji: bool,
}Expand description
Optional processing before conversion. Default settings preserve the input behavior of
translate.
Fields§
§repair_suffix_separators: boolReplace single spaces/NBSP before a small allowlist of detached suffixes with NNBSP.
Supported for MenkLetter and Delehi sources, including same-encoding conversions.
This is a heuristic: it neither analyses grammar nor splits concatenated words. Each
replacement is reported as Warning::RepairedSuffixSeparator.
restore_menk_shape_emoji: boolRestore legacy SoftBank/iOS emoji back to MenkShape PUA before decoding MenkShape input. This is enabled by default because chat apps can rewrite MenkShape PUA into modern emoji.
Trait Implementations§
Source§impl Clone for TranslationOptions
impl Clone for TranslationOptions
impl Copy for TranslationOptions
Source§impl Debug for TranslationOptions
impl Debug for TranslationOptions
Source§impl Default for TranslationOptions
impl Default for TranslationOptions
impl Eq for TranslationOptions
Source§impl PartialEq for TranslationOptions
impl PartialEq for TranslationOptions
impl StructuralPartialEq for TranslationOptions
Auto Trait Implementations§
impl Freeze for TranslationOptions
impl RefUnwindSafe for TranslationOptions
impl Send for TranslationOptions
impl Sync for TranslationOptions
impl Unpin for TranslationOptions
impl UnsafeUnpin for TranslationOptions
impl UnwindSafe for TranslationOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more