running-content

command
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Rich running stories

GOWORK=off go run ./examples/running-content
output/qa-venv/bin/python scripts/qa/layout/verify_running_content.py
NODE_PATH=output/sf-qa/node_modules node scripts/qa/structured/verify_structured.cjs output/running-content/*.sf

Writes source SF, DOCX, PDF and reimported SF under ignored output/running-content/. Uses only independently authored, in-process PNG fixtures and built-in fonts. No runtime external tools are required.

letterhead includes a row-spanning logo, nested/column-spanning header table, formatted linked text, a footer picture/list, body table continuation and a rich footnote. Native PDF uses four pages, reserving measured running content around body and note pages. Its sparse note-only page is a pagination qualification gap. SF→DOCX→SF exactly preserves this example's semantics.

tight has two preferred 1000pt running pictures on a 220pt page. Native PDF shrinks both while keeping a measured body line and exact alpha pixels. Source SF preferences stay unchanged. DOCX reimport returns physically fitted images of approximately 8.25×66pt under the existing rendered-format contract.

For optional producer QA, convert both DOCX files with LibreOffice into output/running-content/lo/, then use verify_running_content.py --office. See docs/TESTING.md for the exact command. The letterhead preserves content on two producer pages; LibreOffice ignores the body table cell's paragraph-start property. The shared DOCX budget now keeps both oversized tight.docx pictures contained; the earlier one-of-two observation is preserved in historical verification. Broader producer/font qualification remains unfinished. The generated native PDFs retain positioned content and inferred grid provenance on recovery, without inventing authored header/footer roles.

Documentation

Overview

Rich running stories are measured once and repeated without body overlap.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL