Files
Umbraformat/umbraformat/templates/index.html
bm 0c32168231 Apply updated spec compliance and establish git/docker baseline
- 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).
2026-09-22 19:06:03 -07:00

79 lines
4.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "base.html" %}
{% block title %}UmbraFormat — Home{% endblock %}
{% block content %}
<div class="row justify-content-center">
<div class="col-lg-10">
<div class="text-center my-5">
<i class="bi bi-file-earmark-text" style="font-size: 4rem; color: var(--bs-primary);"></i>
<h1 class="display-4 fw-bold mt-3">UmbraFormat</h1>
<p class="lead text-secondary">Format a manuscript for publishing and printing</p>
</div>
<div class="card bg-dark border-secondary mb-4">
<div class="card-body p-4">
<h5 class="card-title"><i class="bi bi-info-circle me-2"></i>About</h5>
<p class="card-text text-secondary">
UmbraFormat applies the <strong>B.D. Murphy General Book Formatting Specification</strong> to any manuscript.
Upload a <code>.docx</code> file with any formatting, and the system will analyze it against the spec,
then apply corrections to produce a print-ready document.
</p>
</div>
</div>
<div class="card bg-dark border-secondary mb-4">
<div class="card-body p-4">
<h5 class="card-title"><i class="bi bi-tools me-2"></i>Tools</h5>
<div class="list-group list-group-flush bg-transparent">
<a href="{{ url_for('format_page') }}" class="list-group-item list-group-item-action bg-transparent border-secondary d-flex align-items-center">
<i class="bi bi-upload me-3 text-primary fs-4"></i>
<div>
<strong>Format a Manuscript</strong>
<div class="text-secondary small">Upload a DOCX file, analyze formatting, and apply the B.D. Murphy spec</div>
</div>
<i class="bi bi-chevron-right ms-auto text-secondary"></i>
</a>
</div>
</div>
</div>
<div class="card bg-dark border-secondary">
<div class="card-body p-4">
<h5 class="card-title"><i class="bi bi-book me-2"></i>Specification Summary</h5>
<div class="row g-3 mt-2">
<div class="col-md-6">
<div class="d-flex align-items-center mb-2">
<span class="badge bg-primary me-2">Page</span>
<span class="text-secondary">5.5 × 8.5 in, portrait, mirrored margins</span>
</div>
<div class="d-flex align-items-center mb-2">
<span class="badge bg-primary me-2">Margins</span>
<span class="text-secondary">Inside (Configurable) / Outside 0.40" / Top 0.35" / Bottom 0.25"</span>
</div>
<div class="d-flex align-items-center mb-2">
<span class="badge bg-primary me-2">Body</span>
<span class="text-secondary">Caladea 12pt, justified, exactly 15pt leading</span>
</div>
</div>
<div class="col-md-6">
<div class="d-flex align-items-center mb-2">
<span class="badge bg-primary me-2">Chapter</span>
<span class="text-secondary">Caladea 18pt, centered, 4× line spacing</span>
</div>
<div class="d-flex align-items-center mb-2">
<span class="badge bg-primary me-2">Header</span>
<span class="text-secondary">Odd: book title / Even: B.D. Murphy</span>
</div>
<div class="d-flex align-items-center mb-2">
<span class="badge bg-primary me-2">Pages</span>
<span class="text-secondary">Roman (front matter) / Arabic from Chapter 1</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}