diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml
index 94b4415c..6d616b4b 100644
--- a/.github/workflows/continuous-integration-workflow.yml
+++ b/.github/workflows/continuous-integration-workflow.yml
@@ -6,7 +6,8 @@ jobs:
name: Build
runs-on: macOS-latest
env:
- DEVELOPER_DIR: /Applications/Xcode_13.2.app/Contents/Developer
+ GIT_SSL_NO_VERIFY: true
+ DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
steps:
- uses: actions/checkout@v1
- name: Clean
diff --git a/.gitignore b/.gitignore
index 3160b584..5bebbc3c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@ Credits.rtf
# that can be built by make -C Source/Data/bin/C_Version
# C_count.occ.exe
.idea
+Source/Data/*
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000..33c1907d
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,12 @@
+MIT License
+
+Copyright (c) 2021 Mengjuei Hsieh et al.
+
+Shiki Suen, the maintainer of the vChewing project, does not own any rights of the programming parts of it.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
diff --git a/LICENSE-CHS.txt b/LICENSE-CHS.txt
new file mode 100644
index 00000000..0644f391
--- /dev/null
+++ b/LICENSE-CHS.txt
@@ -0,0 +1,12 @@
+MIT License
+麻理许可协议
+
+著作权利所有 © 2011-2021 Mengjuei Hsieh 等。
+
+威注音输入法维护人孙志贵对该产品的程序部分不享有任何所有权。
+
+软件的著作权利人依此麻理授权条款,将其对于软件的著作权利授权释出,只要使用者践履以下二项麻理授权条款叙明的义务性规定,其即享有对此软件程式及其相关说明文档自由不受限制地进行利用的权利,范围包括「使用、重制、修改、合并、出版、散布、再授权、及贩售程式重制作品」等诸多方面的应用,而散布程式之人、更可将上述权利传递予其后收受程式的后手,倘若其后收受程式之人亦服膺以下二项麻理授权条款的义务性规定,则其对程式亦享有与前手运用范围相同的同一权利。
+
+散布此一软件程序者,须将本条款其上的「著作权声明」及以下的「免责声明」,内嵌于软件程序及其重制作品的实体之中。
+
+因麻理软件程序的授权模式乃是无偿提供,是以在现行法律的架构下可以主张合理的免除担保责任。麻理软件的著作权人或任何的后续散布者,对于其所散布的麻理软件程序皆不负任何形式上实质上的担保责任,明示亦或隐喻、商业利用性亦或特定目的使用性,这些均不在保障之列。利用麻理软件程序的所有风险均由使用者自行担负。假如所使用的麻理程序发生缺陷性问题,使用者需自行担负修正、改正及必要的服务支出。麻理软件程序的著作权人不负任何形式上实质上的担保责任,无论任何一般的、特殊的、偶发的、因果关系式的损害,或是麻理软件程序的不适用性,均须由使用者自行负担。
diff --git a/LICENSE-CHT.txt b/LICENSE-CHT.txt
new file mode 100644
index 00000000..1c648da3
--- /dev/null
+++ b/LICENSE-CHT.txt
@@ -0,0 +1,12 @@
+MIT License
+麻理授權條款
+
+著作權利所有 © 2011-2021 Mengjuei Hsieh 等。
+
+威注音輸入法維護人孫志貴對該產品的程式部分不享有任何所有權。
+
+軟體的著作權利人依此麻理授權條款,將其對於軟體的著作權利授權釋出,只要使用者踐履以下二項麻理授權條款敘明的義務性規定,其即享有對此軟體程式及其相關說明文檔自由不受限制地進行利用的權利,範圍包括「使用、重製、修改、合併、出版、散布、再授權、及販售程式重製作品」等諸多方面的應用,而散布程式之人、更可將上述權利傳遞予其後收受程式的後手,倘若其後收受程式之人亦服膺以下二項麻理授權條款的義務性規定,則其對程式亦享有與前手運用範圍相同的同一權利。
+
+散布此一軟體程式者,須將本條款其上的「著作權聲明」及以下的「免責聲明」,內嵌於軟體程式及其重製作品的實體之中。
+
+因麻理軟體程式的授權模式乃是無償提供,是以在現行法律的架構下可以主張合理的免除擔保責任。麻理軟體的著作權人或任何的後續散布者,對於其所散布的麻理軟體程式皆不負任何形式上實質上的擔保責任,明示亦或隱喻、商業利用性亦或特定目的使用性,這些均不在保障之列。利用麻理軟體程式的所有風險均由使用者自行擔負。假如所使用的麻理程式發生缺陷性問題,使用者需自行擔負修正、改正及必要的服務支出。麻理軟體程式的著作權人不負任何形式上實質上的擔保責任,無論任何一般的、特殊的、偶發的、因果關係式的損害,或是麻理軟體程式的不適用性,均須由使用者自行負擔。
diff --git a/LICENSE.txt b/LICENSE.txt
index 44849223..375cec4e 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -2,20 +2,10 @@ MIT License
Copyright (c) 2011-2021 Mengjuei Hsieh et al.
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
+Shiki Suen, the maintainer of the vChewing project, does not own any rights of the programming parts of it.
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Makefile b/Makefile
index 0e889293..319c6441 100644
--- a/Makefile
+++ b/Makefile
@@ -12,13 +12,13 @@ BUILD_SETTINGS += ONLY_ACTIVE_ARCH=NO
endif
release:
- xcodebuild -project McBopomofo.xcodeproj -scheme McBopomofoInstaller -configuration Release $(BUILD_SETTINGS) build
+ xcodebuild -project vChewing.xcodeproj -scheme vChewingInstaller -configuration Release $(BUILD_SETTINGS) build
debug:
- xcodebuild -project McBopomofo.xcodeproj -scheme McBopomofoInstaller -configuration Debug $(BUILD_SETTINGS) build
+ xcodebuild -project vChewing.xcodeproj -scheme vChewingInstaller -configuration Debug $(BUILD_SETTINGS) build
DSTROOT = /Library/Input Methods
-VC_APP_ROOT = $(DSTROOT)/McBopomofo.app
+VC_APP_ROOT = $(DSTROOT)/vChewing.app
.PHONY: permission-check install-debug install-release
@@ -27,15 +27,15 @@ permission-check:
install-debug: permission-check
rm -rf "$(VC_APP_ROOT)"
- open Build/Products/Debug/McBopomofoInstaller.app
+ open Build/Products/Debug/vChewingInstaller.app
install-release: permission-check
rm -rf "$(VC_APP_ROOT)"
- open Build/Products/Release/McBopomofoInstaller.app
+ open Build/Products/Release/vChewingInstaller.app
.PHONY: clean
clean:
- xcodebuild -scheme McBopomofoInstaller -configuration Debug $(BUILD_SETTINGS) clean
- xcodebuild -scheme McBopomofoInstaller -configuration Release $(BUILD_SETTINGS) clean
+ xcodebuild -scheme vChewingInstaller -configuration Debug $(BUILD_SETTINGS) clean
+ xcodebuild -scheme vChewingInstaller -configuration Release $(BUILD_SETTINGS) clean
make clean --file=./Source/Data/Makefile || true
diff --git a/README.markdown b/README.markdown
deleted file mode 100644
index 359a8385..00000000
--- a/README.markdown
+++ /dev/null
@@ -1,14 +0,0 @@
-# OpenVanilla McBopomofo 小麥注音輸入法
-
-## 開發流程
-
-用 Xcode 開啟 `McBopomofo.xcodeproj`,選 "McBopomofo Installer" target,build 完之後直接執行該安裝程式,就可以安裝小麥注音。
-
-第一次安裝完,日後程式碼或詞庫有任何修改,只要重複上述流程,再次安裝小麥注音即可。
-
-要注意的是 macOS 可能會限制同一次 login session 能 kill 同一個輸入法 process 的次數(安裝程式透過 kill input method process 來讓新版的輸入法生效)。如果安裝若干次後,發現程式修改的結果並沒有出現,或甚至輸入法已無法再選用,只要登出目前帳號再重新登入即可。
-
-## 軟體授權
-
-本專案採用 MIT License 釋出,使用者可自由使用、散播本軟體,惟散播時必須完整保留版權聲明及軟體授權([詳全文](https://github.com/openvanilla/McBopomofo/blob/master/LICENSE.txt))。
-
diff --git a/README.md b/README.md
index 359a8385..54434bc9 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,31 @@
-# OpenVanilla McBopomofo 小麥注音輸入法
+# vChewing 威注音输入法
-## 開發流程
+威注音输入法由小麦注音分支而来(且词库内已经移除任何可以妨碍该输入法在世界上任何地方传播的内容),是原生简体中文注音输入法:相比中州韵(鼠须管)而言,威注音能够做到真正的大千声韵并击。
-用 Xcode 開啟 `McBopomofo.xcodeproj`,選 "McBopomofo Installer" target,build 完之後直接執行該安裝程式,就可以安裝小麥注音。
+威注音分支专案及威注音词库由孙志贵(Shiki Suen)维护。小麦注音官方原始仓库內的词库的内容均与孙志贵无关。
-第一次安裝完,日後程式碼或詞庫有任何修改,只要重複上述流程,再次安裝小麥注音即可。
+## 建置流程
-要注意的是 macOS 可能會限制同一次 login session 能 kill 同一個輸入法 process 的次數(安裝程式透過 kill input method process 來讓新版的輸入法生效)。如果安裝若干次後,發現程式修改的結果並沒有出現,或甚至輸入法已無法再選用,只要登出目前帳號再重新登入即可。
+系统需求:至少 macOS 10.12 Sierra。
-## 軟體授權
+安装 Xcode 之后,请先配置 Xcode 允许其直接构建在专案所在的资料夹下的 build 资料夹内。步骤:
+```
+「Xcode」->「Preferences...」->「Locations」;
+「File」->「Project/WorkspaceSettings...」->「Advanced」;
+选「Custom」->「Relative to Workspace」即可。不选的话,make 的过程会出错。
+```
+在终端机内定位到威注音的克隆本地专案的本地仓库的目录之后,执行 `make update` 以获取最新词库,在成功之后执行 `make` 即可组建。再执行 `make install` 可以触发威注音的安装程式。
-本專案採用 MIT License 釋出,使用者可自由使用、散播本軟體,惟散播時必須完整保留版權聲明及軟體授權([詳全文](https://github.com/openvanilla/McBopomofo/blob/master/LICENSE.txt))。
+第一次安装完,日后程式码或词库有任何修改,只要重复上述流程,再次安装威注音即可。
+要注意的是 macOS 可能会限制同一次 login session 能终结同一个输入法的执行进程的次数(安装程式透过 kill input method process 来让新版的输入法生效)。如果安装若干次后,发现程式修改的结果并没有出现、或甚至输入法已无法再选用,只需要登出目前的 macOS 系统帐号、再重新登入即可。
+
+补记: 该输入法是在 2021 年 11 月初「28ae7deb4092f067539cff600397292e66a5dd56」这一版小麦注音建置的基础上完成的。因为在清洗词库的时候清洗了全部的 git commit 历史,所以无法自动从小麦注音官方仓库上游继承任何改动,只能手动同步任何在此之后的程式修正。最近一次同步參照是「f7a24862c4e1733a2264b56e434d1a449325d769」。除此以外,还引入了 MJHsieh 制作(却尚未正式给小麦注音实装)的「临时记忆最近的部分选字词」的功能(该记忆有自己的忘却衰减曲线,且记忆的词汇会在每次重新开机时自动忘却。)。
+
+## 应用授权
+
+小麦注音引擎程式版权:© 2011-2021 OpenVanilla 专案团队(Mengjuei Hsieh 等人)。
+
+威注音词库由孙志贵维护,亦以 MIT 授权释出。
+
+本专案采用 MIT License 释出,使用者可自由使用、散播本软体,惟散播时必须完整保留版权声明及软体授权([详全文 LICENSE.txt](https://github.com/openvanilla/McBopomofo/blob/master/LICENSE.txt))。
diff --git a/Source/AppDelegate.h b/Source/AppDelegate.h
index 96ee6e0c..66d758bf 100644
--- a/Source/AppDelegate.h
+++ b/Source/AppDelegate.h
@@ -1,7 +1,7 @@
//
// AppDelegate.h
//
-// Copyright (c) 2011 The McBopomofo Project.
+// Copyright (c) 2021 The vChewing Project.
//
// Contributors:
// Mengjuei Hsieh (@mjhsieh)
diff --git a/Source/AppDelegate.m b/Source/AppDelegate.m
index cc6b896c..eb7dc496 100644
--- a/Source/AppDelegate.m
+++ b/Source/AppDelegate.m
@@ -1,7 +1,7 @@
//
// AppDelegate.m
//
-// Copyright (c) 2011 The McBopomofo Project.
+// Copyright (c) 2021 The vChewing Project.
//
// Contributors:
// Mengjuei Hsieh (@mjhsieh)
@@ -156,7 +156,7 @@ static const NSTimeInterval kTimeoutInterval = 60.0;
- (void)showNoUpdateAvailableAlert
{
- [[OVNonModalAlertWindowController sharedInstance] showWithTitle:NSLocalizedString(@"Check for Update Completed", nil) content:NSLocalizedString(@"You are already using the latest version of McBopomofo.", nil) confirmButtonTitle:NSLocalizedString(@"OK", nil) cancelButtonTitle:nil cancelAsDefault:NO delegate:nil];
+ [[OVNonModalAlertWindowController sharedInstance] showWithTitle:NSLocalizedString(@"Check for Update Completed", nil) content:NSLocalizedString(@"You are already using the latest version of vChewing.", nil) confirmButtonTitle:NSLocalizedString(@"OK", nil) cancelButtonTitle:nil cancelAsDefault:NO delegate:nil];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
@@ -244,7 +244,7 @@ static const NSTimeInterval kTimeoutInterval = 60.0;
}
}
- NSString *content = [NSString stringWithFormat:NSLocalizedString(@"You're currently using McBopomofo %@ (%@), a new version %@ (%@) is now available. Do you want to visit McBopomofo's website to download the version?%@", nil), [infoDict objectForKey:@"CFBundleShortVersionString"], currentVersion, [plist objectForKey:@"CFBundleShortVersionString"], remoteVersion, versionDescription];
+ NSString *content = [NSString stringWithFormat:NSLocalizedString(@"You're currently using vChewing %@ (%@), a new version %@ (%@) is now available. Do you want to visit vChewing's website to download the version?%@", nil), [infoDict objectForKey:@"CFBundleShortVersionString"], currentVersion, [plist objectForKey:@"CFBundleShortVersionString"], remoteVersion, versionDescription];
[[OVNonModalAlertWindowController sharedInstance] showWithTitle:NSLocalizedString(@"New Version Available", nil) content:content confirmButtonTitle:NSLocalizedString(@"Visit Website", nil) cancelButtonTitle:NSLocalizedString(@"Not Now", nil) cancelAsDefault:NO delegate:self];
}
diff --git a/Source/Base.lproj/MainMenu.xib b/Source/Base.lproj/MainMenu.xib
index 5f7bcf12..4c79f2b9 100644
--- a/Source/Base.lproj/MainMenu.xib
+++ b/Source/Base.lproj/MainMenu.xib
@@ -14,10 +14,10 @@