第三方Doc2X桌面应用,支持Linux(Wayland,X11)以及Windows。
[!NOTE] 如你不需要监听剪切板/从剪切板粘贴图片的功能,你可以在AUR上使用 @asukaminato0721 的Doc2X Windows程序移植版
[!IMPORTANT] 为了监听剪切板,Linux用户需要安装
xclip
如果你使用的Wayland,还需要安装
wl-clipboard
Ubuntu/Debian:
sudo apt install xclip wl-clipboard
Arch/Manjaro:
sudo pacman -S xclip wl-clipboard
你可以从Release下载对应系统的安装包。
对于Arch用户,你可以从AUR下载:
paru -S doc2xgui-git
#yay -S doc2xgui-git
或者你也可以从源码运行:
conda create -n doc2x python=3.12
conda activate doc2x
git clone https://github.com/Menghuan1918/Doc2X_GUI
cd Doc2X_GUI
pip install -r requirements.txt
python Doc2X.py
[!IMPORTANT] 为了保证部分功能的正常工作,默认情况下程序会在XWayland下运行。如希望在Wayland下运行,请添加运行参数
-wayland 1
Windows安装包与Deb包均是封装的nuitka打包的二进制文件(偷懒)
Windows打包指令:
python -m nuitka --standalone --include-data-file=icon.png=./icon.png --include-data-file=pdf.png=./pdf.png --include-data-file=Doc2X_zh.qm=./Doc2X_zh.qm --plugin-enable=pyqt6 Doc2X.py
Linux打包指令:
python -m nuitka --standalone --include-data-file=icon.png=./icon.png --include-data-file=pdf.png=./pdf.png --plugin-enable=pyqt6 --include-data-file=Doc2X_zh.qm=./Doc2X_zh.qm --onefile --mingw64 --windows-console-mode=disable --windows-icon-from-ico=./icon.png Doc2X.py