diff --git a/README.md b/README.md index 25825729..cd3c086c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

-STranslate +STranslate

@@ -28,27 +28,36 @@ ## 使用 -| 亮色 | 暗色 | -| :-- | :-- | -| ![](./light.png) | ![](./dark.png) | +打开软件后会静默在后台,等待调用,点击软件外部任意处即自动隐藏到后台——即用即走。 -打开软件后会静默在后台,等待调用 +1. 全局快捷键 -1. 全局监听快捷键 -- `Alt` + `A` 打开软件界面,输入内容按回车翻译 -- `Alt` + `D` 复制当前鼠标选中内容并翻译 -- `Alt` + `S` 截图选中区域内容并翻译 -- `Alt` + `G` 打开主界面 -- `Alt` + `Shift` + `S` 完全离线文字识别(基于PaddleOCR) -- `Alt` + `Shift` + `D` 打开监听鼠标划词,鼠标滑动选中文字立即翻译 +| 快捷键 | 功能 | 演示 | +| :-- | :-- | :-- | +| `Alt` + `A` | 打开软件界面,输入内容按`回车`翻译 | ![](./img/input.gif) | +| `Alt` + `D` | 复制当前鼠标选中内容并翻译 | ![](./img/crossword.gif) | +| `Alt` + `S` | 截图选中区域内容并翻译 | ![](./img/screenshot.gif) | +| `Alt` + `G` | 打开主界面 | ![](./img/open.gif) | +| `Alt` + `Shift` + `S` | 完全离线文字识别(基于PaddleOCR) | ![](./img/ocr.gif) | +| `Alt` + `Shift` + `D` | 打开监听鼠标划词,鼠标滑动选中文字立即翻译 | ![](./img/mousehook.gif) | -1. 软件内快捷键 -- `ESC` 隐藏界面 -- `Ctrl+Shift+Q` 退出程序 -- `Ctrl+Shift+R` 切换主题 -- `Ctrl+Shift+T` 置顶/取消置顶 -点击软件外部任意处即自动隐藏到后台——即用即走。 +2. 软件内快捷键 +- `ESC` 隐藏界面(含取消请求) +- `Ctrl` + `,` 打开设置 +- `Ctrl` + `Shift` + `Q` 退出程序 +- `Ctrl` + `Shift` + `R` 切换主题 +- `Ctrl` + `Shift` + `T` 置顶/取消置顶 + +3. 软件集成缓存功能,默认翻译一次则会缓存住,再次翻译或默认查询缓存,如果缓存存在则返回缓存结果,如需强制翻译只需要输入内容后按 `Ctrl` + `Enter` 即可 + +4. 软件集成二维码识别,触发方式为: `右键任务栏图标`-`二维码` + +![qrcode](./img/qrcode.png) + +5. 后续升级仅需点击软件`偏好设置`-`关于`-`检查更新`即可 + +![about](./img/about.png) ## 卸载 diff --git a/STranslate/ClearCache.bat b/STranslate/ClearCache.bat new file mode 100644 index 00000000..f53c6ad4 --- /dev/null +++ b/STranslate/ClearCache.bat @@ -0,0 +1,2 @@ +@echo off +rd /s /q "%localappdata%\stranslate" \ No newline at end of file diff --git a/STranslate/Properties/PublishProfiles/FolderProfile.pubxml b/STranslate/Properties/PublishProfiles/FolderProfile.pubxml index 3cc0252c..5215a1cc 100644 --- a/STranslate/Properties/PublishProfiles/FolderProfile.pubxml +++ b/STranslate/Properties/PublishProfiles/FolderProfile.pubxml @@ -11,7 +11,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. <_TargetId>Folder net8.0-windows win-x64 - true + false false false diff --git a/STranslate/STranslate.csproj b/STranslate/STranslate.csproj index 4f0f24f2..2a5e9f1d 100644 --- a/STranslate/STranslate.csproj +++ b/STranslate/STranslate.csproj @@ -10,14 +10,24 @@ app.manifest x64 README.md - 1.0.0.0104 - 1.0.0.0104 + 1.0.0.0107 + 1.0.0.0107 none + + + + + + + PreserveNewest + + + diff --git a/dark.png b/dark.png deleted file mode 100644 index 4c8794ba..00000000 Binary files a/dark.png and /dev/null differ diff --git a/img/about.png b/img/about.png new file mode 100644 index 00000000..aac30e11 Binary files /dev/null and b/img/about.png differ diff --git a/img/crossword.gif b/img/crossword.gif new file mode 100644 index 00000000..807d80c3 Binary files /dev/null and b/img/crossword.gif differ diff --git a/favicon.svg b/img/favicon.svg similarity index 100% rename from favicon.svg rename to img/favicon.svg diff --git a/img/input.gif b/img/input.gif new file mode 100644 index 00000000..106dbf62 Binary files /dev/null and b/img/input.gif differ diff --git a/img/mousehook.gif b/img/mousehook.gif new file mode 100644 index 00000000..024005ec Binary files /dev/null and b/img/mousehook.gif differ diff --git a/img/ocr.gif b/img/ocr.gif new file mode 100644 index 00000000..6a4f535e Binary files /dev/null and b/img/ocr.gif differ diff --git a/img/open.gif b/img/open.gif new file mode 100644 index 00000000..4e0bcbfb Binary files /dev/null and b/img/open.gif differ diff --git a/img/qrcode.png b/img/qrcode.png new file mode 100644 index 00000000..f40ea46d Binary files /dev/null and b/img/qrcode.png differ diff --git a/img/screenshot.gif b/img/screenshot.gif new file mode 100644 index 00000000..69abcb73 Binary files /dev/null and b/img/screenshot.gif differ diff --git a/light.png b/light.png deleted file mode 100644 index 545a2b1a..00000000 Binary files a/light.png and /dev/null differ