Repository navigation
Releases: BearKouber/TiLex
Release list
TiLex 0.2.3
TiLex 0.2.3
相比 0.2.2 的改动。直接运行新安装包升级即可,设置和生词本会保留。
新增
- 划词翻译快捷键:在任意程序里选中文字,按快捷键直接弹出翻译结果,不用等划词浮标。浮标关闭时也能用。默认留空。
- 「快捷键」设置页:位于「生词本」和「关于」之间,集中设置划词翻译、截图翻译、开关设置窗口三个快捷键。设成已被占用的组合时会提示被哪一项占用。
- 字体选择:「翻译设置」第一项。可选微软雅黑细(默认)、微软雅黑,以及宋体、黑体、楷体、Segoe UI 等常用字体,只列出电脑上装了的。切换后所有窗口立即生效。
修复与改进
- 文字更清楚:开启字体微调(hinting),笔画对齐像素,不再发灰、像带阴影。宋体、新宋体在小字号下使用字体自带的点阵,和系统程序里一样清楚。
- 生词本:详情里原文黑色、译文灰色,一眼分清。
- 图标:任务管理器和标题栏的小图标不再失真。
TiLex 0.2.3 (English)
Changes since 0.2.2. Run the new installer to upgrade. Your settings and wordbook are kept.
New
- Translate Selection hotkey: Select text in any app and press the hotkey to open the translation right away, without waiting for the floating icon. Works even when the floating icon is off. Empty by default.
- Shortcuts settings page: A new page between Wordbook and About with all three hotkeys: Translate Selection, Screenshot Translate, and Toggle Settings Window. If a combination is already taken, TiLex tells you which one uses it.
- Font choice: The first item on the Translate page. Choose Microsoft YaHei Light (default), Microsoft YaHei, or common fonts such as SimSun, SimHei, KaiTi, and Segoe UI. Only installed fonts are listed. All windows update right away.
Fixes & Improvements
- Sharper text: Font hinting is now on, so strokes line up with pixels and no longer look gray or shadowed. SimSun and NSimSun use their built-in bitmaps at small sizes and look as sharp as in native apps.
- Wordbook: In the detail view, source text is black and translations are gray, so they are easy to tell apart.
- Icons: The small icon in Task Manager and the title bar is no longer distorted.
TiLex 0.2.2
TiLex 0.2.2
相比 0.2.1 的改动。直接运行新安装包升级即可,设置和生词本会保留。
新增
- 设置窗口快捷键:在「翻译」页截图翻译快捷键下方新增一项,按一次打开设置窗口,再按一次关闭。默认留空。
- AI 翻译不再思考:所有 AI 请求默认关闭模型的思考过程,必须思考的模型用最低档,响应更快。服务端不接受时自动降一档重试,并记住可用的档位。
- 生词本搜索高亮:搜索词在列表和详情里都会高亮显示。
修复与改进
- 结果窗口
- 滚动条换成细滑块,悬停不再展开,不会挡住收藏按钮。
- 服务标题在滚动时固定在顶部。
- 未命名的服务显示默认名称,不再显示内部 id。
- 窗口置顶时,新的翻译在原位置刷新,不再跳动。
- 设置窗口
- 各页卡片随窗口放大而变宽。
- 最小尺寸为 800×600。
- 已在运行时再次启动 TiLex,设置窗口能稳定弹到最前面。
- 生词本:详情滑块贴近卡片右边,内容区更宽。输入框聚焦时改用浅色描边。
- 图标:DeepL 图标按比例显示。腾讯交互翻译换成高清图标。
TiLex 0.2.2 (English)
Changes since 0.2.1. Run the new installer to upgrade. Your settings and wordbook are kept.
New
- Settings window hotkey: A new entry under the screenshot hotkey on the Translate page. Press it once to open the settings window, and again to close it. Empty by default.
- No thinking for AI translation: All AI requests turn off the model's thinking by default, or use the lowest level for models that must think, so replies come faster. If a server rejects a level, TiLex retries one level lower and remembers the level that works.
- Wordbook search highlight: Search terms are highlighted in both the list and the detail view.
Fixes & Improvements
- Result window
- The scrollbar is now a thin thumb. It no longer expands on hover or covers the favorite button.
- Service headers stay at the top while scrolling.
- Unnamed services show a default name instead of an internal id.
- When the window is pinned, a new translation refreshes in place instead of moving the window.
- Settings window
- Page cards widen as the window grows.
- The minimum size is 800×600.
- Launching TiLex again while it is running now reliably brings the settings window to the front.
- Wordbook: The detail scroll thumb sits closer to the card edge, giving the content more room. Input fields now use a light border when focused.
- Icons: The DeepL icon keeps its proportions. Transmart has a new high-resolution icon.
TiLex 0.2.1
TiLex 0.2.1
相比 0.1.2 的改动。
升级方法与注意事项:直接运行新安装包。出现「已安装」页面时,保持默认的「安装前卸载」,点下一步即可。安装包会识别旧版(0.1.x)并执行卸载。
- 0.2.1 是整体原生重写版本,数据存储目录已调整为
%APPDATA%\TiLex。旧版(0.1.x)的数据存放在旧目录中,新版不会读取旧目录,也不会自动迁移。升级后将是全新的默认配置与空白生词本。 - 旧版数据并未被删除,仍完整保留在原处。如需保留原有生词本,请务必在升级前使用 0.1.x 旧版导出 Markdown(旧版设置页内提供导出功能),安装 0.2.1 后再根据需要重新录入。
- 新版安装包与卸载程序不会删除
%APPDATA%\TiLex,后续在 0.2.x 系列版本之间升级不会丢失数据。
架构与性能
- Slint 原生重写:整体从 Tauri + React 架构重写为 Rust + Slint 原生桌面架构,彻底摆脱对 WebView2 运行时的依赖,不再启动浏览器多进程。
- 内存大幅下降:空闲内存(专用工作集)由旧版的约 149 MB(主进程与 9 个 WebView2 子进程合计)降低至原生版的 1.5–2.2 MB;日常使用翻译后的空闲专用工作集仅约 10–13 MB。
功能对齐
新版与 0.1.x 核心功能范围保持一致(F1–F11),并未削减功能:
- 划词翻译与结果浮窗:支持划词浮标取词、多服务并行翻译、结果折叠、复制、收藏生词与语音朗读(TTS)。
- 截图 OCR:快捷键截图识别翻译,内置微信 OCR 与 Umi-OCR 离线/在线识别。
- 翻译服务:支持自定义 AI 服务与模型(带测速与延迟统计),以及 Google、Bing、DeepL、百度、腾讯交互翻译等内置引擎。
- 生词本:单词与长难句卡片、搜索与筛选、批量软删除与 Markdown 导出。
- 设置与系统集成:系统托盘常驻、中英双语界面、深浅色主题切换、开机自启动及快捷键自定义。
TiLex 0.2.1 (English)
Changes since 0.1.2.
How to upgrade & Important notice: Run the new installer directly. When the "Already Installed" page appears, keep the default "Uninstall before installing" and click Next. The installer will recognize and uninstall the legacy version (0.1.x).
- 0.2.1 is a complete native rewrite, and the data storage directory has changed to
%APPDATA%\TiLex. Legacy (0.1.x) data resides in the old directory; the new version does not read the old directory and will not automatically migrate it. After upgrading, you will start with fresh default settings and an empty wordbook. - Legacy data has not been deleted and remains intact in its original location. To keep your wordbook, please export it to Markdown using the 0.1.x legacy version before upgrading (available in the legacy Settings page), and re-enter words as needed after installing 0.2.1.
- The installer and uninstaller do not delete
%APPDATA%\TiLex, so upgrading between future 0.2.x releases will preserve your data.
Architecture & Performance
- Native Slint Rewrite: Fully rewritten from Tauri + React to native Rust + Slint. Completely removes the dependency on WebView2 runtime and no longer runs multiple browser processes.
- Substantially Lower Memory Usage: Idle memory (private working set) decreased from ~149 MB in the legacy version (main process combined with 9 WebView2 child processes) to 1.5–2.2 MB in the native rewrite; idle private working set after translation usage remains around 10–13 MB.
Feature Alignment
The new release aligns with all core features from 0.1.x (F1–F11) without feature reduction:
- Selection & Result Popup: Floating selection button, parallel multi-service translation, card folding, copying, word favoriting, and speech synthesis (TTS).
- Screenshot OCR: Hotkey screenshot capture and translation, supporting WeChat OCR and Umi-OCR offline/online recognition.
- Translation Services: Supports custom AI services/models with latency testing, plus built-in engines including Google, Bing, DeepL, Baidu, and Transmart.
- Wordbook: Word and sentence cards, search and filtering, batch removal, and Markdown export.
- Settings & System Integration: System tray residency, bilingual UI (English/Chinese), light/dark themes, launch at startup, and customizable hotkeys.
TiLex 0.1.2
TiLex 0.1.2
相比 0.1.1 的改动。
升级方法:直接运行新安装包。出现「已安装」页面时,保持默认的「安装前卸载」,点下一步即可。
这一步只替换程序文件,原有设置和生词本都会保留。
新功能
划词取词
- 新增「增强选中识别」(翻译设置 → 划词)。部分程序(如微信聊天记录)不把选中文字暴露给外部,
开启后 TiLex 会在这些程序里模拟一次复制来取词,随后自动恢复剪贴板原有内容。
注意:剪贴板管理工具和 Win+V 历史中可能会留下这次复制的记录。默认关闭。
生词本
- 长难句改成一张完整卡片:原句在上、译文在下,译文下方用分割线显示 AI 给出的分类与难度。
- 长难句新增分类(英文 6 类 / 中文 5 类)和三档难度,可据此回顾。
- 中文长句现在也能被识别成句子(含中文逗号、顿号、分号、冒号,或汉字超过 10 个)。
改进
AI 长难句解析
- 解析结果精简:主干只照抄原文,修饰成分最多 3 条,术语最多 4 个。
旧的解析结果不受影响,重新翻译才会用新格式。 - 某一项标记格式异常时只丢掉那一项,整条解析照常显示。
- 同一句话既有 AI 解析、又有其他服务的纯译文时,收藏优先存 AI 的完整结果。
生词本版式
- 长难句字号降到正文大小,译文单独成卡,英文换成更耐看的字体。
导出 Markdown
- 单词改为
####标题加两列释义表;长难句去掉 Callout 包裹,直接成段。 - 排序:单词按 A–Z(中文按拼音并入同一序列),长难句先按分类分组、组内按难度升序。
TiLex 0.1.2 (English)
Changes since 0.1.1.
How to upgrade: run the new installer. When the "Already Installed" page appears, keep the default "Uninstall before installing" and click Next.
This only replaces the program files; your settings and wordbook are kept.
New
Text selection
- New Enhanced Selection (Translation Settings → Selection). Some apps (such as WeChat chat history)
do not expose selected text directly. When on, TiLex simulates one copy in those apps to get the text,
then restores what was on the clipboard.
Note: clipboard managers and Win+V history may keep a record of this copy. Off by default.
Wordbook
- Long sentences are now one complete card: source on top, translation below, with the AI category and
difficulty shown under a divider. - New categories (6 for English / 5 for Chinese) and three difficulty levels for long sentences.
- Chinese long sentences are now detected as sentences (Chinese comma, enumeration comma, semicolon,
colon, or more than 10 Han characters).
Improvements
AI sentence analysis
- Shorter output: the main clause quotes the source verbatim, at most 3 modifiers and at most 4 terms.
Existing saved results are unchanged; the new format applies to new translations. - A malformed field only drops itself; the rest of the analysis still shows.
- When a sentence has both an AI analysis and a plain translation from another service,
the favorite button saves the AI result.
Wordbook layout
- Long sentences use body text size, the translation gets its own card, and English uses a nicer font.
Markdown export
- Words are exported as
####headings with a two-column definition table; long sentences no longer
sit inside a Callout. - Sorting: words A–Z (Chinese merged in by pinyin), long sentences grouped by category and sorted by
difficulty within each group.
TiLex 0.1.1
TiLex 0.1.1
相比 0.1.0 的改动。
升级方法:直接运行新安装包。出现「已安装」页面时,保持默认的「安装前卸载」,点下一步即可。
这一步只替换程序文件,原有设置和生词本都会保留。
新功能
翻译浮窗
- 按
Esc直接关闭浮窗。 - 新增「钉住」按钮:钉住后切到别的窗口,浮窗也不会自动隐藏,方便对照着打字。按
Esc、点关闭或取消钉住即可退出。 - 顶部整栏都能按住拖动(加载中、出错时也能拖)。拖动后结果变长,窗口不会跳回原位置。
- 每个翻译服务的结果旁边都有独立的收藏按钮,想存哪家的结果就点哪家。
- 滚动长结果时,原文行也会吸顶,服务名吸附在原文行下方。
划词浮标
- 翻译设置里新增「浮标距离」,可调 0–20 px,默认 10 px,改完下一次划词就生效。
AI 服务
- 设置简化:只保留一个「自定义要求」文本框,预填了默认要求,可以随意修改或清空(清空后重启也保持为空)。
原来的角色列表、添加 Prompt、Request Arguments 已隐藏。 - 单词和句子都支持例句(原文 + 译文成对)和用法 / 语法说明,在浮窗、生词本、复制和导出中都能完整显示。
- 旧版的自定义 Prompt 会自动转换为新的「自定义要求」,原内容另有备份,不会丢失。
生词本
- 新增「多选」模式:勾选多条后一次确认批量删除,支持全选当前搜索 / 筛选结果。
- 删除一条后自动选中下一条,不再跳回第一条。
- 导出 Markdown 重新排版:音标、每个词性的释义、搭配、例句、说明分行显示;
*、<>、`、[]、|等特殊字符按原文显示,不会被当成格式。 - 修复列表很长时「导出为 Markdown」按钮被压扁的问题。
问题修复
划词与翻译
- 修复翻译浮窗有时只显示上半截、要动一下鼠标才显示完整的问题。
- 修复同一次划词可能重复取词、旧选区的结果串到新浮窗的问题。
- 语言检测失败时不再卡住,会继续按源语言设置翻译。
- AI 返回格式异常时浮窗不再崩溃,改为显示原始文本,仍可复制和收藏。
- 修改模型、提示词、接口地址等设置后,不再返回改之前的缓存结果。
- 其他服务先返回、AI 后返回时,已收藏的条目会自动更新为完整的 AI 结果。
截图 OCR
- 框选过程中重复按截图快捷键,不会再重新截屏或重置选区。
- 上一次截图的结果或报错不会再覆盖新一次的结果。
- 识别进程异常退出但已经拿到文字时,照常显示结果;真正失败时给出明确的错误信息。
设置
- 修复刚保存的设置偶尔被旧配置覆盖回去的问题。
- 修复删除翻译 / OCR 服务后,重启又出现的问题。
- 手动选择浅色 / 深色主题后,不再被 Windows 系统主题变化覆盖。
移除
- 托盘菜单中的「自动复制」。
- 早已从界面移除的「自动删除换行」「拆分代码标识符」旧设置,不会再暗中改写原文,旧配置会自动清理。
TiLex 0.1.1 (English)
Changes since 0.1.0.
How to upgrade: run the new installer. When the "Already Installed" page appears, keep the default "Uninstall before installing" and click Next.
This only replaces the program files; your settings and wordbook are kept.
New
Translation popup
- Press
Escto close the popup. - New Pin window button: a pinned popup stays visible when you switch to another window. Close it with
Esc, the close corner, or by unpinning. - Drag the popup by anywhere on its top bar, including while loading or on error. After a drag, the window no longer jumps back when results grow.
- Each service's result has its own favorite button, so you choose which result goes into the wordbook.
- While scrolling long results, the source line now sticks to the top, with service headers sticking right below it.
Selection icon
- New Icon Distance setting in Translation Settings: 0–20 px, default 10 px. Takes effect on the next selection.
AI services
- Simpler settings: one Custom instructions box, pre-filled with a default. You can edit or clear it (an empty box stays empty after restart).
The role list, Add Prompt and Request Arguments are hidden. - Words and sentences both support examples (source + translation pairs) and usage/grammar notes. They show in full in the popup, wordbook, copy and export.
- Old custom prompts are converted to the new box automatically. The original config is backed up.
Wordbook
- New Select mode: tick several entries and delete them with one confirmation. "Select all" covers the current search/filter results.
- After a delete, the next entry is selected instead of jumping back to the first.
- Markdown export has a new layout: phonetics, one line per part of speech, collocations, examples and notes on separate lines.
Special characters such as*,<>,`,[]and|are shown as plain text. - Fixed the Export as Markdown button being squashed when the list is long.
Fixes
Selection and translation
- Fixed the popup sometimes showing only the top half until the mouse moved.
- Fixed duplicate text capture for one selection, and old results showing up in a new popup.
- A failed language detection no longer blocks translation; it falls back to the source language setting.
- A malformed AI response no longer crashes the popup; the raw text is shown and can still be copied and saved.
- Changing model, prompt, endpoint or similar settings no longer returns stale cached results.
- If another service answers first and AI answers later, a saved entry is upgraded to the full AI result.
Screenshot OCR
- Pressing the screenshot hotkey again while selecting no longer re-captures or resets the selection.
- Results or errors from an older screenshot no longer overwrite a newer one.
- If the OCR process exits abnormally after producing text, the text is still used. Real failures show a clear error.
Settings
- Fixed newly saved settings sometimes being reverted by an old config.
- Fixed deleted translation/OCR services coming back after restart.
- A manually chosen light/dark theme is no longer overridden by Windows theme changes.
Removed
- Auto Copy in the tray menu.
- The retired "Delete newlines" and "Split code identifiers" settings no longer silently rewrite the source text. Old values are cleaned up automatically.
TiLex v0.1.0
TiLex 0.1.0
TiLex is a selection translation and screenshot OCR tool for Windows.
The name comes from Tiny + Lexicon.
This is the first release with all core features ready:
Key Features
- Selection Indicator & Popup: Select text to display a small floating indicator next to the cursor. Click it to expand the translation panel. Indicator position and panel expand direction are fully
customizable in Settings. - Screenshot OCR: Drag and select any area on the screen to recognize text. It directly utilizes the existing local WeChat OCR on your machine or your self-hosted Umi-OCR service—TiLex does not
bundle heavy model files. - Side-by-Side Engines: Built-in Bing, Google, and Tencent translators work out of the box with zero configuration, allowing easy side-by-side translation comparisons.
- Custom AI Services: Supports models compatible with OpenAI, Anthropic, and Gemini API formats, with a built-in latency benchmark to help you find the fastest model.
- Skip Native Language: Automatically detects language and suppresses popups if the selected text is already in the target language.
- Local Wordbook: Save translation results with one click. Data is stored offline in a local SQLite database.
Installation Files
Download the files under Assets below:
TiLex_0.1.0_x64-setup.exe: Recommended for most users. Double-click to install.TiLex_0.1.0_x64_en-US.msi: MSI package for automated or silent deployment environments.
System Requirements: Windows 10 (version 1809 or higher) or Windows 11.
Credits & Acknowledgements
- Base codebase: Derived from pot-desktop
- Interaction design: Inspired by Easydict
- OCR driver architecture: Inspired by STranslate
TiLex 0.1.0
TiLex 是一个 Windows 上的划词翻译与截图 OCR 工具。
名字取自 Tiny(轻巧) + Lexicon(词典)。
这是第一个发布版本,核心功能已经齐备:
主要功能
- 划词浮标与弹窗:鼠标选中文字后,光标旁会弹出小浮标,点击展开翻译面板。浮标位置、展开方向均可在设置里自定义。
- 截图 OCR:框选屏幕直接认字。识别能力直接调用本机已有的微信 OCR,或者你自己运行的本地 Umi-OCR 服务,TiLex 本身不打包笨重的模型文件。
- 多引擎并排:内置必应、谷歌、腾讯交互翻译,免配置直接可用,方便横向比对译文。
- 自定义 AI 服务:支持兼容 OpenAI、Anthropic、Gemini 协议的各类大模型,内置测速功能,帮你挑选延迟最低的模型。
- 跳过母语:自动检测语种,选中的内容如果是目标语言则不弹窗打扰。
- 本地生词本:翻译结果一键收藏,数据离线保存在本地 SQLite。
安装文件说明
下载下方 Assets 中的文件:
TiLex_0.1.0_x64-setup.exe:普通用户下载这个,双击直接安装。TiLex_0.1.0_x64_en-US.msi:MSI 安装包,适合有静默部署需求的环境。
系统要求:Windows 10 (1809 及以上) 或 Windows 11。
来源与致谢
- 代码基底:衍生自 pot-desktop
- 交互设计:参考了 Easydict
- OCR 驱动思路:借鉴自 STranslate