From 0d0b32bb1e9ec706f13af5add51cfdea0fabb44a Mon Sep 17 00:00:00 2001 From: Tan Kian-ting Date: Wed, 18 Nov 2026 22:45:56 +0800 Subject: [PATCH] initial commit --- AUTHORS | 2 + LICENSE | 165 +++++++++++++++++++++++++++++++++++ README.md | 53 ++++++++++++ poj.dict.yaml | 226 ++++++++++++++++++++++++++++++++++++++++++++++++ poj.schema.yaml | 42 +++++++++ 5 files changed, 488 insertions(+) create mode 100644 AUTHORS create mode 100644 LICENSE create mode 100644 README.md create mode 100644 poj.dict.yaml create mode 100644 poj.schema.yaml diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..d6640d4 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,2 @@ +Yoxem , Patrick , Gong Chen : (LGPL) + poj*.yaml diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..65c5ca8 --- /dev/null +++ b/LICENSE @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/README.md b/README.md new file mode 100644 index 0000000..d0d573b --- /dev/null +++ b/README.md @@ -0,0 +1,53 @@ +# rime-poj + +[Rime](https://rime.im) 臺語 (Hô-ló-ōe) 白話字 ( https://en.wikipedia.org/wiki/Pe̍h-ōe-jī ; POJ ) 輸入方案 + +授權條款:見 [LICENSE](LICENSE) + +## 安裝 + +與其他依託Rime的輸入法一樣,POJ是一組獨立發行的「輸入方案」數據包(或稱「配方」)。 + +安裝適合您的設備及操作系統的 [Rime輸入法](https://rime.im/download) 程序後,請按照以下說明,配置POJ輸入法。 + + +### 手動安裝及配置 + +1. 從 [GitHub代碼庫](https://github.com/rime/rime-ipa) 下載全部原始碼的ZIP壓縮檔,或單獨下載所需的YAML文件。 + +2. 打開Rime輸入法 [用戶文件夾](https://github.com/rime/home/wiki/UserData),將下載的YAML文件移到此處。 + +3. 啓用POJ輸入方案。 + + 在用戶文件夾創建或編輯文件 `default.custom.yaml`,將所需輸入方案的ID加入「輸入方案列表」配置選項: + + ```yaml + patch: # 若文件中已有該行,無須重複 + schema_list/+: # 同上;"/+" 表示加添輸入方案,若無 "/+" 則表示以下列方案替換預設列表 + - schema: poj # 依需選配 + ``` + +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),選取POJ(白話字)輸入方案,即可輸入對應編碼獲得音標符號。 + +運指齊按快速鍵 `Control+Shift+1` 在最近使用的兩個輸入方案(如常用的中文輸入法和白話字)之間相互切換。 +### 聲調符號如何輸入 + - á:a2 + - à:a3 + - â:a5 + - ã:a6 + - ā:a7 + - a̍:a8 + - ă:a9 + +**注意:調號在添加調符的母音後就要立刻添加,如tia5u,而非tiau5。** +### 葫蘆點o͘ + - 輸入 ou,有聲調則再於後面輸入調號,比如ou2 + +### 鼻化韻 + - ⁿ:nn + - ᴺ:NN + diff --git a/poj.dict.yaml b/poj.dict.yaml new file mode 100644 index 0000000..747c8e4 --- /dev/null +++ b/poj.dict.yaml @@ -0,0 +1,226 @@ +# Rime dictionary +# encoding: utf-8 +# +# Input method in Taigi (Taiwanese Hokkien) POJ +# +# http://en.wikipedia.org/wiki/Pe̍h-ōe-jī +# +# Table author: +# - Patrick (orig X-SAMPA table) +# - GONG Chen (orig X-SAMPA table) +# - Tan Kian-ting +# + +--- +name: poj +version: "0.1" +sort: original +... + +#Lower case vowels +a a +á a2 +à a3 +â a5 +ã a6 +ā a7 +a̍ a8 +ă a9 +e e +é e2 +è e3 +ê e5 +ẽ e6 +ē e7 +e̍ e8 +ĕ e9 +i i +í i2 +ì i3 +î i5 +ĩ i6 +ī i7 +i̍ i8 +ĭ i9 +o o +ó o2 +ò o3 +ô o5 +õ o6 +ō o7 +o̍ o8 +ŏ o9 +o͘ ou +ó͘ ou2 +ò͘ ou3 +ô͘ ou5 +õ͘ ou6 +ō͘ ou7 +ŏ͘ ou9 +u u +ú u2 +ù u3 +û u5 +ũ u6 +ū u7 +u̍ u8 +ŭ u9 +ⁿ nn +#Uppercase vowels +A A +Á A2 +À A3 +Â A5 +Ã A6 +Ā A7 +A̍ A8 +Ă A9 +E E +É E2 +È E3 +Ê E5 +Ẽ E6 +Ē E7 +E̍ E8 +Ĕ E9 +I I +Í I2 +Ì I3 +Î I5 +Ĩ I6 +Ī I7 +I̍ I8 +Ĭ I9 +O O +Ó O2 +Ò O3 +Ô O5 +Õ O6 +Ō O7 +O̍ O8 +Ŏ O9 +O͘ OU +Ó͘ OU2 +Ò͘ OU3 +Ô͘ OU5 +Õ͘ OU6 +Ō͘ OU7 +Ŏ͘ OU9 +U U +Ú U2 +Ù U3 +Û U5 +Ũ U6 +Ū U7 +U̍ U8 +Ŭ U9 +ᴺ NN +# LOWER CASE M & N +ḿ m2 +m̀ m3 +m̂ m5 +m̃ m6 +m̄ m7 +m̆ m9 +ń n2 +ǹ n3 +n̂ n5 +ñ n6 +n̄ n7 +n̆ n9 +# UPPER CASE M & N +Ḿ M2 +M̀ M3 +M̂ M5 +M̃ M6 +M̄ M7 +M̆ M9 +Ń N2 +Ǹ N3 +N̂ N5 +Ñ N6 +N̄ N7 +N̆ N9 +# CONSONANTS +b b +c c +d d +f f +g g +h h +j j +k k +l l +m m +n n +p p +q q +r r +s s +t t +v v +w w +x x +y y +z z +B B +C C +D D +F F +G G +H H +J J +K K +L L +M M +N N +P P +Q Q +R R +S S +T T +V V +W W +X X +Y Y +Z Z +# PUNCTUATION MARKS +. . +, , +: : +; ; +! ! +? ? +- - +_ _ +< < +> > +\ \ +` ` +~ ~ +" " +% % +' ' +: : +@ @ +{ { +} } +1 1 +2 2 +3 3 +4 4 +5 5 +6 6 +7 7 +8 8 +9 9 +0 0 +& & +? ? +! ! +^ ^ +| | += = +- - ++ + +/ / diff --git a/poj.schema.yaml b/poj.schema.yaml new file mode 100644 index 0000000..590b6b8 --- /dev/null +++ b/poj.schema.yaml @@ -0,0 +1,42 @@ +# Rime schema +# encoding: utf-8 + +schema: + schema_id: poj + name: POJ + version: '0.1' + author: + - Patrick + - GONG Chen + - Tan Kian-ting + 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: poj + enable_sentence: false + enable_user_dict: false + comment_format: + - xform/^~// + +key_binder: + import_preset: default