fcitx5 使用搜狗皮肤
生活随笔
收集整理的這篇文章主要介紹了
fcitx5 使用搜狗皮肤
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
fcitx5 使用搜狗皮膚
- 手動(dòng)安裝
- 1.下載轉(zhuǎn)換程序
- 2.下載搜狗皮膚
- 3.轉(zhuǎn)換
- 如果提示你缺少程序庫
- 注意
- 4.移動(dòng)文件去fcitx5用戶皮膚目錄
- 5.改變皮膚設(shè)置
- 自動(dòng)安裝
- 源代碼
手動(dòng)安裝
1.下載轉(zhuǎn)換程序
git clone https://github.com/fkxxyz/ssfconv.git2.下載搜狗皮膚
網(wǎng)址: https://pinyin.sogou.com/skins/
3.轉(zhuǎn)換
./ssfconv -t fcitx5 你下載的.ssf文件 你保存的目錄名稱例如: ./ssfconv -t fcitx5 簡約樹葉.ssf 簡約樹葉如果提示你缺少程序庫
pip install pycrypto pip install Pillow pip install numpy注意
如果你的python版本是3.10以上
請運(yùn)行下面的pip命令
4.移動(dòng)文件去fcitx5用戶皮膚目錄
如果沒有這個(gè)文件就創(chuàng)建一下
mkdir -p ~/.local/share/fcitx5/themes/然后把你的文件copy進(jìn)用戶皮膚目錄
cp -r 你轉(zhuǎn)換出來的文件 ~/.local/share/fcitx5/themes/5.改變皮膚設(shè)置
可以到輸入法配置 -> 配置附加組件 -> 經(jīng)典用戶界面 -> 主題里進(jìn)行選擇想要的皮膚
自動(dòng)安裝
源代碼
#!/usr/bin/python import os try:from Crypto.Cipher import AES except Exception:os.system('pip install pycryptodome') try:from PIL import Image, ImageDraw except Exception:os.system('pip install Pillow') try:import numpy except Exception:os.system('pip install numpy') print('首先在該目錄下創(chuàng)建一個(gè)名字為“待轉(zhuǎn)換的皮膚”文件夾并把你要轉(zhuǎn)換的.ssf文件放到文件夾里') dirs = './ssfconv' if not os.path.exists(dirs):os.system('git clone https://github.com/fkxxyz/ssfconv.git') dirs = '~/.local/share/fcitx5/themes/' if not os.path.exists(dirs):os.system('mkdir -p ~/.local/share/fcitx5/themes/') dirs = './待轉(zhuǎn)換的皮膚' if not os.path.exists(dirs):os.makedirs(dirs) files = os.listdir(dirs) if len(files) == 0:print("沒有要轉(zhuǎn)換的文件")exit() for i in files:os.system('./ssfconv -t fcitx5 {}/{} {}'.format(dirs,i,i[:-4]))os.system('cp -r ./{} ~/.local/share/fcitx5/themes/'.format(i[:-4]))os.system('rm -r ./{} {}/{}'.format(i[:-4],dirs,i) )print("可以到輸入法配置 -> 配置附加組建 -> 經(jīng)典用戶界面 -> 主題里進(jìn)行選擇想要的皮膚")總結(jié)
以上是生活随笔為你收集整理的fcitx5 使用搜狗皮肤的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 编写测试tweak
- 下一篇: PX30 android8.1 时区更改