├── README.md ├── xhup.schema.yaml ├── xhup_express.schema.yaml └── xhup_fluency.schema.yaml /README.md: -------------------------------------------------------------------------------- 1 | # rime-xhup 2 | Rime 小鹤双拼音形输入方案,需要使用最新版的 librime(1.3.2+)。 3 | 4 | ## 特性 5 | 6 | - 三种输入方式: 7 | 8 | - xhup 小鹤音形 9 | 10 | 四键直接上屏,类似小鹤双拼飞扬版 11 | 12 | - xhup\_express 小鹤音形·连打 13 | 14 | 类似朙月拼音,使用 `'` 或 `;` 分词,空格上屏 15 | 16 | - xhup\_fluency 小鹤音形·语句流 17 | 18 | 语句流输入方式,使用 `'`、`;` 或空格分词,空格或回车上屏 19 | 20 | - 简入繁出 21 | 22 | - 类似朙月拼音的特殊符号输入 23 | 24 | - 使用 `oi` 进行反查 25 | 26 | - 「小鹤音形·连打」和「小鹤音形·语句流」支持造词、调频 27 | 28 | ## 文件说明 29 | 30 | `xhup.schema.yaml`:「小鹤音形」输入方案 31 | 32 | `xhup_express.schema.yaml`:「小鹤音形·连打」输入方案 33 | 34 | `xhup_fluency.schema.yaml`:「小鹤音形·语句流」输入方案 35 | 36 | ## 使用方法 37 | 38 | 1. 将 yaml 文件拷贝至 Rime 配置目录内。 39 | 2. 从[小鹤双拼官方](http://flypy.ys168.com/)下载「小鹤音形Rime平台for Linux」,并将其中的 bin 文件拷贝至 Rime 的 build 目录内。 40 | 41 | ## 许可证 42 | 43 | 所有文件均发布到公共领域。 44 | -------------------------------------------------------------------------------- /xhup.schema.yaml: -------------------------------------------------------------------------------- 1 | # Rime schema 2 | # encoding: utf-8 3 | 4 | schema: 5 | schema_id: xhup 6 | name: 小鶴音形 7 | version: "2018.9.18.0" 8 | author: 9 | - xhup by 鶴 10 | - Rime schema by Zhaosheng Pan 11 | description: | 12 | 小鶴雙拼音形方案 13 | 四键自动上屏 14 | dependencies: 15 | - flypydz 16 | 17 | switches: 18 | - name: ascii_mode 19 | reset: 0 20 | states: [ 中文, 西文 ] 21 | - name: full_shape 22 | states: [ 半角, 全角 ] 23 | - name: simplification 24 | # reset: 1 25 | states: [ 汉字, 漢字 ] 26 | - name: ascii_punct 27 | states: [ 。,, ., ] 28 | 29 | engine: 30 | processors: 31 | - ascii_composer 32 | - recognizer 33 | - key_binder 34 | - speller 35 | - punctuator 36 | - selector 37 | - navigator 38 | - express_editor 39 | segmentors: 40 | - ascii_segmentor 41 | - matcher 42 | - abc_segmentor 43 | - punct_segmentor 44 | - fallback_segmentor 45 | translators: 46 | - punct_translator 47 | - reverse_lookup_translator 48 | - table_translator 49 | filters: 50 | - simplifier 51 | - uniquifier 52 | 53 | speller: 54 | alphabet: 'zyxwvutsrqponmlkjihgfedcba#' 55 | #initials: ';' 56 | finals: '#' 57 | delimiter: " '" 58 | max_code_length: 4 59 | auto_select: true 60 | auto_select_pattern: ^;.$|^\w{4}$ 61 | auto_select_unique_candidate: true 62 | auto_clear: max_length 63 | 64 | translator: 65 | dictionary: flypy 66 | enable_charset_filter: false 67 | enable_encoder: false 68 | enable_sentence: false 69 | encode_commit_history: false 70 | enable_completion: false 71 | enable_user_dict: false 72 | max_phrase_length: 14 73 | disable_user_dict_for_patterns: 74 | - "^z.*$" 75 | - "^oi.*$" 76 | 77 | reverse_lookup: 78 | dictionary: flypydz 79 | prefix: "oi" 80 | suffix: "'" 81 | tips: 〔拼音〕 82 | preedit_format: 83 | - xform/([nl])v/$1ü/ 84 | - xform/([nl])ue/$1üe/ 85 | - xform/([jqxy])v/$1u/ 86 | 87 | simplifier: 88 | option_name: simplification 89 | opencc_config: s2t.json 90 | 91 | punctuator: 92 | import_preset: symbols 93 | 94 | key_binder: 95 | import_preset: default 96 | bindings: 97 | - {accept: bracketleft, send: Page_Up, when: has_menu} # [上翻页 98 | - {accept: bracketright, send: Page_Down, when: has_menu} # ]下翻页 99 | - {accept: ";", send: 2, when: composing} 100 | - {accept: comma, send: 2, when: composing} 101 | - {accept: "Tab", send: Escape, when: composing} 102 | - {accept: Release+semicolon, send: semicolon, when: composing} 103 | - {accept: Release+comma, send: comma, when: composing} 104 | 105 | recognizer: 106 | import_preset: default 107 | patterns: 108 | punct: "^/([0-9]0?|[a-z]+)$" 109 | reverse_lookup: "oi[a-z]*'?$" 110 | -------------------------------------------------------------------------------- /xhup_express.schema.yaml: -------------------------------------------------------------------------------- 1 | # Rime schema 2 | # encoding: utf-8 3 | 4 | schema: 5 | schema_id: xhup_express 6 | name: 小鶴音形·連打 7 | version: "2018.9.18.0" 8 | author: 9 | - xhup by 鶴 10 | - Rime schema by Zhaosheng Pan 11 | description: | 12 | 小鶴雙拼音形方案·連打錄入! 13 | 以分號或單引號分詞、標點或空格上屏。 14 | dependencies: 15 | - flypydz 16 | 17 | switches: 18 | - name: ascii_mode 19 | reset: 0 20 | states: [ 中文, 西文 ] 21 | - name: full_shape 22 | states: [ 半角, 全角 ] 23 | - name: simplification 24 | # reset: 1 25 | states: [ 汉字, 漢字 ] 26 | - name: ascii_punct 27 | states: [ 。,, ., ] 28 | 29 | engine: 30 | processors: 31 | - ascii_composer 32 | - recognizer 33 | - key_binder 34 | - speller 35 | - punctuator 36 | - selector 37 | - navigator 38 | - express_editor 39 | segmentors: 40 | - ascii_segmentor 41 | - matcher 42 | - abc_segmentor 43 | - punct_segmentor 44 | - fallback_segmentor 45 | translators: 46 | - punct_translator 47 | - reverse_lookup_translator 48 | - table_translator 49 | filters: 50 | - simplifier 51 | - uniquifier 52 | 53 | speller: 54 | alphabet: zyxwvutsrqponmlkjihgfedcba 55 | delimiter: " ;'" 56 | 57 | translator: 58 | dictionary: flypy 59 | enable_charset_filter: true 60 | enable_encoder: true 61 | enable_sentence: true 62 | encode_commit_history: true 63 | enable_completion: false 64 | enable_user_dict: true 65 | max_phrase_length: 14 66 | disable_user_dict_for_patterns: 67 | - "^z.*$" 68 | - "^oi.*$" 69 | 70 | reverse_lookup: 71 | dictionary: flypydz 72 | prefix: "oi" 73 | suffix: "'" 74 | tips: 〔拼音〕 75 | preedit_format: 76 | - xform/([nl])v/$1ü/ 77 | - xform/([nl])ue/$1üe/ 78 | - xform/([jqxy])v/$1u/ 79 | 80 | simplifier: 81 | option_name: simplification 82 | opencc_config: s2t.json 83 | 84 | punctuator: 85 | import_preset: symbols 86 | 87 | key_binder: 88 | import_preset: default 89 | 90 | recognizer: 91 | import_preset: default 92 | patterns: 93 | punct: "^/([0-9]0?|[a-z]+)$" 94 | reverse_lookup: "oi[a-z]*'?$" 95 | -------------------------------------------------------------------------------- /xhup_fluency.schema.yaml: -------------------------------------------------------------------------------- 1 | # Rime schema 2 | # encoding: utf-8 3 | 4 | schema: 5 | schema_id: xhup_fluency 6 | name: 小鶴音形·語句流 7 | version: "2018.9.18.0" 8 | author: 9 | - xhup by 鶴 10 | - Rime schema by Zhaosheng Pan 11 | description: | 12 | 小鶴雙拼音形方案·語句流錄入! 13 | 以空格分詞、標點或回車上屏。 14 | dependencies: 15 | - flypydz 16 | 17 | switches: 18 | - name: ascii_mode 19 | reset: 0 20 | states: [ 中文, 西文 ] 21 | - name: full_shape 22 | states: [ 半角, 全角 ] 23 | - name: simplification 24 | # reset: 1 25 | states: [ 汉字, 漢字 ] 26 | - name: ascii_punct 27 | states: [ 。,, ., ] 28 | 29 | engine: 30 | processors: 31 | - ascii_composer 32 | - recognizer 33 | - key_binder 34 | - speller 35 | - punctuator 36 | - selector 37 | - navigator 38 | - fluency_editor 39 | segmentors: 40 | - ascii_segmentor 41 | - matcher 42 | - abc_segmentor 43 | - punct_segmentor 44 | - fallback_segmentor 45 | translators: 46 | - punct_translator 47 | - reverse_lookup_translator 48 | - table_translator 49 | filters: 50 | - simplifier 51 | - uniquifier 52 | 53 | speller: 54 | alphabet: zyxwvutsrqponmlkjihgfedcba 55 | delimiter: " ;'" 56 | 57 | translator: 58 | dictionary: flypy 59 | enable_charset_filter: true 60 | enable_encoder: true 61 | enable_sentence: true 62 | encode_commit_history: true 63 | enable_completion: false 64 | enable_user_dict: true 65 | max_phrase_length: 14 66 | disable_user_dict_for_patterns: 67 | - "^z.*$" 68 | - "^oi.*$" 69 | 70 | reverse_lookup: 71 | dictionary: flypydz 72 | prefix: "oi" 73 | suffix: "'" 74 | tips: 〔拼音〕 75 | preedit_format: 76 | - xform/([nl])v/$1ü/ 77 | - xform/([nl])ue/$1üe/ 78 | - xform/([jqxy])v/$1u/ 79 | 80 | simplifier: 81 | option_name: simplification 82 | opencc_config: s2t.json 83 | 84 | punctuator: 85 | import_preset: symbols 86 | 87 | key_binder: 88 | import_preset: default 89 | 90 | recognizer: 91 | import_preset: default 92 | patterns: 93 | punct: "^/([0-9]0?|[a-z]+)$" 94 | reverse_lookup: "oi[a-z]*'?$" 95 | --------------------------------------------------------------------------------