Skip to content

T040: a summation's coloured text in the theme's red; the look decided; T040 ticked - #268

Merged
adamjohnwright merged 2 commits into
mainfrom
t040/summation-colour
Nov 23, 2026
Merged

adamjohnwright merged 2 commits into
mainfrom
t040/summation-colour

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

Spec 001, T040. Closes T040.

Coloured text: release 98 numbers a cycle's steps in red with <font color=red>, in two Metabolism summations (R-HSA-211897 and R-HSA-217271), matching the numbered steps in their figures. The website shows them red, because Angular's sanitiser keeps <font>. The book printed them black, because sanitiseSummation dropped <font>. Now:

  • a coloured <font> becomes <span class="coloured">;
  • pages.css prints it in the theme's error colour (--mat-sys-error, #ba1a1a), so SC-009's colour check still passes;
  • a font's face is dropped, as before;
  • a span from the summation keeps no class but that mark, so sanitising twice changes nothing.

Tests:

  • test/model/rules.test.ts: the markup. Fails on main's sanitiser.
  • test/print/colour.test.ts: printed with Chromium, the PDF paints the theme's red and nothing outside the theme. Fails without the CSS rule, and fails with main's sanitiser.

differences.md: the summations' look, as decided by the project's owner on 22 Nov 2026. It's based on a survey of release 98's 18,657 human summations (3,342 with markup, every tag a real HTML tag):

  • coloured text: red, as above;
  • a font's face: the book's own typeface;
  • <table border="1"> (27 summations): pdf-export's ruled style, a thin rule under each row, rather than a box round every cell;
  • U+02D9 (a radical's dot, one summation): printed as a bullet, FR-017's substitution.

Single-event PDFs aren't compared with event-pdf's, also by that decision.

tasks.md: T040 ticked. Release 98's comparison reports 320 differences, all recorded, and exits 0 (#252–#267). None was a fault in what pdf-export prints against the graph.

npm run check passes.

🤖 Generated with Claude Code

adamjohnwright and others added 2 commits November 23, 2026 01:52
… decided

Release 98 numbers a cycle's steps in red with <font color=red>, in two
summations, as its figure numbers them, and the website shows them red;
the book printed them black. A coloured font is now a span marked
`coloured`, printed in the theme's error colour (SC-009). differences.md
records the summations' look as decided on 22 Nov 2026: coloured text
red, tables ruled not boxed, a radical's dot a bullet, and single-event
PDFs not compared with event-pdf's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every difference recorded with its reason and the comparison exiting 0;
single-event PDFs not compared with event-pdf's, by the project owner's
decision of 22 Nov 2026.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit 678433b into main Nov 23, 2026
3 checks passed
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.

1 participant