Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.22.8
Name Modified Size InfoDownloads / Week
Parent folder
OpenPublisher5-i386-windowsXP.exe 2026-11-17 56.5 MB
openpublisher5g_amd64-windows.exe 2026-11-17 81.1 MB
openpublisher5_amd64-windows-portable.exe 2026-11-17 183.2 MB
openpublisher5_amd64-windows.exe 2026-11-17 165.2 MB
openpublisher5_amd64-macos.dmg 2026-11-17 233.1 MB
openpublisher5_amd64-linux.run 2026-11-17 193.4 MB
openpublisher5_amd64-linux.rpm 2026-11-17 215.4 MB
openpublisher5_amd64-linux.flatpak 2026-11-17 153.6 MB
5.22.8_ Document References (Table of Contents, Footnotes _ Endnotes) source code.tar.gz 2026-11-17 123.3 MB
5.22.8_ Document References (Table of Contents, Footnotes _ Endnotes) source code.zip 2026-11-17 123.8 MB
README.md 2026-11-17 9.0 kB
openpublisher5_amd64-linux.deb 2026-11-17 156.2 MB
openpublisher5_amd64-linux.AppImage 2026-11-17 166.4 MB
openpublisher5_amd64-freebsd.pkg 2026-11-17 185.5 MB
Totals: 14 Items   2.0 GB 0

📋 Summary

Version 5.22.8 implements GitHub Issue [#13], introducing classic publishing and book reference tools inspired by Microsoft Word and Adobe InDesign:

  1. Table of Contents (TOC) Based on Headings (extensions/references-engine.js, window.ReferencesEngine):
  2. Automatically scans every page across the entire publication in visual reading order for headings (H1, H2, H3, data-heading-level, and bold/large title text).
  3. Generates or updates an auto-formatted Table of Contents box (data-toc-box="true") complete with level indentation, configurable tab leader styling (Dots, Dashes, or None), and right-aligned page numbers.
  4. Includes a themed Table of Contents Builder dialog (window.showTOCModal()) with heading filters, auto-detection toggle, live heading preview across all pages, and one-click Insert / Update TOC.
  5. Anchored Footnotes (window.showInsertNoteModal('footnote'), window.insertFootnote):
  6. Inserts superscript numerical reference markers ([1], [2], [3]...) directly at the cursor within any text box.
  7. Automatically creates and anchors a formatted Footnotes frame (data-footnote-box="true") above the bottom margin of the current page with a classic separator divider and numbered citation list.
  8. Automatically resyncs and renumbers all footnotes on the page when text or notes are added or removed.
  9. Document-End Endnotes (window.showInsertNoteModal('endnote'), window.insertEndnote):
  10. Collects all reference notes across the entire document into a single unified list on the final page under a styled Endnotes section (data-endnote-box="true").
  11. Numbers endnotes with sequential Roman numerals ([i], [ii], [iii]...) or decimal indices.
  12. Heading Level Typography (window.applyHeadingLevel):
  13. Quick one-click format buttons for H1 (24pt bold), H2 (18pt bold), H3 (14pt bold), and Body (12pt normal) in the contextual Text Box ribbon and right-click context menu.
  14. UI & History Integration (index.html, ui/ui.js, ui/menus.js, core/history.js):
  15. Added a dedicated References group in the Insert ribbon with three full, beautifully balanced tool buttons: Table of Contents, Insert Footnote (AB¹), and Insert Endnote (ABⁱ).
  16. Added quick heading levels (H1, H2, H3, Body) and reference launchers in Contextual Text Box Tools (#ribbon-format-text).
  17. Added Heading Level flyout, Insert Footnote..., Insert Endnote..., and Insert / Update Table of Contents... to the text box right-click context menu.
  18. Updated document history serialization (core/history.js) to preserve all reference attributes (data-toc-box, data-footnote-box, data-endnote-box, data-heading-level, data-note-type, data-note-id, data-note-text) across page switches, undo/redo, and .opub file saves.

op-ReferencesEngineAndFoornoteAndEndnotes


🛠️ Key Improvements

1. Unified References Engine (extensions/references-engine.js)

  • Exposes window.ReferencesEngine with comprehensive document scanning and note management:
  • window.applyHeadingLevel(level): Applies or converts active block or text box into <h1>, <h2>, <h3>, or <p> with data-heading-level.
  • window.scanHeadings(options): Cross-page parser sorting elements in top-to-bottom reading order across both the live canvas and serialized off-page slides.
  • window.insertOrUpdateTOC(options): Creates or refreshes a draggable/resizable .pub-element[data-toc-box="true"] box with dot leader styling.
  • window.showTOCModal(): Themed, draggable modal dialog featuring heading level toggles, themed .custom-dom-select tab leader style selector, live cross-page heading preview, and [?] help button.
  • window.showInsertNoteModal(type, editId): Draggable reference creation and management modal allowing note editing, deletion, quick resyncing, and [?] help button.
  • window.ReferencesEngine.showHelpModal(type): Draggable, teal split-pane Help dialog with Back/Forward navigation and topic sidebar that stays open alongside the parent modal.
  • window.insertFootnote(text) / window.insertEndnote(text): Caret-aware superscript marker drop and automatic container sync.
  • window.updateAllReferences(): One-click batch resynchronization for all TOC boxes, footnotes, and endnotes across the entire document.

2. Visually Pleasing Ribbon Design (index.html, ui/ui.js)

  • Insert Ribbon Tab (#ribbon-insert):
  • Balanced 3-button layout in the References group with equal heights, clean vertical spacing, and standard .tool-btn hover states.
  • Custom vector icons matching Microsoft Word and Adobe InDesign conventions:
    • Table of Contents: Indented list with dot leaders and page numbers.
    • Insert Footnote: Document page with AB¹ and a bottom margin footnote divider line.
    • Insert Endnote: Document page with ABⁱ and end-of-document citation lines.
  • Contextual Text Box Tools (#ribbon-format-text):
  • Added Headings & Notes group featuring quick buttons for H1, H2, H3, Body, Footnote, Endnote, and TOC.

3. Context Menu (ui/menus.js)

  • Right-clicking any text box provides direct access to:
  • Heading Level flyout submenu: Heading 1 (H1), Heading 2 (H2), Heading 3 (H3), and Normal Body Text.
  • Insert Footnote...
  • Insert Endnote...
  • Insert / Update Table of Contents...

4. History Serialization & Persistence (core/history.js)

  • Whitelisted reference attributes in serializeCurrentPage() to ensure reference containers and markers persist cleanly through Undo, Redo, page transitions, and file saves:
  • data-toc-box
  • data-footnote-box
  • data-endnote-box
  • data-heading-level
  • data-note-type
  • data-note-id
  • data-note-text

🔄 Version Synchronization (v5.22.8)

Component Target Version Updated Reference
References Engine v5.22.8 extensions/references-engine.js
Ribbon Toolbar & Extensions Include v5.22.8 index.html
Contextual Text Ribbon & Context Menus v5.22.8 ui/ui.js, ui/menus.js
History Serialization Engine v5.22.8 core/history.js
Application Stylesheet v5.22.8 style.css
Service Worker & Cache Store open-publisher-v5-22-8-1 sw.js
Size & Position Engine & Modals v5.22.8 ui/modals/size-position-modal.js
Watermark & Print Engines v5.22.8 extensions/watermark-engine.js, extensions/print-engine.js
AI Assistant & UI Interactions v5.22.8 extensions/ai-assistant.js, extensions/ui-interactions.js
PWA Registration & Templates v5.22.8 extensions/pwa-install.js, elements/templates/templates.js
Dashboard, 404 Router, & Badges v5.22.8 ui/dashboard.js, 404.html, README.md

✅ Checklist Completed

  • [x] Create modular extensions/references-engine.js exposing window.ReferencesEngine, window.showTOCModal, window.insertOrUpdateTOC, window.showInsertNoteModal, window.insertFootnote, window.insertEndnote, window.applyHeadingLevel, and window.updateAllReferences
  • [x] Add multi-page heading scanner with visual position sorting, explicit H1/H2/H3 tags, data-heading-level, and auto-detection of bold/large text
  • [x] Add Table of Contents generation with dot/dash tab leaders, page numbers, and in-place updating
  • [x] Add Footnotes with superscript caret insertion, automatic sequential numbering, and anchored bottom frame on the current page
  • [x] Add Endnotes with Roman numeral markers and consolidated endnote box on the final document page
  • [x] Redesign ribbon buttons into three full, equal-height, side-by-side .tool-btn items with custom teal/theme-aware AB¹ / ABⁱ and TOC SVG icons matching publishing standards
  • [x] Add draggable modal headers, standard 36x36px [?] / [X] header buttons, split-pane Help dialogs, themed .custom-dom-select dropdown, and matching unblurred backdrop overlay
  • [x] Add References group in Insert ribbon (index.html) and Headings & Notes in contextual text ribbon (ui/ui.js)
  • [x] Add Heading Level, Insert Footnote..., Insert Endnote..., and Insert / Update Table of Contents... in text box context menu (ui/menus.js)
  • [x] Whitelist reference attributes in core/history.js for persistent Undo/Redo, page switching, and .opub saving
  • [x] Synchronize version to 5.22.8 and service worker cache to open-publisher-v5-22-8-1 across all project files while preserving Gecko 5.20.8 binary in README.md
Source: README.md, updated 2026-11-17