├── README.md ├── README_en.md ├── tangutcjkk.dict.yaml └── tangutcjkk.schema.yaml /README.md: -------------------------------------------------------------------------------- 1 | # 一種參考倉頡輸入法設計的西夏文形碼輸入法 2 | 3 | [English Version](README_en.md) 4 | 5 | --- 6 | 7 | 輸入方案練習工具 (practice tool):https://vistudium.top/tangut/ 8 | 9 | --- 10 | 11 | 日本學者河崎啓剛(KAWASAKI Keigo)於 2016 年在其學術彙報《[A suggestion for encoding Tangut glyphs](https://drive.google.com/file/d/1VYDGptwJ2uCF-xjuD0qT413YrMr9XpHv/view?usp=sharing)》中提出了一種高效的西夏文形碼輸入方案。這種方案參考倉頡輸入法設計,所以叫做「西夏文倉頡輸入法」。但該方案的面貌同倉頡輸入法有較大的不同,其輔助字形表如下圖所示: 12 | 13 | ![image](https://user-images.githubusercontent.com/32562298/159518779-70efdbf9-414e-47c8-8518-983971bcccca.png) 14 | 15 | 講義的中譯本見此:[一項關於編碼西夏文的提議——西夏文倉頡輸入法開發報告](https://drive.google.com/file/d/19bWOvPcwu5YjQuGDLxOyabDqPyQNfFvy/view?usp=sharing)。可作爲輸入法的說明書進行參照。 16 | 17 | - 本方案的優勢在於:重碼率極低,在熟諳輸入方式之後能夠達到極高的輸入速度。 18 | - 本方案的劣勢在於:學習成本過大。在處理模糊不清的西夏文原典時顯得力不從心。 19 | 20 | 本倉庫從河崎氏講義的檔案中攫取出整個輸入法編碼碼表,導入 RIME 輸入方案中。原方案中未包含的 Unicode 西夏文新加字以及西夏文部件均已在本 RIME 輸入方案中補足。撳 P 鍵即可輸入部件。 21 | 22 | **原方案中包含錯誤編碼,如有發現,歡迎在 [Issues](https://github.com/Hulenkius/rime_tangutcjkk/issues/new) 提出,我將不定期更正。** 23 | 24 | 本方案支持全平臺的西夏文輸入。 25 | 26 | - 點擊 [此處](https://codeload.github.com/Hulenkius/rime_tangutcjkk/zip/refs/heads/main) 下載本方案的檔案。 27 | - 參照 [此處](http://blog.ccamc.org/?p=243) 在對應的平臺上安裝 [RIME 輸入法](http://rime.im/) 並配置方案。安卓端可參考 [英文版 README](README_en.md)。 28 | 29 | # 使用範例 30 | 31 | ![weasel](https://user-images.githubusercontent.com/32562298/159846588-dff4a21f-b3cf-4a57-8e80-0aa91f692ceb.gif) 32 | -------------------------------------------------------------------------------- /README_en.md: -------------------------------------------------------------------------------- 1 | # A Glyph-based Input Method for Tangut based on Cangjie 2 | 3 | > practice tool:https://vistudium.top/tangut/ 4 | 5 | Japanese scholar KAWASAKI Keigo (河崎 啓剛) proposed a highly effective Tangut input method in his report *[A suggestion for encoding Tangut glyphs](https://drive.google.com/file/d/1VYDGptwJ2uCF-xjuD0qT413YrMr9XpHv/view?usp=sharing)* in 2016. Now this scheme is introduced into RIME, at the purpose of improving the convenience of inputting Tangut. 6 | 7 | My personal works done were: [Chinese translation](https://drive.google.com/file/d/19bWOvPcwu5YjQuGDLxOyabDqPyQNfFvy/view?usp=sharing) and proofreading of the report, RIME scheme importing, completion of all Tangut glyphs and components in Unicode (press P to input the components). 8 | 9 | **WARNING: THERE ARE SOME WRONGLY ENCODED CHARACTORS TO BE PROOFREADED. THE COMPLETE CORRECTNESS IS NOT GUARANTEED.** Therefore, if wrong codes were found, an [Issue](https://github.com/Hulenkius/rime_tangutcjkk/issues/new) would be welcome. 10 | 11 | This method is slightly different from the original Cangjie. Details below: 12 | 13 | ![image](https://user-images.githubusercontent.com/32562298/159518779-70efdbf9-414e-47c8-8518-983971bcccca.png) 14 | 15 | # Installation 16 | 17 | **!! Make sure you have the latest files !!** 18 | 19 | ## Windows (Weasel 小狼毫) 20 | 21 | - Install [RIME on Windows](https://rime.im/). 22 | - Put `tangutcjkk.schema.yaml` and `tangutcjkk.dict.yaml` into `YOUR_RIME_INSTALLATION_FOLDER/data` 23 | - Switch to RIME (小狼毫), right-click on the "中" icon, and click "輸入法設定" (IME Settings). 24 | - Tick "Tangut Cangjie", then click "中" (OK) twice. 25 | - Press Ctrl+` or press F4 and switch to "Tangut Cangjie" 26 | - The font has been pre-set. If you want to change it, just open `tangutcjkk.schema.yaml` and replace the existing setting in line 70 with the name of the font(s) you installed. Then right-click on the "中" icon in your taskbar and click "重新部署". 27 | 28 | ## Android (TRIME 同文輸入法) 29 | 30 | - Install [RIME on Android](https://github.com/osfans/trime/releases) and enable it in your Android system. 31 | - Put [`default.yaml`](https://drive.google.com/file/d/12vy_CjO82s3EVE0P9DOu-g98f62zMq5X/view?usp=sharing), `tangutcjkk.schema.yaml` and `tangutcjkk.dict.yaml` into your TRIME user folder (`/sdcard/rime` as default). 32 | - Create a folder `fonts` in the user folder. 33 | - Put your favourite Tangut font (in .ttf format) into `fonts` and rename it to `Tangut.ttf`. (e.g. [Noto Serif Tangut](https://drive.google.com/file/d/1KYDYfZc5d8hqFGhgTFRshKuArbKQOC-U/view?usp=sharing)) 34 | - Launch TRIME, enable the scheme, and enjoy. 35 | 36 | # Screenshots 37 | 38 | Windows: 39 | 40 | ![weasel](https://user-images.githubusercontent.com/32562298/159846588-dff4a21f-b3cf-4a57-8e80-0aa91f692ceb.gif) 41 | 42 | Android: 43 | 44 | ![trime](https://user-images.githubusercontent.com/32562298/162569642-1d994ca4-c8c0-4f8a-89d2-603f9904ca89.gif) 45 | -------------------------------------------------------------------------------- /tangutcjkk.schema.yaml: -------------------------------------------------------------------------------- 1 | # Rime schema settings 2 | # encoding: utf-8 3 | 4 | schema: 5 | name: Tangut Cangjie 6 | schema_id: tangutcjkk 7 | version: "2023.07.14" 8 | author: 9 | - KAWASAKI Keigo 10 | - hulenkius 11 | - Xiaoxuan You 12 | description: | 13 | A Glyph-based Input Method for Tangut based on Cangjie 14 | 15 | switches: 16 | - name: ascii_mode 17 | reset: 0 18 | states: [ 西夏, 西文 ] 19 | - name: full_shape 20 | states: [ 半角, 全角 ] 21 | - name: ascii_punct 22 | states: [ 。,, ., ] 23 | 24 | 25 | engine: 26 | processors: 27 | - ascii_composer 28 | - recognizer 29 | - key_binder 30 | - speller 31 | - punctuator 32 | - selector 33 | - navigator 34 | - express_editor 35 | segmentors: 36 | - ascii_segmentor 37 | - matcher 38 | - abc_segmentor 39 | - punct_segmentor 40 | - fallback_segmentor 41 | translators: 42 | - punct_translator 43 | - reverse_lookup_translator 44 | - table_translator 45 | - script_translator 46 | filters: 47 | - uniquifier 48 | 49 | speller: 50 | alphabet: zyxwvutsrqponmlkjihgfedcba~ 51 | algebra: 52 | - abbrev/^([a-z]).+$/$1/ 53 | 54 | translator: 55 | dictionary: tangutcjkk 56 | enable_sentence: true 57 | enable_encoder: true 58 | encode_commit_history: true 59 | 60 | punctuator: 61 | import_preset: symbols 62 | 63 | key_binder: 64 | import_preset: default 65 | 66 | recognizer: 67 | import_preset: default 68 | 69 | style: 70 | font_face: "唐兀銀川, Tangut Yinchuan, Noto Serif Tangut, Tangut N4694, new Tangut, Tangut TWU, Mojikyo Tangut" 71 | hanb_font: Tangut.ttf 72 | font_point: 25 --------------------------------------------------------------------------------