reverse_lookup 不起作用了?

299 views
Skip to first unread message

Zoom.Quiet

unread,
Jan 22, 2017, 8:26:17 PM1/22/17
to rime-...@googlegroups.com, 佛振{rimeIME
不知原先的开发列表是否还在使用, 所以 CC 了一下:
俺当前环境:
- macOS 10.12.2
- 鼠须管 0.9.26.1

定制的 表形码 , 对应的配置文件为:bxm4zq2mac.schema.yaml 详细如下
以前记得, 有功能是可以切换到拼音,然后每个字后面是指定输入法的键码,
以便反查到其它输入法的键砩,辅助学习或使用,
即,如果忘记了 周 的表形码是 nyo ,
可以切换到拼音,找到周 就有显示 nyo 了...

但是,这几天突然注意到没有了....不知道有什么变化?

abc_segmentor:
extra_tags:
- reverse_lookup
customization: 2397138135
engine:
filters:
- simplifier
- uniquifier
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- reverse_lookup_translator
- table_translator
key_binder:
import_preset: default
punctuator:
import_preset: alternative
recognizer:
import_preset: default
patterns:
reverse_lookup: "`[a-z]*'?$"
reverse_lookup:
dictionary: luna_pinyin_simp
preedit_format:
- "xform/([nljqxy])v/$1ü/"
prefix: "`"
suffix: "'"
tips: "〔拼音〕"
schema:
author:
- "發明人 陈爱文先生"
- "定制者 Zoom.Quiet <zoomqu...@gmail.com>"
dependencies:
- luna_pinyin_simp
description: "旅居法國的華僑人士陳愛文於80年代發明的杰出形码;\x0a后因陷入法律纠纷,在市场化方面败于五笔...\x0azh.wikipedia.org/zh-hk/表形碼\x0a"
name: "表形码2006版ZQ定制版"
schema_id: bxm4zq2mac
version: 13.3.26.custom.2397138135
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
delimiter: " ;'"
max_code_length: 4
switches:
- name: ascii_mode
reset: 0
states:
- "中文"
- "西文"
- name: full_shape
states:
- "半角"
- "全角"
- name: simplification
states:
- "漢字"
- "汉字"
- name: extended_charset
states:
- "通用"
- "增廣"
translator:
dictionary: bxm4zq2mac
disable_user_dict_for_patterns:
- "^z.*$"
- "^yyy.*$"
enable_charset_filter: true
enable_user_dict: false

ps:
俺的相关码表以及转换工具在:
ZqBXM/mac at master · ZoomQuiet/ZqBXM
https://github.com/ZoomQuiet/ZqBXM/tree/master/mac


2013-03-27 10:15 GMT+08:00 Zoom.Quiet <zoom....@gmail.com>:
> 俺的环境: MAC 10.7.5
> - 俺是头程序猿,每天最常在的状态是编程
> - 即,E文为主,但是中文也有
> - 所以, 鼠须管现在的中/E文输入状态切换是智能的:
> - 默许是中文
> - 使用 shift 后强行变更
> - 但是, 有任何输入后,就又智能切换回中文
> - 所以,想问一下,有什么方式可以令输入模式不智能切换
> - 完全由 shift 进行显式控制?
>
>
> --
> 人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦!
> KM keep growing environment culture which promoting organization be learnning!
> 俺: http://about.me/zoom.quiet
> 许: http://creativecommons.org/licenses/by-sa/2.5/cn/



--
life is pathetic, go Pythonic! 人生苦短, Python当歌!
俺: http://zoomquiet.io
授: http://creativecommons.org/licenses/by-sa/2.5/cn/
怒: 冗余不做,日子甭过!备份不做,十恶不赦!
KM keep growing environment culture which promoting organization be learnning!

弓辰

unread,
Jan 24, 2017, 12:48:32 PM1/24/17
to Zoom.Quiet, rime-...@googlegroups.com
如果是最近編譯的鼠鬚管,那麼 pinyin_simp 「袖珍簡化字拼音」這個經常用於拼音反查簡化字的輸入方案不再預裝了。
手動獲取該輸入方案的方法爲:在新版的 brise 目錄下執行 ./rime-install pinyin-simp

不過來信貼出的代碼中,反查詞典設置爲 reverse_lookup/dictionary: luna_pinyin_simp 然而並沒有這個詞典。也許是 luna_pinyin

Zoom.Quiet <zoom....@gmail.com> 於 2017年1月23日 週一 上午9:26寫道:

Zoom.Quiet

unread,
Jan 25, 2017, 2:06:29 AM1/25/17
to 弓辰, rime-...@googlegroups.com
2017-01-25 1:48 GMT+08:00 弓辰 <chen...@gmail.com>:
> 如果是最近編譯的鼠鬚管,那麼 pinyin_simp 「袖珍簡化字拼音」這個經常用於拼音反查簡化字的輸入方案不再預裝了。
> 手動獲取該輸入方案的方法爲:在新版的 brise 目錄下執行 ./rime-install pinyin-simp
>
> 不過來信貼出的代碼中,反查詞典設置爲 reverse_lookup/dictionary: luna_pinyin_simp 然而並沒有這個詞典。也許是
> luna_pinyin?
>

重新从官网下载安装了:
http://dl.bintray.com/lotem/rime/Squirrel-0.9.26.2.zip

也重新安装了 pinyin-simp
✓༽~/Works/5git/Zq_brise༽
༄ ./rime-install pinyin-simp
Package: pinyin-simp
Cloning into './pinyin-simp'...
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 6 (delta 0), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), done.
Updated 2 files from 1 packages in '/Users/zoomq/Library/Rime'

相关配置如附件,
尝试了几种组合都无法反查键码...

而且,从控制栏中升级版本失败,
同时,当配置 pinyin_simp.schema.yaml
reverse_lookup:
dictionary: bxm4zq2mac #stroke

时,重新部署 rIME 失败,重启系统才恢复,
对应的,
/Users/zoomq/Library/Rime/
目录中,多了个 pinyin_simp.userdb/ 目录...

俺将继续挖掘文档,如果能指出哪儿思考有误解就更能快速完成心愿了.

再谢.
屏幕快照 2017-01-25 15.00.03.png
屏幕快照 2017-01-25 14.37.08.png
屏幕快照 2017-01-25 14.26.45.png
屏幕快照 2017-01-25 15.02.15.png
bxm4zq2mac.custom.yaml
default.custom.yaml
pinyin_simp.schema.yaml
squirrel.custom.yaml
user.yaml

弓辰

unread,
Feb 9, 2017, 11:47:48 PM2/9/17
to Zoom.Quiet, rime-...@googlegroups.com
暫時看不出問題。如果找到部署的錯誤信息,會有助於判斷。

Zoom.Quiet <zoom....@gmail.com> 於 2017年1月25日 週三 下午3:06寫道:
Reply all
Reply to author
Forward
0 new messages