rime / librime

Rime Input Method Engine, the core library
https://rime.im
BSD 3-Clause "New" or "Revised" License
3.37k stars 551 forks source link

charset_filter不起作用 #537

Closed Eliot00 closed 2 years ago

Eliot00 commented 2 years ago

Describe the bug

在自己的方案裏配置了字符集選項,但是選中了gb2312之後,仍然可以打出不在gb2312字符集內的字,比如這個字:𬉪

switches:
  - name: ascii_mode
    reset: 0
    states: ["中文", "西文"]
  - name: full_shape
    states: ["半角", "全角"]
  - options: [ utf-8, big5hkscs, big5, gbk, gb2312 ]
    states:
      - 字集 → 全
      - 字集 → 港臺
      - 字集 → 臺
      - 字集 → 大陸
      - 字集 → 简体
    reset: 0

engine:
  processors:
    - ascii_composer
    - recognizer
    - key_binder
    - speller
    - punctuator
    - selector
    - navigator
    - express_editor
  segmentors:
    - ascii_segmentor
    - matcher
    - abc_segmentor
    - affix_segmentor@reverse_lookup
    - punct_segmentor
    - fallback_segmentor
  translators:
    - punct_translator
    - table_translator
    - script_translator@reverse_lookup
  filters:
    - charset_filter@utf8
    - charset_filter@big5hkscs
    - charset_filter@big5
    - charset_filter@gbk
    - charset_filter@gb2312
    - uniquifier
    - reverse_lookup_filter@pinyin_reverse_lookup

To Reproduce Steps to reproduce the bug:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See bug

Expected behavior A clear and concise description of what you expected to happen.

Log If applicable, add crash log to quick focus your problem.

Screenshots If applicable, add screenshots to help explain your problem.

Flavor(please complete the following information): Select your flavor:

Package:

Additional context Add any other context about the problem here.

lotem commented 2 years ago

不支持这些选项啊。

Eliot00 commented 2 years ago

文欓裏有,現在的版本移除了?這个功能可以加回來嗎?

LEOYoon-Tsaw commented 2 years ago

哪個文欓?我去刪掉

lotem commented 2 years ago

librime里的组件没有可配置的字符集选项。需要确认本地的软件包有没有包含librime-charcode插件。额外的字符集支持是插件提供的。

zendo commented 2 years ago

https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/librime/default.nix

因为 nixos 没打包 librime-charcode 插件,所以没法用,我也踩坑了。