UserDef // + numPadCharInputBehavior.
This commit is contained in:
parent
6763cf7889
commit
ffd64bd7a8
|
@ -143,6 +143,9 @@ import SwiftExtension
|
|||
@AppProperty(key: UserDef.kUpperCaseLetterKeyBehavior.rawValue, defaultValue: 0)
|
||||
public dynamic var upperCaseLetterKeyBehavior: Int
|
||||
|
||||
@AppProperty(key: UserDef.kNumPadCharInputBehavior.rawValue, defaultValue: 0)
|
||||
public var numPadCharInputBehavior: Int
|
||||
|
||||
@AppProperty(key: UserDef.kShiftEisuToggleOffTogetherWithCapsLock.rawValue, defaultValue: true)
|
||||
public dynamic var shiftEisuToggleOffTogetherWithCapsLock: Bool
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@ public protocol PrefMgrProtocol {
|
|||
var alsoConfirmAssociatedCandidatesByEnter: Bool { get set }
|
||||
var keepReadingUponCompositionError: Bool { get set }
|
||||
var upperCaseLetterKeyBehavior: Int { get set }
|
||||
var numPadCharInputBehavior: Int { get set }
|
||||
var shiftEisuToggleOffTogetherWithCapsLock: Bool { get set }
|
||||
var bypassNonAppleCapsLockHandling: Bool { get set }
|
||||
var togglingAlphanumericalModeWithLShift: Bool { get set }
|
||||
|
|
|
@ -87,6 +87,7 @@ public enum UserDef: String, CaseIterable, Identifiable {
|
|||
case kTogglingAlphanumericalModeWithLShift = "TogglingAlphanumericalModeWithLShift"
|
||||
case kTogglingAlphanumericalModeWithRShift = "TogglingAlphanumericalModeWithRShift"
|
||||
case kUpperCaseLetterKeyBehavior = "UpperCaseLetterKeyBehavior"
|
||||
case kNumPadCharInputBehavior = "NumPadCharInputBehavior"
|
||||
case kConsolidateContextOnCandidateSelection = "ConsolidateContextOnCandidateSelection"
|
||||
case kHardenVerticalPunctuations = "HardenVerticalPunctuations"
|
||||
case kTrimUnfinishedReadingsOnCommit = "TrimUnfinishedReadingsOnCommit"
|
||||
|
@ -206,6 +207,7 @@ public extension UserDef {
|
|||
case .kTogglingAlphanumericalModeWithLShift: return .bool
|
||||
case .kTogglingAlphanumericalModeWithRShift: return .bool
|
||||
case .kUpperCaseLetterKeyBehavior: return .integer
|
||||
case .kNumPadCharInputBehavior: return .integer
|
||||
case .kConsolidateContextOnCandidateSelection: return .bool
|
||||
case .kHardenVerticalPunctuations: return .bool
|
||||
case .kTrimUnfinishedReadingsOnCommit: return .bool
|
||||
|
@ -467,6 +469,18 @@ public extension UserDef {
|
|||
4: "Directly commit uppercased letters only if the compositor is empty",
|
||||
]
|
||||
)
|
||||
case .kNumPadCharInputBehavior: return .init(
|
||||
userDef: self, shortTitle: "i18n:UserDef.kNumPadCharInputBehavior.shortTitle",
|
||||
description: "i18n:UserDef.kNumPadCharInputBehavior.description",
|
||||
options: [
|
||||
0: "i18n:UserDef.kNumPadCharInputBehavior.option.0",
|
||||
1: "i18n:UserDef.kNumPadCharInputBehavior.option.1",
|
||||
2: "i18n:UserDef.kNumPadCharInputBehavior.option.2",
|
||||
3: "i18n:UserDef.kNumPadCharInputBehavior.option.3",
|
||||
4: "i18n:UserDef.kNumPadCharInputBehavior.option.4",
|
||||
5: "i18n:UserDef.kNumPadCharInputBehavior.option.5",
|
||||
]
|
||||
)
|
||||
case .kConsolidateContextOnCandidateSelection: return .init(
|
||||
userDef: self, shortTitle: "Consolidate the context on confirming candidate selection",
|
||||
description: "For example: When typing “章太炎” and you want to override the “太” with “泰”, and the raw operation index range [1,2) which bounds are cutting the current node “章太炎” in range [0,3). If having lack of the pre-consolidation process, this word will become something like “張泰言” after the candidate selection. Only if we enable this consolidation, this word will become “章泰炎” which is the expected result that the context is kept as-is."
|
||||
|
|
|
@ -307,6 +307,14 @@
|
|||
"i18n:UserDef.kBypassNonAppleCapsLockHandling.shortTitle" = "Bypass the vChewing built-in Caps Lock handling";
|
||||
"i18n:userdef.kCheckAbusersOfSecureEventInputAPI.description" = "Such abuse of SecureEventInput API in the background can hinder all 3rd-party input methods from being able to switch to. It is fine to use SecureEventInput for sensitive input fields. However, an app calling EnableSecureEventInput() is responsible to call DisableSecureEventInput() immediately right after the input field loses focus. This situation may also happen if an app is hanging in the background (or working as a helper application in the background) with its SecureEventInput left enabled.";
|
||||
"i18n:UserDef.kCheckAbusersOfSecureEventInputAPI.shortTitle" = "Actively check those processes abusing the SecureEventInput API";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.description" = "Choose the behavior of numeric pad inputs.";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.0" = "Always directly commit half-width chars";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.1" = "Always directly commit full-width chars";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.2" = "Insert into composition buffer (half-width)";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.3" = "Insert into composition buffer (full-width)";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.4" = "Directly commit half-width chars only if the compositor is empty";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.5" = "Directly commit full-width chars only if the compositor is empty";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.shortTitle" = "Printable Chars in Numeric Pad:";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.description" = "This reads your typed phonabets aloud. Only works with non-cassette Mode.";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.confirmed" = "Only when combined by intonation";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.nothing" = "Do not narrate";
|
||||
|
|
|
@ -307,6 +307,14 @@
|
|||
"i18n:UserDef.kBypassNonAppleCapsLockHandling.shortTitle" = "Bypass the vChewing built-in Caps Lock handling";
|
||||
"i18n:userdef.kCheckAbusersOfSecureEventInputAPI.description" = "Such abuse of SecureEventInput API in the background can hinder all 3rd-party input methods from being able to switch to. It is fine to use SecureEventInput for sensitive input fields. However, an app calling EnableSecureEventInput() is responsible to call DisableSecureEventInput() immediately right after the input field loses focus. This situation may also happen if an app is hanging in the background (or working as a helper application in the background) with its SecureEventInput left enabled.";
|
||||
"i18n:UserDef.kCheckAbusersOfSecureEventInputAPI.shortTitle" = "Actively check those processes abusing the SecureEventInput API";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.description" = "Choose the behavior of numeric pad inputs.";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.0" = "Always directly commit half-width chars";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.1" = "Always directly commit full-width chars";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.2" = "Insert into composition buffer (half-width)";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.3" = "Insert into composition buffer (full-width)";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.4" = "Directly commit half-width chars only if the compositor is empty";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.5" = "Directly commit full-width chars only if the compositor is empty";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.shortTitle" = "Printable Chars in Numeric Pad:";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.description" = "This reads your typed phonabets aloud. Only works with non-cassette Mode.";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.confirmed" = "Only when combined by intonation";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.nothing" = "Do not narrate";
|
||||
|
|
|
@ -307,6 +307,14 @@
|
|||
"i18n:UserDef.kBypassNonAppleCapsLockHandling.shortTitle" = "威注音入力アプリの内蔵CapsLock処理を不使用";
|
||||
"i18n:userdef.kCheckAbusersOfSecureEventInputAPI.description" = "このような不正利用は「システム内蔵入力以外の全ての入力アプリがメニューで灰色状態で選べなくて使えない」の元凶である。センシティブな資料の記入どころでSecureEventInputをEnableSecureEventInput()で使うのは当然であるが、「入力中」状態が終わった後必ずDisableSecureEventInput()で状態解消すべきだと義務である。いくつかヘルパーアプリも、あるいはSecureEventInputを呼び起こしてからすぐ固まったアプリも、この状態になりやすい。特に、他のアプリの画面へ切り替えたとしても、固まったアプリのSecureEventInput状態は自動的に解消できぬ。";
|
||||
"i18n:UserDef.kCheckAbusersOfSecureEventInputAPI.shortTitle" = "SecureEventInput API を不正利用しているバクグラウンド・プロセスを自動検知";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.description" = "テンキー文字の入力行為をご指定ください。";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.0" = "いつでも半角で直接出力";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.1" = "いつでも全角で直接出力";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.2" = "入力緩衝列に半角文字を挿入";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.3" = "入力緩衝列に全角文字を挿入";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.4" = "入力緩衝列がからっぽの時、半角で直接出力";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.5" = "入力緩衝列がからっぽの時、全角で直接出力";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.shortTitle" = "テンキーで入力可能の文字:";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.description" = "音読組立緩衝列の内容の変化を朗読。該功能對磁帶模式無效。";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.confirmed" = "音調キーで確認するときに";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.nothing" = "朗読せずに";
|
||||
|
|
|
@ -307,6 +307,14 @@
|
|||
"i18n:UserDef.kBypassNonAppleCapsLockHandling.shortTitle" = "不使用威注音输入法内建的 Caps Lock 处理";
|
||||
"i18n:userdef.kCheckAbusersOfSecureEventInputAPI.description" = "这种滥用会导致系统内的所有第三方输入法全都无法正常使用(在输入法选单内会变成灰色)。针对需要填写敏感数据的场合,使用 SecureEventInput 无可厚非。但是,用 EnableSecureEventInput() 开启该模式之后,就有义务在输入窗格失焦的那一刻呼叫 DisableSecureEventInput() 来结束这种状态。这种状态还常见于后台辅助 App 当中、或者某个 App 在叫出该模式之后失去响应(这样的话,哪怕被切换到后台,SecureEventInput 也不会自动解除)。";
|
||||
"i18n:UserDef.kCheckAbusersOfSecureEventInputAPI.shortTitle" = "主动检测正在滥用 SecureEventInput API 的后台进程";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.description" = "指定数字小键盘的输入行为。";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.0" = "始终以半形文字直接递交";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.1" = "始终以全形文字直接递交";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.2" = "以半形文字插入组字区";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.3" = "以全形文字插入组字区";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.4" = "直接递交半形文字,除非组字区不为空";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.5" = "直接递交全形文字,除非组字区不为空";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.shortTitle" = "数字小键盘的可输入字元:";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.description" = "这会将您的组音区的内容念出来。该功能对磁带模式无效。";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.confirmed" = "仅在用声调键确认时";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.nothing" = "不念读";
|
||||
|
|
|
@ -307,6 +307,14 @@
|
|||
"i18n:UserDef.kBypassNonAppleCapsLockHandling.shortTitle" = "不使用威注音輸入法內建的 Caps Lock 處理";
|
||||
"i18n:userdef.kCheckAbusersOfSecureEventInputAPI.description" = "這種濫用會導致系統內的所有第三方輸入法全都無法正常使用(在輸入法選單內會變成灰色)。針對需要填寫敏感資料的場合,使用 SecureEventInput 無可厚非。但是,用 EnableSecureEventInput() 開啟該模式之後,就有義務在輸入窗格失焦的那一刻呼叫 DisableSecureEventInput() 來結束這種狀態。這種狀態還常見於後檯輔助 App 當中、或者某個 App 在叫出該模式之後失去回應(這樣的話,哪怕被切換到後檯,SecureEventInput 也不會自動解除)。";
|
||||
"i18n:UserDef.kCheckAbusersOfSecureEventInputAPI.shortTitle" = "主動偵測正在濫用 SecureEventInput API 的後檯執行緒";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.description" = "指定數字小鍵盤的輸入行為。";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.0" = "始終以半形文字直接遞交";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.1" = "始終以全形文字直接遞交";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.2" = "以半形文字插入組字區";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.3" = "以全形文字插入組字區";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.4" = "直接遞交半形文字,除非組字區不為空";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.option.5" = "直接遞交全形文字,除非組字區不為空";
|
||||
"i18n:UserDef.kNumPadCharInputBehavior.shortTitle" = "數字小鍵盤的可輸入字元:";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.description" = "這會將您的組音區的內容念出來。該功能對磁帶模式無效。";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.confirmed" = "僅在用聲調鍵確認時";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.nothing" = "不唸讀";
|
||||
|
|
Loading…
Reference in New Issue