Fix merged TOC visual lines and add standalone offline deployment packages

HO
13d ago
+1067-28

Summary

Right-align TOC page numbers and redraw dot leaders in translation

  • Detect TOC entries with both dot leaders (....15) and whitespace leaders (spaces + 11), including Roman-numeral page numbers

  • Store toc_page_number / toc_page_number_x2 / toc_dot_leader on PdfParagraph; mark single-line entry paragraphs as well as split multi-line ones

  • Typesetting: pin translated page numbers to the original right-edge column, absorb leader gaps, redraw dot leaders when the source used them; fall back to normal flow when the title wraps or is too long

  • Add split_toc_lines config (default on) with --no-split-toc-lines CLI flag


Summary by cubic

Adds standalone offline deployment packages and fixes table-of-contents (TOC) translation layout.

Bug Fixes

  • Detects TOC entries with dot or whitespace leaders, including Roman-numeral page numbers, and splits merged multi-line entries into per-entry paragraphs.
  • Typesetting pins translated page numbers to the original right-edge column, redraws dot leaders, and restores missing page numbers when the model omits them; falls back to normal flow when the title wraps or is too long.
  • Adds split_toc_lines config (default on) with a --no-split-toc-lines CLI flag.

New Features

  • Adds scripts/build_offline_packages.ps1 producing fully-offline Windows x64 and Linux x86_64 bundles (portable Python, all dependencies, assets) for air-gapped intranets, documented in the README.