- Spec §4.1: running headers carry titles only (recto: chapter/section title; verso: author name + book title); page-number fields removed from headers. - Spec §4.2: page numbers centered in the footer on both verso and recto pages; front-matter display pages (copyright, dedication, epigraph, TOC) show their Roman numeral on the opening page too. - Spec §2.2: lowercase Roman numbering visible from the copyright page through the front matter; Chapter 1 restarts at Arabic 1. - Chapter/back-matter sections keep running matter on body pages; only the first page of each chapter is suppressed (spec §4.3). - Drop titlePg on single-page front-matter display sections so footer page numbers render in LibreOffice and Word alike. - Preserve <<<>>> scene-break cues (centered, 12pt before/after) and first-word-only capitalization of chapter openers. - UI: remove the obsolete "Page Numbers" selector; footer_mode is accepted-but-ignored for backward compatibility. - Tests updated to the new spec behavior (51 pass).
18 lines
486 B
Python
18 lines
486 B
Python
#!/usr/bin/env python3
|
|
"""Start the UmbraFormat web server."""
|
|
|
|
import os, sys
|
|
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
from umbraformat.app import app
|
|
|
|
if __name__ == "__main__":
|
|
print("=" * 60)
|
|
print(" UmbraFormat - B.D. Murphy Book Formatting Specification")
|
|
print("=" * 60)
|
|
print(f" Open: http://localhost:5001")
|
|
print(f" API: http://localhost:5001/api/analyze")
|
|
print("=" * 60)
|
|
app.run(debug=True, host="0.0.0.0", port=5001)
|