|
| 1 | +# Rime schema settings |
| 2 | +# encoding: utf-8 |
| 3 | +# Copyright (C) Mirtle <mirtle.cn@outlook.com> |
| 4 | +# License: CC BY-SA 4.0 DEED (https://creativecommons.org/licenses/by-sa/4.0/) |
| 5 | + |
| 6 | +schema: |
| 7 | + schema_id: radical_pinyin_flypy |
| 8 | + name: "偏旁部件拆字(小鹤)" |
| 9 | + version: "1.02" |
| 10 | + author: Mirtle |
| 11 | + description: | |
| 12 | + 用拼音按顺序拼出偏旁部件,以输入汉字。 |
| 13 | + 码表:開放詞典 / henrysting / Mirtle |
| 14 | + 注音、校对、方案:Mirtle |
| 15 | + 报错:<https://github.com/mirtlecn/rime_radical_pinyin> |
| 16 | +
|
| 17 | +engine: |
| 18 | + processors: |
| 19 | + - ascii_composer |
| 20 | + - recognizer |
| 21 | + - key_binder |
| 22 | + - speller |
| 23 | + - punctuator |
| 24 | + - selector |
| 25 | + - navigator |
| 26 | + - express_editor |
| 27 | + segmentors: |
| 28 | + - ascii_segmentor |
| 29 | + - matcher |
| 30 | + - abc_segmentor |
| 31 | + - punct_segmentor |
| 32 | + - fallback_segmentor |
| 33 | + translators: |
| 34 | + - echo_translator |
| 35 | + - punct_translator |
| 36 | + - table_translator |
| 37 | + |
| 38 | +speller: |
| 39 | + alphabet: "abcdefghijklmnopqrstuvwxyz;" |
| 40 | + delimiter: " '" |
| 41 | + algebra: |
| 42 | + # 根据当前所用拼音方案选择 __include 的值 |
| 43 | + # __include: algebra_pinyin # 全拼 |
| 44 | + # __include: algebra_double_pinyin # 自然码双拼 |
| 45 | + __include: algebra_flypy # 小鹤双拼 |
| 46 | + # __include: algebra_mspy # 微软双拼 |
| 47 | + # __include: algebra_sogou # 搜狗双拼 |
| 48 | + # __include: algebra_abc # 智能ABC双拼 |
| 49 | + # __include: algebra_ziguang # 紫光双拼 |
| 50 | + |
| 51 | +translator: |
| 52 | + dictionary: radical_pinyin |
| 53 | + enable_user_dict: false |
| 54 | + prism: flypy_radical_pinyin |
| 55 | + |
| 56 | +punctuator: |
| 57 | + import_preset: default |
| 58 | + |
| 59 | +key_binder: |
| 60 | + import_preset: default |
| 61 | + |
| 62 | +recognizer: |
| 63 | + import_preset: default |
| 64 | + |
| 65 | +algebra_pinyin: |
| 66 | + - xform/'// |
| 67 | + - derive/^([nl])ue$/$1ve/ |
| 68 | + - derive/'([nl])ue$/'$1ve/ |
| 69 | + - derive/^([jqxy])u/$1v/ |
| 70 | + - derive/'([jqxy])u/'$1v/ |
| 71 | + |
| 72 | +algebra_double_pinyin: |
| 73 | + - derive/^([jqxy])u(?=^|$|')/$1v/ |
| 74 | + - derive/'([jqxy])u(?=^|$|')/'$1v/ |
| 75 | + - derive/^([aoe])([ioun])(?=^|$|')/$1$1$2/ |
| 76 | + - derive/'([aoe])([ioun])(?=^|$|')/'$1$1$2/ |
| 77 | + - xform/^([aoe])(ng)?(?=^|$|')/$1$1$2/ |
| 78 | + - xform/'([aoe])(ng)?(?=^|$|')/'$1$1$2/ |
| 79 | + - xform/iu(?=^|$|')/<q>/ |
| 80 | + - xform/[iu]a(?=^|$|')/<w>/ |
| 81 | + - xform/[uv]an(?=^|$|')/<r>/ |
| 82 | + - xform/[uv]e(?=^|$|')/<t>/ |
| 83 | + - xform/ing(?=^|$|')|uai(?=^|$|')/<y>/ |
| 84 | + - xform/^sh/<u>/ |
| 85 | + - xform/^ch/<i>/ |
| 86 | + - xform/^zh/<v>/ |
| 87 | + - xform/'sh/'<u>/ |
| 88 | + - xform/'ch/'<i>/ |
| 89 | + - xform/'zh/'<v>/ |
| 90 | + - xform/uo(?=^|$|')/<o>/ |
| 91 | + - xform/[uv]n(?=^|$|')/<p>/ |
| 92 | + - xform/([a-z>])i?ong(?=^|$|')/$1<s>/ |
| 93 | + - xform/[iu]ang(?=^|$|')/<d>/ |
| 94 | + - xform/([a-z>])en(?=^|$|')/$1<f>/ |
| 95 | + - xform/([a-z>])eng(?=^|$|')/$1<g>/ |
| 96 | + - xform/([a-z>])ang(?=^|$|')/$1<h>/ |
| 97 | + - xform/ian(?=^|$|')/<m>/ |
| 98 | + - xform/([a-z>])an(?=^|$|')/$1<j>/ |
| 99 | + - xform/iao(?=^|$|')/<c>/ |
| 100 | + - xform/([a-z>])ao(?=^|$|')/$1<k>/ |
| 101 | + - xform/([a-z>])ai(?=^|$|')/$1<l>/ |
| 102 | + - xform/([a-z>])ei(?=^|$|')/$1<z>/ |
| 103 | + - xform/ie(?=^|$|')/<x>/ |
| 104 | + - xform/ui(?=^|$|')/<v>/ |
| 105 | + - xform/([a-z>])ou(?=^|$|')/$1<b>/ |
| 106 | + - xform/in(?=^|$|')/<n>/ |
| 107 | + - xform/'|<|>// |
| 108 | + |
| 109 | +algebra_flypy: |
| 110 | + - derive/^([jqxy])u(?=^|$|')/$1v/ |
| 111 | + - derive/'([jqxy])u(?=^|$|')/'$1v/ |
| 112 | + - derive/^([aoe])([ioun])(?=^|$|')/$1$1$2/ |
| 113 | + - derive/'([aoe])([ioun])(?=^|$|')/'$1$1$2/ |
| 114 | + - xform/^([aoe])(ng)?(?=^|$|')/$1$1$2/ |
| 115 | + - xform/'([aoe])(ng)?(?=^|$|')/'$1$1$2/ |
| 116 | + - xform/iu(?=^|$|')/<q>/ |
| 117 | + - xform/(.)ei(?=^|$|')/$1<w>/ |
| 118 | + - xform/uan(?=^|$|')/<r>/ |
| 119 | + - xform/[uv]e(?=^|$|')/<t>/ |
| 120 | + - xform/un(?=^|$|')/<y>/ |
| 121 | + - xform/^sh/<u>/ |
| 122 | + - xform/^ch/<i>/ |
| 123 | + - xform/^zh/<v>/ |
| 124 | + - xform/'sh/'<u>/ |
| 125 | + - xform/'ch/'<i>/ |
| 126 | + - xform/'zh/'<v>/ |
| 127 | + - xform/uo(?=^|$|')/<o>/ |
| 128 | + - xform/ie(?=^|$|')/<p>/ |
| 129 | + - xform/([a-z>])i?ong(?=^|$|')/$1<s>/ |
| 130 | + - xform/ing(?=^|$|')|uai(?=^|$|')/<k>/ |
| 131 | + - xform/([a-z>])ai(?=^|$|')/$1<d>/ |
| 132 | + - xform/([a-z>])en(?=^|$|')/$1<f>/ |
| 133 | + - xform/([a-z>])eng(?=^|$|')/$1<g>/ |
| 134 | + - xform/[iu]ang(?=^|$|')/<l>/ |
| 135 | + - xform/([a-z>])ang(?=^|$|')/$1<h>/ |
| 136 | + - xform/ian(?=^|$|')/<m>/ |
| 137 | + - xform/([a-z>])an(?=^|$|')/$1<j>/ |
| 138 | + - xform/([a-z>])ou(?=^|$|')/$1<z>/ |
| 139 | + - xform/[iu]a(?=^|$|')/<x>/ |
| 140 | + - xform/iao(?=^|$|')/<n>/ |
| 141 | + - xform/([a-z>])ao(?=^|$|')/$1<c>/ |
| 142 | + - xform/ui(?=^|$|')/<v>/ |
| 143 | + - xform/in(?=^|$|')/<b>/ |
| 144 | + - xform/'|<|>// |
| 145 | + |
| 146 | +algebra_mspy: |
| 147 | + - derive/^([jqxy])u(?=^|$|')/$1v/ |
| 148 | + - derive/'([jqxy])u(?=^|$|')/'$1v/ |
| 149 | + - derive/^([aoe].*)(?=^|$|')/o$1/ |
| 150 | + - derive/'([aoe].*)(?=^|$|')/'o$1/ |
| 151 | + - xform/^([ae])(.*)(?=^|$|')/$1$1$2/ |
| 152 | + - xform/'([ae])(.*)(?=^|$|')/'$1$1$2/ |
| 153 | + - xform/iu(?=^|$|')/<q>/ |
| 154 | + - xform/[iu]a(?=^|$|')/<w>/ |
| 155 | + - xform/er(?=^|$|')|[uv]an(?=^|$|')/<r>/ |
| 156 | + - xform/[uv]e(?=^|$|')/<t>/ |
| 157 | + - xform/v(?=^|$|')|uai(?=^|$|')/<y>/ |
| 158 | + - xform/^sh/<u>/ |
| 159 | + - xform/^ch/<i>/ |
| 160 | + - xform/^zh/<v>/ |
| 161 | + - xform/'sh/'<u>/ |
| 162 | + - xform/'ch/'<i>/ |
| 163 | + - xform/'zh/'<v>/ |
| 164 | + - xform/uo(?=^|$|')/<o>/ |
| 165 | + - xform/[uv]n(?=^|$|')/<p>/ |
| 166 | + - xform/([a-z>])i?ong(?=^|$|')/$1<s>/ |
| 167 | + - xform/[iu]ang(?=^|$|')/<d>/ |
| 168 | + - xform/([a-z>])en(?=^|$|')/$1<f>/ |
| 169 | + - xform/([a-z>])eng(?=^|$|')/$1<g>/ |
| 170 | + - xform/([a-z>])ang(?=^|$|')/$1<h>/ |
| 171 | + - xform/ian(?=^|$|')/<m>/ |
| 172 | + - xform/([a-z>])an(?=^|$|')/$1<j>/ |
| 173 | + - xform/iao(?=^|$|')/<c>/ |
| 174 | + - xform/([a-z>])ao(?=^|$|')/$1<k>/ |
| 175 | + - xform/([a-z>])ai(?=^|$|')/$1<l>/ |
| 176 | + - xform/([a-z>])ei(?=^|$|')/$1<z>/ |
| 177 | + - xform/ie(?=^|$|')/<x>/ |
| 178 | + - xform/ui(?=^|$|')/<v>/ |
| 179 | + - derive/<t>(?=^|$|')/<v>/ |
| 180 | + - xform/([a-z>])ou(?=^|$|')/$1<b>/ |
| 181 | + - xform/in(?=^|$|')/<n>/ |
| 182 | + - xform/ing(?=^|$|')/;/ |
| 183 | + - xform/'|<|>// |
| 184 | + |
| 185 | +algebra_sogou: |
| 186 | + - derive/^([jqxy])u(?=^|$|')/$1v/ |
| 187 | + - derive/'([jqxy])u(?=^|$|')/'$1v/ |
| 188 | + - derive/^([aoe].*)(?=^|$|')/o$1/ |
| 189 | + - derive/'([aoe].*)(?=^|$|')/'o$1/ |
| 190 | + - xform/^([ae])(.*)(?=^|$|')/$1$1$2/ |
| 191 | + - xform/'([ae])(.*)(?=^|$|')/'$1$1$2/ |
| 192 | + - xform/iu(?=^|$|')/<q>/ |
| 193 | + - xform/[iu]a(?=^|$|')/<w>/ |
| 194 | + - xform/er(?=^|$|')|[uv]an(?=^|$|')/<r>/ |
| 195 | + - xform/[uv]e(?=^|$|')/<t>/ |
| 196 | + - xform/v(?=^|$|')|uai(?=^|$|')/<y>/ |
| 197 | + - xform/^sh/<u>/ |
| 198 | + - xform/^ch/<i>/ |
| 199 | + - xform/^zh/<v>/ |
| 200 | + - xform/'sh/'<u>/ |
| 201 | + - xform/'ch/'<i>/ |
| 202 | + - xform/'zh/'<v>/ |
| 203 | + - xform/uo(?=^|$|')/<o>/ |
| 204 | + - xform/[uv]n(?=^|$|')/<p>/ |
| 205 | + - xform/([a-z>])i?ong(?=^|$|')/$1<s>/ |
| 206 | + - xform/[iu]ang(?=^|$|')/<d>/ |
| 207 | + - xform/([a-z>])en(?=^|$|')/$1<f>/ |
| 208 | + - xform/([a-z>])eng(?=^|$|')/$1<g>/ |
| 209 | + - xform/([a-z>])ang(?=^|$|')/$1<h>/ |
| 210 | + - xform/ian(?=^|$|')/<m>/ |
| 211 | + - xform/([a-z>])an(?=^|$|')/$1<j>/ |
| 212 | + - xform/iao(?=^|$|')/<c>/ |
| 213 | + - xform/([a-z>])ao(?=^|$|')/$1<k>/ |
| 214 | + - xform/([a-z>])ai(?=^|$|')/$1<l>/ |
| 215 | + - xform/([a-z>])ei(?=^|$|')/$1<z>/ |
| 216 | + - xform/ie(?=^|$|')/<x>/ |
| 217 | + - xform/ui(?=^|$|')/<v>/ |
| 218 | + - xform/([a-z>])ou(?=^|$|')/$1<b>/ |
| 219 | + - xform/in(?=^|$|')/<n>/ |
| 220 | + - xform/ing(?=^|$|')/;/ |
| 221 | + - xform/'|<|>// |
| 222 | + |
| 223 | +algebra_abc: |
| 224 | + - xform/^zh/<a>/ |
| 225 | + - xform/^ch/<e>/ |
| 226 | + - xform/^sh/<v>/ |
| 227 | + - xform/'zh/'<a>/ |
| 228 | + - xform/'ch/'<e>/ |
| 229 | + - xform/'sh/'<v>/ |
| 230 | + - xform/^([aoe].*)(?=^|$|')/<o>$1/ |
| 231 | + - xform/'([aoe].*)(?=^|$|')/'<o>$1/ |
| 232 | + - xform/ei(?=^|$|')/<q>/ |
| 233 | + - xform/ian(?=^|$|')/<w>/ |
| 234 | + - xform/er(?=^|$|')|iu(?=^|$|')/<r>/ |
| 235 | + - xform/[iu]ang(?=^|$|')/<t>/ |
| 236 | + - xform/ing(?=^|$|')/<y>/ |
| 237 | + - xform/uo(?=^|$|')/<o>/ |
| 238 | + - xform/uan(?=^|$|')/<p>/ |
| 239 | + - xform/([a-z>])i?ong(?=^|$|')/$1<s>/ |
| 240 | + - xform/[iu]a(?=^|$|')/<d>/ |
| 241 | + - xform/en(?=^|$|')/<f>/ |
| 242 | + - xform/eng(?=^|$|')/<g>/ |
| 243 | + - xform/ang(?=^|$|')/<h>/ |
| 244 | + - xform/an(?=^|$|')/<j>/ |
| 245 | + - xform/iao(?=^|$|')/<z>/ |
| 246 | + - xform/ao(?=^|$|')/<k>/ |
| 247 | + - xform/in(?=^|$|')|uai(?=^|$|')/<c>/ |
| 248 | + - xform/ai(?=^|$|')/<l>/ |
| 249 | + - xform/ie(?=^|$|')/<x>/ |
| 250 | + - xform/ou(?=^|$|')/<b>/ |
| 251 | + - xform/un(?=^|$|')/<n>/ |
| 252 | + - xform/[uv]e(?=^|$|')|ui(?=^|$|')/<m>/ |
| 253 | + - xform/'|<|>// |
| 254 | + |
| 255 | +algebra_ziguang: |
| 256 | + - derive/^([jqxy])u(?=^|$|')/$1v/ |
| 257 | + - derive/'([jqxy])u(?=^|$|')/'$1v/ |
| 258 | + - xform/'([aoe].*)(?=^|$|')/'<o>$1/ |
| 259 | + - xform/^([aoe].*)(?=^|$|')/<o>$1/ |
| 260 | + - xform/en(?=^|$|')/<w>/ |
| 261 | + - xform/eng(?=^|$|')/<t>/ |
| 262 | + - xform/in(?=^|$|')|uai(?=^|$|')/<y>/ |
| 263 | + - xform/^zh/<u>/ |
| 264 | + - xform/^sh/<i>/ |
| 265 | + - xform/'zh/'<u>/ |
| 266 | + - xform/'sh/'<i>/ |
| 267 | + - xform/uo(?=^|$|')/<o>/ |
| 268 | + - xform/ai(?=^|$|')/<p>/ |
| 269 | + - xform/^ch/<a>/ |
| 270 | + - xform/'ch/'<a>/ |
| 271 | + - xform/[iu]ang(?=^|$|')/<g>/ |
| 272 | + - xform/ang(?=^|$|')/<s>/ |
| 273 | + - xform/ie(?=^|$|')/<d>/ |
| 274 | + - xform/ian(?=^|$|')/<f>/ |
| 275 | + - xform/([a-z>])i?ong(?=^|$|')/$1<h>/ |
| 276 | + - xform/er(?=^|$|')|iu(?=^|$|')/<j>/ |
| 277 | + - xform/ei(?=^|$|')/<k>/ |
| 278 | + - xform/uan(?=^|$|')/<l>/ |
| 279 | + - xform/ing(?=^|$|')/;/ |
| 280 | + - xform/ou(?=^|$|')/<z>/ |
| 281 | + - xform/[iu]a(?=^|$|')/<x>/ |
| 282 | + - xform/iao(?=^|$|')/<b>/ |
| 283 | + - xform/ue(?=^|$|')|ui(?=^|$|')|ve(?=^|$|')/<n>/ |
| 284 | + - xform/un(?=^|$|')/<m>/ |
| 285 | + - xform/ao(?=^|$|')/<q>/ |
| 286 | + - xform/an(?=^|$|')/<r>/ |
| 287 | + - xform/'|<|>// |
0 commit comments