|
15 | 15 | - 穩定版 <br>
|
16 | 16 | [<img alt='Get it on F-Droid' src='https://fdroid.gitlab.io/artwork/badge/get-it-on.png' height='80px'/>](https://f-droid.org/packages/com.osfans.trime)
|
17 | 17 | [<img alt='Google Play 立即下載' src='https://play.google.com/intl/en_us/badges/images/generic/zh-tw_badge_web_generic.png' height='80px'/>](https://play.google.com/store/apps/details?id=com.osfans.trime)
|
18 |
| -[<img alt='酷安' src='https://static.coolapk.com/static/web/v8/img/icon.png' height='80px'/>](https://www.coolapk.com/apk/com.osfans.trime) |
| 18 | +[<img alt='酷安' src='https://static.coolapk.com/static/web/v8/img/icon.png' height='60px'/>](https://www.coolapk.com/apk/com.osfans.trime) |
19 | 19 |
|
20 |
| -- 測試版 [點擊下載](https://github.com/osfans/trime/actions) |
| 20 | +- 測試版 [點選下載](https://github.com/osfans/trime/actions) |
21 | 21 |
|
22 | 22 | - 配置文件 [rimerc](https://github.com/Bambooin/rimerc)
|
23 | 23 |
|
|
26 | 26 | - 貢獻:[boboIqiqi](https://github.com/boboIqiqi)、[Bambooin](https://github.com/Bambooin)、[senchi96](https://github.com/senchi96)、[heiher](https://github.com/heiher)、[abay](https://github.com/a342191555)、[iovxw](https://github.com/iovxw)、[huyz-git](https://github.com/huyz-git)、[tumuyan](https://github.com/tumuyan)、[WhiredPlanck](https://github.com/WhiredPlanck)......
|
27 | 27 | - [維基](https://github.com/osfans/trime/wiki):[xiaoqun2016](https://github.com/xiaoqun2016)、[boboIqiqi](https://github.com/boboIqiqi)......
|
28 | 28 | - 翻譯:天真可愛的滿滿(繁體中文)、點解(英文)......
|
29 |
| -- 鍵盤:天真可愛的滿滿、皛筱晓小笨鱼、吴琛11、熊貓阿Bo、默默ㄇㄛˋ...... |
| 29 | +- 鍵盤:天真可愛的滿滿、皛筱曉小笨魚、吳琛11、熊貓阿Bo、默默ㄇㄛˋ...... |
30 | 30 | - 捐贈:[Releases](https://github.com/osfans/trime/releases) 中的“打賞”實時更新
|
31 |
| -- 社區:在 [Issues](https://github.com/osfans/trime/issues)、[QQ 羣(811142286)](https://jq.qq.com/?_wv=1027&k=AXdR80HN)、[QQ 羣(458845988)](https://jq.qq.com/?_wv=1027&k=n6xT4G3q)、[酷安](http://www.coolapk.com/apk/com.osfans.trime)、[Google Play](https://play.google.com/store/apps/details?id=com.osfans.trime) 和[貼吧](http://tieba.baidu.com/f?kw=rime)中反饋意見的網友 |
32 |
| -- 項目:[RIME]、[OpenCC]、[注音倉頡輸入法]等開源項目 |
| 31 | +- 社群:在 [Issues](https://github.com/osfans/trime/issues)、[QQ 群(811142286)](https://jq.qq.com/?_wv=1027&k=AXdR80HN)、[QQ 群(458845988)](https://jq.qq.com/?_wv=1027&k=n6xT4G3q)、[酷安](http://www.coolapk.com/apk/com.osfans.trime)、[Google Play](https://play.google.com/store/apps/details?id=com.osfans.trime) 和[貼吧](http://tieba.baidu.com/f?kw=rime)中反饋意見的網友 |
| 32 | +- 專案:[RIME]、[OpenCC]、[注音倉頡輸入法]等開源專案 |
33 | 33 |
|
34 | 34 | ## 沿革
|
35 |
| -TRIME 是 Tongwen RIME 或是 ThaeRvInputMethod 的縮寫: |
36 |
| -- 最初,輸入法是寫給[泰如拼音](http://taerv.nguyoeh.com/ime/)(tae5 rv2)的,中文名爲“泰如輸入法”; |
37 |
| -- 然後,添加了吳語等方言碼表,做成了一個輸入法平臺,更名爲“漢字方言輸入法”; |
38 |
| -- 後來,兼容了五筆、兩筆等形碼,在太空衛士、徵羽的建議下,更名爲“[同文輸入法平臺 2.x](https://github.com/osfans/trime-legacy)”。寓意音碼形碼同臺,方言官話同文。 |
39 |
| -- 之後,藉助 JNI 技術,享受了 [librime](https://github.com/rime/librime) 的成果,升級爲“同文輸入法平臺 3.x”,簡稱“同文輸入法”。 |
| 35 | +TRIME 是 Tongwen RIME 或是 ThaeRvInputMEthod 的縮寫: |
| 36 | + |
| 37 | +- 最初,輸入法是寫給[泰如拼音](http://taerv.nguyoeh.com/ime/)(tae5 rv2)的,中文名為“泰如輸入法”; |
| 38 | +- 然後,添加了吳語等方言碼錶,做成了一個輸入法平臺,更名為“漢字方言輸入法”; |
| 39 | +- 後來,相容了五筆、兩筆等形碼,在太空衛士、徵羽的建議下,更名為“[同文輸入法平臺 2.x](https://github.com/osfans/trime-legacy)”。寓意音碼形碼同臺,方言官話同文。 |
| 40 | +- 之後,藉助 JNI 技術,享受了 [librime](https://github.com/rime/librime) 的成果,升級為“同文輸入法平臺 3.x”,簡稱“同文輸入法”。 |
40 | 41 |
|
41 | 42 | 現在歡迎你前來[貢獻](CONTRIBUTING.md) ~!:tada:
|
42 | 43 |
|
43 |
| -## 入門 |
| 44 | +## 開發入門 |
44 | 45 |
|
45 | 46 | ### 準備
|
46 | 47 |
|
47 |
| -Android SDK 應該已經被安裝並且正確配置。如果你還不熟悉 Android 開發,建議安裝 Android Studio,它會自動安裝並配置 Android 開發環境。 |
| 48 | +開發者應正確安裝配置好 Android SDK 和 Android NDK。如果還不熟悉 Android 開發,建議安裝 Android Studio,它會自動安裝並配置 Android 開發環境。 |
48 | 49 |
|
49 | 50 | ### 構建
|
50 | 51 |
|
51 |
| -1. 克隆此項目,請注意由於 `boost` 子模塊很大,這會花費一些時間。同時,請確保你的磁盤有足夠空間保存源代碼(約 1.5 GB); |
| 52 | +<details> |
| 53 | +<summary>Windows 上的前提條件</summary> |
52 | 54 |
|
53 |
| -```bash |
54 |
| -cd $your_folder |
55 |
| -git clone --recursive https://github.com/osfans/trime.git |
| 55 | +當前構建配置會使構建過程中建立符號連結,開發者需要: |
| 56 | + |
| 57 | +- 啟用[開發者模式](https://learn.microsoft.com/zh-cn/windows/apps/get-started/enable-your-device-for-development) 以在無管理員許可權的情況下建立符號連結。 |
| 58 | + |
| 59 | +- 啟用 `git` 的符號連結支援: |
| 60 | + |
| 61 | + ```powershell |
| 62 | + git config --global core.symlinks true |
| 63 | + ``` |
| 64 | +
|
| 65 | +如果無法或者不想啟用上述設定也沒關係。構建系統會自動在符號連結建立失敗時使用複製代替。 |
| 66 | +
|
| 67 | +</details> |
| 68 | +
|
| 69 | +1. 克隆此專案並拉取所有子模組。 |
| 70 | +
|
| 71 | +```sh |
| 72 | +git clone [email protected]:osfans/trime.git |
| 73 | +git submodule update --init --recursive |
56 | 74 | ```
|
57 | 75 |
|
58 |
| -2. 編譯調試版本: |
| 76 | +2. 編譯除錯版本: |
| 77 | + |
| 78 | +Linux 或 macOS 上可執行: |
59 | 79 |
|
60 | 80 | ```bash
|
61 | 81 | make debug
|
62 | 82 | ```
|
63 | 83 |
|
| 84 | +Windows 上執行: |
| 85 | + |
| 86 | +```powershell |
| 87 | +.\gradle :app:assembleDebug |
| 88 | +``` |
| 89 | + |
64 | 90 | 3. 編譯正式版本:
|
65 | 91 |
|
66 |
| -請創建一個名為 keystore.properties 的文件,包含以下內容,註明[簽名信息](https://developer.android.com/studio/publish/app-signing.html): |
| 92 | +請建立 `keystore.properties` 檔案,包含以下內容,註明[簽名信息](https://developer.android.com/studio/publish/app-signing.html): |
67 | 93 |
|
68 |
| -```bash |
| 94 | +```gradle.properties |
69 | 95 | storePassword=myStorePassword
|
70 | 96 | keyPassword=mykeyPassword
|
71 | 97 | keyAlias=myKeyAlias
|
72 | 98 | storeFile=myStoreFileLocation
|
73 | 99 | ```
|
74 | 100 |
|
| 101 | +之後,Linux 或 macOS 上可執行: |
| 102 | + |
75 | 103 | ```bash
|
76 | 104 | make release
|
77 | 105 | ```
|
78 | 106 |
|
| 107 | +Windows 上執行: |
| 108 | + |
| 109 | +```powershell |
| 110 | +.\gradlew :app:assembleRelease |
| 111 | +``` |
| 112 | + |
79 | 113 | ### 故障排除
|
80 | 114 |
|
81 | 115 | ```
|
82 | 116 | Target "boost_log_setup" links to target "Boost::coroutine" but the target was not found.
|
83 | 117 | ```
|
| 118 | +在 Linux 或 macOS 上執行 `make clean`,Windows 上執行 `.\gradlew clean`。 |
84 | 119 |
|
85 |
| -執行 `make clean`. |
86 |
| - |
87 |
| -其它問題: |
88 |
| -1. 首先嘗試 `make clean` |
89 |
| -2. 確保你的倉庫與最新版本一致。如果你修改了一個或更多的子模塊,請確保它們與當前倉庫版本兼容。 |
| 120 | +其他問題: |
| 121 | +1. 首先嚐試 `make clean` |
| 122 | +2. 確保你的倉庫與最新版本一致。如果你修改了一個或更多的子模組,請確保它們與當前倉庫版本相容。 |
90 | 123 | 3. 如果問題依然存在(不太可能), 嘗試進行一次新的克隆。
|
91 | 124 | 4. 檢查是否有PR/issue與你的問題相關。 如果有的話,嘗試他們的解決方案。
|
92 | 125 | 5. 如果以上方法都不工作,你可以提一個issue來尋求幫助(可選)。
|
|
0 commit comments