tumashu / chinese-yasdcv Goto Github PK
View Code? Open in Web Editor NEW一个简单的sdcv字典程序的emacs前端。
一个简单的sdcv字典程序的emacs前端。
在使用过程中,出现这样的error
Symbol’s function definition is void: org-eldoc-load
我的配置为:
(use-package chinese-yasdcv :ensure t :defer t
:commands (yasdcv-translate-at-point)
:ensure chinese-pyim
:config
(setq yasdcv-sdcv-command "sdcv --non-interactive --utf8-output --utf8-input --use-dict \"%dict\" \"%word\"")
(setq yasdcv-sdcv-dicts
'(("21century" "21世纪英汉汉英双向词典" "21cen" t))))
emacs版本为:
GNU Emacs 25.2.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2017-02-03
MacOS版本为:El Captain 10.11.5
刚使用 chinese-yasdcv。配置如下:
(require-package 'chinese-yasdcv)
(require 'chinese-yasdcv)
(setq yasdcv-sdcv-dicts
'(("lanconghy" "懒虫简明汉英词典" "common" t)
("lancongyh" "懒虫简明英汉词典" "common" t)
))
M-x yasdcv-translate-at-point 出错,Message输出错误信息:
yasdcv--current-word: Wrong number of arguments: #[(thing) "�乱码"
[thing bounds thing-at-point bounds-of-thing-at-point] 3 ("/usr/share/emacs/24.3/lisp/thingatpt.elc" . 2294)], 2
对比其他字典插件,都是将字典buffer处于激活状态,这样可以方便的按"q"退出。
如图,这是什么情况?
没有做自定义设置,在Windows下用的,只改了一下命令,不然用不了
(setq yasdcv-sdcv-command "sdcv --non-interactive --utf8-output --utf8-input \"%word\"")
Hi,
我的电脑上没有安装 scws
(安装遇到了困难),所以没有测试。但是我看了你的代码(主要是 yasdcv--current-word 这个函数),我觉得可能有两个问题:
比如:Emacs 取到了**人使用中文
,假设分词的结果是** 人 使用 中文
人
字上时,你的实现好像先得到人
前面的国
字,最终得到结果是**
,而不是人
?文
字上时,首先得到中
字,最终的结果是**
,而不是中文
?我的猜测对吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.