Skip to content

fix(i18n): stop reading a table's alignment row as prose - #36

Merged
helmihyo merged 1 commit into
mainfrom
fix/typography-table-alignment
Aug 5, 2026
Merged

fix(i18n): stop reading a table's alignment row as prose#36
helmihyo merged 1 commit into
mainfrom
fix/typography-table-alignment

Conversation

@helmihyo

@helmihyo helmihyo commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

check_typography.py read a markdown table's alignment row as prose.

A right-aligned column writes its delimiter as | ---: |, and the rule that forbids a space before ; : ! ? matched the space in front of that colon. The row is table syntax, not a sentence.

Why it never showed here

No page in this repository has a right-aligned column, so the checker has been reporting clean by luck rather than by being correct. The fault surfaced in hatlabs/halmet#18, where the GPIO reference table right-aligns its first column, and the same script — copied from here — reported two false positives on a correct page.

Reproduced before fixing

Adding such a table to docs/fi/ produces exactly one false positive:

fi: 22 pages, 0 quotations (”…”), quote faults 0, spacing 1, hyphen chains 0 — 1 PROBLEMS
    docs/fi/_probe.md: space before ':': ...

After the fix the same file reports clean, and all nine translated languages are unchanged in both directions — they passed before and they pass now, which is the point: this must not alter any existing verdict.

Note

This is the fifth false positive this checker has produced during its short life, and every one of them was caught the same way — by running it against pages already reviewed and fixed. If it reports a defect there, the defect is in the checker. That is worth keeping as the habit rather than trusting a clean first run.

🤖 Generated with Claude Code

A right-aligned column writes its delimiter as | ---: |, which the space
-before-punctuation rule read as a space before a colon. No page here has
a right-aligned column, so the checker has been reporting clean by luck
rather than by being correct; the fault surfaced in the HALMET repository,
whose GPIO table is right-aligned.

Reproduced before fixing by adding such a table to docs/fi: one false
positive, gone afterwards, and all nine languages unchanged either way.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@helmihyo
helmihyo merged commit 95ce8ce into main Aug 5, 2026
1 check passed
@helmihyo
helmihyo deleted the fix/typography-table-alignment branch August 5, 2026 08:30
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