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