GithubHelp home page GithubHelp logo

Comments (4)

yefeiyu avatar yefeiyu commented on August 15, 2024

感觉所有的生僻字都放到了词的前面。这个安排太不合理了。如何去掉这个功能?

from pyim.

yefeiyu avatar yefeiyu commented on August 15, 2024

下列代码放到.emacs中

(defun pyim-candidates-xingma-words-default (code)
"搜索形码 CODE, 得到相应的词条列表。

按照词库中原有的字词顺序进行排序。"
(let ((personal-words (pyim-dcache-get code '(icode2word)))
(common-words (pyim-dcache-get code '(code2word)))
(other-words (pyim-dcache-get code '(shortcode2word))))
`(,@personal-words
,@common-words
,@other-words)))

from pyim.

tumashu avatar tumashu commented on August 15, 2024

用这个设置吧,比直接覆盖 default 好一点。

(defcustom pyim-candidates-xingma-words-function
  #'pyim-candidates-xingma-words-default
  "形码输入法候选词列表生成函数。

如果形码输入法用户需要微调候选词词频,可以自定义这个函数。"
  :type 'function)

from pyim.

tumashu avatar tumashu commented on August 15, 2024

形码输入法排序方式太难统一了,所以我添加了这个设置,不像再来回折腾了:-)

from pyim.

Related Issues (20)

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.