diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift index cc94a5a6..5c5570f0 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneCandidates.swift @@ -17,6 +17,8 @@ struct VwrPrefPaneCandidates: View { forKey: UserDef.kCandidateListTextSize.rawValue) @State private var selEnableHorizontalCandidateLayout = UserDefaults.standard.bool( forKey: UserDef.kUseHorizontalCandidateList.rawValue) + @State private var selCandidateWindowShowOnlyOneLine = UserDefaults.standard.bool( + forKey: UserDef.kCandidateWindowShowOnlyOneLine.rawValue) @State private var selShowReverseLookupInCandidateUI = UserDefaults.standard.bool( forKey: UserDef.kShowReverseLookupInCandidateUI.rawValue) @State private var selCursorPosition = @@ -63,6 +65,21 @@ struct VwrPrefPaneCandidates: View { .pickerStyle(RadioGroupPickerStyle()) Text(LocalizedStringKey("Choose your preferred layout of the candidate window.")) .preferenceDescription().prefDescriptionWidthLimited() + Toggle( + LocalizedStringKey("Use only one row / column in candidate window."), + isOn: $selCandidateWindowShowOnlyOneLine.onChange { + PrefMgr.shared.candidateWindowShowOnlyOneLine = + selCandidateWindowShowOnlyOneLine + } + ) + .controlSize(.small) + .disabled(PrefMgr.shared.useIMKCandidateWindow) + Text( + "This only works with Tadokoro candidate window.".localized + + CtlPrefUI.sentenceSeparator + + "Tadokoro candidate window shows 4 rows / columns by default, providing similar experiences from Microsoft New Phonetic IME and macOS bult-in Chinese IME (since macOS 10.9). However, for some users who have presbyopia, they prefer giant candidate font sizes, resulting a concern that multiple rows / columns of candidates can make the candidate window looks too big, hence this option. Note that this option will be dismissed if the typing context is vertical, forcing the candidates to be shown in only one row / column. Only one reverse-lookup result can be made available in single row / column mode due to reduced candidate window size.".localized + ) + .preferenceDescription().prefDescriptionWidthLimited() } SSPreferences.Section(title: "Candidate Size:".localized, bottomDivider: true) { Picker( @@ -258,9 +275,9 @@ private struct VwrPrefPaneCandidates_SelectionKeys: View { .preferenceDescription().prefDescriptionWidthLimited() } else { Text( - LocalizedStringKey( - "Choose or hit Enter to confim your prefered keys for selecting candidates." - ) + "Choose or hit Enter to confim your prefered keys for selecting candidates.".localized + + "\n" + + "This will also affect the row / column capacity of the candidate window.".localized ) .preferenceDescription().prefDescriptionWidthLimited() } diff --git a/Source/Resources/Base.lproj/Localizable.strings b/Source/Resources/Base.lproj/Localizable.strings index c1d47356..6e997dc4 100644 --- a/Source/Resources/Base.lproj/Localizable.strings +++ b/Source/Resources/Base.lproj/Localizable.strings @@ -313,11 +313,13 @@ "Specify the behavior of intonation key when syllable composer is empty." = "Specify the behavior of intonation key when syllable composer is empty."; "Starlight" = "Starlight"; "Stop farting (when typed phonetic combination is invalid, etc.)" = "Stop farting (when typed phonetic combination is invalid, etc.)"; +"Tadokoro candidate window shows 4 rows / columns by default, providing similar experiences from Microsoft New Phonetic IME and macOS bult-in Chinese IME (since macOS 10.9). However, for some users who have presbyopia, they prefer giant candidate font sizes, resulting a concern that multiple rows / columns of candidates can make the candidate window looks too big, hence this option. Note that this option will be dismissed if the typing context is vertical, forcing the candidates to be shown in only one row / column. Only one reverse-lookup result can be made available in single row / column mode due to reduced candidate window size." = "Tadokoro candidate window shows 4 rows / columns by default, providing similar experiences from Microsoft New Phonetic IME and macOS bult-in Chinese IME (since macOS 10.9). However, for some users who have presbyopia, they prefer giant candidate font sizes, resulting a concern that multiple rows / columns of candidates can make the candidate window looks too big, hence this option. Note that this option will be dismissed if the typing context is vertical, forcing the candidates to be shown in only one row / column. Only one reverse-lookup result can be made available in single row / column mode due to reduced candidate window size."; "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. It won't memorize those unigrams consisting of only one Chinese character, except “你/他/妳/她/祢/衪/它/牠/再/在”. 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. It won't memorize those unigrams consisting of only one Chinese character, except “你/他/妳/她/祢/衪/它/牠/再/在”. 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 requires macOS 10.15 and above." = "This feature requires macOS 10.15 and above."; "This only works with Tadokoro candidate window." = "This only works with Tadokoro candidate window."; +"This will also affect the row / column capacity of the candidate window." = "This will also affect the row / column capacity of the candidate window."; "This will batch-replace specified candidates." = "This will batch-replace specified candidates."; "This will stop user override model from affecting how candidates get sorted." = "This will stop user override model from affecting how candidates get sorted."; "This will use the plist files deployed by the “make install” command from libvChewing-Data if possible." = "This will use the plist files deployed by the “make install” command from libvChewing-Data if possible."; @@ -332,6 +334,7 @@ "Use .langIdentifier to handle UI fonts in candidate window" = "Use .langIdentifier to handle UI fonts in candidate window"; "Use ESC key to clear the entire input buffer" = "Use ESC key to clear the entire input buffer"; "Use IMK Candidate Window instead of Tadokoro" = "Use IMK Candidate Window instead of Tadokoro"; +"Use only one row / column in candidate window." = "Use only one row / column in candidate window."; "Vertical" = "Vertical"; "Warning: This page is for testing future features. \nFeatures listed here may not work as expected." = "Warning: This page is for testing future features. \nFeatures listed here may not work as expected."; "Yale Pinyin with Numeral Intonation" = "Yale Pinyin with Numeral Intonation"; diff --git a/Source/Resources/en.lproj/Localizable.strings b/Source/Resources/en.lproj/Localizable.strings index c1d47356..6e997dc4 100644 --- a/Source/Resources/en.lproj/Localizable.strings +++ b/Source/Resources/en.lproj/Localizable.strings @@ -313,11 +313,13 @@ "Specify the behavior of intonation key when syllable composer is empty." = "Specify the behavior of intonation key when syllable composer is empty."; "Starlight" = "Starlight"; "Stop farting (when typed phonetic combination is invalid, etc.)" = "Stop farting (when typed phonetic combination is invalid, etc.)"; +"Tadokoro candidate window shows 4 rows / columns by default, providing similar experiences from Microsoft New Phonetic IME and macOS bult-in Chinese IME (since macOS 10.9). However, for some users who have presbyopia, they prefer giant candidate font sizes, resulting a concern that multiple rows / columns of candidates can make the candidate window looks too big, hence this option. Note that this option will be dismissed if the typing context is vertical, forcing the candidates to be shown in only one row / column. Only one reverse-lookup result can be made available in single row / column mode due to reduced candidate window size." = "Tadokoro candidate window shows 4 rows / columns by default, providing similar experiences from Microsoft New Phonetic IME and macOS bult-in Chinese IME (since macOS 10.9). However, for some users who have presbyopia, they prefer giant candidate font sizes, resulting a concern that multiple rows / columns of candidates can make the candidate window looks too big, hence this option. Note that this option will be dismissed if the typing context is vertical, forcing the candidates to be shown in only one row / column. Only one reverse-lookup result can be made available in single row / column mode due to reduced candidate window size."; "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. It won't memorize those unigrams consisting of only one Chinese character, except “你/他/妳/她/祢/衪/它/牠/再/在”. 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. It won't memorize those unigrams consisting of only one Chinese character, except “你/他/妳/她/祢/衪/它/牠/再/在”. 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 requires macOS 10.15 and above." = "This feature requires macOS 10.15 and above."; "This only works with Tadokoro candidate window." = "This only works with Tadokoro candidate window."; +"This will also affect the row / column capacity of the candidate window." = "This will also affect the row / column capacity of the candidate window."; "This will batch-replace specified candidates." = "This will batch-replace specified candidates."; "This will stop user override model from affecting how candidates get sorted." = "This will stop user override model from affecting how candidates get sorted."; "This will use the plist files deployed by the “make install” command from libvChewing-Data if possible." = "This will use the plist files deployed by the “make install” command from libvChewing-Data if possible."; @@ -332,6 +334,7 @@ "Use .langIdentifier to handle UI fonts in candidate window" = "Use .langIdentifier to handle UI fonts in candidate window"; "Use ESC key to clear the entire input buffer" = "Use ESC key to clear the entire input buffer"; "Use IMK Candidate Window instead of Tadokoro" = "Use IMK Candidate Window instead of Tadokoro"; +"Use only one row / column in candidate window." = "Use only one row / column in candidate window."; "Vertical" = "Vertical"; "Warning: This page is for testing future features. \nFeatures listed here may not work as expected." = "Warning: This page is for testing future features. \nFeatures listed here may not work as expected."; "Yale Pinyin with Numeral Intonation" = "Yale Pinyin with Numeral Intonation"; diff --git a/Source/Resources/ja.lproj/Localizable.strings b/Source/Resources/ja.lproj/Localizable.strings index 058c8455..243114b6 100644 --- a/Source/Resources/ja.lproj/Localizable.strings +++ b/Source/Resources/ja.lproj/Localizable.strings @@ -314,11 +314,13 @@ "Specify the behavior of intonation key when syllable composer is empty." = "音読組立緩衝列が空かされた時の音調キーの行為をご指定ください。"; "Starlight" = "星光配列"; "Stop farting (when typed phonetic combination is invalid, etc.)" = "マナーモード // 外すと入力間違った時に変な声が出る"; +"Tadokoro candidate window shows 4 rows / columns by default, providing similar experiences from Microsoft New Phonetic IME and macOS bult-in Chinese IME (since macOS 10.9). However, for some users who have presbyopia, they prefer giant candidate font sizes, resulting a concern that multiple rows / columns of candidates can make the candidate window looks too big, hence this option. Note that this option will be dismissed if the typing context is vertical, forcing the candidates to be shown in only one row / column. Only one reverse-lookup result can be made available in single row / column mode due to reduced candidate window size." = "田所候補陳列ウィンドウは普段4つの行・列で文字候補を陳列しています。ただ、老眼の患者には、大きなる文字候補サイズが必要であり、複数の行・列の文字候補ウィンドウのサイズも大きくなります。この場合、文字候補を1つ行・列だけにすれば、候補陳列ウィンドウのサイズを多少縮むことはできます。従って、このオプションを提供しました。ただ、注意点は2つ:1)縦書きの時には、このオプションは無視され、文字候補はずっと1つ行・列にされます;2)1つ行・列だけで文字候補を陳列する場合、候補陳列ウィンドウのサイズは不足で、表示できる逆引参照の結果は1つだけです。"; "The lookup results are supplied by the CIN cassette module." = "逆引参照の結果は CIN カセットモジュールから提供。"; "The user override model only possesses memories temporarily. It won't memorize those unigrams consisting of only one Chinese character, except “你/他/妳/她/祢/衪/它/牠/再/在”. Each memory record gradually becomes ineffective within approximately less than 6 days. You can erase all memory records through the input method menu." = "臨時記憶モジュールは文字の通り「臨時的」の記憶をし、そして「你/他/妳/她/祢/衪/它/牠/再/在」以外の「1漢字のユニグラム」を記憶しません。記録は六日間どんどん忘れてしまいます。入力アプリのメニューから全ての記録を消すことはできます。"; "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 requires macOS 10.15 and above." = "この機能の稼働には macOS 10.15 以降のシステムが必要である。"; "This only works with Tadokoro candidate window." = "これは田所候補陳列ウィンドウだけに効ける機能である。"; +"This will also affect the row / column capacity of the candidate window." = "言選り用キーの数は、候補陳列の行・列の容量制限にも影響。"; "This will batch-replace specified candidates." = "指定された候補そのものを置き換える"; "This will stop user override model from affecting how candidates get sorted." = "これで臨時記憶モジュールは候補陳列の順番に影響を与えなくなる。"; "This will use the plist files deployed by the “make install” command from libvChewing-Data if possible." = "これで libvChewing-Data の make install にて設置した公式辞書ファイルを優先的に用いる。"; @@ -333,6 +335,7 @@ "Use .langIdentifier to handle UI fonts in candidate window" = "「.langIdentifier」を使って候補陳列ウィンドウのフォントを取り扱う"; "Use ESC key to clear the entire input buffer" = "ESC キーで入力緩衝列を消す"; "Use IMK Candidate Window instead of Tadokoro" = "IMK 候補陳列ウィンドウを起用"; +"Use only one row / column in candidate window." = "ただ1つ行・列で文字候補を陳列。"; "Vertical" = "縦型陳列"; "Warning: This page is for testing future features. \nFeatures listed here may not work as expected." = "警告:これからの新機能テストのために作ったページですから、\nここで陳列されている諸機能は予想通り動けるだと思わないでください。"; "Yale Pinyin with Numeral Intonation" = "イェール弁音 (ローマ字+数字音調)"; diff --git a/Source/Resources/zh-Hans.lproj/Localizable.strings b/Source/Resources/zh-Hans.lproj/Localizable.strings index 5840bd07..4d3d0a92 100644 --- a/Source/Resources/zh-Hans.lproj/Localizable.strings +++ b/Source/Resources/zh-Hans.lproj/Localizable.strings @@ -313,11 +313,13 @@ "Specify the behavior of intonation key when syllable composer is empty." = "指定声调键(在注拼槽为「空」状态时)的行为。"; "Starlight" = "星光排列"; "Stop farting (when typed phonetic combination is invalid, etc.)" = "廉耻模式 // 取消勾选的话,敲错字时会有异音"; +"Tadokoro candidate window shows 4 rows / columns by default, providing similar experiences from Microsoft New Phonetic IME and macOS bult-in Chinese IME (since macOS 10.9). However, for some users who have presbyopia, they prefer giant candidate font sizes, resulting a concern that multiple rows / columns of candidates can make the candidate window looks too big, hence this option. Note that this option will be dismissed if the typing context is vertical, forcing the candidates to be shown in only one row / column. Only one reverse-lookup result can be made available in single row / column mode due to reduced candidate window size." = "田所选字窗在预设情况下会显示四列/四行候选字,提供类似于 macOS 内建中文输入法(macOS 10.9 起算)以及微软新注音输入法那样的选字窗排版体验。然而,部分使用者受老花眼所困扰,需要以较大字号来显示候选字。这种情况下,多行/多列的选字窗可能会占用过多的萤幕空间,也就需要这么一个选项来停用这个特性。需注意:如果当前文字输入环境是纵排输入的话,田所选字窗会始终使用单列/单行来显示候选字、而无视该选项。因为单行/单列选字窗的面积不够,所以最多只会显示一笔字根反查结果。。"; "The lookup results are supplied by the CIN cassette module." = "反查结果取自 CIN 磁带模组。"; "The user override model only possesses memories temporarily. It won't memorize those unigrams consisting of only one Chinese character, except “你/他/妳/她/祢/衪/它/牠/再/在”. 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 requires macOS 10.15 and above." = "该功能要求系统版本至少 macOS 10.15。"; -"This only works with Tadokoro candidate window." = "该方法仅对田所选字窗起作用。"; +"This only works with Tadokoro candidate window." = "该选项仅对田所选字窗起作用。"; +"This will also affect the row / column capacity of the candidate window." = "该选项也会影响到选字窗每行/每列最多显示的候选字数量。"; "This will batch-replace specified candidates." = "这将会对指定的候选字词进行整词取代。"; "This will stop user override model from affecting how candidates get sorted." = "这将阻止半衰记忆模组影响候选字词的陈列顺序。"; "This will use the plist files deployed by the “make install” command from libvChewing-Data if possible." = "这将会优先使用由 libvChewing-Data 的 make install 部署的原厂辞典档案。"; @@ -332,6 +334,7 @@ "Use .langIdentifier to handle UI fonts in candidate window" = "使用 .langIdentifier 来管理选字窗的预设介面字型"; "Use ESC key to clear the entire input buffer" = "敲 ESC 键以清空整个组字缓冲区"; "Use IMK Candidate Window instead of Tadokoro" = "启用与 macOS 内建输入法相同的 IMK 选字窗"; +"Use only one row / column in candidate window." = "仅以单行/单列来陈列候选字。"; "Vertical" = "纵向布局"; "Warning: This page is for testing future features. \nFeatures listed here may not work as expected." = "警告:该页面仅作未来功能测试所用。\n在此列出的功能并非处于完全可用之状态。"; "Yale Pinyin with Numeral Intonation" = "耶鲁拼音+数字标调"; diff --git a/Source/Resources/zh-Hant.lproj/Localizable.strings b/Source/Resources/zh-Hant.lproj/Localizable.strings index 6429f6a8..ea6b870c 100644 --- a/Source/Resources/zh-Hant.lproj/Localizable.strings +++ b/Source/Resources/zh-Hant.lproj/Localizable.strings @@ -313,11 +313,13 @@ "Specify the behavior of intonation key when syllable composer is empty." = "指定聲調鍵(在注拼槽為「空」狀態時)的行為。"; "Starlight" = "星光排列"; "Stop farting (when typed phonetic combination is invalid, etc.)" = "廉恥模式 // 取消勾選的話,敲錯字時會有異音"; +"Tadokoro candidate window shows 4 rows / columns by default, providing similar experiences from Microsoft New Phonetic IME and macOS bult-in Chinese IME (since macOS 10.9). However, for some users who have presbyopia, they prefer giant candidate font sizes, resulting a concern that multiple rows / columns of candidates can make the candidate window looks too big, hence this option. Note that this option will be dismissed if the typing context is vertical, forcing the candidates to be shown in only one row / column. Only one reverse-lookup result can be made available in single row / column mode due to reduced candidate window size." = "田所選字窗在預設情況下會顯示四列/四行候選字,提供類似於 macOS 內建中文輸入法(macOS 10.9 起算)以及微軟新注音輸入法那樣的選字窗排版體驗。然而,部分使用者受老花眼所困擾,需要以較大字號來顯示候選字。這種情況下,多行/多列的選字窗可能會佔用過多的螢幕空間,也就需要這麼一個選項來停用這個特性。需注意:如果當前文字輸入環境是縱排輸入的話,田所選字窗會始終使用單列/單行來顯示候選字、而無視該選項。因為單行/單列選字窗的面積不夠,所以最多只會顯示一筆字根反查結果。"; "The lookup results are supplied by the CIN cassette module." = "反查結果取自 CIN 磁帶模組。"; "The user override model only possesses memories temporarily. It won't memorize those unigrams consisting of only one Chinese character, except “你/他/妳/她/祢/衪/它/牠/再/在”. 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 requires macOS 10.15 and above." = "該功能要求系統版本至少 macOS 10.15。"; -"This only works with Tadokoro candidate window." = "該方法僅對田所選字窗起作用。"; +"This only works with Tadokoro candidate window." = "該選項僅對田所選字窗起作用。"; +"This will also affect the row / column capacity of the candidate window." = "該選項也會影響到選字窗每行/每列最多顯示的候選字數量。"; "This will batch-replace specified candidates." = "這將會對指定的候選字詞進行整詞取代。"; "This will stop user override model from affecting how candidates get sorted." = "這將阻止半衰記憶模組影響候選字詞的陳列順序。"; "This will use the plist files deployed by the “make install” command from libvChewing-Data if possible." = "這將會優先使用由 libvChewing-Data 的 make install 部署的原廠辭典檔案。"; @@ -332,6 +334,7 @@ "Use .langIdentifier to handle UI fonts in candidate window" = "使用 .langIdentifier 來管理選字窗的預設介面字型"; "Use ESC key to clear the entire input buffer" = "敲 ESC 鍵以清空整個組字緩衝區"; "Use IMK Candidate Window instead of Tadokoro" = "啟用與 macOS 內建輸入法相同的 IMK 選字窗"; +"Use only one row / column in candidate window." = "僅以單行/單列來陳列候選字。"; "Vertical" = "縱向佈局"; "Warning: This page is for testing future features. \nFeatures listed here may not work as expected." = "警告:該頁面僅作未來功能測試所用。\n在此列出的功能並非處於完全可用之狀態。"; "Yale Pinyin with Numeral Intonation" = "耶魯拼音+數字標調";