Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fcitx-rime 默认没有emoji输出 #152

Open
febtree opened this issue Aug 11, 2023 · 6 comments
Open

fcitx-rime 默认没有emoji输出 #152

febtree opened this issue Aug 11, 2023 · 6 comments

Comments

@febtree
Copy link

febtree commented Aug 11, 2023

默认配置,没有emoji输出,如下所示:
snap1

已安装emoji相关字体,四叶草方案logo的emoji显示正常。

环境:Manjaro
cloverpinyin版本:1.1.4
rime版本:fcitx-rime
fcitx版本:4.2.9.9
default.custom.yaml只有最基本的使用clover的配置。

不知道什么原因,求指导。

@yurenchen000
Copy link

yurenchen000 commented Sep 2, 2023

Facing the same situation
on Ubuntu 22 LTS, with ibus-rime

F4 can show emoji chars:
rime_input1-

but when input no emoji candidate:

  • pingfang
  • maozi
  • xiaoku

version:

$ apt list --installed '*rime*'
ibus-rime/jammy,now 1.5.0-1 amd64 [installed]
librime-bin/jammy,now 1.7.3+dfsg3-2build2 amd64 [installed,automatic]
librime-data/jammy,jammy,now 0.38.20210909-1 all [installed,automatic]
librime-plugin-charcode/jammy,now 1.7.3+dfsg3-2build2 amd64 [installed,automatic]
librime-plugin-lua/jammy,now 1.7.3+dfsg3-2build2 amd64 [installed,automatic]
librime-plugin-octagram/jammy,now 1.7.3+dfsg3-2build2 amd64 [installed,automatic]
librime1/jammy,now 1.7.3+dfsg3-2build2 amd64 [installed,automatic]
rime-data-bopomofo/jammy,now 0.0~git20210131.c7618f4-3 amd64 [installed,automatic]
rime-data-cangjie5/jammy,now 0.0~git20210223.8dfad9e-3 amd64 [installed,automatic]
rime-data-luna-pinyin/jammy,now 0.0~git20210805.6e67742-3 amd64 [installed]
rime-data-stroke/jammy,now 0.0~git20191221.ea8576d-3 amd64 [installed,automatic]
rime-data-terra-pinyin/jammy,now 0.0~git20210805.aefaf37-3 amd64 [installed,automatic]
rime-essay/jammy,jammy,now 0.0~git20210805.8882482-2 all [installed,automatic]
rime-prelude/jammy,jammy,now 0.0~git20211023.4001edf-1 all [installed,automatic]

$ apt list --installed '*opencc*'
libopencc-data/jammy,jammy,now 1.1.3+ds1-3ubuntu3 all [installed]
libopencc1.1/jammy,now 1.1.3+ds1-3ubuntu3 amd64 [installed]

@yurenchen000
Copy link

yurenchen000 commented Sep 2, 2023

I have solved mine:

symbol also not in candidate

I guess same to
#119

//test config

$ opencc -c emoji.json 
Invalid format: The text dictionary contains duplicated keys.

$ opencc -c symbol.json 
Invalid format: The text dictionary contains duplicated keys.

//find dup key

$ cat emoji_word.txt | cut -f1 | sort | uniq -d
污染
$ cat symbol_word.txt | cut -f1 | sort | uniq -d

立方厘米

NOTE: has a empty key, can be locate by ^\t in vim

//del dup key
...

@yurenchen000
Copy link

and on Ubuntu 22 LTS
I don't have to install
https://github.com/samuelngs/apple-emoji-linux

It can display emoji by default.

@Fankbai
Copy link

Fankbai commented Sep 26, 2023

多谢,直接到opencc文件夹修改两个文件
*1. emoji_word.txt
*2. symbol_word.txt
里面有重复字符,删除一个即可,分别为:
*1 立方厘米 :

  • 立方厘米 ㎤
  • 立方厘米 cc(删除)

把“污染”合并一起:

  • 污染 🏭️
  • 污染😷️

为:

  • 污染 🏭️ 😷️

还有一个我忘记了😄️,自己查看一下吧

@Fankbai
Copy link

Fankbai commented Sep 26, 2023

继续:
symbol_word.txt中的

英寸	英寸 ㏌
	 ㏍
	 ㏎

修改为

英寸	英寸 ㏌ ㏍ ㏎

@Fankbai
Copy link

Fankbai commented Sep 26, 2023

https://github.com/Fankbai/customize-rime-cloverpinyinyin/tree/main
自己修改的四叶草输入法,可以参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants