#[repr(u8)]pub enum SchemeType {
Quanpin = 0,
Shuangpin = 1,
Wubi = 2,
JapaneseRomaji = 3,
Korean = 4,
Cantonese = 5,
Zhuyin = 6,
Vietnamese = 7,
Tibetan = 8,
Stroke = 9,
}Expand description
Input scheme. The ordinal is part of the online identity ("<scheme>:<raw>") and of the host ABI.
Variants§
Quanpin = 0
Shuangpin = 1
Wubi = 2
JapaneseRomaji = 3
Korean = 4
韩语两套式或罗马字布局:音节在预编辑中组合,稳定前缀逐步上屏;Command::ConvertHanja 打开当前音节的汉字候选。
Cantonese = 5
Cantonese in toneless Jyutping read against msime-cantonese.db: candidates are Traditional as stored, a candidate covering the leading syllables commits at once and leaves the rest composing, and nothing is learned.
Zhuyin = 6
Zhuyin (bopomofo) on the Dachen layout read against msime-zhuyin.db: keys compose syllables that convert to Traditional text as typed, a list the user opens pins a span’s text without committing, Enter or any key outside the layout commits the conversion, and nothing is learned.
Vietnamese = 7
Vietnamese through Telex or VNI: the keystrokes compose into one word in the preedit, which any key outside the spelling commits; there are no candidates.
Tibetan = 8
藏文,在拉丁键盘上按 EWTS(扩展威利转写)拼写:威利原文在组字里组成一个音节串,显示为转换出的藏文;空格带音节点上屏,/ 带垂符上屏,回车只上屏藏文;没有候选。
Stroke = 9
Stroke (笔画) read against msime-stroke.db: the keys h s p n z type the five strokes 横竖撇点折 in writing order and x stands for any one stroke; the preedit draws the strokes, candidates are single characters whose stroke code starts with the typed strokes, and nothing is learned.
Implementations§
Source§impl SchemeType
impl SchemeType
pub fn from_u8(value: u8) -> Option<Self>
pub fn is_pinyin(self) -> bool
Sourcepub const fn is_chinese(self) -> bool
pub const fn is_chinese(self) -> bool
A Chinese scheme: what 中文 returns to and what the Chinese statistics count.
Sourcepub const fn outputs_traditional_natively(self) -> bool
pub const fn outputs_traditional_natively(self) -> bool
The scheme’s own text is Traditional Chinese, so no script conversion is wanted.
Sourcepub const fn script_conversion_applies(self) -> bool
pub const fn script_conversion_applies(self) -> bool
The host’s Simplified-to-Traditional conversion applies to the scheme’s commits and preedit.
Sourcepub const fn uses_chinese_punctuation(self) -> bool
pub const fn uses_chinese_punctuation(self) -> bool
The engine translates punctuation through the Chinese table. Korean writes half-width ASCII marks instead; Japanese goes through the table like the Chinese schemes.
Sourcepub const fn host_smart_punctuation(self) -> bool
pub const fn host_smart_punctuation(self) -> bool
The host’s smart punctuation (context-dependent marks) may run.
Sourcepub const fn widens_full_width(self) -> bool
pub const fn widens_full_width(self) -> bool
Commits are widened when the full-width switch is on.
Sourcepub const fn allows_english_emoji_mixing(self) -> bool
pub const fn allows_english_emoji_mixing(self) -> bool
English words and emoji or kaomoji may be mixed into the candidate list.
Sourcepub const fn opens_local_modes(self) -> bool
pub const fn opens_local_modes(self) -> bool
没有组字时,Shift+字母打开按拼音拼写查的本地模式(E、M、J、R)和计算模式 V;K、C、U、T、Y、S 和 /、@ 由 opens_table_modes 判断(InputSession::local_mode_for_entry)。
Sourcepub const fn opens_table_modes(self) -> bool
pub const fn opens_table_modes(self) -> bool
没有组字时,Shift+K 打开短语模式,/ 和 @ 打开指令和提及模式,Shift+C、U、T、Y、S 打开拆字、Unicode、日期时间、临时英文和符号模式;五笔也提供这些不经过方案拼写的入口。
Sourcepub const fn filters_to_single_characters(self) -> bool
pub const fn filters_to_single_characters(self) -> bool
「只出单字」打开时,候选里去掉含汉字的词和整句,只留单个汉字。只用于选一个候选就上屏、剩下的拼写接着组字的方案;注音的候选列表是给组字里的一段改字,笔画本来只出单字。
Sourcepub const fn detects_urls(self) -> bool
pub const fn detects_urls(self) -> bool
组字中键入 www.、http: 等时进入网址模式。
Sourcepub const fn learns_into_main_dictionary(self) -> bool
pub const fn learns_into_main_dictionary(self) -> bool
Selections adjust frequencies and store sentences in the main dictionary and journal.
Sourcepub const fn learns_english_words(self) -> bool
pub const fn learns_english_words(self) -> bool
Letters committed raw that are not a complete spelling are learned as an English word.
Sourcepub const fn cloud_eligible(self) -> bool
pub const fn cloud_eligible(self) -> bool
The engine raises cloud queries for the composition.
Sourcepub const fn shows_glosses(self) -> bool
pub const fn shows_glosses(self) -> bool
Candidates may carry translation glosses. Korean’s are the Hanja rows, glossed and translated like Chinese ones under their 훈음.
Sourcepub const fn commits_on_blur(self) -> bool
pub const fn commits_on_blur(self) -> bool
Focus loss or a scheme switch commits the composition instead of discarding it.
Sourcepub const fn holds_phrase_progress(self) -> bool
pub const fn holds_phrase_progress(self) -> bool
A partial selection is held as phrase progress rather than committed at once.
Sourcepub const fn reranks_with_sentence_model(self) -> bool
pub const fn reranks_with_sentence_model(self) -> bool
The candidate list may be reordered by the sentence model and the personal context.
Sourcepub const fn draws_reading(self) -> bool
pub const fn draws_reading(self) -> bool
The snapshot’s reading carries the composed text (kana, Hangul, the Zhuyin conversion, the Stroke glyphs 一丨丿丶乛) for the host to draw.
Sourcepub const fn has_openable_candidate_list(self) -> bool
pub const fn has_openable_candidate_list(self) -> bool
Candidates appear only in a list the user opens (Command::ConvertHanja: the Korean Hanja list, the Zhuyin list), and the list can be closed again.
Sourcepub const fn cancel_keeps_composition(self) -> bool
pub const fn cancel_keeps_composition(self) -> bool
第一次 Cancel 保留组字:关闭打开的候选列表,或把越南文、藏文的组字切回按键原文。第二次 Cancel 才丢弃它。
Sourcepub const fn selection_completes(self) -> bool
pub const fn selection_completes(self) -> bool
Selecting any of the scheme’s candidates finishes the composition. Native wubi rows also finish, which is decided per row because a mixed wubi list holds pinyin rows too.
Sourcepub const fn follows_pinyin_candidates(self) -> bool
pub const fn follows_pinyin_candidates(self) -> bool
The candidate list reads the composition as pinyin, so selections advance and learn as pinyin.
Sourcepub const fn accepts_apostrophe(self) -> bool
pub const fn accepts_apostrophe(self) -> bool
An apostrophe typed inside the composition is a syllable boundary the scheme keeps.
Sourcepub const fn locks_caret(self) -> bool
pub const fn locks_caret(self) -> bool
The caret stays at the end of the composition.
Sourcepub const fn supports_fuzzy(self) -> bool
pub const fn supports_fuzzy(self) -> bool
Fuzzy pinyin rules apply.
Sourcepub const fn supports_autocorrect(self) -> bool
pub const fn supports_autocorrect(self) -> bool
Typo autocorrection applies and its outcomes are learned.
Trait Implementations§
Source§impl Clone for SchemeType
impl Clone for SchemeType
impl Copy for SchemeType
Source§impl Debug for SchemeType
impl Debug for SchemeType
Source§impl Default for SchemeType
impl Default for SchemeType
impl Eq for SchemeType
Source§impl Hash for SchemeType
impl Hash for SchemeType
Source§impl PartialEq for SchemeType
impl PartialEq for SchemeType
impl StructuralPartialEq for SchemeType
Auto Trait Implementations§
impl Freeze for SchemeType
impl RefUnwindSafe for SchemeType
impl Send for SchemeType
impl Sync for SchemeType
impl Unpin for SchemeType
impl UnsafeUnpin for SchemeType
impl UnwindSafe for SchemeType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.