emacs 里面的中文拼音输入法 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
dinw
V2EX    Linux

emacs 里面的中文拼音输入法

  •  
  •   dinw 2015-11-20 05:47:09 +08:00 8357 次点击
    这是一个创建于 3620 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Linux 里面的中文输入法不太好用。甚至都比不上 google chrome 插件里面的拼音输入法。

    但是,今天发现了 emacs 自带输入法支持, tumashu 最新的 chinese-pyim https://github.com/tumashu/chinese-pyim 太方便了。

    • melpa 安装, M-x package-install RET chinese-pyim RET
    • 懒人方法下载、导入默认词库 https://github.com/tumashu/chinese-pyim#orgheadline7
    • 我只在.emacs 中加入一句 (require 'chinese-pyim)。没有按官方说明修改快捷键。一样很方便。如果经常用中文输入,也许可以再加上一句 (setq default-input-method "chinese-pyim")
    • Ctrl-\ 切换输入法
    • 可以直接导入 sogou 的 scel 词库文件。在此下载 scel 文件: http://pinyin.sogou.com/dict/
    • 可以自己任意定制词库
    • 长词组支持

    因为这个项目网上还不太容易搜索到,所以在这里共享一下。

    赞 tumashu !

    第 1 条附言    2015-11-20 10:20:21 +08:00
    Info: GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
    12 条回复    2016-01-09 21:42:06 +08:00
    vitovan
        1
    vitovan  
       2015-11-20 06:31:54 +08:00
    这个版本在我这里用不成,也没研究是为啥。
    我用的这个: https://github.com/wenbinye/emacs-eim

    chinese-pyim 是基于 emacs-eim 做的。
    dinw
        2
    dinw  
    OP
       2015-11-20 10:18:35 +08:00
    @vitovan 确实奇怪。 Ye Wenbin 的 emacs-eim 已经有好几年没有更新了,你反而安装成功。
    用得方便就好。
    raysonx
        3
    raysonx  
       2015-11-20 10:33:50 +08:00
    稍稍偏, Linux 下面一直在用 RIME 入法,我得是 Linux 下最好的的中文入法了。
    yougg
        4
    yougg  
       2015-11-20 10:36:37 +08:00
    现在搜狗输入法不是有 Linux 版本了么.
    dinw
        5
    dinw  
    OP
       2015-11-20 10:38:52 +08:00
    @yougg 看到网上评论,不敢用搜狗输入法。
    dinw
        6
    dinw  
    OP
       2015-11-20 10:40:16 +08:00
    @raysonx 不偏题。多谢!
    这个 RIME 输入法我自己都没有 google 出来。多谢提醒。留作备用。
    htfy96
        7
    htfy96  
       2015-11-20 11:00:27 +08:00
    emacs 果然是操作系统吗……
    dinw
        8
    dinw  
    OP
       2015-11-20 11:16:25 +08:00
    @htfy96 The one who rules all!
    odirus
        9
    odirus  
       2015-11-20 11:19:27 +08:00
    记得我也在 Emacs 中遇到过输入问题,不过呢,后来我只能使用 PUTTY 通过 SSH 登录到虚拟机里面操作 Emacs ,直接用宿主机的输入法,然后一切都 OK 了。
    dinw
        10
    dinw  
    OP
       2015-11-20 12:06:05 +08:00
    @odirus 好主意。 赞!
    tumashu
        11
    tumashu  
       2016-01-09 21:10:33 +08:00 via Android
    @vitovan 就拼音输入法而言, chinese-pyim 比 eim 的功能强很多,建议阅读一下 readme
    vitovan
        12
    vitovan  
       2016-01-09 21:42:06 +08:00
    r#11 @tumashu 已用上,之前是没有配置好~
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2516 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 26ms UTC 11:03 PVG 19:03 LAX 04:03 JFK 07:03
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86