PrefUI // +useFixecCandidateOrderOnSelection.

This commit is contained in:
ShikiSuen 2022-06-27 11:13:39 +08:00
parent 887ca401c5
commit ccc5d84103
6 changed files with 14 additions and 0 deletions

View File

@ -84,6 +84,7 @@
// SwiftUI Preferences // SwiftUI Preferences
"(Shift+)Space:" = "(Shift+)Space:"; "(Shift+)Space:" = "(Shift+)Space:";
"Allow boosting / excluding a candidate of single kanji" = "Allow boosting / excluding a candidate of single kanji"; "Allow boosting / excluding a candidate of single kanji" = "Allow boosting / excluding a candidate of single kanji";
"Always use fixed listing order in candidate window" = "Always use fixed listing order in candidate window";
"An accomodation for elder computer users." = "An accomodation for elder computer users."; "An accomodation for elder computer users." = "An accomodation for elder computer users.";
"Apple ABC (equivalent to English US)" = "Apple ABC (equivalent to English US)"; "Apple ABC (equivalent to English US)" = "Apple ABC (equivalent to English US)";
"Apple Chewing - Dachen" = "Apple Chewing - Dachen"; "Apple Chewing - Dachen" = "Apple Chewing - Dachen";

View File

@ -84,6 +84,7 @@
// SwiftUI Preferences // SwiftUI Preferences
"(Shift+)Space:" = "(Shift+)Space:"; "(Shift+)Space:" = "(Shift+)Space:";
"Allow boosting / excluding a candidate of single kanji" = "Allow boosting / excluding a candidate of single kanji"; "Allow boosting / excluding a candidate of single kanji" = "Allow boosting / excluding a candidate of single kanji";
"Always use fixed listing order in candidate window" = "Always use fixed listing order in candidate window";
"An accomodation for elder computer users." = "An accomodation for elder computer users."; "An accomodation for elder computer users." = "An accomodation for elder computer users.";
"Apple ABC (equivalent to English US)" = "Apple ABC (equivalent to English US)"; "Apple ABC (equivalent to English US)" = "Apple ABC (equivalent to English US)";
"Apple Chewing - Dachen" = "Apple Chewing - Dachen"; "Apple Chewing - Dachen" = "Apple Chewing - Dachen";

View File

@ -84,6 +84,7 @@
// SwiftUI Preferences // SwiftUI Preferences
"(Shift+)Space:" = "(Shift+)Space:"; "(Shift+)Space:" = "(Shift+)Space:";
"Allow boosting / excluding a candidate of single kanji" = "即排除/即最優先にできる候補の文字数の最低限は1字とする"; "Allow boosting / excluding a candidate of single kanji" = "即排除/即最優先にできる候補の文字数の最低限は1字とする";
"Always use fixed listing order in candidate window" = "候補文字を固定順番で陳列する";
"An accomodation for elder computer users." = "年配なるユーザーのために提供した機能である。"; "An accomodation for elder computer users." = "年配なるユーザーのために提供した機能である。";
"Apple ABC (equivalent to English US)" = "Apple ABC (Apple U.S. キーボードと同じ)"; "Apple ABC (equivalent to English US)" = "Apple ABC (Apple U.S. キーボードと同じ)";
"Apple Chewing - Dachen" = "Apple 大千注音キーボード"; "Apple Chewing - Dachen" = "Apple 大千注音キーボード";

View File

@ -84,6 +84,7 @@
// SwiftUI Preferences // SwiftUI Preferences
"(Shift+)Space:" = "(Shift+)空格键:"; "(Shift+)Space:" = "(Shift+)空格键:";
"Allow boosting / excluding a candidate of single kanji" = "将可以就地升权/排除的候选字词的最短词长设为单个汉字"; "Allow boosting / excluding a candidate of single kanji" = "将可以就地升权/排除的候选字词的最短词长设为单个汉字";
"Always use fixed listing order in candidate window" = "以固定顺序来陈列选字窗内的候选字";
"An accomodation for elder computer users." = "针对年长使用者的习惯而提供。"; "An accomodation for elder computer users." = "针对年长使用者的习惯而提供。";
"Apple ABC (equivalent to English US)" = "Apple ABC (与 Apple 美规键盘等价)"; "Apple ABC (equivalent to English US)" = "Apple ABC (与 Apple 美规键盘等价)";
"Apple Chewing - Dachen" = "Apple 大千注音键盘排列"; "Apple Chewing - Dachen" = "Apple 大千注音键盘排列";

View File

@ -84,6 +84,7 @@
// SwiftUI Preferences // SwiftUI Preferences
"(Shift+)Space:" = "(Shift+)空格鍵:"; "(Shift+)Space:" = "(Shift+)空格鍵:";
"Allow boosting / excluding a candidate of single kanji" = "將可以就地升權/排除的候選字詞的最短詞長設為單個漢字"; "Allow boosting / excluding a candidate of single kanji" = "將可以就地升權/排除的候選字詞的最短詞長設為單個漢字";
"Always use fixed listing order in candidate window" = "以固定順序來陳列選字窗內的候選字";
"An accomodation for elder computer users." = "針對年長使用者的習慣而提供。"; "An accomodation for elder computer users." = "針對年長使用者的習慣而提供。";
"Apple ABC (equivalent to English US)" = "Apple ABC (與 Apple 美規鍵盤等價)"; "Apple ABC (equivalent to English US)" = "Apple ABC (與 Apple 美規鍵盤等價)";
"Apple Chewing - Dachen" = "Apple 大千注音鍵盤佈局"; "Apple Chewing - Dachen" = "Apple 大千注音鍵盤佈局";

View File

@ -39,6 +39,8 @@ struct suiPrefPaneDictionary: View {
forKey: UserDef.kAllowBoostingSingleKanjiAsUserPhrase) forKey: UserDef.kAllowBoostingSingleKanjiAsUserPhrase)
@State private var selFetchSuggestionsFromUserOverrideModel: Bool = UserDefaults.standard.bool( @State private var selFetchSuggestionsFromUserOverrideModel: Bool = UserDefaults.standard.bool(
forKey: UserDef.kFetchSuggestionsFromUserOverrideModel) forKey: UserDef.kFetchSuggestionsFromUserOverrideModel)
@State private var selUseFixecCandidateOrderOnSelection: Bool = UserDefaults.standard.bool(
forKey: UserDef.kUseFixecCandidateOrderOnSelection)
private let contentWidth: Double = { private let contentWidth: Double = {
switch mgrPrefs.appleLanguages[0] { switch mgrPrefs.appleLanguages[0] {
case "ja": case "ja":
@ -147,6 +149,13 @@ struct suiPrefPaneDictionary: View {
.onChange(of: selFetchSuggestionsFromUserOverrideModel) { value in .onChange(of: selFetchSuggestionsFromUserOverrideModel) { value in
mgrPrefs.fetchSuggestionsFromUserOverrideModel = value mgrPrefs.fetchSuggestionsFromUserOverrideModel = value
} }
Toggle(
LocalizedStringKey("Always use fixed listing order in candidate window"),
isOn: $selUseFixecCandidateOrderOnSelection
)
.onChange(of: selUseFixecCandidateOrderOnSelection) { value in
mgrPrefs.useFixecCandidateOrderOnSelection = value
}
} }
} }
} }