Skip to content

Commit

Permalink
添加五笔模式下自动造词说明
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleBing committed Nov 17, 2019
1 parent 71c0284 commit 3630979
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 4 deletions.
30 changes: 30 additions & 0 deletions README.md
Expand Up @@ -186,6 +186,36 @@ translator:
- time 输出时间,格式 `10:00`


## 开启五笔模式下的自动造词功能

默认是没有开启的,如果想开启需要手机编辑 `wubi86_jidian.schema.yaml` 文件,里面也有相关的说明

除了把文件中自动造词部分都设为 `true` 之外,还需要把 `speller` 那段的都注释掉,因为那里都是直接上屏的,直接上屏就无法造词了,所以需要注释掉。
造词功能是这样的,在输入一次之后,输入法会记住这个连词,打的时候后面会有图标指示,下次再输入这个词的时候,就会固定这个词,并在用户词典中新增这个词的词条。

你修改后的配置应该是这样的:

```yaml
speller:
# max_code_length: 4 # 四码上屏
# auto_select: true # 自动上屏
# auto_select_unique_candidate: true # 无重码自动上屏

translator:
# 开启自动造词相关设置
enable_sentence: ture # 是否开启自动造词
enable_user_dict: ture # 是否开启用户词典(用户词典记录动态字词频,用户词)
enable_encoder: ture # 自动造词
encode_commit_history: ture # 是否对已上屏的词自动造词
```

效果如图:

<img title="1" src="https://github.com/KyleBing/rime-wubi86-jidan/blob/master/imgs/wubi-auto-1.png">
<img title="2" src="https://github.com/KyleBing/rime-wubi86-jidan/blob/master/imgs/wubi-auto-2.png">
<img title="3" src="https://github.com/KyleBing/rime-wubi86-jidan/blob/master/imgs/wubi-auto-3.png">
<img title="4" src="https://github.com/KyleBing/rime-wubi86-jidan/blob/master/imgs/wubi-auto-4.png">

## 输出系统变量

自 v0.13之后可自定义输出系统变量,如日期等
Expand Down
Binary file added imgs/wubi-auto-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/wubi-auto-2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/wubi-auto-3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/wubi-auto-4.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions wubi86_jidian.schema.yaml
Expand Up @@ -48,7 +48,7 @@ engine:
# - lua_filter@single_char_first_filter # 单字优先方法

speller:

# 如果想要开启自动造词功能,把下面三项都注释掉,在前面添加 # 这个符号即可
max_code_length: 4 # 四码上屏
auto_select: true # 自动上屏
auto_select_unique_candidate: true # 无重码自动上屏
Expand All @@ -58,12 +58,12 @@ translator:
enable_charset_filter: true # 开启字符集过滤
enable_completion: true # 提前显示编码未输入完整的词条


# 开启自动造词相关设置
# 开启自动造词相关设置,将正方四项都改为 true
enable_sentence: false # 是否开启自动造词
enable_user_dict: false # 是否开启用户词典(用户词典记录动态字词频,用户词)
enable_encoder: true # 自动造词
enable_encoder: false # 自动造词
encode_commit_history: false # 是否对已上屏的词自动造词

max_phrase_length: 10 # 自动生成词的最大长度
user_dict: user # 用户词典名
db_class: tabledb # 用户词典类型 userdb - 二进制 / tabledb - 人类语言
Expand Down

0 comments on commit 3630979

Please sign in to comment.