0.1 initial commit
This commit is contained in:
parent
22b71710e0
commit
8cc4a63841
4 changed files with 179 additions and 73 deletions
8
AUTHORS
8
AUTHORS
|
|
@ -1,6 +1,2 @@
|
|||
|
||||
Patrick <ipatrickmac@qq.com>, Gong Chen <chen.sst@gmail.com> : (LGPL)
|
||||
ipa_xsampa*.yaml
|
||||
|
||||
潘悟雲, 李龍 : (LGPL)
|
||||
ipa_yunlong*.yaml
|
||||
Tan Kian-ting <chenjt30@gmail.com>, Patrick <ipatrickmac@qq.com>, Gong Chen <chen.sst@gmail.com> : (LGPL)
|
||||
poj*.yaml
|
||||
|
|
|
|||
95
README.md
95
README.md
|
|
@ -1,11 +1,6 @@
|
|||
# 國際音標 /IPA/
|
||||
# rime-poj
|
||||
|
||||
配方: ℞ **ipa**
|
||||
|
||||
[Rime](https://rime.im) 國際音標輸入方案
|
||||
|
||||
通過字母、數字和符號轉寫輸入 [國際音標](https://en.wikipedia.org/wiki/International_Phonetic_Alphabet)。
|
||||
內含「[X-SAMPA](https://en.wikipedia.org/wiki/X-SAMPA)」及「雲龍國際音標」兩種編碼方式。
|
||||
[Rime](https://rime.im) 臺語 (Hô-ló-ōe) 白話字 ( https://en.wikipedia.org/wiki/Pe̍h-ōe-jī ) 輸入方案
|
||||
|
||||
授權條款:見 [LICENSE](LICENSE)
|
||||
|
||||
|
|
@ -13,80 +8,46 @@
|
|||
|
||||
與其他依託Rime的輸入法一樣,國際音標是一組獨立發行的「輸入方案」數據包(或稱「配方」)。
|
||||
|
||||
安裝適合您的設備及操作系統的 [Rime輸入法](https://rime.im/download) 程序後,請按照以下說明,或借助「東風破」配置管理器,或以手動方式安裝、配置國際音標輸入法。
|
||||
安裝適合您的設備及操作系統的 [Rime輸入法](https://rime.im/download) 程序後,請按照以下說明,配置國際音標輸入法。
|
||||
|
||||
### 依配方安裝
|
||||
|
||||
[東風破](https://github.com/rime/plum) 是以「配方」爲單位,自動化安裝、配置輸入法數據包的工具。
|
||||
|
||||
使用該工具,運行環境須具備 `bash`、`curl`、`git` 等命令行程序。
|
||||
Windows系統請參考下文「在Windows系統使用配置管理器」。
|
||||
|
||||
1. 首次使用時,可通過一鍵安裝腳本下載「東風破」(置於當前工作目錄下的`plum`子目錄)及最新的預設方案集(默認配置、拼音輸入方案等)。
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.io/rime-install | bash
|
||||
```
|
||||
2. 下一步、安裝「國際音標」輸入方案。
|
||||
|
||||
``` bash
|
||||
cd plum
|
||||
bash rime-install ipa
|
||||
```
|
||||
|
||||
3. 再一步、根據所需的IPA編碼方式啓用輸入方案。
|
||||
|
||||
- 啓用「X-SAMPA」編碼的IPA輸入方案
|
||||
|
||||
```bash
|
||||
bash rime-install custom:add:schema=ipa_xsampa
|
||||
```
|
||||
|
||||
- 啓用「雲龍IPA」輸入方案
|
||||
|
||||
```bash
|
||||
bash rime-install custom:add:schema=ipa_yunlong
|
||||
```
|
||||
|
||||
4. 完成以上步驟之後,[重新部署](https://github.com/rime/home/wiki/CustomizationGuide#%E9%87%8D%E6%96%B0%E4%BD%88%E7%BD%B2%E7%9A%84%E6%93%8D%E4%BD%9C%E6%96%B9%E6%B3%95) Rime輸入法的工作數據,使配置生效。
|
||||
|
||||
### 在Windows系統使用配置管理器
|
||||
|
||||
「小狼毫」用家可利用內置的 [配置管理器](https://github.com/rime/plum#windows-bootstrap-script) 安裝配方。
|
||||
|
||||
1. 通過開始菜單項或右擊輸入法狀態圖標,打開「輸入法設定\方案選單設定」;
|
||||
按下「獲取更多輸入方案」按鈕。
|
||||
|
||||
2. 在命令行提示後輸入配方 `ipa` 並回車。
|
||||
等待下載配方包、複製文件完成,並重新顯示提示文字。
|
||||
|
||||
3. 關閉命令行窗口,回到「輸入法設定\方案選單設定」介面,勾選國際音標輸入方案。
|
||||
|
||||
4. 按下「中」按鈕,部署數據。
|
||||
|
||||
若該工具不可用,請參考「手動安裝及配置」。
|
||||
|
||||
### 手動安裝及配置
|
||||
|
||||
1. 從 [GitHub代碼庫](https://github.com/rime/rime-ipa) 下載全部源碼的ZIP包,或單獨下載所需的YAML文件。
|
||||
1. 從 [GitHub代碼庫](https://github.com/rime/rime-ipa) 下載全部原始碼的ZIP壓縮檔,或單獨下載所需的YAML文件。
|
||||
|
||||
2. 打開Rime輸入法 [用戶文件夾](https://github.com/rime/home/wiki/UserData),將下載的YAML文件移到此處。
|
||||
|
||||
3. 啓用國際音標輸入方案。
|
||||
|
||||
在用戶文件夾創建或編輯文件 `default.custom.yaml`,將所需輸入方案的ID加入「輸入方案列表」配置項:
|
||||
在用戶文件夾創建或編輯文件 `default.custom.yaml`,將所需輸入方案的ID加入「輸入方案列表」配置選項:
|
||||
|
||||
```yaml
|
||||
patch: # 若文件中已有該行,無須重複
|
||||
schema_list/+: # 同上;"/+" 表示追加輸入方案,若無 "/+" 則表示以下列方案替換默認列表
|
||||
- schema: ipa_xsampa # 按需選配
|
||||
- schema: ipa_yunlong # 按需選配
|
||||
schema_list/+: # 同上;"/+" 表示加添輸入方案,若無 "/+" 則表示以下列方案替換預設列表
|
||||
- schema: ipa_xsampa # 依需選配
|
||||
```
|
||||
|
||||
4. 完成以上步驟之後,[重新部署](https://github.com/rime/home/wiki/CustomizationGuide#%E9%87%8D%E6%96%B0%E4%BD%88%E7%BD%B2%E7%9A%84%E6%93%8D%E4%BD%9C%E6%96%B9%E6%B3%95)Rime輸入法的工作數據,使上述配置改動生效。
|
||||
4. 完成以上步驟之後,[重新deploy](https://github.com/rime/home/wiki/CustomizationGuide#%E9%87%8D%E6%96%B0%E4%BD%88%E7%BD%B2%E7%9A%84%E6%93%8D%E4%BD%9C%E6%96%B9%E6%B3%95)Rime輸入法的工作資料,使上述配置改動生效。
|
||||
|
||||
## 輸入國際音標
|
||||
## 輸入白話字
|
||||
|
||||
在Rime輸入法中按 `F4` 或 ``Control+` `` 打開 [方案選單](https://github.com/rime/home/wiki/UserGuide#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%A1%88%E9%81%B8%E5%96%AE),選取國際音標輸入方案,即可輸入對應編碼獲得音標符號。
|
||||
在Rime輸入法中按 `F4` 或 ``Control+` `` 打開 [方案選單](https://github.com/rime/home/wiki/UserGuide#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%A1%88%E9%81%B8%E5%96%AE),選取白話字輸入方案,即可輸入對應編碼獲得音標符號。
|
||||
|
||||
運指齊按快速鍵 `Control+Shift+1` 在最近使用的兩個輸入方案(如常用的中文輸入法和白話字)之間相互切換。
|
||||
### 聲調符號如何輸入
|
||||
- á:a2
|
||||
- à:a3
|
||||
- â:a5
|
||||
- ã:a6
|
||||
- ā:a7
|
||||
- a̍:a8
|
||||
- a̋:a9
|
||||
|
||||
**注意:調號在添加調符的母音後就要立刻添加,如tia5u,而非tiau5。**
|
||||
### 葫蘆點o͘
|
||||
- 輸入 ou,有聲調則再後面輸入調號
|
||||
|
||||
### 鼻化韻
|
||||
- ⁿ:nn
|
||||
- ᴺ:NN
|
||||
|
||||
運指齊按快捷鍵 `Control+Shift+1` 在最近使用的兩個輸入方案(如常用的中文輸入法和國際音標)之間相互切換。
|
||||
|
|
|
|||
107
poj.dict.yaml
Normal file
107
poj.dict.yaml
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
# Rime dictionary
|
||||
# encoding: utf-8
|
||||
#
|
||||
# Input method in Taigi (Taiwanese Hokkien) POJ
|
||||
#
|
||||
# http://en.wikipedia.org/wiki/Pe̍h-ōe-jī
|
||||
#
|
||||
# Table author:
|
||||
# - Patrick <ipatrickmac@qq.com> (orig X-SAMPA table)
|
||||
# - GONG Chen <chen.sst@gmail.com> (orig X-SAMPA table)
|
||||
# - Tan Kian-ting <chenjt30@gmail.com>
|
||||
#
|
||||
|
||||
---
|
||||
name: poj
|
||||
version: "0.1"
|
||||
sort: original
|
||||
...
|
||||
|
||||
#Lower case symbols
|
||||
á a2
|
||||
à a3
|
||||
â a5
|
||||
ã a6
|
||||
ā a7
|
||||
a̍ a8
|
||||
ă a9
|
||||
é e2
|
||||
è e3
|
||||
ê e5
|
||||
ẽ e6
|
||||
ē e7
|
||||
e̍ e8
|
||||
ĕ e9
|
||||
í i2
|
||||
ì i3
|
||||
î i5
|
||||
ĩ i6
|
||||
ī i7
|
||||
i̍ i8
|
||||
ĭ i9
|
||||
ó o2
|
||||
ò o3
|
||||
ô o5
|
||||
õ o6
|
||||
ō o7
|
||||
o̍ o8
|
||||
ŏ o9
|
||||
o͘ ou
|
||||
ó͘ ou2
|
||||
ò͘ ou3
|
||||
ô͘ ou5
|
||||
õ͘ ou6
|
||||
ō͘ ou7
|
||||
ŏ͘ ou9
|
||||
ú u2
|
||||
ù u3
|
||||
û u5
|
||||
ũ u6
|
||||
ū u7
|
||||
u̍ u8
|
||||
ŭ u9
|
||||
ⁿ nn
|
||||
#Uppercase symbols
|
||||
Á A2
|
||||
À A3
|
||||
 A5
|
||||
à A6
|
||||
Ā A7
|
||||
A̍ A8
|
||||
Ă A9
|
||||
É E2
|
||||
È E3
|
||||
Ê E5
|
||||
Ẽ E6
|
||||
Ē E7
|
||||
E̍ E8
|
||||
Ĕ E9
|
||||
Í I2
|
||||
Ì I3
|
||||
Î I5
|
||||
Ĩ I6
|
||||
Ī I7
|
||||
I̍ I8
|
||||
Ĭ I9
|
||||
Ó O2
|
||||
Ò O3
|
||||
Ô O5
|
||||
Õ O6
|
||||
Ō O7
|
||||
O̍ O8
|
||||
Ŏ O9
|
||||
O͘ OU
|
||||
Ó͘ OU2
|
||||
Ò͘ OU3
|
||||
Ô͘ OU5
|
||||
Õ͘ OU6
|
||||
Ō͘ OU7
|
||||
Ŏ͘ OU9
|
||||
Ú U2
|
||||
Ù U3
|
||||
Û U5
|
||||
Ũ U6
|
||||
Ū U7
|
||||
U̍ U8
|
||||
Ŭ U9
|
||||
ᴺ NN
|
||||
42
poj.schema.yaml
Normal file
42
poj.schema.yaml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# Rime schema
|
||||
# encoding: utf-8
|
||||
|
||||
schema:
|
||||
schema_id: poj
|
||||
name: POJ
|
||||
version: '0.1'
|
||||
author:
|
||||
- Patrick <ipatrickmac@qq.com>
|
||||
- GONG Chen <chen.sst@gmail.com>
|
||||
- Tan Kian-ting <chenjt30@gmail.com>
|
||||
description: |
|
||||
Input method in Taigi (Taiwanese Hokkien) POJ
|
||||
http://en.wikipedia.org/wiki/Pe̍h-ōe-jī
|
||||
|
||||
engine:
|
||||
processors:
|
||||
- key_binder
|
||||
- speller
|
||||
- selector
|
||||
- navigator
|
||||
- express_editor
|
||||
segmentors:
|
||||
- abc_segmentor
|
||||
- fallback_segmentor
|
||||
translators:
|
||||
- table_translator
|
||||
|
||||
speller:
|
||||
alphabet: 'ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba_<>\`~."%'':@{}1234567890&?!^|=-+/'
|
||||
delimiter: ' '
|
||||
auto_select: true
|
||||
|
||||
translator:
|
||||
dictionary: ipa_xsampa
|
||||
enable_sentence: false
|
||||
enable_user_dict: false
|
||||
comment_format:
|
||||
- xform/^~//
|
||||
|
||||
key_binder:
|
||||
import_preset: default
|
||||
Loading…
Reference in a new issue