Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
在【朙月拼音】裏使用Emoji表情(這份配置已過時,新的emoji實現代碼在 https://github.com/rime/rime-emoji
# luna_pinyin.custom.yaml
#
# 在【朙月拼音】裏使用Emoji表情(這份配置已過時,新的emoji實現代碼在 https://github.com/rime/rime-emoji )
#
# 保存到Rime用戶文件夾後,重新部署生效
# ~/.config/ibus/rime (linux)
# ~/Library/Rime (macos)
# %APPDATA%\Rime (windows)
#
# 如果目標文件已經包含其他修改內容,只需按照縮進合併 patch: 以下的部分
#
patch:
schema/dependencies:
- emoji
abc_segmentor/extra_tags:
- reverse_lookup
reverse_lookup:
dictionary: emoji
enable_completion: false
prefix: "`"
tips: 〔表情〕
@JagoWang

This comment has been minimized.

Copy link

@JagoWang JagoWang commented Sep 17, 2012

添加了,不管用啊,求解答,谢谢!!

@lostplesed

This comment has been minimized.

Copy link

@lostplesed lostplesed commented Sep 19, 2012

怎么使用呢?

@lotem

This comment has been minimized.

Copy link
Owner Author

@lotem lotem commented Sep 19, 2012

抱歉樓上兩位,我寫錯了文件名。現在改過了,又補充了註釋。
《定製指南》裏「必知必會」部分最好看一看。

@norsizu

This comment has been minimized.

Copy link

@norsizu norsizu commented Sep 20, 2012

还是不行呀,加进去了,还是没有反应

@zieglar

This comment has been minimized.

Copy link

@zieglar zieglar commented Oct 25, 2012

还是不行,输入`号以后直接就输出了,没有触发emoji的输入

@zieglar

This comment has been minimized.

Copy link

@zieglar zieglar commented Oct 25, 2012

在luna_pinyin_simp下就加入emoji的确没用,因为缺少如下代码,请自行在custom中加入
"engine/translators":
- punct_translator
- r10n_translator
- reverse_lookup_translator
"recognizer/patterns/reverse_lookup": "`[a-z]*$"

@lotem

This comment has been minimized.

Copy link
Owner Author

@lotem lotem commented Apr 1, 2013

朙月拼音・简化字用:

# luna_pinyin_simp.custom.yaml

patch:
  engine/translators:
    - punct_translator
    - r10n_translator
    - reverse_lookup_translator
  recognizer/patterns/reverse_lookup: "`[a-z]*$"
  schema/dependencies:
    - emoji
  abc_segmentor/extra_tags:
    - reverse_lookup
  reverse_lookup:
    dictionary: emoji
    enable_completion: false
    prefix: "`"
    tips: 〔表情〕
@forfuns

This comment has been minimized.

Copy link

@forfuns forfuns commented Feb 26, 2014

·/!\·

@ldong

This comment has been minimized.

Copy link

@ldong ldong commented Aug 10, 2014

'朙月拼音・简化字' 用的配置 '朙月拼音・臺灣正體' 同樣可以用.

@Gnnng

This comment has been minimized.

Copy link

@Gnnng Gnnng commented Aug 23, 2015

这样配置会有一个问题,通过单个按键输入汉字时,emoji会出现在候选列表里汉字的前面,如何调整?

Aug, 25, 2015 update
在这里找到了办法:http://tieba.baidu.com/p/2390155911,具体在2楼的评论中

把 abc_segmentor/extra_tags: 连同内容一起注释掉就好

不过具体什么原理没来得及研究

@rhyzx

This comment has been minimized.

Copy link

@rhyzx rhyzx commented Sep 24, 2015

请问如何在“五笔拼音”中加入此功能?

@Congee

This comment has been minimized.

Copy link

@Congee Congee commented Nov 14, 2015

自己用什么schema就把这个配置放在哪里,我把它放在double_pinyin.custom.yaml才行

@4ft35t

This comment has been minimized.

Copy link

@4ft35t 4ft35t commented Dec 4, 2015

@Gnnng

删除这两行就完全打不出 emoji

  abc_segmentor/extra_tags:
    - reverse_lookup
@4ft35t

This comment has been minimized.

Copy link

@4ft35t 4ft35t commented Dec 4, 2015

找到原因了,luna_pinyin_simp.custom.yaml
里的 prefix: "`" 加載到 luna_pinyin_simp.schema.yaml 後沒了雙引號,手動補上雙引號就好了

@mpco

This comment has been minimized.

Copy link

@mpco mpco commented Feb 22, 2016

以上代码会造成 在输入汉字时出现emoji后选项
需要把

abc_segmentor/extra_tags:
    - reverse_lookup

去除

@qfdk

This comment has been minimized.

Copy link

@qfdk qfdk commented May 5, 2016

@Gnnng @mpco 感谢两位的说法,现在可以愉快的打字儿了~

@SharkIng

This comment has been minimized.

Copy link

@SharkIng SharkIng commented Nov 24, 2016

使用这个之后,自定义的那个custom_phrase.txt就不能用了,有没有什么办法解决?

@ijse

This comment has been minimized.

Copy link

@ijse ijse commented Dec 4, 2017

五笔拼音 加emoji, 需要怎样配置呢?

@g0ne150

This comment has been minimized.

Copy link

@g0ne150 g0ne150 commented Jan 6, 2019

新版 0.10.0 这样配置是不是不好用了呢?

@lotem

This comment has been minimized.

Copy link
Owner Author

@lotem lotem commented Jan 16, 2019

這份配置已過時,新的emoji實現代碼在 https://github.com/rime/rime-emoji

@alpha2016

This comment has been minimized.

Copy link

@alpha2016 alpha2016 commented Jan 17, 2019

這份配置已過時,新的emoji實現代碼在 https://github.com/rime/rime-emoji

在windows 10 系统中如何使用这份配置的?

@iveney

This comment has been minimized.

Copy link

@iveney iveney commented Feb 18, 2019

新的配置好像是拼音/emoji混輸吧?我覺得喜歡原來那種 reverse lookup (用`作爲 prefix 的方法),有辦法實現嗎?

@jdhao

This comment has been minimized.

Copy link

@jdhao jdhao commented Feb 21, 2019

這份配置已過時,新的emoji實現代碼在 https://github.com/rime/rime-emoji

在windows 10 系统中如何使用这份配置的?

看这里,https://github.com/rime/rime-emoji/issues/6, 我刚刚研究了在 Windows 上如何弄,成功了~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment