Repository navigation
Releases
0.4.10
0.4.9
Interlinear Gloss 0.4.9
Read English textbooks and papers bilingually inside Obsidian.
- Persistent sentence translations + keyword glosses, written back to your notes
- PDF word-level highlights with hover labels; whole-sentence and cross-line phrases supported
- Offline ECDICT dictionary (37k entries) first; local Ollama only chooses among dictionary senses or fills gaps
- Per-line highlight merging and textLayer-aligned geometry; no stacked/striped boxes
- Local-first: no cloud API required, MIT licensed
Install: download main.js, manifest.json and styles.css, then enable the plugin in Obsidian. BRAT is also supported.
Full README: https://github.com/BBQ-666-dot/interlinear-gloss
0.4.7
Remove the double-click sentence-expansion behavior and its setting. Word/phrase selection, unlimited selection length, and saved full-sentence translations remain.
0.4.6
Double-click a word in the PDF text layer to expand the visible selection to the whole sentence (period to period, skipping e.g./Fig. abbreviations). Whole-sentence selections are translated as sentences and stored as whole-sentence marks. Removed the 40-character selection cap. Verified with a 112-character double-click selection.
0.4.5
Save a full-sentence translation with each PDF word mark. The sentence is taken from the previous sentence-ending period to the next one (abbreviations such as e.g./Fig. are skipped), translated by the sentence model, and stored in the .marks.json sidecar. It is shown in the sidebar and the mark editor. Toggle under PDF word-mark settings.
0.4.4
Support PDF phrase selections that span a line break. The text index now inserts a space from textLayer geometry instead of gluing the two lines together, and no longer rejects legitimate multi-line phrases. Verified with 'indicates the' across a line boundary (two highlight rects).
0.4.3
Change the PDF word-mark hotkey to Ctrl+Shift+Z (Cmd+Shift+Z on macOS).
0.4.2
Keep all ECDICT sense lines (including [计]/[医]/[经] domain senses), so corresponding now has 对应 and the context selector picks 对应的. Adjective senses get the 的 suffix automatically. Sentence translation remains hy-mt2-1.8b-q8.
0.4.1
Offline ECDICT word marks now use candidate senses: the dictionary lists meanings, qwen2.5:3b only picks the best index from the list (no free-form translation). Single-sense words skip the model; failures fall back to the first dictionary sense. Sentence translation remains hy-mt2-1.8b-q8.
0.4.0
Offline ECDICT dictionary for PDF word marks (MIT, bundled), dictionary-first with optional model fallback. Adds obtain→获得 and context-safe multi-sense lookups; sentence translation stays on hy-mt2-1.8b-q8.