Skip to content

Commit

Permalink
fix symbols input
Browse files Browse the repository at this point in the history
  • Loading branch information
wongdean committed May 11, 2020
1 parent 5841347 commit b9c55b5
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 32 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# 介绍
本仓库为 Rime 鼠须管输入法的配置文件,特点有:
1. 简单易用,不需要代码基础。皮肤与macOS自带输入法皮肤比较相似
2. 支持 emoji 候选,支持符号快捷输入,支持中英文混合输入
2. 支持 emoji 候选,支持符号快捷输入,支持中英文混合输入,支持`/`+关键词实现快捷输入
3. 配置了部分网络上的词库,单词库来讲,已经非常强大,全新配置的话,最多一周就非常顺手
4. 配置文件支持 Rime 鼠须管0.14.0(macOS)、Weasel 小狼毫0.14.3(Windows),Linux,功能上都没有问题。

Expand Down Expand Up @@ -55,13 +55,8 @@
- 2020.04.26 修复全拼不显示 emoji,增加[网盘下载入口](#7%E6%8F%90%E4%BE%9B%E7%BD%91%E7%9B%98%E4%B8%8B%E8%BD%BD)
- 2020.05.03 感谢[@ayalhw](https://github.com/ayalhw)建议,为方便中英文混合输入,引入了[easy-en](https://github.com/BlindingDark/rime-easy-en)方案,如果不需要此方案,将对应方案的`custom.yaml`中的这几行注释掉即可:
```
easy_en/enable_sentence: false
__patch:
# Rx: BlindingDark/rime-easy-en:customize:schema=double_pinyin_flypy {
- patch/+:
__include: easy_en:/patch
# }
__include: easy_en:/patch
easy_en/enable_sentence: false
```
- 2020.05.04 整合官方的[『八股文』](https://github.com/lotem/rime-octagram-data),替代 Rime 默认的词表和词频(应该是重新训练了语言模型,好处是输入更加准确一些)。可以试试「各个国家都有各个国家的国歌」、「充满希望的跋涉比到达目的地更能给人乐趣」(第二句可能有点困难,跟你的输入法有关)

Expand Down
17 changes: 9 additions & 8 deletions double_pinyin.custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ patch:
"$" : ["¥", "$", "€", "£", "¢", "¤"]
"<" : ["《", "〈", "«", "<"]
">" : ["》", "〉", "»", ">"]
recognizer:
import_preset: default
patterns:
reverse_lookup:
punct: "^/([0-9]0?|[A-Za-z]+)$"
html: "^<[a-z]+>$"
code: "[a-zA-Z]+(*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]{1,10}[.:_-].*$"
recognizer:
import_preset: default
patterns:
reverse_lookup:
punct: "^/([0-9]0?|[A-Za-z]+)$"
html: "^<[a-z]+>$"
code: "[a-zA-Z]+(*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]{1,10}[.:_-].*$"

#載入朙月拼音擴充詞庫
"translator/dictionary": luna_pinyin.extended
Expand All @@ -96,6 +96,7 @@ patch:
initial_quality: 1
"engine/translators/@5": table_translator@custom_phrase
# Rx: BlindingDark/rime-easy-en:customize:schema=double_pinyin_flypy
# 取消英文候选输入,注释以下这两行
__include: easy_en:/patch
easy_en/enable_sentence: false # 中英文混输的设置
# Rx: lotem/rime-octagram-data:customize:schema=luna_pinyin,model=hans
Expand Down
17 changes: 9 additions & 8 deletions double_pinyin_flypy.custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ patch:
"$" : ["¥", "$", "€", "£", "¢", "¤"]
"<" : ["《", "〈", "«", "<"]
">" : ["》", "〉", "»", ">"]
recognizer:
import_preset: default
patterns:
reverse_lookup:
punct: "^/([0-9]0?|[A-Za-z]+)$"
html: "^<[a-z]+>$"
code: "[a-zA-Z]+(*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]{1,10}[.:_-].*$"
recognizer:
import_preset: symbols
patterns:
reverse_lookup:
punct: "^/([0-9]0?|[A-Za-z]+)$"
html: "^<[a-z]+>$"
code: "[a-zA-Z]+(*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]{1,10}[.:_-].*$"

### 双拼使用自定义词典 custom_phrase.txt
custom_phrase:
Expand All @@ -88,6 +88,7 @@ patch:
"engine/translators/@5": table_translator@custom_phrase

# Rx: BlindingDark/rime-easy-en:customize:schema=double_pinyin_flypy
# 如果需要取消英文候选输入,注释以下这两行
__include: easy_en:/patch
easy_en/enable_sentence: false
# Rx: lotem/rime-octagram-data:customize:schema=luna_pinyin,model=hans
Expand Down
17 changes: 9 additions & 8 deletions luna_pinyin.custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,14 @@ patch:
"$" : ["¥", "$", "€", "£", "¢", "¤"]
"<" : ["《", "〈", "«", "<"]
">" : ["》", "〉", "»", ">"]
recognizer:
import_preset: default
patterns:
reverse_lookup:
punct: "^/([0-9]0?|[A-Za-z]+)$"
html: "^<[a-z]+>$"
code: "[a-zA-Z]+(*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]{1,10}[.:_-].*$"
recognizer:
import_preset: default
patterns:
reverse_lookup:
punct: "^/([0-9]0?|[A-Za-z]+)$"
html: "^<[a-z]+>$"
code: "[a-zA-Z]+(*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]{1,10}[.:_-].*$"

# 自定义词库
custom_phrase:
Expand All @@ -205,6 +205,7 @@ patch:
"engine/translators/@5": table_translator@custom_phrase

# Rx: BlindingDark/rime-easy-en:customize:schema=double_pinyin_flypy
# 取消英文候选输入,注释以下这两行
__include: easy_en:/patch
easy_en/enable_sentence: false
# Rx: lotem/rime-octagram-data:customize:schema=luna_pinyin,model=hans
Expand Down

0 comments on commit b9c55b5

Please sign in to comment.