lotem / rimeime

Legacy codebase of Rime, automatically exported from code.google.com/p/rimeime
48 stars 23 forks source link

rime osx 模糊音設定僅在luna_pinyin有效,其他無效? #696

Closed chinanoahli closed 9 years ago

chinanoahli commented 9 years ago

luna_pinyin_fluency.schema.custom.yaml luna_pinyin_simp.schema.custom.yaml luna_pinyin_tw.schema.custom.yaml luna_pinyin.custom.yaml 以上文件我都如下定義了

patch:
  'speller/algebra':
    - erase/^xx$/                       # 第一行保留

    - derive/^([zcs])h/$1/              # zh, ch, sh => z, c, s
    - derive/^([zcs])([^h])/$1h$2/      # z, c, s => zh, ch, sh
    - derive/^an$/ang/                  # an => ang
    - derive/^ang$/an/                  # ang => an
    - derive/^en$/eng/                  # en => eng
    - derive/^eng$/en/                  # eng => en
    - derive/^in$/ing/                  # in => ing
    - derive/^ing$/in/                  # ing => in
    - derive/^ian$/iang/                # ian => iang
    - derive/^iang$/ian/                # iang => ian
    - derive/^uan$/uang/                # uan => uang
    - derive/^uang$/uan/                # uang => uan
    - derive/^n/l/                      # n => l
    - derive/^l/n/                      # l => n
    - derive/^l/r/                      # l => r
    - derive/^r/l/                      # r => l
    - derive/^h/f/                      # h => f
    - derive/^f/h/                      # f => h
    - derive/^hui$/fei/                 # hui => fei
    - derive/^fei$/hui/                 # fei => hui
    - derive/^huang$/wang/              # huang => wang
    - derive/^wang$/huang/              # wang => huang

    - abbrev/^([a-z]).+$/$1/           # 簡拼(首字母)
    - abbrev/^([zcs]h).+$/$1/          # 簡拼(zh, ch, sh)

    - derive/^([nl])ve$/$1ue/          # nve = nue, lve = lue
    - derive/^([jqxy])u/$1v/           # ju = jv,
    - derive/un$/uen/                  # gun = guen,
    - derive/ui$/uei/                  # gui = guei,
    - derive/iu$/iou/                  # jiu = jiou,

    - derive/([aeiou])ng$/$1gn/        # dagn => dang 
    - derive/([dtngkhrzcs])o(u|ng)$/$1o/  # zho => zhong|zhou
    - derive/ong$/on/                  # zhonguo => zhong guo
    - derive/ao$/oa/                   # hoa => hao
    - derive/([iu])a(o|ng?)$/a$1$2/    # tain => tian

  "switcher/@0/reset": 1

但是只有我在使用luna_pinyin时生效,luna_pinyin_fluency、luna_pinyin_simp、luna_pinyin_tw这三个都没有生效?

chinanoahli commented 9 years ago

貌似问题出在了语法上 luna_pinyin_fluency、luna_pinyin_simp、luna_pinyin_tw这3个文件的第2行,我使用的是双引号 改成单引号之后重新部署就好了

patch:
  'speller/algebra':                    # 这一行
    - erase/^xx$/                       # 第一行保留

    - derive/^([zcs])h/$1/              # zh, ch, sh => z, c, s
    - derive/^([zcs])([^h])/$1......

谁来告诉我为何这里要用单引号但是设置默认英语的"switcher/@0/reset": 1却可以用双引号吗?