[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3241":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":16,"starSnapshotCount":16,"syncStatus":39,"lastSyncTime":40,"discoverSource":41},3241,"pot-desktop","pot-app\u002Fpot-desktop","pot-app","🌈一个跨平台的划词翻译和OCR软件 | A cross-platform software for text translation and recognition.","https:\u002F\u002Fpot-app.com",null,"JavaScript",18717,913,52,435,0,11,130,780,72,118.88,"GNU General Public License v3.0",false,"master",[26,27,28,29,7,30,31,32,33,34,35],"linux","macos","ocr","pot","recognize","tauri","translate","translation","tts","windows","2026-06-12 04:00:17","\u003Cimg width=\"200px\" src=\"public\u002Ficon.svg\" align=\"left\"\u002F>\n\n# Pot (派了个萌的翻译器)\n\n> 🌈 一个跨平台的划词翻译软件 ([QQ 频道](https:\u002F\u002Fpd.qq.com\u002Fs\u002Fakns94e1r))\n\n![License](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Fpot-app\u002Fpot-desktop.svg)\n![Tauri](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTauri-1.6.8-blue?logo=tauri)\n![JavaScript](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-JavaScript-yellow?logo=javascript&logoColor=white)\n![Rust](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-Rust-orange?logo=rust&logoColor=white)\n![Windows](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-Windows-blue?logo=windows&logoColor=white)\n![MacOS](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-macOS-black?&logo=apple&logoColor=white)\n![Linux](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-Linux-yellow?logo=linux&logoColor=white)\n\n\u003Cbr\u002F>\n\u003Chr\u002F>\n\u003Cdiv align=\"center\">\n\n\u003Ch3>中文 | \u003Ca href='.\u002FREADME_EN.md'>English\u003C\u002Fa> | \u003Ca href='.\u002FREADME_KR.md'> 한글 \u003C\u002Fa>\u003C\u002Fh3>\n\n\u003Ctable>\n\u003Ctr>\n    \u003Ctd> \u003Cimg src=\"asset\u002F1.png\">\n    \u003Ctd> \u003Cimg src=\"asset\u002F2.png\">\n    \u003Ctd> \u003Cimg src=\"asset\u002F3.png\">\n\u003C\u002Ftable>\n\n# 目录\n\n\u003C\u002Fdiv>\n\n-   [使用说明](#使用说明)\n-   [特色功能](#特色功能)\n-   [支持接口](#支持接口)\n-   [插件系统](#插件系统)\n-   [安装指南](#安装指南)\n-   [外部调用](#外部调用)\n-   [Wayland 支持](#wayland-支持)\n-   [国际化](#国际化weblate)\n-   [贡献者](#贡献者)\n-   [感谢](#感谢)\n\n\u003Cdiv align=\"center\">\n\n# 使用说明\n\n| 划词翻译                                             | 输入翻译                                                       | 外部调用                                                             |\n| ---------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------------- |\n| 鼠标选中需要翻译的文本，按下设置的划词翻译快捷键即可 | 按下输入翻译快捷键呼出翻译窗口，输入待翻译文本后按下 回车 翻译 | 通过被其他软件调用实现更加方便高效的功能, 详见 [外部调用](#外部调用) |\n| \u003Cimg src=\"asset\u002Feg1.gif\"\u002F>                           | \u003Cimg src=\"asset\u002Feg2.gif\"\u002F>                                     | \u003Cimg src=\"asset\u002Feg3.gif\"\u002F>                                           |\n\n| 剪切板监听模式                                                         | 截图 OCR                                          | 截图翻译                                         |\n| ---------------------------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------ |\n| 在任意翻译面板上点击左上角图标启动剪切板监听默认，复制文字即可完成翻译 | 按下截图 OCR 快捷键后框选需要识别区域即可完成识别 | 按下截图翻译快捷键后框选需要识别区域即可完成翻译 |\n| \u003Cimg src=\"asset\u002Feg4.gif\"\u002F>                                             | \u003Cimg src=\"asset\u002Feg5.gif\"\u002F>                        | \u003Cimg src=\"asset\u002Feg6.gif\"\u002F>                       |\n\n\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\n\n# 特色功能\n\n\u003C\u002Fdiv>\n\n-   [x] 多接口并行翻译 ([支持接口](#支持接口))\n-   [x] 多接口文字识别 ([支持接口](#支持接口))\n-   [x] 多接口语音合成 ([支持接口](#支持接口))\n-   [x] 导出到生词本 ([支持接口](#支持接口))\n-   [x] 外部调用 ([详情](#外部调用))\n-   [x] 支持插件系统 ([插件系统](#插件系统))\n-   [x] 支持所有 PC 平台 (Windows, macOS, Linux)\n-   [x] 支持 Wayland (在 KDE、Gnome 以及 Hyprland 上测试)\n-   [x] 多语言支持\n\n\u003Cdiv align=\"center\">\n\n# 支持接口\n\n\u003C\u002Fdiv>\n\n## 翻译\n\n-   [x] [OpenAI](https:\u002F\u002Fplatform.openai.com\u002F)\n-   [x] [智谱 AI](https:\u002F\u002Fwww.zhipuai.cn\u002F)\n-   [x] [Gemini Pro](https:\u002F\u002Fgemini.google.com\u002F)\n-   [x] [Ollama](https:\u002F\u002Fwww.ollama.com\u002F) (离线)\n-   [x] [阿里翻译](https:\u002F\u002Fwww.aliyun.com\u002Fproduct\u002Fai\u002Falimt)\n-   [x] [百度翻译](https:\u002F\u002Ffanyi.baidu.com\u002F)\n-   [x] [彩云小译](https:\u002F\u002Ffanyi.caiyunapp.com\u002F)\n-   [x] [腾讯翻译君](https:\u002F\u002Ffanyi.qq.com\u002F)\n-   [x] [腾讯交互翻译](https:\u002F\u002Ftransmart.qq.com\u002F)\n-   [x] [火山翻译](https:\u002F\u002Ftranslate.volcengine.com\u002F)\n-   [x] [小牛翻译](https:\u002F\u002Fniutrans.com\u002F)\n-   [x] [Google](https:\u002F\u002Ftranslate.google.com)\n-   [x] [Bing](https:\u002F\u002Flearn.microsoft.com\u002Fzh-cn\u002Fazure\u002Fcognitive-services\u002Ftranslator\u002F)\n-   [x] [Bing 词典](https:\u002F\u002Fwww.bing.com\u002Fdict)\n-   [x] [DeepL](https:\u002F\u002Fwww.deepl.com\u002F)\n-   [x] [有道翻译](https:\u002F\u002Fai.youdao.com\u002F)\n-   [x] [剑桥词典](https:\u002F\u002Fdictionary.cambridge.org\u002F)\n-   [x] [Yandex](https:\u002F\u002Ftranslate.yandex.com\u002F)\n-   [x] [Lingva](https:\u002F\u002Fgithub.com\u002FTheDavidDelta\u002Flingva-translate) ([插件](https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-app-translate-plugin-template))\n-   [x] [Tatoeba](https:\u002F\u002Ftatoeba.org\u002F) ([插件](https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-app-translate-plugin-tatoeba))\n-   [x] [ECDICT](https:\u002F\u002Fgithub.com\u002Fskywind3000\u002FECDICT) ([插件](https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-app-translate-plugin-ecdict))\n\n更多接口支持见 [插件系统](#插件系统)\n\n## 文字识别\n\n-   [x] 系统 OCR (离线)\n    -   [x] [Windows.Media.OCR](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fuwp\u002Fapi\u002Fwindows.media.ocr.ocrengine?view=winrt-22621) on Windows\n    -   [x] [Apple Vision Framework](https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Fvision\u002Frecognizing_text_in_images) on MacOS\n    -   [x] [Tesseract OCR](https:\u002F\u002Fgithub.com\u002Ftesseract-ocr) on Linux\n-   [x] [Tesseract.js](https:\u002F\u002Ftesseract.projectnaptha.com\u002F) (离线)\n-   [x] [百度](https:\u002F\u002Fai.baidu.com\u002Ftech\u002Focr\u002Fgeneral)\n-   [x] [腾讯](https:\u002F\u002Fcloud.tencent.com\u002Fproduct\u002Focr-catalog)\n-   [x] [火山](https:\u002F\u002Fwww.volcengine.com\u002Fproduct\u002FOCR)\n-   [x] [迅飞](https:\u002F\u002Fwww.xfyun.cn\u002Fservices\u002Fcommon-ocr)\n-   [x] [腾讯图片翻译](https:\u002F\u002Fcloud.tencent.com\u002Fdocument\u002Fproduct\u002F551\u002F17232)\n-   [x] [百度图片翻译](https:\u002F\u002Ffanyi-api.baidu.com\u002Fproduct\u002F22)\n-   [x] [Simple LaTeX](https:\u002F\u002Fsimpletex.cn\u002F)\n-   [x] [OCRSpace](https:\u002F\u002Focr.space\u002F) ([插件](https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-app-recognize-plugin-template))\n-   [x] [Rapid](https:\u002F\u002Fgithub.com\u002FRapidAI\u002FRapidOcrOnnx) (离线 [插件](https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-app-recognize-plugin-rapid))\n-   [x] [Paddle](https:\u002F\u002Fgithub.com\u002Fhiroi-sora\u002FPaddleOCR-json) (离线 [插件](https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-app-recognize-plugin-paddle))\n\n更多接口支持见 [插件系统](#插件系统)\n\n## 语音合成\n\n-   [x] [Lingva](https:\u002F\u002Fgithub.com\u002Fthedaviddelta\u002Flingva-translate)\n\n更多接口支持见 [插件系统](#插件系统)\n\n## 生词本\n\n-   [x] [Anki](https:\u002F\u002Fapps.ankiweb.net\u002F)\n-   [x] [欧路词典](https:\u002F\u002Fdict.eudic.net\u002F)\n-   [x] [有道](https:\u002F\u002Fwww.youdao.com\u002F) ([插件](https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-app-collection-plugin-youdao))\n-   [x] [扇贝](https:\u002F\u002Fweb.shanbay.com\u002Fweb\u002Fmain) ([插件](https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-app-collection-plugin-shanbay))\n\n更多接口支持见 [插件系统](#插件系统)\n\n\u003Cdiv align=\"center\">\n\n# 插件系统\n\n\u003C\u002Fdiv>\n\n软件内置接口数量有限，但是您可以通过插件系统来扩展软件的功能。\n\n## 插件安装\n\n你可以在 [Plugin List](https:\u002F\u002Fpot-app.com\u002Fplugin.html) 查找你需要的插件，然后前往插件仓库下载插件。\n\npot 插件的扩展名为 `.potext`, 下载得到`.potext`文件之后， 在 偏好设置-服务设置-添加外部插件-安装外部插件 选择对应的 `.potext` 即可安装成功，添加到服务列表中即可像内置服务一样正常使用了。\n\n### 故障排除\n\n-   找不到指定的模块 (Windows)\n\n    出现类似这样的报错是因为系统缺少 C++库，前往[这里](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fcpp\u002Fwindows\u002Flatest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022)安装即可解决问题。\n\n-   不是有效的 Win32 应用程序 (Windows)\n\n    出现类似这样的报错说明你没有下载对应系统或者架构的插件，前往插件仓库下载正确的插件即可解决问题。\n\n## 插件开发\n\n在 [Plugin List](https:\u002F\u002Fpot-app.com\u002Fplugin.html) 中的 [模板](https:\u002F\u002Fpot-app.com\u002Fplugin.html#%E6%A8%A1%E6%9D%BF) 章节提供了各种插件的开发模板，具体的开发文档请查看对应的模板仓库。\n\n\u003Cdiv align=\"center\">\n\n# 安装指南\n\n\u003C\u002Fdiv>\n\n## Windows\n\n### 通过 Winget 安装\n\n```powershell\nwinget install Pylogmon.pot\n```\n\n### 手动安装\n\n1. 在 [Release](https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-desktop\u002Freleases\u002Flatest) 页面下载最新 `exe` 安装包。\n\n    - 64 位机器下载 `pot_{version}_x64-setup.exe`\n    - 32 位机器下载 `pot_{version}_x86-setup.exe`\n    - arm64 机器下载 `pot_{version}_arm64-setup.exe`\n\n2. 双击安装包进行安装。\n\n### 故障排除\n\n-   启动后没有界面，点击托盘图标没有反应\n\n    检查是否卸载\u002F禁用了 WebView2，如果卸载\u002F禁用了 WebView2，请手动安装 WebView2 或将其恢复。\n\n    如果是企业版系统不方便安装或无法安装 WebView2，请尝试在 [Release](https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-desktop\u002Freleases\u002Flatest) 下载内置 WebView2 的版本 `pot_{version}_{arch}_fix_webview2_runtime-setup.exe`\n\n    若问题仍然存在请尝试使用 Windows7 兼容模式启动。\n\n## MacOS\n\n### 通过 Brew 安装\n\n1. 添加我们的 tap:\n\n```bash\nbrew tap pot-app\u002Fhomebrew-tap\n```\n\n2. 安装 pot:\n\n```bash\nbrew install --cask pot\n```\n\n3. 更新 pot\n\n```bash\nbrew upgrade --cask pot\n```\n\n### 手动安装\n\n1. 从 [Release](https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-desktop\u002Freleases\u002Flatest) 页面下载最新的 `dmg` 安装包。（如果您使用的是 M1 芯片，请下载名为`pot_{version}_aarch64.dmg`的安装包，否则请下载名为`pot_{version}_x64.dmg`的安装包）\n2. 双击下载的文件后将 pot 拖入 Applications 文件夹即可完成安装。\n\n### 故障排除\n\n-   由于开发者无法验证，“pot”无法打开。\n\n    点击 取消 按钮，然后去 设置 -> 隐私与安全性 页面，点击 仍要打开 按钮，然后在弹出窗口里点击 打开 按钮即可，以后打开 pot 就再也不会有任何弹窗告警了\n\n    如果在 隐私与安全性 中找不到以上选项，或启动时提示文件损坏。打开 Terminal.app，并输入以下命令，然后重启 pot 即可：\n\n    ```bash\n    sudo xattr -d com.apple.quarantine \u002FApplications\u002Fpot.app\n    ```\n\n-   如果每次打开时都遇到辅助功能权限提示，或者无法进行划词翻译，请前往设置 -> 隐私与安全 -> 辅助功能，移除 “pot”，并重新添加 “pot”。\n\n## Linux\n\n### Debian\u002FUbuntu\n\n1. 从 [Release](https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-desktop\u002Freleases\u002Flatest) 页面下载最新的对应架构的 `deb` 安装包。\n\n2. 使用 `apt-get` 进行安装\n\n    ```bash\n    sudo apt-get install .\u002Fpot_{version}_amd64.deb\n    ```\n\n### Arch\u002FManjaro\n\n> [!WARNING]\n> 在最新版本的 [Webkit2Gtk](https:\u002F\u002Farchlinux.org\u002Fpackages\u002Fextra\u002Fx86_64\u002Fwebkit2gtk) (2.42.0) 中，由于 Nvidia 专有驱动未完全实现 DMABUF，将导致无法启动和崩溃的情况发生。\u003Cbr>\n> 请降级或在 `\u002Fetc\u002Fenvironment` （或者其他设置环境变量的地方）中加入 `WEBKIT_DISABLE_DMABUF_RENDERER=1` 环境变量关闭 DMABUF 的使用。\n\n1. 在 [AUR](https:\u002F\u002Faur.archlinux.org\u002Fpackages?O=0&K=pot-translation) 查看\n\n使用 `AUR helper` 安装：\n\n```bash\nyay -S pot-translation # 或 pot-translation-bin\n\n# paru -S pot-translation # 或 pot-translation-bin\n```\n\n2. 如果你使用 `archlinuxcn` 源，可以直接使用 pacman 安装\n\n```bash\nsudo pacman -S pot-translation\n```\n\n### Flatpak\n\n> [!WARNING]\n> Flatpak 版本缺失托盘图标。\n\n\u003Ca href='https:\u002F\u002Fflathub.org\u002Fapps\u002Fcom.pot_app.pot'>\n    \u003Cimg width='240' alt='Download on Flathub' src='https:\u002F\u002Fflathub.org\u002Fapi\u002Fbadge?locale=zh-Hans'\u002F>\n\u003C\u002Fa>\n\n\u003Cdiv align=\"center\">\n\n# 外部调用\n\n\u003C\u002Fdiv>\n\nPot 提供了完整的 HTTP 接口，以便可以被其他软件调用。您可以通过向 `127.0.0.1:port` 发送 HTTP 请求来调用 pot，其中的`port`是 pot 监听的端口号，默认为`60828`,可以在软件设置中进行更改。\n\n## API 文档:\n\n```bash\nPOST \"\u002F\" => 翻译指定文本(body为需要翻译的文本),\nGET \"\u002Fconfig\" => 打开设置,\nPOST \"\u002Ftranslate\" => 翻译指定文本(同\"\u002F\"),\nGET \"\u002Fselection_translate\" => 划词翻译,\nGET \"\u002Finput_translate\" => 输入翻译,\nGET \"\u002Focr_recognize\" => 截图OCR,\nGET \"\u002Focr_translate\" => 截图翻译,\nGET \"\u002Focr_recognize?screenshot=false\" => 截图OCR(不使用软件内截图),\nGET \"\u002Focr_translate?screenshot=false\" => 截图翻译(不使用软件内截图),\nGET \"\u002Focr_recognize?screenshot=true\" => 截图OCR,\nGET \"\u002Focr_translate?screenshot=true\" => 截图翻译,\n```\n\n## 示例：\n\n-   调用划词翻译：\n\n    如果想要调用 pot 划词翻译，只需向`127.0.0.1:port`发送请求即可。\n\n    例如通过 curl 发送请求：\n\n    ```bash\n    curl \"127.0.0.1:60828\u002Fselection_translate\"\n    ```\n\n## 不使用软件内截图\n\n这一功能可以让您在不使用软件内截图的情况下调用截图 OCR\u002F截图翻译功能，这样您就可以使用您喜欢的截图工具来截图了，也可以解决在某些平台下 pot 自带的截图无法使用的问题。\n\n### 调用流程\n\n1. 使用其他截图工具截图\n2. 将截图保存在 `$CACHE\u002Fcom.pot-app.desktop\u002Fpot_screenshot_cut.png`\n3. 向`127.0.0.1:port\u002Focr_recognize?screenshot=false`发送请求即可调用成功\n\n> `$CACHE`为系统缓存目录，例如在 Windows 上为`C:\\Users\\{用户名}\\AppData\\Local\\com.pot-app.desktop\\pot_screenshot_cut.png`\n\n### 示例\n\n在 Linux 下调用 Flameshot 进行截图 OCR:\n\n```bash\nrm ~\u002F.cache\u002Fcom.pot-app.desktop\u002Fpot_screenshot_cut.png && flameshot gui -s -p ~\u002F.cache\u002Fcom.pot-app.desktop\u002Fpot_screenshot_cut.png && curl \"127.0.0.1:60828\u002Focr_recognize?screenshot=false\"\n```\n\n## 现有用法 (快捷划词翻译)\n\n### SnipDo (Windows)\n\n1. 从 [Microsoft Store](https:\u002F\u002Fapps.microsoft.com\u002Fstore\u002Fdetail\u002Fsnipdo\u002F9NPZ2TVKJVT7) 下载安装 SnipDo。\n2. 从 [Release](https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-desktop\u002Freleases\u002Flatest) 下载 pot 的 SnipDo 扩展 (pot.pbar)\n3. 双击下载的扩展文件完成安装。\n4. 选中文字，可以看到弹出的 SnipDo 工具条，点击翻译按钮即可翻译。\n\n### PopClip (MacOS)\n\n1. 从 [App Store](https:\u002F\u002Fapps.apple.com\u002Fus\u002Fapp\u002Fpopclip\u002Fid445189367?mt=12) 下载安装 PopClip\n2. 从 [Release](https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-desktop\u002Freleases\u002Flatest) 下载 pot 的 PopClip 扩展 (pot.popclipextz)\n3. 双击下载的扩展文件完成安装。\n4. 在 PopClip 的扩展中启用 pot 扩展，选中文本即可点击翻译。\n\n### Starry (Linux)\n\n> Starry 目前仍处于开发阶段，因此您只能手动编译它。\n\nGithub: [ccslykx\u002FStarry](https:\u002F\u002Fgithub.com\u002Fccslykx\u002FStarry)\n\n\u003Cdiv align=\"center\">\n\n# Wayland 支持\n\n\u003C\u002Fdiv>\n\n由于各大发行版对于 Wayland 的支持程度不同，所以 pot 本身没法做到特别完美的支持，这里可以提供一些常见问题的解决方案，通过合理的设置之后，pot 也可以在 Wayland 下完美运行。\n\n## 快捷键无法使用\n\n由于 Tauri 的快捷键方案并没有支持 Wayland，所以 pot 应用内的快捷键设置在 Wayland 下无法使用。 您可以设置系统快捷用 curl 发送请求来触发 pot，详见[外部调用](#外部调用)\n\n## 截图无法使用\n\n在一些纯 Wayland 桌面环境\u002F窗口管理器(如 Hyprland)上，pot 内置的截图无法使用，这时可以通过使用其他截图工具代替，详见 [不使用软件内截图](#不使用软件内截图)\n\n下面给出在 Hyprland 下的配置示例(通过 grim 和 slurp 实现截图)：\n\n```conf\nbind = ALT, X, exec, grim -g \"$(slurp)\" ~\u002F.cache\u002Fcom.pot-app.desktop\u002Fpot_screenshot_cut.png && curl \"127.0.0.1:60828\u002Focr_recognize?screenshot=false\"\nbind = ALT, C, exec, grim -g \"$(slurp)\" ~\u002F.cache\u002Fcom.pot-app.desktop\u002Fpot_screenshot_cut.png && curl \"127.0.0.1:60828\u002Focr_translate?screenshot=false\"\n```\n\n其他桌面环境\u002F窗口管理器也是类似的操作\n\n## 划词翻译窗口跟随鼠标位置\n\n由于目前 pot 在 Wayland 下还无法获取到正确的鼠标坐标，所以内部的实现无法工作。 对于某些桌面环境\u002F窗口管理器，可以通过设置窗口规则来实现窗口跟随鼠标位置，这里以 Hyprland 为例：\n\n```conf\nwindowrulev2 = float, class:(pot), title:(Translator|OCR|PopClip|Screenshot Translate) # Translation window floating\nwindowrulev2 = move cursor 0 0, class:(pot), title:(Translator|PopClip|Screenshot Translate) # Translation window follows the mouse position.\n```\n\n\u003Cdiv align=\"center\">\n\n# 国际化([Weblate](https:\u002F\u002Fhosted.weblate.org\u002Fengage\u002Fpot-app\u002F))\n\n[![](https:\u002F\u002Fhosted.weblate.org\u002Fwidget\u002Fpot-app\u002Fpot-desktop\u002Fsvg-badge.svg)](https:\u002F\u002Fhosted.weblate.org\u002Fengage\u002Fpot-app\u002F)\n\n[![](https:\u002F\u002Fhosted.weblate.org\u002Fwidget\u002Fpot-app\u002Fpot-desktop\u002Fzh_Hans\u002Fmulti-auto.svg)](https:\u002F\u002Fhosted.weblate.org\u002Fengage\u002Fpot-app\u002F)\n\n\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\n\n# 贡献者\n\n\u003C\u002Fdiv>\n\n\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fpot-app\u002F.github\u002Fblob\u002Fmaster\u002Fpot-desktop-contributions.svg?raw=true\" width=\"100%\"\u002F>\n\n## 手动编译\n\n### 环境要求\n\nNode.js >= 18.0.0\n\npnpm >= 8.5.0\n\nRust >= 1.80.0\n\n### 开始编译\n\n1. Clone 仓库\n\n    ```bash\n    git clone https:\u002F\u002Fgithub.com\u002Fpot-app\u002Fpot-desktop.git\n    ```\n\n2. 安装依赖\n\n    ```bash\n    cd pot-desktop\n    pnpm install\n    ```\n\n3. 安装依赖(仅 Linux 需要)\n\n    ```bash\n    sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev patchelf libxdo-dev libxcb1 libxrandr2 libdbus-1-3\n    ```\n\n4. 开发调试\n\n    ```bash\n    pnpm tauri dev # Run the app in development mode\n    ```\n\n5. 打包构建\n    ```bash\n    pnpm tauri build # Build into installation package\n    ```\n\n\u003Cdiv align=\"center\">\n\n# 感谢\n\n\u003C\u002Fdiv>\n\n-   [Bob](https:\u002F\u002Fgithub.com\u002Fripperhe\u002FBob) 灵感来源\n-   [bob-plugin-openai-translator](https:\u002F\u002Fgithub.com\u002Fyetone\u002Fbob-plugin-openai-translator) OpenAI 接口参考\n-   [@uiYzzi](https:\u002F\u002Fgithub.com\u002FuiYzzi) 实现思路\n-   [@Lichenkass](https:\u002F\u002Fgithub.com\u002FLichenkass) 维护 Deepin 应用商店中的 pot\n-   [Tauri](https:\u002F\u002Fgithub.com\u002Ftauri-apps\u002Ftauri) 好用的 GUI 框架\n\n\u003Cdiv align=\"center\">\n","Pot (派了个萌的翻译器) 是一个跨平台的划词翻译和OCR软件，支持Windows、macOS和Linux系统。其核心功能包括划词翻译、输入翻译、截图OCR识别与翻译以及剪切板监听模式下的自动翻译。通过Tauri框架构建，结合了JavaScript和Rust技术栈以确保高效稳定的运行表现。该软件还具备多接口并行翻译、文字识别及语音合成功能，并且支持插件扩展，适用于需要快速获取文本或图像中信息并进行即时翻译的各种场景，如学习外语资料、阅读外文文献等。",2,"2026-06-11 02:53:03","top_language"]