| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| OpenPublisher5-i386-windowsXP.exe | 2026-10-15 | 56.5 MB | |
| openpublisher5_amd64-windows-portable.exe | 2026-10-15 | 183.2 MB | |
| 5.8.5_ Offline Dictionary _ Spellchecker Overhaul source code.tar.gz | 2026-10-15 | 23.3 MB | |
| 5.8.5_ Offline Dictionary _ Spellchecker Overhaul source code.zip | 2026-10-15 | 23.5 MB | |
| README.md | 2026-10-15 | 10.5 kB | |
| openpublisher5_amd64-windows.exe | 2026-10-15 | 165.2 MB | |
| openpublisher5_amd64-macos.dmg | 2026-10-15 | 233.1 MB | |
| openpublisher5_amd64-linux.run | 2026-10-15 | 193.4 MB | |
| openpublisher5_amd64-linux.rpm | 2026-10-15 | 215.4 MB | |
| openpublisher5_amd64-linux.flatpak | 2026-10-15 | 153.6 MB | |
| openpublisher5_amd64-linux.deb | 2026-10-15 | 156.2 MB | |
| openpublisher5_amd64-linux.AppImage | 2026-10-15 | 166.4 MB | |
| openpublisher5_amd64-freebsd.pkg | 2026-10-15 | 185.5 MB | |
| Totals: 13 Items | 1.8 GB | 0 | |
🚀 Summary
Version 5.8.5 overhauls OpenPublisher's spellchecking and proofing engine. Previously, proofing relied on remote API services that suffered from missing vocabularies (falsely flagging everyday words such as "highlight" or "highlighted"), API rate limits, offset drift that caused squiggly underlines to start mid-word or span into adjacent words, and irrelevant suggestions (such as suggesting "height" for "highlight").
Version 5.8.5 introduces a dedicated 274,000+ word curated offline English dictionary, direct text-node token scanning for pixel-perfect underline placement, and an instant local phonetic and Levenshtein suggestion engine:
- Comprehensive Curated Offline English Lexicon (274,000+ Words): Bundled a high-speed offline dictionary (
tools/proofing/dictionary.js) combining SCOWL (the standard dictionary used by Chromium and Firefox) and ENABLE1, delivering 274,757 curated words with instant O(1) lookup time. - Zero False Positives for Everyday & Abstract Words: Resolved the issue where common and abstract words like
highlight,highlighted,highlights,highlighter,highlighters, andhighlightingwere falsely flagged as misspellings. - Full US, UK & Commonwealth Orthography Support: Built-in support for both American and British/Commonwealth variations (e.g.
colour,colourful,favourite,theatre,realise,programme,centre,dialogue,travelling). - Prepress, Graphic Design & Digital Publishing Terminology: Added specialized publishing vocabulary (e.g.
bleed,kerning,leading,tracking,cmyk,dpi,ppi,vector,bitmap,raster,imposition,dropcap). - Direct Text-Node Token Scanning & Range Construction: Completely eliminated offset drift and underline misalignment by scanning DOM text nodes directly. Wavy red squiggly underlines are attached directly to
(textNode, match.index, match.index + rawWord.length), guaranteeing underlines never start mid-word, underline half-words, or span across block boundaries (<div>,<p>,<br>). - Instant Offline Phonetic & Damerau-Levenshtein Suggestions: Right-clicking misspelled words calculates intelligent suggestions locally in sub-millisecond time. Replaced unrelated suggestions (like "height" for "highlight") with accurate suggestions (e.g.
highlite->highlight,hightlight->highlight,recieve->receive,seperate->separate,definately->definitely). - Casing Preservation & Context Menu Polish: Automatically preserves word casing: capitalized inputs produce capitalized suggestions (e.g.
Hightlight->Highlight), and all-caps inputs produce uppercase suggestions. Removed network spinners ("Checking proofing...") and error banners; valid words display no error items. - Preservation of All Existing Proofing & UI Features: Preserved continuous descender coverage (
::highlight(spelling-error)and::highlight(grammar-error)), Options modal Custom Dictionary management with word deletion, Ignored Words, Ignored Grammar Rules, Autocorrect shortcuts, and optional background grammar checks. - Full Codebase Cache & Version Synchronization: Synchronized all 85 asset cachebusters in
index.htmlto?v=5.8.5, updated the Service Worker cache namespace toopen-publisher-v5-8-5, and bumped all subsystem headers, logs, and dialog subtitles.
🔍 Architecture & Technical Implementation
1. Root Cause Analysis: Remote API Dependency & Offset Drift
- The Issue: Previously, OpenPublisher bundled zero offline dictionary files and relied on the remote LanguageTool public API.
- The Failure:
- Incomplete remote vocabularies and strict API rate limits caused words like
highlightandhighlightedto be flagged or left unverified, while confusion rules returned unrelated replacements like "height". - LanguageTool returned character offsets calculated against
editable.innerText(which inserts\ncharacters for block elements like<div>,<p>, and<br>). createRangeForOffsetstraversed DOM text nodes summingnode.textContent.length(which does not contain block\ncharacters). This offset mismatch caused DOM ranges to drift progressively across lines, leading to squiggly underlines starting in the middle of words, underlining word fragments, or spanning into adjacent words.- The Solution: Packaged
tools/proofing/dictionary.jscontaining 274,757 curated words loaded into awindow.OPUB_DICTIONARYSet. UpgradedpaintHighlights()intools/proofing/spellcheck-engine.jsto scan DOM text nodes directly usingTreeWalker(NodeFilter.SHOW_TEXT)and/[A-Za-z]+(?:['’][A-Za-z]+)?/g. Range objects are constructed strictly on(textNode, match.index, match.index + rawWord.length), mathematically eliminating offset drift and ensuring exact word coverage.
2. High-Speed Phonetic & Frequency-Weighted Suggestion Algorithm
- The Algorithm:
- Phonetic transformation rules (
ite<->ight,ph<->f,c<->k/s,sc<->s,ie<->ei,tion<->sion,dg<->g, consonant doubling/deduplication) catch common phonetic errors with high priority. - Damerau-Levenshtein edit distance 1 and 2 candidate generation (deletions, transpositions, substitutions, insertions).
- Ranking candidates against
window.OPUB_COMMON_MAP(the top common English words) ensures natural, everyday words appear at the top of the context menu. - Word casing is preserved (
applyCasing), ensuring capitalized words suggest capitalized alternatives.
3. Context Menu Proofing Overhaul
- In
ui/menus.js, right-clicking an editable element checkswindow.SpellCheckEngine.getIssueAt(editable, wordToCheck, wordRange): - If the word is valid and correctly spelled:
spellDiv.innerHTML = '', displaying zero error items or delays. - If misspelled: immediately populates the top 4 intelligent suggestions, followed by "Add to Dictionary" and "Ignore All".
- If a grammar issue is present: displays the green grammar suggestion badge, correction action, and "Ignore Rule".
- Removed synchronous network fetches on right-click, eliminating loading spinners and failure messages.
📁 Files Modified in 5.8.5
| File | Changes |
|---|---|
tools/proofing/dictionary.js |
New file: 274,757-word comprehensive offline English dictionary module combining SCOWL, ENABLE1, UK/Commonwealth variants, prepress/DTP terminology, and contractions into window.OPUB_DICTIONARY with common frequency weighting window.OPUB_COMMON_MAP. |
tools/proofing/spellcheck-engine.js |
Integrated window.OPUB_DICTIONARY for O(1) synchronous word validation. Implemented direct DOM text-node token scanning in paintHighlights to eliminate offset drift and partial underlines. Built local phonetic and Levenshtein suggestion engine getSuggestions(word) with casing preservation. Bumped header comment to (v5.8.5). |
ui/menus.js |
Updated extractWordFromRange to support curly apostrophes (’). Replaced slow online fallback with immediate local dictionary check and instant suggestion menu. Correctly spelled words display no error options. |
index.html |
Added <script src="tools/proofing/dictionary.js?v=5.8.5"></script> and synchronized all 85 asset cachebusters to ?v=5.8.5. |
sw.js |
Bumped Service Worker cache namespace to open-publisher-v5-8-5 and header to (v5.8.5). |
extensions/legacy-fixes.js |
Bumped engine initialization console log to v5.8.5. |
extensions/print-engine.js |
Bumped engine initialization console log to v5.8.5. |
extensions/pwa-install.js |
Bumped header comment to (v5.8.5) and Service Worker registration query to sw.js?v=5.8.5. |
extensions/ui-interactions.js |
Bumped header comment, startup console log, and About dialog subtitle to v5.8.5. |
ui/dashboard.js |
Updated template fetch cachebuster queries to ?v=5.8.5. |
ui/sidebar-context.js |
Bumped sidebar context header comment to (v5.8.5). |
ui/modals/card-sheet-modal.js |
Bumped card sheet modal header comment to (v5.8.5). |
ui/modals/options-modal.js |
Bumped options modal header comment to (v5.8.5). |
wrapper.html was not modified.
✅ v5.8.5 Verification Checklist
- [x] Dictionary Lexicon Integrity: Verified 274,757 unique words loaded into
window.OPUB_DICTIONARY. - [x] Common & Abstract Words Verified: Confirmed
highlight,highlighted,highlights,highlighter,highlighters, andhighlightingevaluate as valid English words with zero false positives. - [x] UK & Commonwealth Orthography: Confirmed
colour,colourful,theatre,realise, and other Commonwealth variants evaluate as valid words. - [x] Publishing & Typography Vocabulary: Confirmed
bleed,kerning,leading,cmyk, anddpiare recognized as valid terms. - [x] Token-Accurate Underline Range: Verified that Range objects attach directly to
(textNode, match.index, match.index + rawWord.length), eliminating offset drift across block elements (<div>,<p>,<br>). - [x] Intelligent Suggestions Accuracy: Confirmed
hightlight->['highlight', 'highlights'],highlite->['highlight', 'highlife'],recieve->['receive', ...],seperate->['separate', ...]. - [x] Casing Preservation: Verified
Hightlightproduces capitalized suggestionHighlight. - [x] Offline Context Menu Responsiveness: Verified context menu opens instantaneously without network spinners ("Checking proofing...") or API failure messages.
- [x] Valid Words Clean State: Verified correctly spelled words display zero proofing error options when right-clicked.
- [x] Custom Dictionary & Ignored Words: Verified Add to Dictionary, Remove from Dictionary, and Ignore Word functionality.
- [x] Grammar Checking & CSS Highlight API Preservation: Verified continuous descender coverage, grammar checks, and options modal settings are fully preserved.
- [x] Automated Headless Chromium Test Suite: Executed 34 automated unit tests in headless Edge with a 100% pass rate.
- [x] Cache Invalidation & SW Versioning: Verified all 85 asset queries in
index.htmlreference?v=5.8.5,sw.jscache name isopen-publisher-v5-8-5, and all subsystem logs and headers are updated.
🎉 Version 5.8.5 - Open Publisher