Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.9.7
Name Modified Size InfoDownloads / Week
Parent folder
5.9.7_ Independent Word Grammar Highlights _ Honorific Name Casing Engine source code.tar.gz 2026-10-17 23.3 MB
5.9.7_ Independent Word Grammar Highlights _ Honorific Name Casing Engine source code.zip 2026-10-17 23.6 MB
README.md 2026-10-17 7.4 kB
OpenPublisher5-i386-windowsXP.exe 2026-10-17 56.5 MB
openpublisher5_amd64-windows-portable.exe 2026-10-17 183.2 MB
openpublisher5_amd64-windows.exe 2026-10-17 165.2 MB
openpublisher5_amd64-macos.dmg 2026-10-17 233.1 MB
openpublisher5_amd64-linux.run 2026-10-17 193.4 MB
openpublisher5_amd64-linux.rpm 2026-10-17 215.4 MB
openpublisher5_amd64-linux.flatpak 2026-10-17 153.6 MB
openpublisher5_amd64-linux.deb 2026-10-17 156.2 MB
openpublisher5_amd64-linux.AppImage 2026-10-17 166.4 MB
openpublisher5_amd64-freebsd.pkg 2026-10-17 185.5 MB
Totals: 13 Items   1.8 GB 0

πŸš€ Summary

Version 5.9.7 enhances Open Publisher's proofing and grammar engine with an instant, local grammar rules scanner that provides word-by-word grammatical highlights and recommendations.

Previously, typing honorific title and name phrases in lowercase (such as mr test, mrs tester, miss testing) presented proofing challenges:

  • Online grammar services often grouped multiple words into a single multi-word span or ignored subsequent words because common words like test, tester, or testing exist in generic dictionaries.
  • When grouped, users could not click or right-click each individual word to accept targeted corrections.
  • Network latency delayed squiggles while typing.

Open Publisher v5.9.7 introduces a dedicated, client-side grammar rules engine embedded directly into tools/proofing/spellcheck-engine.js. It runs synchronously on every keystroke (0ms latency), generates discrete Range boundaries for every word in the phrase, renders crisp green wavy underlines (::highlight(grammar-error)), and surfaces context menu replacements tailored to each word:

  • Right-clicking mr recommends Mr. and Mr.
  • Right-clicking test recommends Test.
  • Right-clicking mrs recommends Mrs. and Mrs.
  • Right-clicking tester recommends Tester.
  • Right-clicking miss recommends Miss.
  • Right-clicking testing recommends Testing.

πŸ” Key Capabilities & Engine Improvements

1. Independent Word Highlighting for Titles and Names

  • Individual Word Coverage: Rather than grouping mr test into a single continuous block, the engine creates two independent CSS Custom Highlight ranges: one covering mr and one covering test.
  • Discrete Green Squiggly Lines: Both words receive individual green wavy underlines with full font descender protection (text-decoration-skip-ink: none).
  • Independent State Machine: Correcting one word (e.g., changing mr to Mr.) immediately clears the green underline for Mr. while keeping test flagged for capitalization until it is corrected.

2. Comprehensive Title & Honorific Support

The engine includes exhaustive casing rules for social, professional, clerical, and academic titles:

  • Social & Civil Titles: mr (Mr., Mr), mrs (Mrs., Mrs), ms (Ms., Ms), miss (Miss), sir (Sir), lady (Lady), lord (Lord), dame (Dame).
  • Academic & Medical Titles: dr (Dr., Dr), doctor (Doctor), prof (Prof., Prof), professor (Professor).
  • Civic & Political Titles: cllr (Cllr., Cllr), councillor (Councillor), alderman (Alderman), mayor (Mayor), sen (Sen., Sen), rep (Rep., Rep), gov (Gov., Gov), president (President).
  • Clergy & Religious Titles: rev (Rev., Rev), reverend (Reverend), fr (Fr., Fr), father (Father), pastor (Pastor), rabbi (Rabbi), imam (Imam), sheikh (Sheikh).
  • Military & Law Enforcement: capt (Capt., Capt), captain (Captain), col (Col., Col), gen (Gen., Gen), maj (Maj., Maj), lt (Lt., Lt), sgt (Sgt., Sgt), cpl (Cpl., Cpl), pvt (Pvt., Pvt), insp (Insp., Insp), supt (Supt., Supt), constable (Constable), detective (Detective).

3. Smart Non-Name Exclusion

To avoid false positives, the engine intelligently ignores non-name following words, including:

  • Coordinating conjunctions: and, or, but, nor.
  • Prepositions: in, on, at, to, for, with, by, from, of.
  • Common auxiliary verbs and determiners: is, was, are, were, the, a, an, that, this.

4. Zero-Latency Local Grammar Rules

The synchronous local scanner operates completely offline and handles high-frequency grammatical patterns:

  • Pronoun Capitalization (PRONOUN_I): Automatically flags lowercase standalone i and recommends I.
  • Calendar Capitalization (PROPER_NOUN_CALENDAR): Automatically flags lowercase days of the week (monday through sunday) and months (january through december) with proper capitalized suggestions.
  • Repeated Word Rule (WORD_REPEAT_RULE): Identifies accidental immediate consecutive duplicate words (e.g. the the, with with) and offers one-click deletion of the duplicate token.

5. Context Menu Exact Token Matching

  • Fixed token matching in getIssueAt: replaced loose substring checking (.includes()) with strict normalized token equality.
  • Eliminates collision bugs where mrs previously matched mr, or tester / testing matched test.

πŸ“ Files Modified in 5.9.7

File Changes
tools/proofing/spellcheck-engine.js Built synchronous local grammar scanner (scanLocalGrammarRules), rule handlers for TITLE_CAPITALIZATION and TITLE_NAME_CAPITALIZATION, grammar highlight merger (mergeGrammarMatches), and exact token resolution in getIssueAt. Bumped header to (v5.9.7).
tools/proofing/dictionary.js Bumped version header comment to (v5.9.7) and console load message to v5.9.7.
sw.js Updated Service Worker cache namespace to open-publisher-v5-9-7 and header comment to (v5.9.7).
index.html Updated all 84 asset and module cachebuster query strings from ?v=5.9.6 to ?v=5.9.7.
core/boot.js Bumped header comment to (v5.9.7).
core/core.js Bumped header comment to (v5.9.7).
elements/text/text.js Bumped header comment to (v5.9.7).
extensions/legacy-fixes.js Bumped header comment to (v5.9.7).
extensions/print-engine.js Bumped header comment to (v5.9.7).
extensions/pwa-install.js Bumped header comment to (v5.9.7).
extensions/ui-interactions.js Bumped header comment and tracking initialization log to (v5.9.7).
ui/menus.js Bumped header comment to (v5.9.7).
ui/modals/card-sheet-modal.js Bumped header comment to (v5.9.7).
ui/modals/options-modal.js Bumped header comment to (v5.9.7).
ui/sidebar-context.js Bumped header comment to (v5.9.7).

βœ… v5.9.7 Verification Checklist

  • [x] Individual Word Squiggles: Verified that typing mr test, mrs tester, miss testing renders 6 distinct green wavy underlines rather than lumped multi-word spans.
  • [x] Title Replacement Options: Verified right-clicking mr provides Mr. and Mr; mrs provides Mrs. and Mrs; miss provides Miss.
  • [x] Name Replacement Options: Verified right-clicking test provides Test; tester provides Tester; testing provides Testing.
  • [x] Sequential Replacement Independence: Verified that applying the correction to mr (changing it to Mr.) immediately removes the squiggle on Mr. while keeping test highlighted for correction.
  • [x] Automated Browser Execution: Verified in headless browser test suite (scratch/test_v597_grammar.html) with all 6 tests returning passed: true and allPassed: true.
  • [x] Service Worker & Cachebuster Sync: Verified sw.js cache name is open-publisher-v5-9-7 and all 84 cachebusters in index.html are ?v=5.9.7.

πŸŽ‰ Version 5.9.7: Open Publisher image

Source: README.md, updated 2026-10-17