From b9c55b52f3e37edbb6f6b8edf7c71585d0a49dda Mon Sep 17 00:00:00 2001 From: Dean Date: Mon, 11 May 2020 16:10:51 +0800 Subject: [PATCH] fix symbols input --- README.md | 11 +++-------- double_pinyin.custom.yaml | 17 +++++++++-------- double_pinyin_flypy.custom.yaml | 17 +++++++++-------- luna_pinyin.custom.yaml | 17 +++++++++-------- 4 files changed, 30 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index d1cce88..21200a3 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ # 介绍 本仓库为 Rime 鼠须管输入法的配置文件,特点有: 1. 简单易用,不需要代码基础。皮肤与macOS自带输入法皮肤比较相似 - 2. 支持 emoji 候选,支持符号快捷输入,支持中英文混合输入 + 2. 支持 emoji 候选,支持符号快捷输入,支持中英文混合输入,支持`/`+关键词实现快捷输入 3. 配置了部分网络上的词库,单词库来讲,已经非常强大,全新配置的话,最多一周就非常顺手 4. 配置文件支持 Rime 鼠须管0.14.0(macOS)、Weasel 小狼毫0.14.3(Windows),Linux,功能上都没有问题。 @@ -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 默认的词表和词频(应该是重新训练了语言模型,好处是输入更加准确一些)。可以试试「各个国家都有各个国家的国歌」、「充满希望的跋涉比到达目的地更能给人乐趣」(第二句可能有点困难,跟你的输入法有关) diff --git a/double_pinyin.custom.yaml b/double_pinyin.custom.yaml index a7682ca..908848c 100644 --- a/double_pinyin.custom.yaml +++ b/double_pinyin.custom.yaml @@ -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 @@ -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 diff --git a/double_pinyin_flypy.custom.yaml b/double_pinyin_flypy.custom.yaml index 728a783..059cac6 100644 --- a/double_pinyin_flypy.custom.yaml +++ b/double_pinyin_flypy.custom.yaml @@ -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: @@ -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 diff --git a/luna_pinyin.custom.yaml b/luna_pinyin.custom.yaml index 6f0aec6..c778a99 100644 --- a/luna_pinyin.custom.yaml +++ b/luna_pinyin.custom.yaml @@ -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: @@ -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