日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

fcitx5 使用搜狗皮肤

發(fā)布時(shí)間:2023/12/16 编程问答 59 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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.git

2.下載搜狗皮膚

網(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命令

pip install pycryptodome pip install Pillow pip install numpy

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)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。