PrefUI // Bind acceptLeadingIntonations().

This commit is contained in:
ShikiSuen 2023-05-05 14:17:10 +08:00
parent de56d83484
commit ad950038fd
6 changed files with 19 additions and 0 deletions

View File

@ -22,6 +22,9 @@ struct VwrPrefPaneBehavior: View {
@Backport.AppStorage(wrappedValue: true, UserDef.kEscToCleanInputBuffer.rawValue)
private var escToCleanInputBuffer: Bool
@Backport.AppStorage(wrappedValue: true, UserDef.kAcceptLeadingIntonations.rawValue)
private var acceptLeadingIntonations: Bool
@Backport.AppStorage(wrappedValue: 0, UserDef.kSpecifyIntonationKeyBehavior.rawValue)
private var specifyIntonationKeyBehavior: Int
@ -173,6 +176,12 @@ struct VwrPrefPaneBehavior: View {
.pickerStyle(RadioGroupPickerStyle())
Text(LocalizedStringKey("Specify the behavior of intonation key when syllable composer is empty."))
.preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth)
Toggle(
LocalizedStringKey("Accept leading intonations in rare cases"),
isOn: $acceptLeadingIntonations
).controlSize(.small)
Text(LocalizedStringKey("This feature accommodates certain typing mistakes that the intonation mark might be typed at first (which is sequentially wrong from a common sense that intonation marks are supposed to be used for confirming combinations). It won't work if the current parser is of (any) pinyin. Also, this feature won't work when an intonation override is possible (and enabled)."))
.preferenceDescription(maxWidth: CtlPrefUIShared.maxDescriptionWidth)
}
SSPreferences.Settings.Section(title: "Shift:", bottomDivider: true) {
Toggle(

View File

@ -191,6 +191,7 @@
"⚠︎ This feature is useful ONLY WHEN the font you are using doesn't support dynamic vertical punctuations. However, typed vertical punctuations will always shown as vertical punctuations EVEN IF your editor has changed the typing direction to horizontal." = "⚠︎ This feature is useful ONLY WHEN the font you are using doesn't support dynamic vertical punctuations. However, typed vertical punctuations will always shown as vertical punctuations EVEN IF your editor has changed the typing direction to horizontal.";
"⚠︎ This may hinder the walking algorithm from giving appropriate results." = "⚠︎ This may hinder the walking algorithm from giving appropriate results.";
"⚠︎ This will reboot the vChewing IME." = "⚠︎ This will reboot the vChewing IME.";
"Accept leading intonations in rare cases" = "Accept leading intonations in rare cases";
"All strokes in the composition buffer will be shown as ASCII keyboard characters unless this option is enabled. Stroke is definable in the “%keyname” section of the CIN file." = "All strokes in the composition buffer will be shown as ASCII keyboard characters unless this option is enabled. Stroke is definable in the “%keyname” section of the CIN file.";
"Allow backspace-editing miscomposed readings" = "Allow backspace-editing miscomposed readings";
"Allow boosting / excluding a candidate of single kanji when marking" = "Allow boosting / excluding a candidate of single kanji when marking";
@ -329,6 +330,7 @@
"The lookup results are supplied by the CIN cassette module." = "The lookup results are supplied by the CIN cassette module.";
"The user override model only possesses memories temporarily. Each memory record gradually becomes ineffective within approximately less than 6 days. You can erase all memory records through the input method menu." = "The user override model only possesses memories temporarily. Each memory record gradually becomes ineffective within approximately less than 6 days. You can erase all memory records through the input method menu.";
"This conversion only affects the cassette module, converting typed contents to either Simplified Chinese or Traditional Chinese in accordance with this setting and your current input mode." = "This conversion only affects the cassette module, converting typed contents to either Simplified Chinese or Traditional Chinese in accordance with this setting and your current input mode.";
"This feature accommodates certain typing mistakes that the intonation mark might be typed at first (which is sequentially wrong from a common sense that intonation marks are supposed to be used for confirming combinations). It won't work if the current parser is of (any) pinyin. Also, this feature won't work when an intonation override is possible (and enabled)." = "This feature accommodates certain typing mistakes that the intonation mark might be typed at first (which is sequentially wrong from a common sense that intonation marks are supposed to be used for confirming combinations). It won't work if the current parser is of (any) pinyin. Also, this feature won't work when an intonation override is possible (and enabled).";
"This feature requires macOS 10.15 and above." = "This feature requires macOS 10.15 and above.";
"This feature requires macOS 12 and above." = "This feature requires macOS 12 and above.";
"This only works with Tadokoro candidate window." = "This only works with Tadokoro candidate window.";

View File

@ -191,6 +191,7 @@
"⚠︎ This feature is useful ONLY WHEN the font you are using doesn't support dynamic vertical punctuations. However, typed vertical punctuations will always shown as vertical punctuations EVEN IF your editor has changed the typing direction to horizontal." = "⚠︎ This feature is useful ONLY WHEN the font you are using doesn't support dynamic vertical punctuations. However, typed vertical punctuations will always shown as vertical punctuations EVEN IF your editor has changed the typing direction to horizontal.";
"⚠︎ This may hinder the walking algorithm from giving appropriate results." = "⚠︎ This may hinder the walking algorithm from giving appropriate results.";
"⚠︎ This will reboot the vChewing IME." = "⚠︎ This will reboot the vChewing IME.";
"Accept leading intonations in rare cases" = "Accept leading intonations in rare cases";
"All strokes in the composition buffer will be shown as ASCII keyboard characters unless this option is enabled. Stroke is definable in the “%keyname” section of the CIN file." = "All strokes in the composition buffer will be shown as ASCII keyboard characters unless this option is enabled. Stroke is definable in the “%keyname” section of the CIN file.";
"Allow backspace-editing miscomposed readings" = "Allow backspace-editing miscomposed readings";
"Allow boosting / excluding a candidate of single kanji when marking" = "Allow boosting / excluding a candidate of single kanji when marking";
@ -329,6 +330,7 @@
"The lookup results are supplied by the CIN cassette module." = "The lookup results are supplied by the CIN cassette module.";
"The user override model only possesses memories temporarily. Each memory record gradually becomes ineffective within approximately less than 6 days. You can erase all memory records through the input method menu." = "The user override model only possesses memories temporarily. Each memory record gradually becomes ineffective within approximately less than 6 days. You can erase all memory records through the input method menu.";
"This conversion only affects the cassette module, converting typed contents to either Simplified Chinese or Traditional Chinese in accordance with this setting and your current input mode." = "This conversion only affects the cassette module, converting typed contents to either Simplified Chinese or Traditional Chinese in accordance with this setting and your current input mode.";
"This feature accommodates certain typing mistakes that the intonation mark might be typed at first (which is sequentially wrong from a common sense that intonation marks are supposed to be used for confirming combinations). It won't work if the current parser is of (any) pinyin. Also, this feature won't work when an intonation override is possible (and enabled)." = "This feature accommodates certain typing mistakes that the intonation mark might be typed at first (which is sequentially wrong from a common sense that intonation marks are supposed to be used for confirming combinations). It won't work if the current parser is of (any) pinyin. Also, this feature won't work when an intonation override is possible (and enabled).";
"This feature requires macOS 10.15 and above." = "This feature requires macOS 10.15 and above.";
"This feature requires macOS 12 and above." = "This feature requires macOS 12 and above.";
"This only works with Tadokoro candidate window." = "This only works with Tadokoro candidate window.";

View File

@ -192,6 +192,7 @@
"⚠︎ This feature is useful ONLY WHEN the font you are using doesn't support dynamic vertical punctuations. However, typed vertical punctuations will always shown as vertical punctuations EVEN IF your editor has changed the typing direction to horizontal." = "⚠︎ 該当の組版用フォントには縦書き(引用符・括弧)変換機能が備えていない限り、この機能を使う甲斐がある。一旦使うと、入力した全ての引用符・括弧は永遠的に縦書きの様式になる。例え入力を受けているアプリ(例えばワープロソフとなど)の書写方向は横書きと変えたとしても、これらの入力済みの引用符・括弧は全て縦書きの見た目であり、削除してから入力し直す必要になる。";
"⚠︎ This may hinder the walking algorithm from giving appropriate results." = "⚠︎ ウォーキング算法に差し支えてしまい、正しくない結果が出る恐れがある。";
"⚠︎ This will reboot the vChewing IME." = "⚠︎ これで威注音入力アプリを再起動。";
"Accept leading intonations in rare cases" = "まれな場合には、音調記号の優先入力を許容する";
"All strokes in the composition buffer will be shown as ASCII keyboard characters unless this option is enabled. Stroke is definable in the “%keyname” section of the CIN file." = "これをチェックしないと、全ての筆画は ASCII キーネームで入力緩衝列で表示してしまうことになる。CIN ファイルの「%keyname」というところで筆画の定義はできる。";
"Allow backspace-editing miscomposed readings" = "効かぬ音読みを BackSpace で再編集";
"Allow boosting / excluding a candidate of single kanji when marking" = "マーキングモードで即排除/即最優先にできる候補の文字数の最低限は1字とする";
@ -330,6 +331,7 @@
"The lookup results are supplied by the CIN cassette module." = "逆引参照の結果は CIN カセットモジュールから提供。";
"The user override model only possesses memories temporarily. Each memory record gradually becomes ineffective within approximately less than 6 days. You can erase all memory records through the input method menu." = "臨時記憶モジュールは文字の通り「臨時的」の記憶をします。記録は六日間どんどん忘れてしまいます。入力アプリのメニューから全ての記録を消すことはできます。";
"This conversion only affects the cassette module, converting typed contents to either Simplified Chinese or Traditional Chinese in accordance with this setting and your current input mode." = "この転換はカセットモードだけに使える転換であり、転換結果はこの設定と入力モード次第である。";
"This feature accommodates certain typing mistakes that the intonation mark might be typed at first (which is sequentially wrong from a common sense that intonation marks are supposed to be used for confirming combinations). It won't work if the current parser is of (any) pinyin. Also, this feature won't work when an intonation override is possible (and enabled)." = "音調記号は常に「漢字の音読組合を確認するキー」として最後で入力することだと常識ですが、間違くてそれを最初に入力してしまった場合もございます。このボカ避け機能は(ほんの一部の)このような間違いを対策できますが、注音入力だけに使えます。更に、(音調の上書き機能がオンを前提として)音調の上書きができる場合には、このボカ避け機能は作動しません。";
"This feature requires macOS 10.15 and above." = "この機能の稼働には macOS 10.15 以降のシステムが必要である。";
"This feature requires macOS 12 and above." = "この機能の稼働には macOS 12 以降のシステムが必要である。";
"This only works with Tadokoro candidate window." = "これは田所候補陳列ウィンドウだけに効ける機能である。";

View File

@ -191,6 +191,7 @@
"⚠︎ This feature is useful ONLY WHEN the font you are using doesn't support dynamic vertical punctuations. However, typed vertical punctuations will always shown as vertical punctuations EVEN IF your editor has changed the typing direction to horizontal." = "⚠︎ 该功能当且仅当目前的排版字型不支援纵排标点动态显示转义的情况下才有用。一旦使用了,所有敲出去的标点都会被永久转换为静态纵排标点:哪怕当前编辑器的排版模式已经改成横排,这些已经输入的标点也都还是纵排标点字符。";
"⚠︎ This may hinder the walking algorithm from giving appropriate results." = "⚠︎ 这可能会妨碍爬轨函式,使其无法给出正确的结果。";
"⚠︎ This will reboot the vChewing IME." = "⚠︎ 这将重启威注音输入法。";
"Accept leading intonations in rare cases" = "在个别情况下,允许声调前置键入";
"All strokes in the composition buffer will be shown as ASCII keyboard characters unless this option is enabled. Stroke is definable in the “%keyname” section of the CIN file." = "不启用该选项的话,在组字区内的字根将会以原始键盘按键名称来显示。所有关于字根的定义,均请洽 CIN 磁带档案内的「%keyname」章节。";
"Allow backspace-editing miscomposed readings" = "允许对无效的读音使用 BackSpace 编辑";
"Allow boosting / excluding a candidate of single kanji when marking" = "允许借由标记模式将可以就地升权/排除的候选字词的最短词长设为单个汉字";
@ -329,6 +330,7 @@
"The lookup results are supplied by the CIN cassette module." = "反查结果取自 CIN 磁带模组。";
"The user override model only possesses memories temporarily. Each memory record gradually becomes ineffective within approximately less than 6 days. You can erase all memory records through the input method menu." = "半衰记忆模组仅持有临时记忆之功能。每一笔记录都会在六天之内逐渐变得彻底失效。您可以借由输入法选单清除全部的记忆记录。";
"This conversion only affects the cassette module, converting typed contents to either Simplified Chinese or Traditional Chinese in accordance with this setting and your current input mode." = "该转换仅对磁带模式有影响,会将键入的内容根据该选项与当前的简繁体模式来转换。";
"This feature accommodates certain typing mistakes that the intonation mark might be typed at first (which is sequentially wrong from a common sense that intonation marks are supposed to be used for confirming combinations). It won't work if the current parser is of (any) pinyin. Also, this feature won't work when an intonation override is possible (and enabled)." = "声调键是专门用来确认注音组合输入的,从常理上来讲只能在最后键入。然而,总是有人会失手将声调键前置键入。该防呆功能专门应对这种情形,但无法用于拼音输入模式,且其优先权比「以声调键覆写游标身后的汉字的声调」更低(除非后者被停用)。";
"This feature requires macOS 10.15 and above." = "该功能要求系统版本至少 macOS 10.15。";
"This feature requires macOS 12 and above." = "该功能要求系统版本至少 macOS 12。";
"This only works with Tadokoro candidate window." = "该选项仅对田所选字窗起作用。";

View File

@ -191,6 +191,7 @@
"⚠︎ This feature is useful ONLY WHEN the font you are using doesn't support dynamic vertical punctuations. However, typed vertical punctuations will always shown as vertical punctuations EVEN IF your editor has changed the typing direction to horizontal." = "⚠︎ 該功能當且僅當目前的排版字型不支援縱排標點動態顯示轉義的情況下才有用。一旦使用了,所有敲出去的標點都會被永久轉換為靜態縱排標點:哪怕當前編輯器的排版模式已經改成橫排,這些已經輸入的標點也都還是縱排標點字符。";
"⚠︎ This may hinder the walking algorithm from giving appropriate results." = "⚠︎ 這可能會妨礙爬軌函式,使其無法給出正確的結果。";
"⚠︎ This will reboot the vChewing IME." = "⚠︎ 這將重啟威注音輸入法。";
"Accept leading intonations in rare cases" = "在個別情況下,允許聲調前置鍵入";
"All strokes in the composition buffer will be shown as ASCII keyboard characters unless this option is enabled. Stroke is definable in the “%keyname” section of the CIN file." = "不啟用該選項的話,在組字區內的字根將會以原始鍵盤按鍵名稱來顯示。所有關於字根的定義,均請洽 CIN 磁帶檔案內的「%keyname」章節。";
"Allow backspace-editing miscomposed readings" = "允許對無效的讀音使用 BackSpace 編輯";
"Allow boosting / excluding a candidate of single kanji when marking" = "允許藉由標記模式將可以就地升權/排除的候選字詞的最短詞長設為單個漢字";
@ -329,6 +330,7 @@
"The lookup results are supplied by the CIN cassette module." = "反查結果取自 CIN 磁帶模組。";
"The user override model only possesses memories temporarily. Each memory record gradually becomes ineffective within approximately less than 6 days. You can erase all memory records through the input method menu." = "半衰記憶模組僅持有臨時記憶之功能。每一筆記錄都會在六天之內逐漸變得徹底失效。您可以藉由輸入法選單清除全部的記憶記錄。";
"This conversion only affects the cassette module, converting typed contents to either Simplified Chinese or Traditional Chinese in accordance with this setting and your current input mode." = "該轉換僅對磁帶模式有影響,會將鍵入的內容根據該選項與當前的簡繁體模式來轉換。";
"This feature accommodates certain typing mistakes that the intonation mark might be typed at first (which is sequentially wrong from a common sense that intonation marks are supposed to be used for confirming combinations). It won't work if the current parser is of (any) pinyin. Also, this feature won't work when an intonation override is possible (and enabled)." = "聲調鍵是專門用來確認注音組合輸入的,從常理上來講只能在最後鍵入。然而,總是有人會失手將聲調鍵前置鍵入。該防呆功能專門應對這種情形,但無法用於拼音輸入模式,且其優先權比「以聲調鍵覆寫游標身後的漢字的聲調」更低(除非後者被停用)。";
"This feature requires macOS 10.15 and above." = "該功能要求系統版本至少 macOS 10.15。";
"This feature requires macOS 12 and above." = "該功能要求系統版本至少 macOS 12。";
"This only works with Tadokoro candidate window." = "該選項僅對田所選字窗起作用。";