Skip to content

Releases: GeorgeCao-001/mini-translator

Mini Translator v1.0.3

Choose a tag to compare

@GeorgeCao-001 GeorgeCao-001 released this 14 Oct 06:39

Highlights

  • Right-click translation: a single Translate selected text action in editors, reading views and PDF selections. The source popup appears immediately; automatic selection dwell keeps its own delay.
  • Popup typography: independent source and translation/dictionary font sizes (10–40 px), optional text scaling during manual window resizing, and remembered text scale when popup-size memory is enabled. Compact native numeric controls support both English and Chinese.
  • Double-click selection fix: selecting a word no longer cancels its pending or in-flight translation. Thanks to @Lozical for PR #1.

Security and compatibility

  • Removed evaluated loaders and generated JavaScript functions from the embedded PDF.js main and Worker builds. Existing glyph and PostScript interpreters remain available.
  • Backported numeric FontMatrix validation and retained the statically bundled Worker fallback. Original vendor inputs, copyrights and license notices remain unchanged.
  • Replaced sidebar spacing with equivalent gap declarations to resolve the remaining multicolumn CSS warning without changing the layout.
  • Normalized build input line endings so local Windows builds and clean checkouts of this tag produce identical release assets.

This is targeted hardening of the pinned PDF.js runtime, not a wholesale PDF.js upgrade or a guarantee that arbitrary PDFs are safe. Obsidian's native PDF viewer is managed by Obsidian.

Validation

  • Complete offline release checks and regression suites passed.
  • 9 PDF hardening tests, including inert injection-style glyph data and malformed font matrices.
  • 4 genuine Chromium PDF render cases covering Blob Workers and deliberately blocked-Worker fallback.
  • 13 genuine Chromium typography/control cases.
  • Clean committed-source rebuild matched all three uploaded assets byte for byte.

简体中文

本次新增选区右键翻译、原文与译文独立字号,以及手动缩放时文字跟随缩放的选项;手动点击后立即显示原文弹窗,不再等待自动划词延迟。合入贡献者的双击选词修复,并完成 PDF.js 动态执行路径加固和侧边栏 CSS 兼容性修复。

已有用户设置无需清除。手动更新请下载本 Release 的 main.js、manifest.json、styles.css,替换插件目录中的同名文件后重新启用插件;不要替换或分享 data.json。

Mini Translator 1.0.2

Choose a tag to compare

@GeorgeCao-001 GeorgeCao-001 released this 24 Sep 05:10

What's new

  • Reorder translation and dictionary sources directly in their pickers, with controls for built-in fallback sources.
  • Add OpenAI-compatible endpoint templates for Gemini, xAI, Mistral AI, Groq, OpenRouter, LM Studio, and vLLM.
  • Fetch actual model IDs from each configured provider instead of relying on potentially outdated preset lists.
  • Fix empty DeepSeek profiles reappearing after restart and omit empty authorization headers for local endpoints.
  • Refine the sidebar layout: translation and dictionary controls on the first row, model selection below.

Installation

Update Mini Translator from Obsidian Community Plugins. For manual installation, download main.js, manifest.json, and styles.css from this release and keep them together.

Mini Translator 1.0.1

Choose a tag to compare

@GeorgeCao-001 GeorgeCao-001 released this 20 Sep 13:20

Mini Translator 1.0.1

This maintenance release improves security and compatibility for the Obsidian Community Plugin review while preserving all existing translation features.

Fixed

  • Replaced PDF.js dynamic fake-worker script loading with a statically bundled fallback.
  • Disabled unused Node.js filesystem branches in the release build.
  • Resolved CSS compatibility warnings involving text-indent, clip-path, !important, and MathJax selectors.
  • Preserved PDF full-text translation, formula rendering, floating-orb skins, progress feedback, and reduced-motion behavior.

Validation

  • Passed the complete offline test suite.
  • Verified deterministic release builds.
  • Successfully parsed generated and real-world PDFs.
  • Verified that release assets contain no dynamic script-element creation or Node.js filesystem imports.

Installation files

Download main.js, manifest.json, and styles.css from this release and place them in:

.obsidian/plugins/mini-translator/

Mini Translator 1.0.0

Choose a tag to compare

@GeorgeCao-001 GeorgeCao-001 released this 20 Sep 08:25

Mini Translator v1.0.0 — Initial Release

Mini Translator is an Obsidian plugin for text translation, English word lookup, and academic PDF translation.

✨ Features

  • Selection translation: Translate selected text in Markdown and PDF documents, with resizable popups and a bilingual sidebar.
  • Multiple translation providers: Built-in translation services and customizable OpenAI-compatible APIs, including support for local Ollama.
  • English dictionary: Look up definitions, pronunciation, and parts of speech.
  • Full-PDF translation: Reconstruct reading order, handle multi-column layouts, and export translated Markdown with optional HTML source comparison.
  • Batch processing: Translate multiple PDFs with progress tracking and cancellation.
  • Multilingual support: Automatic source-language detection, 70+ target-language options, and English/Chinese interfaces.

📦 Installation

Requires Obsidian 1.13.7+ (desktop only).

Download main.js, manifest.json, and styles.css and place them in:

<Vault>/.obsidian/plugins/mini-translator/

Reload Obsidian and enable Mini Translator under Community plugins.

⚠️ Notes

Full-PDF translation requires a configured LLM endpoint and text-based PDFs. Scanned PDFs require OCR beforehand.

For setup instructions, usage details, and third-party license information, see the [README](https://github.com/GeorgeCao-001/mini-translator).

License: AGPL-3.0-or-later. See LICENSE and THIRD_PARTY_NOTICES.md in the repository.