Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
在【朙月拼音】裏使用Emoji表情
# luna_pinyin.custom.yaml
#
# 在【朙月拼音】裏使用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.

Show comment
Hide comment
@JagoWang

JagoWang Sep 17, 2012

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

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

@lostplesed

This comment has been minimized.

Show comment
Hide comment
@lostplesed

lostplesed Sep 19, 2012

怎么使用呢?

怎么使用呢?

@lotem

This comment has been minimized.

Show comment
Hide comment
@lotem

lotem Sep 19, 2012

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

Owner

lotem commented Sep 19, 2012

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

@norsizu

This comment has been minimized.

Show comment
Hide comment
@norsizu

norsizu Sep 20, 2012

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

norsizu commented Sep 20, 2012

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

@zieglar

This comment has been minimized.

Show comment
Hide comment
@zieglar

zieglar Oct 25, 2012

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

zieglar commented Oct 25, 2012

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

@zieglar

This comment has been minimized.

Show comment
Hide comment
@zieglar

zieglar Oct 25, 2012

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

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.

Show comment
Hide comment
@lotem

lotem 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: 〔表情〕
Owner

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.

Show comment
Hide comment

forfuns commented Feb 26, 2014

·/!\·

@ldong

This comment has been minimized.

Show comment
Hide comment
@ldong

ldong Aug 10, 2014

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

ldong commented Aug 10, 2014

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

@Gnnng

This comment has been minimized.

Show comment
Hide comment
@Gnnng

Gnnng Aug 23, 2015

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

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

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

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

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.

Show comment
Hide comment
@rhyzx

rhyzx Sep 24, 2015

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

rhyzx commented Sep 24, 2015

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

@Congee

This comment has been minimized.

Show comment
Hide comment
@Congee

Congee Nov 14, 2015

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

Congee commented Nov 14, 2015

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

@4ft35t

This comment has been minimized.

Show comment
Hide comment
@4ft35t

4ft35t Dec 4, 2015

@Gnnng

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

  abc_segmentor/extra_tags:
    - reverse_lookup

4ft35t commented Dec 4, 2015

@Gnnng

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

  abc_segmentor/extra_tags:
    - reverse_lookup
@4ft35t

This comment has been minimized.

Show comment
Hide comment
@4ft35t

4ft35t Dec 4, 2015

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

4ft35t commented Dec 4, 2015

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

@mpco

This comment has been minimized.

Show comment
Hide comment
@mpco

mpco Feb 22, 2016

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

abc_segmentor/extra_tags:
    - reverse_lookup

去除

mpco commented Feb 22, 2016

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

abc_segmentor/extra_tags:
    - reverse_lookup

去除

@qfdk

This comment has been minimized.

Show comment
Hide comment
@qfdk

qfdk May 5, 2016

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

qfdk commented May 5, 2016

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

@SharkIng

This comment has been minimized.

Show comment
Hide comment
@SharkIng

SharkIng Nov 24, 2016

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

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

@ijse

This comment has been minimized.

Show comment
Hide comment
@ijse

ijse Dec 4, 2017

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

ijse commented Dec 4, 2017

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

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