Prefs // Trim .enableSwiftUIForTDKCandidates().
This commit is contained in:
parent
cf51277625
commit
0b9256927e
|
@ -189,9 +189,6 @@ import SwiftExtension
|
|||
@AppProperty(key: UserDef.kUseSpaceToCommitHighlightedSCPCCandidate.rawValue, defaultValue: true)
|
||||
public dynamic var useSpaceToCommitHighlightedSCPCCandidate: Bool
|
||||
|
||||
@AppProperty(key: UserDef.kEnableSwiftUIForTDKCandidates.rawValue, defaultValue: false)
|
||||
public dynamic var enableSwiftUIForTDKCandidates: Bool
|
||||
|
||||
@AppProperty(key: UserDef.kEnableMouseScrollingForTDKCandidatesCocoa.rawValue, defaultValue: false)
|
||||
public dynamic var enableMouseScrollingForTDKCandidatesCocoa: Bool
|
||||
|
||||
|
|
|
@ -13,10 +13,6 @@ import Shared
|
|||
|
||||
public extension PrefMgr {
|
||||
func fixOddPreferences() {
|
||||
// macOS 10.15 開始才能使用 SwiftUI 構建的田所選字窗。
|
||||
if #unavailable(macOS 10.15) {
|
||||
enableSwiftUIForTDKCandidates = false
|
||||
}
|
||||
if #unavailable(macOS 12) {
|
||||
showNotificationsWhenTogglingCapsLock = false
|
||||
}
|
||||
|
|
|
@ -113,9 +113,6 @@ public extension SessionCtl {
|
|||
|
||||
if let ctlCandidateCurrent = candidateUI as? CtlCandidateTDK {
|
||||
ctlCandidateCurrent.useMouseScrolling = PrefMgr.shared.enableMouseScrollingForTDKCandidatesCocoa
|
||||
if #available(macOS 10.15, *) {
|
||||
ctlCandidateCurrent.useCocoa = !PrefMgr.shared.enableSwiftUIForTDKCandidates
|
||||
}
|
||||
}
|
||||
|
||||
candidateUI?.delegate = self // 會自動觸發田所選字窗的資料重載。
|
||||
|
|
|
@ -47,7 +47,6 @@ public protocol PrefMgrProtocol {
|
|||
var clientsIMKTextInputIncapable: [String: Bool] { get set }
|
||||
var onlyLoadFactoryLangModelsIfNeeded: Bool { get set }
|
||||
var useSpaceToCommitHighlightedSCPCCandidate: Bool { get set }
|
||||
var enableSwiftUIForTDKCandidates: Bool { get set }
|
||||
var enableMouseScrollingForTDKCandidatesCocoa: Bool { get set }
|
||||
var disableSegmentedThickUnderlineInMarkingModeForManagedClients: Bool { get set }
|
||||
var maxCandidateLength: Int { get set }
|
||||
|
|
|
@ -93,7 +93,6 @@ public enum UserDef: String, CaseIterable {
|
|||
case kClassicHaninKeyboardSymbolModeShortcutEnabled = "ClassicHaninKeyboardSymbolModeShortcutEnabled"
|
||||
|
||||
case kUseSpaceToCommitHighlightedSCPCCandidate = "UseSpaceToCommitHighlightedSCPCCandidate"
|
||||
case kEnableSwiftUIForTDKCandidates = "EnableSwiftUIForTDKCandidates"
|
||||
case kEnableMouseScrollingForTDKCandidatesCocoa = "EnableMouseScrollingForTDKCandidatesCocoa"
|
||||
case kDisableSegmentedThickUnderlineInMarkingModeForManagedClients
|
||||
= "DisableSegmentedThickUnderlineInMarkingModeForManagedClients"
|
||||
|
@ -207,7 +206,6 @@ public extension UserDef {
|
|||
case .kPhraseEditorAutoReloadExternalModifications: return .bool
|
||||
case .kClassicHaninKeyboardSymbolModeShortcutEnabled: return .bool
|
||||
case .kUseSpaceToCommitHighlightedSCPCCandidate: return .bool
|
||||
case .kEnableSwiftUIForTDKCandidates: return .bool
|
||||
case .kEnableMouseScrollingForTDKCandidatesCocoa: return .bool
|
||||
case .kDisableSegmentedThickUnderlineInMarkingModeForManagedClients: return .bool
|
||||
case .kCandidateTextFontName: return .string
|
||||
|
@ -450,11 +448,6 @@ public extension UserDef {
|
|||
case .kUseSpaceToCommitHighlightedSCPCCandidate: return .init(
|
||||
userDef: self, shortTitle: "Use Space to confirm highlighted candidate in Per-Char Select Mode"
|
||||
)
|
||||
case .kEnableSwiftUIForTDKCandidates: return .init(
|
||||
userDef: self, shortTitle: "Enable experimental Swift UI typesetting method",
|
||||
description: "By checking this, Tadokoro Candidate Window will use SwiftUI. SwiftUI was being used in vChewing 3.3.8 and before. However, SwiftUI has unacceptable responsiveness & latency & efficiency problems in rendering the candidate panel UI. That's why a refactored version has been introduced since vChewing 3.3.9 using Cocoa, providing an optimized user experience with blasing-fast operation responsiveness, plus experimental mouse-wheel support.",
|
||||
minimumOS: 10.15
|
||||
)
|
||||
case .kEnableMouseScrollingForTDKCandidatesCocoa: return .init(
|
||||
userDef: self, shortTitle: "Enable mouse wheel support for Tadokoro Candidate Window"
|
||||
)
|
||||
|
|
|
@ -223,7 +223,6 @@
|
|||
"Automatically correct reading combinations when typing" = "Automatically correct reading combinations when typing";
|
||||
"Automatically reload user data files if changes detected" = "Automatically reload user data files if changes detected";
|
||||
"Basic Keyboard Layout:" = "Basic Keyboard Layout:";
|
||||
"By checking this, Tadokoro Candidate Window will use SwiftUI. SwiftUI was being used in vChewing 3.3.8 and before. However, SwiftUI has unacceptable responsiveness & latency & efficiency problems in rendering the candidate panel UI. That's why a refactored version has been introduced since vChewing 3.3.9 using Cocoa, providing an optimized user experience with blasing-fast operation responsiveness, plus experimental mouse-wheel support." = "By checking this, Tadokoro Candidate Window will use SwiftUI. SwiftUI was being used in vChewing 3.3.8 and before. However, SwiftUI has unacceptable responsiveness & latency & efficiency problems in rendering the candidate panel UI. That's why a refactored version has been introduced since vChewing 3.3.9 using Cocoa, providing an optimized user experience with blasing-fast operation responsiveness, plus experimental mouse-wheel support.";
|
||||
"Candidate Layout:" = "Candidate Layout:";
|
||||
"Candidate Size:" = "Candidate Size:";
|
||||
"Cassette mode is similar to the CIN support of the Yahoo Kimo IME, allowing users to use their own CIN tables to implement their stroked-based input schema (e.g. Wubi, Cangjie, Boshiamy, etc.) as a plan-B in vChewing IME. However, since vChewing won't compromise its phonabet input mode experience for this cassette mode, users might not feel comfortable enough comparing to their experiences with RIME (recommended) or OpenVanilla (deprecated)." = "Cassette mode is similar to the CIN support of the Yahoo Kimo IME, allowing users to use their own CIN tables to implement their stroked-based input schema (e.g. Wubi, Cangjie, Boshiamy, etc.) as a plan-B in vChewing IME. However, since vChewing won't compromise its phonabet input mode experience for this cassette mode, users might not feel comfortable enough comparing to their experiences with RIME (recommended) or OpenVanilla (deprecated).";
|
||||
|
|
|
@ -223,7 +223,6 @@
|
|||
"Automatically correct reading combinations when typing" = "Automatically correct reading combinations when typing";
|
||||
"Automatically reload user data files if changes detected" = "Automatically reload user data files if changes detected";
|
||||
"Basic Keyboard Layout:" = "Basic Keyboard Layout:";
|
||||
"By checking this, Tadokoro Candidate Window will use SwiftUI. SwiftUI was being used in vChewing 3.3.8 and before. However, SwiftUI has unacceptable responsiveness & latency & efficiency problems in rendering the candidate panel UI. That's why a refactored version has been introduced since vChewing 3.3.9 using Cocoa, providing an optimized user experience with blasing-fast operation responsiveness, plus experimental mouse-wheel support." = "By checking this, Tadokoro Candidate Window will use SwiftUI. SwiftUI was being used in vChewing 3.3.8 and before. However, SwiftUI has unacceptable responsiveness & latency & efficiency problems in rendering the candidate panel UI. That's why a refactored version has been introduced since vChewing 3.3.9 using Cocoa, providing an optimized user experience with blasing-fast operation responsiveness, plus experimental mouse-wheel support.";
|
||||
"Candidate Layout:" = "Candidate Layout:";
|
||||
"Candidate Size:" = "Candidate Size:";
|
||||
"Cassette mode is similar to the CIN support of the Yahoo Kimo IME, allowing users to use their own CIN tables to implement their stroked-based input schema (e.g. Wubi, Cangjie, Boshiamy, etc.) as a plan-B in vChewing IME. However, since vChewing won't compromise its phonabet input mode experience for this cassette mode, users might not feel comfortable enough comparing to their experiences with RIME (recommended) or OpenVanilla (deprecated)." = "Cassette mode is similar to the CIN support of the Yahoo Kimo IME, allowing users to use their own CIN tables to implement their stroked-based input schema (e.g. Wubi, Cangjie, Boshiamy, etc.) as a plan-B in vChewing IME. However, since vChewing won't compromise its phonabet input mode experience for this cassette mode, users might not feel comfortable enough comparing to their experiences with RIME (recommended) or OpenVanilla (deprecated).";
|
||||
|
|
|
@ -224,7 +224,6 @@
|
|||
"Automatically correct reading combinations when typing" = "入力中で打ち間違った発音組み合わせを自動的に訂正する";
|
||||
"Automatically reload user data files if changes detected" = "ユーザー辞書データの変更を自動検出し、自動的に再読込";
|
||||
"Basic Keyboard Layout:" = "基礎キーボード:";
|
||||
"By checking this, Tadokoro Candidate Window will use SwiftUI. SwiftUI was being used in vChewing 3.3.8 and before. However, SwiftUI has unacceptable responsiveness & latency & efficiency problems in rendering the candidate panel UI. That's why a refactored version has been introduced since vChewing 3.3.9 using Cocoa, providing an optimized user experience with blasing-fast operation responsiveness, plus experimental mouse-wheel support." = "このチェックを入れると、田所候補陳列ウィンドウ(TDK)は SwiftUI を用い始めます。このアプリの 3.3.8 版まで SwiftUI をずっと使っていましたが、SwiftUI の画面描画の低効率の固有問題はございます。故に、このアプリの 3.3.9 版にて、Cocoa で TDK を作り直しました。これで画面操作の反応は迅雷の如く、さらに(実験的な)マウススクロール機能も可能になりました。";
|
||||
"Candidate Layout:" = "候補陳列の仕様";
|
||||
"Candidate Size:" = "候補文字の字号:";
|
||||
"Cassette mode is similar to the CIN support of the Yahoo Kimo IME, allowing users to use their own CIN tables to implement their stroked-based input schema (e.g. Wubi, Cangjie, Boshiamy, etc.) as a plan-B in vChewing IME. However, since vChewing won't compromise its phonabet input mode experience for this cassette mode, users might not feel comfortable enough comparing to their experiences with RIME (recommended) or OpenVanilla (deprecated)." = "カセットモードは、CIN ファイルを用いて、(五筆や倉頡や嘸蝦米などのような)筆画入力を機能拡張できるモードである。ですが、単なる予備機能として提供したもののため、使いやすいかどうか、RIME や OpenVanilla などに比べられないかもしれん。";
|
||||
|
|
|
@ -223,7 +223,6 @@
|
|||
"Automatically correct reading combinations when typing" = "敲字时自动纠正读音组合";
|
||||
"Automatically reload user data files if changes detected" = "自动检测并载入使用者语汇档案变更";
|
||||
"Basic Keyboard Layout:" = "基础键盘布局:";
|
||||
"By checking this, Tadokoro Candidate Window will use SwiftUI. SwiftUI was being used in vChewing 3.3.8 and before. However, SwiftUI has unacceptable responsiveness & latency & efficiency problems in rendering the candidate panel UI. That's why a refactored version has been introduced since vChewing 3.3.9 using Cocoa, providing an optimized user experience with blasing-fast operation responsiveness, plus experimental mouse-wheel support." = "若启用该选项,则田所选字窗会改用 SwiftUI 绘制。田所选字窗在威注音输入法 3.3.8 版为止一直都使用 SwiftUI 绘制,但却因此有着不堪忍受的介面渲染效率问题。因此,自威注音 3.3.9 版开始,田所选字窗借由 Cocoa 技术得以重构,拥有行云流水般的介面绘制速度,更具(尝鲜性质的)滑鼠滚轮支援。";
|
||||
"Candidate Layout:" = "候选字窗布局:";
|
||||
"Candidate Size:" = "候选字窗字号:";
|
||||
"Cassette mode is similar to the CIN support of the Yahoo Kimo IME, allowing users to use their own CIN tables to implement their stroked-based input schema (e.g. Wubi, Cangjie, Boshiamy, etc.) as a plan-B in vChewing IME. However, since vChewing won't compromise its phonabet input mode experience for this cassette mode, users might not feel comfortable enough comparing to their experiences with RIME (recommended) or OpenVanilla (deprecated)." = "磁带模式类似于雅虎奇摩输入法的 CIN 支援模式,允许使用者借由 CIN 表格档案扩充自己想要的笔画输入法(比如五笔、仓颉、呒虾米,等)。然而,因为威注音不打算为了这个功能而牺牲注音输入的体验,所以这个磁带模式的体验对于已经习惯 RIME 或者 OpenVanilla 的人群而言可能会稍微麻烦一些。";
|
||||
|
|
|
@ -223,7 +223,6 @@
|
|||
"Automatically correct reading combinations when typing" = "敲字時自動糾正讀音組合";
|
||||
"Automatically reload user data files if changes detected" = "自動檢測並載入使用者語彙檔案變更";
|
||||
"Basic Keyboard Layout:" = "基礎鍵盤佈局:";
|
||||
"By checking this, Tadokoro Candidate Window will use SwiftUI. SwiftUI was being used in vChewing 3.3.8 and before. However, SwiftUI has unacceptable responsiveness & latency & efficiency problems in rendering the candidate panel UI. That's why a refactored version has been introduced since vChewing 3.3.9 using Cocoa, providing an optimized user experience with blasing-fast operation responsiveness, plus experimental mouse-wheel support." = "若啟用該選項,則田所選字窗會改用 SwiftUI 繪製。田所選字窗在威注音輸入法 3.3.8 版為止一直都使用 SwiftUI 繪製,但卻因此有著不堪忍受的介面渲染效率問題。因此,自威注音 3.3.9 版開始,田所選字窗藉由 Cocoa 技術得以重構,擁有行雲流水般的介面繪製速度,更具(嘗鮮性質的)滑鼠滾輪支援。";
|
||||
"Candidate Layout:" = "候選字窗佈局:";
|
||||
"Candidate Size:" = "候選字窗字號:";
|
||||
"Cassette mode is similar to the CIN support of the Yahoo Kimo IME, allowing users to use their own CIN tables to implement their stroked-based input schema (e.g. Wubi, Cangjie, Boshiamy, etc.) as a plan-B in vChewing IME. However, since vChewing won't compromise its phonabet input mode experience for this cassette mode, users might not feel comfortable enough comparing to their experiences with RIME (recommended) or OpenVanilla (deprecated)." = "磁帶模式類似於雅虎奇摩輸入法的 CIN 支援模式,允許使用者藉由 CIN 表格檔案擴充自己想要的筆畫輸入法(比如五筆、倉頡、嘸蝦米,等)。然而,因為威注音不打算為了這個功能而犧牲注音輸入的體驗,所以這個磁帶模式的體驗對於已經習慣 RIME 或者 OpenVanilla 的人群而言可能會稍微麻煩一些。";
|
||||
|
|
Loading…
Reference in New Issue