rime / weasel

【小狼毫】Rime for Windows
https://rime.im
GNU General Public License v3.0
4.61k stars 552 forks source link

反查功能字符编码问题 #312

Closed royinor closed 2 months ago

royinor commented 5 years ago

reverse_lookup_filter 中,overwrite_comment 为 false 时,若反查结果首个不是英文字母,首个字符会被拆成两个问号

sgalal commented 5 years ago

The problem may be more universal than the description.

moj

For example, the problem emerges in the following config:

engine:
  ...
  segmentors:
    ...
    - "affix_segmentor@swiftkana"
    ...
  translators:
    ...
    - "table_translator@swiftkana"
    ...

swiftkana:
  dictionary: swiftkana
  prefix: "W"
  suffix: ";"
  tips: 『仮名』
  tag: swiftkana

...

And the file swiftkana.dict.yaml looks like:

# Rime dictionary
# encoding: utf-8
---
name: swiftkana
version: "V1.3"
sort: original
use_preset_vocabulary: false
...
あ   あ
い   い
う   う
え   え
お   お
か   か
き   き
...

The same problem also happens on trime, so I believe that it is more likely to be the problem of the rime engine.

royinor commented 5 years ago

【正常】 schema: 音节wen,zi dict: 文  wen 文字 wenzi

wen 1.文 2.文字 ~zi

【出错】 schema: wen→① zi→② dict: 文    ① 文字   ①② 文字字  ①②② 文字字字 ①②②②

① 1.文 2.文字   ~?? 3.文字字  ~??②② 4.文字字字 ~?①②②② #字码长了之后,反查提示的字数数量也会出问题

lotem commented 5 years ago

不太明白怎麼配置。 1樓提到的 reverse_lookup_filter 出現在哪裏? 而且用非ASCII字符做編碼,沒法通過鍵盤輸入這些編碼。