Skip to content

Skill v1.4.0 - #3

Merged
AllenWang2005 merged 2 commits into
mainfrom
skill-v1.4.0
Jul 7, 2026
Merged

Skill v1.4.0#3
AllenWang2005 merged 2 commits into
mainfrom
skill-v1.4.0

Conversation

@AllenWang2005

Copy link
Copy Markdown
Owner

No description provided.

Allen Wang and others added 2 commits July 7, 2026 22:05
…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>
@AllenWang2005
AllenWang2005 merged commit 10d8c12 into main Jul 7, 2026
6 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