Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
update comment and readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleBing committed Apr 19, 2020
1 parent 72076d7 commit c570341
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 23 deletions.
29 changes: 13 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,28 @@

## 使用
添加用户词后,需要手动布署一下

鼠须管的布署快捷键是:<kbd>control</kbd> + <kbd>option</kbd> + <kbd>`</kbd>

## 注意事项
程序是取文件中 `...` 前面的内容作为不动的头部,然后处理的之后的部分。

所以你也可以手动添加内容,但一定要保留 `...` 这行
## 功能

测试版本,`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窗口模式


## 延伸
如果自己技术还可以,把工具做出来了,就想进一步优化了。

- [ ] 可以打开任意配置文件进行词库的整理操作
- [ ] 可以打开任意配置文件进行词库的整理操作
8 changes: 4 additions & 4 deletions WubiBuddy.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 = "";
Expand All @@ -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;
Expand All @@ -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 = "";
Expand Down
2 changes: 1 addition & 1 deletion WubiBuddy/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import Cocoa
class AppDelegate: NSObject, NSApplicationDelegate {



func applicationDidFinishLaunching(_ aNotification: Notification) {
// Insert code here to initialize your application
}
Expand All @@ -21,6 +20,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
// Insert code here to tear down your application
}

// 关闭窗口时退出程序
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
true
}
Expand Down
5 changes: 3 additions & 2 deletions WubiBuddy/BuddyVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c570341

Please sign in to comment.