ginqi7
ginqi7
应该不是,websocket-bridge-client-dictionary-overlay 是在 websocket-bridge 那个包里定义的。报错也应该是那边触发的。(boundp 'any-symbol) boundp 任何符号应该都不会报错,只会返回null才对。
先启动(dictionary-overlay-start) 然后运行(websocket-bridge-app-log-buffer) 查看日志。我猜测是因为 python 包没有安装完全,导致dictionary-overlay没有启动成功。
@qingshuizheng 估计是python 的环境变了吧。重新装一下python包应该就可以了:(dictionary-overlay-install) @czqhurricnae 你这边遇到的估计也是类似的问题,看看日志里是不是某个 python 包没有装。
@qingshuizheng 可以设定 Emacs 变量 dictionary-overlay-python 为完整的 python 路径,指定到 3.11 的那个 python。 或者用 3.8.9 的 python 路径下的pip,手动 pip install snowballstemmer。
I am very happy that this tool can help you. Now it's just a crude tool to help me write the leetcode program. I don't currently use spacemacs, but you...
Maybe ignoring the `json-parse-string`'s error is better. If you ignore too much, it will hide the import message when there is an actual run error. I will wait to find...
`dictionary-lookup-definition` 是 Emacs 内置的的一个词典,我也不太确定这是个什么问题。推荐使用其他的自用词典。
> dictionay-overlay-lookup-with 欲调用的函数,和那个translator(local,sdcv等)是什么关系? dictionay-overlay-lookup-with 是作为查询单词详情的词典用的(如果你没有自己日常用的词典可以用它兜底,推荐你使用日常的Emacs词典查询详情)。其他的 translator 是用来展示括号里的解释。 > local指的是什么查询程序? local 是只本地缓存,会有一个 dictionary.json 的用户文件,会保存你查询过的单词的含义,下次直接展示它。 > 查询结果和我sdcv手工查询的结果似乎不太一致 这里的 sdcv 并不是调用你本机安装的sdcv。而是dictionary-overlay 自己内置了一个 sdcv 支持的词典,使用该词典查询的。
`dictionary-overlay-lookup` is emacs builtin dictionary. If you need a english->chinese dictionary, `dictionary-overlay-lookup` maybe not match your goal. you could use youdao-directory or other user defined dictionaries.
是的,这个是由于现在使用的语句分词工具导致的。现在的分词工具,连接在一起的词会被分割为两个单词。 当前的实现会把整个buffer 进行分词,然后查询每个词语是否在生词本当中,如果在就显示翻译。 即便把 shake-up 加入到了分词本里。分词的时候也会当成两个单词分别处理。 目前可能没有什么好的方法处理这个问题。同理,想要标记词组、短语,目前也是做不到的。