NOAH XIE Visual Study Notes · Observatory & Archive
Noah Xie
Nunc

t = 0.00Origin · Home

Noah Xie

中文

LexiBridge — Zotero Local Dictionary & Translation Add-on

Published

Overview & Design Philosophy

LexiBridge (v1.3.1, GPL-3.0-or-later) is an open-source add-on for Zotero 10.0 that brings offline local dictionaries (MDX/MDD, StarDict .ifo, and DSL .dsl/.dsl.dz) together with optional online translation inside the built-in PDF reader. It is listed in the upstream Zotero Add-ons registry (addons/Noahxie83@zotero-lexibridge, merged in upstream PR #274, commit d5c13d6), and provides a live browser Interactive Demo ↗ built directly from the add-on's real parser and renderer components.

Local Dictionary & Privacy-First Online Engines

Capability Implementation Details
Local Formats MDX/MDD (with numbered multi-volume MDD & external assets), StarDict (.ifo/.idx/.dict.dz/.syn), DSL (.dsl/.dsl.dz + resource folder); built-in Ogg/SPX Speex audio decoding
Online Translators (Opt-In) Google Translate, Microsoft Edge Translate, Youdao Web, and MyMemory (no API key required; all disabled by default to protect reading privacy)
Query Bounds Up to 256 characters / 16 words for single words, phrases, and short clauses; local dictionary data is never uploaded
Trigger Controls Independent toggles for click-to-lookup and selection-to-lookup, plus manual lookup via toolbar or Ctrl/Cmd+Alt+D
Reader UX & Vocabulary Draggable & pinnable popup that preserves position across history/source switches, clean success view without diagnostic clutter, vocabulary favorites, Zotero note export, and CSV / Anki TSV export

Three Unified Lookup Strategies

Strategy Execution Behavior Bounded Concurrency
Current Source Queries only the currently selected local dictionary or online engine Single target
Sequential Fallback Walks enabled sources in user-configured priority order and stops on first hit 1-by-1 with per-engine rate-limit cooldown
Federated Lookup Queries all enabled sources progressively and renders results in configured order as each completes Local max concurrency = 2, Online global max concurrency = 1

Lookup Scheduling Architecture