From 01f43239e03c17efe8619784607c337dc9addc64 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Thu, 28 Jul 2022 23:11:45 +0800 Subject: [PATCH] PrefUI // Add Seigyou(8) and Starlight(9) parsers. --- Source/Resources/Base.lproj/Localizable.strings | 4 +++- Source/Resources/en.lproj/Localizable.strings | 4 +++- Source/Resources/ja.lproj/Localizable.strings | 2 ++ Source/Resources/zh-Hans.lproj/Localizable.strings | 2 ++ Source/Resources/zh-Hant.lproj/Localizable.strings | 2 ++ Source/UI/PrefUI/suiPrefPaneKeyboard.swift | 11 ++++++++--- 6 files changed, 20 insertions(+), 5 deletions(-) diff --git a/Source/Resources/Base.lproj/Localizable.strings b/Source/Resources/Base.lproj/Localizable.strings index 5a350c35..a1ccc9f1 100644 --- a/Source/Resources/Base.lproj/Localizable.strings +++ b/Source/Resources/Base.lproj/Localizable.strings @@ -127,7 +127,7 @@ "Eten 26" = "Eten 26"; "Eten Traditional" = "Eten Traditional"; "Experience" = "Experience"; -"Fake Seigyou" = "Fake Seigyou"; +"Fake Seigyou" = "Fake Seigyou (Similar to JinYei)"; "Follow OS settings" = "Follow OS settings"; "for cycling candidates" = "for cycling candidates"; "for cycling pages" = "for cycling pages"; @@ -149,6 +149,7 @@ "Phonetic Parser:" = "Phonetic Parser:"; "Push the cursor in front of the phrase after selection" = "Push the cursor in front of the phrase after selection"; "Secondary Pinyin with Numeral Intonation" = "Secondary Pinyin with Numeral Intonation"; +"Seigyou" = "Seigyou (JinYei)"; "Selection Keys:" = "Selection Keys:"; "Show Hanyu-Pinyin in the inline composition buffer & tooltip" = "Show Hanyu-Pinyin in the inline composition buffer & tooltip"; "Show page buttons in candidate window" = "Show page buttons in candidate window"; @@ -157,6 +158,7 @@ "Space to +cycle candidates, Shift+Space to +cycle pages" = "Space to +cycle candidates, Shift+Space to +cycle pages"; "Space to +cycle pages, Shift+Space to +cycle candidates" = "Space to +cycle pages, Shift+Space to +cycle candidates"; "Specify the maximum characters allowed in the composition buffer." = "Specify the maximum characters allowed in the composition buffer."; +"Starlight" = "Starlight"; "Stop farting (when typed phonetic combination is invalid, etc.)" = "Stop farting (when typed phonetic combination is invalid, etc.)"; "Traditional Chinese" = "Traditional Chinese"; "Typing Style:" = "Typing Style:"; diff --git a/Source/Resources/en.lproj/Localizable.strings b/Source/Resources/en.lproj/Localizable.strings index 5a350c35..a1ccc9f1 100644 --- a/Source/Resources/en.lproj/Localizable.strings +++ b/Source/Resources/en.lproj/Localizable.strings @@ -127,7 +127,7 @@ "Eten 26" = "Eten 26"; "Eten Traditional" = "Eten Traditional"; "Experience" = "Experience"; -"Fake Seigyou" = "Fake Seigyou"; +"Fake Seigyou" = "Fake Seigyou (Similar to JinYei)"; "Follow OS settings" = "Follow OS settings"; "for cycling candidates" = "for cycling candidates"; "for cycling pages" = "for cycling pages"; @@ -149,6 +149,7 @@ "Phonetic Parser:" = "Phonetic Parser:"; "Push the cursor in front of the phrase after selection" = "Push the cursor in front of the phrase after selection"; "Secondary Pinyin with Numeral Intonation" = "Secondary Pinyin with Numeral Intonation"; +"Seigyou" = "Seigyou (JinYei)"; "Selection Keys:" = "Selection Keys:"; "Show Hanyu-Pinyin in the inline composition buffer & tooltip" = "Show Hanyu-Pinyin in the inline composition buffer & tooltip"; "Show page buttons in candidate window" = "Show page buttons in candidate window"; @@ -157,6 +158,7 @@ "Space to +cycle candidates, Shift+Space to +cycle pages" = "Space to +cycle candidates, Shift+Space to +cycle pages"; "Space to +cycle pages, Shift+Space to +cycle candidates" = "Space to +cycle pages, Shift+Space to +cycle candidates"; "Specify the maximum characters allowed in the composition buffer." = "Specify the maximum characters allowed in the composition buffer."; +"Starlight" = "Starlight"; "Stop farting (when typed phonetic combination is invalid, etc.)" = "Stop farting (when typed phonetic combination is invalid, etc.)"; "Traditional Chinese" = "Traditional Chinese"; "Typing Style:" = "Typing Style:"; diff --git a/Source/Resources/ja.lproj/Localizable.strings b/Source/Resources/ja.lproj/Localizable.strings index cf68e40d..38e6b238 100644 --- a/Source/Resources/ja.lproj/Localizable.strings +++ b/Source/Resources/ja.lproj/Localizable.strings @@ -149,6 +149,7 @@ "Phonetic Parser:" = "注音配列:"; "Push the cursor in front of the phrase after selection" = "候補選択の直後、すぐカーソルを単語の向こうに推し進める"; "Secondary Pinyin with Numeral Intonation" = "国音二式 (ローマ字+数字音調)"; +"Seigyou" = "精業配列"; "Selection Keys:" = "言選り用キー:"; "Show Hanyu-Pinyin in the inline composition buffer & tooltip" = "弁音合併入力(入力緩衝列とヒントで音読みを漢語弁音に)"; "Show page buttons in candidate window" = "入力候補陳列の側にページボタンを表示"; @@ -157,6 +158,7 @@ "Space to +cycle candidates, Shift+Space to +cycle pages" = "Shift+Space で次のページ、Space で次の候補文字を"; "Space to +cycle pages, Shift+Space to +cycle candidates" = "Space で次のページ、Shift+Space で次の候補文字を"; "Specify the maximum characters allowed in the composition buffer." = "緩衝列に入れる文字の数の上限をご指定ください。"; +"Starlight" = "星光配列"; "Stop farting (when typed phonetic combination is invalid, etc.)" = "マナーモード // 外すと入力間違った時に変な声が出る"; "Traditional Chinese" = "繁体中国語"; "Typing Style:" = "入力習慣:"; diff --git a/Source/Resources/zh-Hans.lproj/Localizable.strings b/Source/Resources/zh-Hans.lproj/Localizable.strings index 05f23bf9..5f2d23fe 100644 --- a/Source/Resources/zh-Hans.lproj/Localizable.strings +++ b/Source/Resources/zh-Hans.lproj/Localizable.strings @@ -150,6 +150,7 @@ "Phonetic Parser:" = "注音排列:"; "Push the cursor in front of the phrase after selection" = "在选字后将游标置于该字词的前方"; "Secondary Pinyin with Numeral Intonation" = "国音二式+数字标调"; +"Seigyou" = "精业排列"; "Selection Keys:" = "选字键:"; "Show Hanyu-Pinyin in the inline composition buffer & tooltip" = "拼音并击(组字区与工具提示内显示汉语拼音)"; "Show page buttons in candidate window" = "在选字窗内显示翻页按钮"; @@ -158,6 +159,7 @@ "Space to +cycle candidates, Shift+Space to +cycle pages" = "Shift+空格键 换下一页,空格键 换选下一个后选字"; "Space to +cycle pages, Shift+Space to +cycle candidates" = "空格键 换下一页,Shift+空格键 换选下一个后选字"; "Specify the maximum characters allowed in the composition buffer." = "请指定组字缓冲区内的文字数的上限。"; +"Starlight" = "星光排列"; "Stop farting (when typed phonetic combination is invalid, etc.)" = "廉耻模式 // 取消勾选的话,敲错字时会有异音"; "Traditional Chinese" = "繁体中文"; "Typing Style:" = "输入风格:"; diff --git a/Source/Resources/zh-Hant.lproj/Localizable.strings b/Source/Resources/zh-Hant.lproj/Localizable.strings index 64ec4aff..a2f0fe9c 100644 --- a/Source/Resources/zh-Hant.lproj/Localizable.strings +++ b/Source/Resources/zh-Hant.lproj/Localizable.strings @@ -149,6 +149,7 @@ "Phonetic Parser:" = "注音排列:"; "Push the cursor in front of the phrase after selection" = "在選字後將游標置於該字詞的前方"; "Secondary Pinyin with Numeral Intonation" = "國音二式+數字標調"; +"Seigyou" = "精業排列"; "Selection Keys:" = "選字鍵:"; "Show Hanyu-Pinyin in the inline composition buffer & tooltip" = "拼音並擊(組字區與工具提示內顯示漢語拼音)"; "Show page buttons in candidate window" = "在選字窗內顯示翻頁按鈕"; @@ -157,6 +158,7 @@ "Space to +cycle candidates, Shift+Space to +cycle pages" = "Shift+空格鍵 換下一頁,空格鍵 換選下一個後選字"; "Space to +cycle pages, Shift+Space to +cycle candidates" = "空格鍵 換下一頁,Shift+空格鍵 換選下一個後選字"; "Specify the maximum characters allowed in the composition buffer." = "請指定組字緩衝區內的文字數的上限。"; +"Starlight" = "星光排列"; "Stop farting (when typed phonetic combination is invalid, etc.)" = "廉恥模式 // 取消勾選的話,敲錯字時會有異音"; "Traditional Chinese" = "繁體中文"; "Typing Style:" = "輸入風格:"; diff --git a/Source/UI/PrefUI/suiPrefPaneKeyboard.swift b/Source/UI/PrefUI/suiPrefPaneKeyboard.swift index 734eb4db..e5048412 100644 --- a/Source/UI/PrefUI/suiPrefPaneKeyboard.swift +++ b/Source/UI/PrefUI/suiPrefPaneKeyboard.swift @@ -60,15 +60,20 @@ struct suiPrefPaneKeyboard: View { Picker("", selection: $selMandarinParser) { Group { Text(LocalizedStringKey("Dachen (Microsoft Standard / Wang / 01, etc.)")).tag(0) - Text(LocalizedStringKey("Dachen 26 (libChewing)")).tag(7) Text(LocalizedStringKey("Eten Traditional")).tag(1) - Text(LocalizedStringKey("Eten 26")).tag(3) Text(LocalizedStringKey("IBM")).tag(4) - Text(LocalizedStringKey("Hsu")).tag(2) Text(LocalizedStringKey("MiTAC")).tag(5) + Text(LocalizedStringKey("Seigyou")).tag(8) Text(LocalizedStringKey("Fake Seigyou")).tag(6) } Divider() + Group { + Text(LocalizedStringKey("Dachen 26 (libChewing)")).tag(7) + Text(LocalizedStringKey("Eten 26")).tag(3) + Text(LocalizedStringKey("Hsu")).tag(2) + Text(LocalizedStringKey("Starlight")).tag(9) + } + Divider() Group { Text(LocalizedStringKey("Hanyu Pinyin with Numeral Intonation")).tag(10) Text(LocalizedStringKey("Secondary Pinyin with Numeral Intonation")).tag(11)