UserDef & Prefs // Add "ReadingNarrationCoverage" option.
This commit is contained in:
parent
2ec3214491
commit
2a694081bd
|
@ -127,6 +127,9 @@ import SwiftExtension
|
|||
@AppProperty(key: UserDef.kAutoCorrectReadingCombination.rawValue, defaultValue: true)
|
||||
public dynamic var autoCorrectReadingCombination: Bool
|
||||
|
||||
@AppProperty(key: UserDef.kReadingNarrationCoverage.rawValue, defaultValue: 0)
|
||||
public dynamic var readingNarrationCoverage: Int
|
||||
|
||||
@AppProperty(key: UserDef.kAlsoConfirmAssociatedCandidatesByEnter.rawValue, defaultValue: false)
|
||||
public dynamic var alsoConfirmAssociatedCandidatesByEnter: Bool
|
||||
|
||||
|
|
|
@ -67,6 +67,9 @@ public extension PrefMgr {
|
|||
if ![0, 1, 2, 3, 4].contains(upperCaseLetterKeyBehavior) {
|
||||
upperCaseLetterKeyBehavior = 0
|
||||
}
|
||||
if ![0, 1, 2].contains(readingNarrationCoverage) {
|
||||
readingNarrationCoverage = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@ public protocol PrefMgrProtocol {
|
|||
var fetchSuggestionsFromUserOverrideModel: Bool { get set }
|
||||
var useFixedCandidateOrderOnSelection: Bool { get set }
|
||||
var autoCorrectReadingCombination: Bool { get set }
|
||||
var readingNarrationCoverage: Int { get set }
|
||||
var alsoConfirmAssociatedCandidatesByEnter: Bool { get set }
|
||||
var keepReadingUponCompositionError: Bool { get set }
|
||||
var upperCaseLetterKeyBehavior: Int { get set }
|
||||
|
|
|
@ -76,6 +76,7 @@ public enum UserDef: String, CaseIterable {
|
|||
case kFetchSuggestionsFromUserOverrideModel = "FetchSuggestionsFromUserOverrideModel"
|
||||
case kUseFixedCandidateOrderOnSelection = "UseFixedCandidateOrderOnSelection"
|
||||
case kAutoCorrectReadingCombination = "AutoCorrectReadingCombination"
|
||||
case kReadingNarrationCoverage = "ReadingNarrationCoverage"
|
||||
case kAlsoConfirmAssociatedCandidatesByEnter = "AlsoConfirmAssociatedCandidatesByEnter"
|
||||
case kKeepReadingUponCompositionError = "KeepReadingUponCompositionError"
|
||||
case kBypassNonAppleCapsLockHandling = "BypassNonAppleCapsLockHandling"
|
||||
|
@ -194,6 +195,7 @@ public extension UserDef {
|
|||
case .kFetchSuggestionsFromUserOverrideModel: return .bool
|
||||
case .kUseFixedCandidateOrderOnSelection: return .bool
|
||||
case .kAutoCorrectReadingCombination: return .bool
|
||||
case .kReadingNarrationCoverage: return .integer
|
||||
case .kAlsoConfirmAssociatedCandidatesByEnter: return .bool
|
||||
case .kKeepReadingUponCompositionError: return .bool
|
||||
case .kBypassNonAppleCapsLockHandling: return .bool
|
||||
|
@ -402,6 +404,15 @@ public extension UserDef {
|
|||
description: "This will stop user override model from affecting how candidates get sorted."
|
||||
)
|
||||
case .kAutoCorrectReadingCombination: return .init(userDef: self, shortTitle: "Automatically correct reading combinations when typing")
|
||||
case .kReadingNarrationCoverage: return .init(
|
||||
userDef: self, shortTitle: "i18n:UserDef.kReadingNarrationCoverage.shortTitle",
|
||||
description: "i18n:UserDef.kReadingNarrationCoverage.description",
|
||||
options: [
|
||||
0: "i18n:UserDef.kReadingNarrationCoverage.option.nothing",
|
||||
1: "i18n:UserDef.kReadingNarrationCoverage.option.confirmed",
|
||||
2: "i18n:UserDef.kReadingNarrationCoverage.option.realtime",
|
||||
]
|
||||
)
|
||||
case .kAlsoConfirmAssociatedCandidatesByEnter: return .init(
|
||||
userDef: self, shortTitle: "Allow using Enter key to confirm associated candidate selection",
|
||||
description: "Otherwise, only the candidate keys are allowed to confirm associates."
|
||||
|
|
|
@ -307,6 +307,11 @@
|
|||
"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.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";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.realtime" = "All changes in reading composer";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.shortTitle" = "Reading composer contents to narrate";
|
||||
"i18n:userdef.kRespectClientAccentColor.description" = "This will force the highlighted candidate background color to follow the accent color of the current client app, behaving like what macOS built-in input methods do. If it doesn't have one (or the system accent color is set with a non-default value), then the system accent color will be used instead. Note that this won't be effective if either JIS or KangXi conversion mode is enabled.";
|
||||
"i18n:userdef.kRespectClientAccentColor.shortTitle" = "Respect accent colors of the client app and the system";
|
||||
"i18n:UserDef.kShiftEisuToggleOffTogetherWithCapsLock.description" = "This does: 1) On macOS 12 and later, if the Caps Lock gets turned off, then the internal switch for Shift-key / JIS-Eisu-key Alphanumerical Mode Toggle will also be switched off. 2) If you have turned off the same switch by JIS-Eisu key, then the Caps Lock gets turned off together. Note: vChewing has no way to recognize single hits of Shift key when Caps Lock is on.";
|
||||
|
|
|
@ -307,6 +307,11 @@
|
|||
"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.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";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.realtime" = "All changes in reading composer";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.shortTitle" = "Reading composer contents to narrate";
|
||||
"i18n:userdef.kRespectClientAccentColor.description" = "This will force the highlighted candidate background color to follow the accent color of the current client app, behaving like what macOS built-in input methods do. If it doesn't have one (or the system accent color is set with a non-default value), then the system accent color will be used instead. Note that this won't be effective if either JIS or KangXi conversion mode is enabled.";
|
||||
"i18n:userdef.kRespectClientAccentColor.shortTitle" = "Respect accent colors of the client app and the system";
|
||||
"i18n:UserDef.kShiftEisuToggleOffTogetherWithCapsLock.description" = "This does: 1) On macOS 12 and later, if the Caps Lock gets turned off, then the internal switch for Shift-key / JIS-Eisu-key Alphanumerical Mode Toggle will also be switched off. 2) If you have turned off the same switch by JIS-Eisu key, then the Caps Lock gets turned off together. Note: vChewing has no way to recognize single hits of Shift key when Caps Lock is on.";
|
||||
|
|
|
@ -307,6 +307,11 @@
|
|||
"i18n:UserDef.kBypassNonAppleCapsLockHandling.shortTitle" = "威注音入力アプリの内蔵CapsLock処理を不使用";
|
||||
"i18n:userdef.kCheckAbusersOfSecureEventInputAPI.description" = "このような不正利用は「システム内蔵入力以外の全ての入力アプリがメニューで灰色状態で選べなくて使えない」の元凶である。センシティブな資料の記入どころでSecureEventInputをEnableSecureEventInput()で使うのは当然であるが、「入力中」状態が終わった後必ずDisableSecureEventInput()で状態解消すべきだと義務である。いくつかヘルパーアプリも、あるいはSecureEventInputを呼び起こしてからすぐ固まったアプリも、この状態になりやすい。特に、他のアプリの画面へ切り替えたとしても、固まったアプリのSecureEventInput状態は自動的に解消できぬ。";
|
||||
"i18n:UserDef.kCheckAbusersOfSecureEventInputAPI.shortTitle" = "SecureEventInput API を不正利用しているバクグラウンド・プロセスを自動検知";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.description" = "音読組立緩衝列の内容の変化を朗読。該功能對磁帶模式無效。";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.confirmed" = "音調キーで確認するときに";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.nothing" = "朗読せずに";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.realtime" = "いずれの変化が起きたときに";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.shortTitle" = "音読組立の朗読";
|
||||
"i18n:userdef.kRespectClientAccentColor.description" = "これで田所候補陳列ウィンドウの「選択中の候補の背景色」を「今が文字入力を受けている客体アプリのアクセントカラー」と一致することになる。もしその客体アプリ自体のアクセントカラーが未指定であり、あるいはシステムのアクセントカラーがデフォルト値ではないのなら、システム設定でのアクセントカラーに準ず。1つ例外状況:JIS / 康熙字体変換モードがONの場合、このチェックは効かぬ。";
|
||||
"i18n:userdef.kRespectClientAccentColor.shortTitle" = "客体アプリ・システムのアクセントカラーに準ず";
|
||||
"i18n:UserDef.kShiftEisuToggleOffTogetherWithCapsLock.description" = "このチェックを入れると:イ)[macOS 12 以降] CapsLockがオフした時に、「Shiftキー・JIS英数キー」の共有していた内部のスイッチもオフにする;ロ)「JIS英数キー」でそのキーに応ずる英数モードがオフした時に、CapsLockもオフにする。尚、CapsLockがオンの時に、「Shiftキーだけを打った」行為は検知できません。";
|
||||
|
|
|
@ -307,6 +307,11 @@
|
|||
"i18n:UserDef.kBypassNonAppleCapsLockHandling.shortTitle" = "不使用威注音输入法内建的 Caps Lock 处理";
|
||||
"i18n:userdef.kCheckAbusersOfSecureEventInputAPI.description" = "这种滥用会导致系统内的所有第三方输入法全都无法正常使用(在输入法选单内会变成灰色)。针对需要填写敏感数据的场合,使用 SecureEventInput 无可厚非。但是,用 EnableSecureEventInput() 开启该模式之后,就有义务在输入窗格失焦的那一刻呼叫 DisableSecureEventInput() 来结束这种状态。这种状态还常见于后台辅助 App 当中、或者某个 App 在叫出该模式之后失去响应(这样的话,哪怕被切换到后台,SecureEventInput 也不会自动解除)。";
|
||||
"i18n:UserDef.kCheckAbusersOfSecureEventInputAPI.shortTitle" = "主动检测正在滥用 SecureEventInput API 的后台进程";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.description" = "这会将您的组音区的内容念出来。该功能对磁带模式无效。";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.confirmed" = "仅在用声调键确认时";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.nothing" = "不念读";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.realtime" = "实时念读组音区的任何变化";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.shortTitle" = "要念读的组音区内容";
|
||||
"i18n:userdef.kRespectClientAccentColor.description" = "这会使田所选字窗的高亮候选字词背景色优先改用当前接收文字输入的客体应用的强调主题色,与 macOS 内建输入法的行为一致。如果当前接收文字输入的客体应用没有专门指定强调主题色(或者系统主题色被设定为非预设值)的话,则会自动改用系统偏好设定内的系统全局强调主题色。注意:该特性在启用了 JIS / 康熙文字转换模式时不会生效。";
|
||||
"i18n:userdef.kRespectClientAccentColor.shortTitle" = "遵循客体应用或系统全局的强调色偏好设定";
|
||||
"i18n:UserDef.kShiftEisuToggleOffTogetherWithCapsLock.description" = "勾选该选项后:1) [至少 macOS 12 起] Caps Lock 在关掉的时候,会连带关掉由 Shift 键 / JIS 英数键负责控制的英数模式;2) 在借由 JIS 英数键关掉其控制的英数模式的时候,也会关掉 Caps Lock。注:威注音无法在 Caps Lock 亮灯的时候感知 Shift 键的单独敲击事件。";
|
||||
|
|
|
@ -307,6 +307,11 @@
|
|||
"i18n:UserDef.kBypassNonAppleCapsLockHandling.shortTitle" = "不使用威注音輸入法內建的 Caps Lock 處理";
|
||||
"i18n:userdef.kCheckAbusersOfSecureEventInputAPI.description" = "這種濫用會導致系統內的所有第三方輸入法全都無法正常使用(在輸入法選單內會變成灰色)。針對需要填寫敏感資料的場合,使用 SecureEventInput 無可厚非。但是,用 EnableSecureEventInput() 開啟該模式之後,就有義務在輸入窗格失焦的那一刻呼叫 DisableSecureEventInput() 來結束這種狀態。這種狀態還常見於後檯輔助 App 當中、或者某個 App 在叫出該模式之後失去回應(這樣的話,哪怕被切換到後檯,SecureEventInput 也不會自動解除)。";
|
||||
"i18n:UserDef.kCheckAbusersOfSecureEventInputAPI.shortTitle" = "主動偵測正在濫用 SecureEventInput API 的後檯執行緒";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.description" = "這會將您的組音區的內容念出來。該功能對磁帶模式無效。";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.confirmed" = "僅在用聲調鍵確認時";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.nothing" = "不唸讀";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.option.realtime" = "實時唸讀組音區的任何變化";
|
||||
"i18n:UserDef.kReadingNarrationCoverage.shortTitle" = "要唸讀的組音區內容";
|
||||
"i18n:userdef.kRespectClientAccentColor.description" = "這會使田所選字窗的高亮候選字詞背景色優先改用當前接收文字輸入的客體應用的強調主題色,與 macOS 內建輸入法的行為一致。如果當前接收文字輸入的客體應用沒有專門指定強調主題色(或者系統主題色被設定為非預設值)的話,則會自動改用系統偏好設定內的系統全局強調主題色。注意:該特性在啟用了 JIS / 康熙文字轉換模式時不會生效。";
|
||||
"i18n:userdef.kRespectClientAccentColor.shortTitle" = "遵循客體應用或系統全局的強調色偏好設定";
|
||||
"i18n:UserDef.kShiftEisuToggleOffTogetherWithCapsLock.description" = "勾選該選項後:1) [至少 macOS 12 起] Caps Lock 在關掉的時候,會連帶關掉由 Shift 鍵 / JIS 英數鍵負責控制的英數模式;2) 在藉由 JIS 英數鍵關掉其控制的英數模式的時候,也會關掉 Caps Lock。註:威注音無法在 Caps Lock 亮燈的時候感知 Shift 鍵的單獨敲擊事件。";
|
||||
|
|
Loading…
Reference in New Issue