IME // Leaving some comments regarding vChewingKeyLayoutBundle.

This commit is contained in:
ShikiSuen 2022-02-15 22:37:31 +08:00
parent faea87bff0
commit 92ea2584dc
4 changed files with 16 additions and 5 deletions

View File

@ -152,6 +152,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, ctlNonModalAlertWindowDelega
} }
} }
// let vChewingKeyLayoutBundle = Bundle.init(path: URL(fileURLWithPath: Bundle.main.resourcePath ?? "").appendingPathComponent("vChewingKeyLayout.bundle").path)
@IBOutlet weak var window: NSWindow? @IBOutlet weak var window: NSWindow?
private var ctlPrefWindowInstance: ctlPrefWindow? private var ctlPrefWindowInstance: ctlPrefWindow?
private var ctlAboutWindowInstance: ctlAboutWindow? // New About Window private var ctlAboutWindowInstance: ctlAboutWindow? // New About Window

View File

@ -13,7 +13,7 @@
<key>TICapsLockLanguageSwitchCapable</key> <key>TICapsLockLanguageSwitchCapable</key>
<false/> <false/>
<key>TISInputSourceID</key> <key>TISInputSourceID</key>
<string>org.atelierInmu.vChewing.keyLayouts.zhuyindachen</string> <string>org.atelierInmu.keyboardlayout.vChewingKeyLayout.zhuyindachen</string>
<key>TISIntendedLanguage</key> <key>TISIntendedLanguage</key>
<string>zh-Hanb</string> <string>zh-Hanb</string>
</dict> </dict>
@ -22,7 +22,7 @@
<key>TICapsLockLanguageSwitchCapable</key> <key>TICapsLockLanguageSwitchCapable</key>
<false/> <false/>
<key>TISInputSourceID</key> <key>TISInputSourceID</key>
<string>org.atelierInmu.vChewing.keyLayouts.zhuyineten</string> <string>org.atelierInmu.keyboardlayout.vChewingKeyLayout.zhuyineten</string>
<key>TISIntendedLanguage</key> <key>TISIntendedLanguage</key>
<string>zh-Hanb</string> <string>zh-Hanb</string>
</dict> </dict>
@ -31,7 +31,7 @@
<key>TICapsLockLanguageSwitchCapable</key> <key>TICapsLockLanguageSwitchCapable</key>
<false/> <false/>
<key>TISInputSourceID</key> <key>TISInputSourceID</key>
<string>org.atelierInmu.vChewing.keyLayouts.zhuyinibm</string> <string>org.atelierInmu.keyboardlayout.vChewingKeyLayout.zhuyinibm</string>
<key>TISIntendedLanguage</key> <key>TISIntendedLanguage</key>
<string>zh-Hanb</string> <string>zh-Hanb</string>
</dict> </dict>
@ -40,7 +40,7 @@
<key>TICapsLockLanguageSwitchCapable</key> <key>TICapsLockLanguageSwitchCapable</key>
<false/> <false/>
<key>TISInputSourceID</key> <key>TISInputSourceID</key>
<string>org.atelierInmu.vChewing.keyLayouts.zhuyinmitac</string> <string>org.atelierInmu.keyboardlayout.vChewingKeyLayout.zhuyinmitac</string>
<key>TISIntendedLanguage</key> <key>TISIntendedLanguage</key>
<string>zh-Hanb</string> <string>zh-Hanb</string>
</dict> </dict>
@ -49,7 +49,7 @@
<key>TICapsLockLanguageSwitchCapable</key> <key>TICapsLockLanguageSwitchCapable</key>
<false/> <false/>
<key>TISInputSourceID</key> <key>TISInputSourceID</key>
<string>org.atelierInmu.vChewing.keyLayouts.zhuyinseigyou</string> <string>org.atelierInmu.keyboardlayout.vChewingKeyLayout.zhuyinseigyou</string>
<key>TISIntendedLanguage</key> <key>TISIntendedLanguage</key>
<string>zh-Hanb</string> <string>zh-Hanb</string>
</dict> </dict>

View File

@ -84,6 +84,11 @@ extension RangeReplaceableCollection where Element: Hashable {
menuItem_AppleZhuyinEten.representedObject = String("com.apple.keylayout.ZhuyinEten") menuItem_AppleZhuyinEten.representedObject = String("com.apple.keylayout.ZhuyinEten")
basisKeyboardLayoutButton.menu?.addItem(menuItem_AppleZhuyinEten) basisKeyboardLayoutButton.menu?.addItem(menuItem_AppleZhuyinEten)
let menuItem_vChewingDachen = NSMenuItem()
menuItem_vChewingDachen.title = String(format: NSLocalizedString("vChewing Dachen (Not Finished Yet)", comment: ""))
menuItem_vChewingDachen.representedObject = String("org.atelierInmu.keyboardlayout.vChewingKeyLayout.zhuyindachen")
basisKeyboardLayoutButton.menu?.addItem(menuItem_vChewingDachen)
let basisKeyboardLayoutID = Preferences.basisKeyboardLayout let basisKeyboardLayoutID = Preferences.basisKeyboardLayout
for source in list { for source in list {
@ -149,6 +154,8 @@ extension RangeReplaceableCollection where Element: Hashable {
chosenBaseKeyboardLayoutItem = menuItem_AppleZhuyinBopomofo chosenBaseKeyboardLayoutItem = menuItem_AppleZhuyinBopomofo
case "com.apple.keylayout.ZhuyinEten": case "com.apple.keylayout.ZhuyinEten":
chosenBaseKeyboardLayoutItem = menuItem_AppleZhuyinEten chosenBaseKeyboardLayoutItem = menuItem_AppleZhuyinEten
case "org.atelierInmu.keyboardlayout.vChewingKeyLayout.zhuyindachen":
chosenBaseKeyboardLayoutItem = menuItem_vChewingDachen
default: default:
break // nothing to do break // nothing to do
} }

View File

@ -1328,6 +1328,7 @@
COMBINE_HIDPI_IMAGES = YES; COMBINE_HIDPI_IMAGES = YES;
COPY_PHASE_STRIP = NO; COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1921; CURRENT_PROJECT_VERSION = 1921;
DEVELOPMENT_ASSET_PATHS = Source/Resources/KeyLayouts/vChewingKeyLayout.bundle;
DEVELOPMENT_TEAM = ""; DEVELOPMENT_TEAM = "";
GCC_C_LANGUAGE_STANDARD = gnu99; GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO; GCC_DYNAMIC_NO_PIC = NO;
@ -1392,6 +1393,7 @@
COPY_PHASE_STRIP = NO; COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1921; CURRENT_PROJECT_VERSION = 1921;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_ASSET_PATHS = Source/Resources/KeyLayouts/vChewingKeyLayout.bundle;
DEVELOPMENT_TEAM = ""; DEVELOPMENT_TEAM = "";
GCC_C_LANGUAGE_STANDARD = gnu99; GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_ENABLE_OBJC_EXCEPTIONS = YES; GCC_ENABLE_OBJC_EXCEPTIONS = YES;