diff --git a/README.md b/README.md index 212b8c6..b4a3b0f 100644 --- a/README.md +++ b/README.md @@ -10,31 +10,28 @@ ## 使用 添加用户词后,需要手动布署一下 - 鼠须管的布署快捷键是:control + option + ` -## 注意事项 -程序是取文件中 `...` 前面的内容作为不动的头部,然后处理的之后的部分。 -所以你也可以手动添加内容,但一定要保留 `...` 这行 +## 功能 -测试版本,`bug` 多 +- [ ] 修改用户词 +- [ ] 候选词位置指定 +- [ ] 拖动排序用户词 +- [ ] 寻找更方便的方式添加用户词,而非独立app窗口模式 +- [ ] 输入编码后,在当前用户词中查看已存在的词条(或者在原主词库文件中查找) -## 功能 -我目前的想法是这样的: -- [x] 挑选 `Rime` 配置文件中的一个文件,作为添加用户词的目的地 `wubi_jidian_addition.dict.yaml` -- [x] 定位用户目录并获取词库文件内容 -- [x] 表格显示内容 -- [x] 添加用户词 - - [ ] 输入编码后,在当前用户词中查看已存在的词条(或者在原主词库文件中查找) -- [x] 删除用户词 `2020-04-15` -- [ ] 拖动排序用户词 +- [x] 检测码表中不规范的词条,并做相关处理 `2020-04-19` +- [x] 挑选 `Rime` 配置文件中的一个文件,作为添加用户词的目的地 `wubi_jidian_addition.dict.yaml` +- [x] 定位用户目录并获取词库文件内容 `2020-04-15` +- [x] 表格显示内容 `2020-04-15` +- [x] 添加用户词 `2020-04-15` +- [x] 删除用户词 `2020-04-15` -- [ ] 寻找更方便的方式添加用户词,而非独立app窗口模式 ## 延伸 如果自己技术还可以,把工具做出来了,就想进一步优化了。 -- [ ] 可以打开任意配置文件进行词库的整理操作 +- [ ] 可以打开任意配置文件进行词库的整理操作 diff --git a/WubiBuddy.xcodeproj/project.pbxproj b/WubiBuddy.xcodeproj/project.pbxproj index dc0819a..278a150 100644 --- a/WubiBuddy.xcodeproj/project.pbxproj +++ b/WubiBuddy.xcodeproj/project.pbxproj @@ -277,7 +277,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 6; + CURRENT_PROJECT_VERSION = 7; DEVELOPMENT_TEAM = 4J6QFDHMK2; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = WubiBuddy/Info.plist; @@ -286,7 +286,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 1.03; + MARKETING_VERSION = 1.04; PRODUCT_BUNDLE_IDENTIFIER = cn.kylebing.WubiBuddy; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_INCLUDE_PATHS = ""; @@ -302,7 +302,7 @@ CODE_SIGN_IDENTITY = "-"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 6; + CURRENT_PROJECT_VERSION = 7; DEVELOPMENT_TEAM = 4J6QFDHMK2; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = WubiBuddy/Info.plist; @@ -311,7 +311,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 1.03; + MARKETING_VERSION = 1.04; PRODUCT_BUNDLE_IDENTIFIER = cn.kylebing.WubiBuddy; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_INCLUDE_PATHS = ""; diff --git a/WubiBuddy/AppDelegate.swift b/WubiBuddy/AppDelegate.swift index f9dccb1..54e5ead 100644 --- a/WubiBuddy/AppDelegate.swift +++ b/WubiBuddy/AppDelegate.swift @@ -12,7 +12,6 @@ import Cocoa class AppDelegate: NSObject, NSApplicationDelegate { - func applicationDidFinishLaunching(_ aNotification: Notification) { // Insert code here to initialize your application } @@ -21,6 +20,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { // Insert code here to tear down your application } + // 关闭窗口时退出程序 func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { true } diff --git a/WubiBuddy/BuddyVC.swift b/WubiBuddy/BuddyVC.swift index 95ebf09..c5db2ac 100644 --- a/WubiBuddy/BuddyVC.swift +++ b/WubiBuddy/BuddyVC.swift @@ -12,10 +12,11 @@ import UserNotifications class BuddyVC: NSViewController { // CONST Values - let IS_TEST_MODE = true + let IS_TEST_MODE = false let tempFileName = "WubiBuddy-Temp.wubibuddy" let backupFileName = "WubiBuddy-Backup.wubibuddy" + // MARK: - Outlet and Methods // Storyboard @IBOutlet weak var codeTextField: NSTextField! @IBOutlet weak var wordTextField: NSTextField! @@ -64,7 +65,7 @@ class BuddyVC: NSViewController { let TextDidChangeNotification = Notification(name: Notification.Name.init("TextDidChange")) - + // MARK: - Variables var mainFileURL:URL{ var filePath = "" if (IS_TEST_MODE) {