Skill v1.4.0 - #3
Merged
Merged
Conversation
…header-repeat guardrails Why the delivered all-italic formulas were never caught: 1. The italics check only looked inside m:oMath — manually italicized plain-text pseudo-formulas were invisible to it (now MANUAL_ITALIC_MATH, FAIL). 2. Even inside OMML it skipped any run containing a letter, so a single italic run 'F=44.5' escaped (FORMULA_DIGIT_ITALIC now checks mixed runs). 3. OMML letters are math-italic BY DEFAULT: a unit 'km' with no styling renders italic with no marker to detect. The auditor must check for the absence of upright styling (new FORMULA_MULTILETTER_ITALIC), and the docs now state that m:sty val="p" / \mathrm is required for upright. Also fixed: m:sty was read with w:val instead of m:val, so OMML-style italics were never detected at all. New layout guardrails: CAPTION_ALIGN, FLOAT_ORDER (figure/table before its first reference), TABLE_HEADER_REPEAT, NUMBER_UNIT_SPACING. 23 new tests (92 total); samples regenerated, compliant sample still PASSes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… hardening Direction from the blind-spot review: invest in executable tools, not longer prose rules. MS Word is the canonical renderer; the audit script is the completion gate; no PDF render passes unless explicitly requested. - scripts/replace_math.py: LaTeX->OMML (Pandoc batch) + exact-position splice (cross-run tokens, preserved surroundings, sz stamping, display layout with center tab + right-aligned number, mc:Ignorable-safe serialization) - references/generate-from-source.md: source-first authoring; harvest existing OMML back to LaTeX via pandoc docx->markdown - Auditor: FORMULA_TEXT_TABLE, EQUATION_NUMBER_TABS, FIELDS_UPDATE, FIRSTLINE_FIXED, PACKAGE_INTEGRITY; PASS line now states its scope - normalize_docx.py: --units, --tables (shading/tblLook/tblHeader), --update-fields, --all - CI installs Pandoc; 124 tests Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.