Skip to content

Refine the editorial chapter test#545

Merged
dcellison merged 1 commit into
mainfrom
refine_editorial_book_test
Jul 23, 2026
Merged

Refine the editorial chapter test#545
dcellison merged 1 commit into
mainfrom
refine_editorial_book_test

Conversation

@dcellison

Copy link
Copy Markdown
Owner

Summary

  • Move chapter 2's pull quote from the outside rail into the flow of its source paragraph.
  • Recognize backticked Phi spans only when every token is a current lexicon word.
  • Give those spans full-size monospaced text and a softly raised background drawn from the site's light and dark palettes.
  • Keep technical paths visually plain and allow long ones to wrap on narrow screens.

Rendering changes

The renderer inserts the decorative quote immediately before the paragraph from which it was taken. On wide screens it floats inside the right side of the reading column, so the paragraph's lines wrap around it. At 560px and below it becomes a full-width block above the paragraph.

The new inline classifier accepts lowercase Phi words, multiword Phi passages, and a final period. Every token must occur in the canonical lexicon. Chapter 2 therefore receives 21 styled spans, including lo mia wiso wisola., while its seven repository paths remain ordinary <code> elements.

Phi spans inherit the surrounding font size. Their backgrounds use #e1e6db in the light theme and #3a443a in the dark theme, with the site's ink color for the text. The 5px corners and compact padding follow the shape in documents/format.png without adding that untracked reference image to the commit.

Verification

  • python3 scripts/build_site.py
  • python3 scripts/validate_examples.py (1,275 entries, 0 errors, 0 warnings)
  • python3 scripts/test_vocabulary_schema.py (22 tests)
  • python3 scripts/test_name_forms.py (20 tests)
  • python3 scripts/test_content_vocabulary_decisions.py (8 tests)
  • python3 -m py_compile scripts/build_site.py
  • git diff --cached --check
  • Generated HTML assertions confirmed 21 Phi spans, seven plain technical paths, the quote immediately before its source paragraph, and 17 untreated book pages.
  • At 1440 px, the quote remained within the 790.39px reading column and the source paragraph's line boxes ended to its left.
  • At 390 px in the dark theme, the quote became a 338px inline block, the Phi span and its surrounding prose both computed to 22.464px, and document width remained exactly 390px.
  • book/02_what_a_refusal_is.md retained its original Git object hash, cff28d6595bce108e9d41f4813c7cdcf6dc41be9.

@dcellison
dcellison merged commit d0ac102 into main Jul 23, 2026
1 check passed
@dcellison
dcellison deleted the refine_editorial_book_test branch July 23, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants