Coder Social home page Coder Social logo

chinese-yasdcv's People

Contributors

purcell avatar stardiviner avatar tumashu avatar xuchunyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chinese-yasdcv's Issues

Symbol’s function definition is void: org-eldoc-load

在使用过程中,出现这样的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

yasdcv--current-word: Wrong number of arguments

刚使用 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

词条翻译重复多次

如图,这是什么情况?

image

没有做自定义设置,在Windows下用的,只改了一下命令,不然用不了

(setq yasdcv-sdcv-command   "sdcv --non-interactive --utf8-output --utf8-input  \"%word\"")

@tumashu

“点词翻译”预测中文的问题

Hi,

我的电脑上没有安装 scws(安装遇到了困难),所以没有测试。但是我看了你的代码(主要是 yasdcv--current-word 这个函数),我觉得可能有两个问题:

比如:Emacs 取到了**人使用中文,假设分词的结果是** 人 使用 中文

  1. 当光标在字上时,你的实现好像先得到前面的字,最终得到结果是**,而不是
  2. 当光标在字上时,首先得到字,最终的结果是**,而不是中文?

我的猜测对吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.