metanorma-iso 3.5.41 → 3.5.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/TODO.docx/P0-005-word-unreadable-content.md +45 -1
- data/TODO.docx/P1-014-figure-line-clipping.md +48 -0
- data/TODO.docx/P3-002-sts-gap-analysis.md +13 -3
- data/TODO.docx/P3-007-verify-word-opens.md +19 -1
- data/TODO.docx/P4-001-peter-review-matrix.md +42 -0
- data/TODO.docx/P4-002-reference-ruling.md +148 -0
- data/TODO.docx/README.md +12 -8
- data/data/iso-dis/styles.yml +4 -1
- data/data/iso-dis/template.docx +0 -0
- data/data/iso-simple/styles.yml +1 -1
- data/data/iso-simple/template.dotx +0 -0
- data/lib/isodoc/iso/docx/cover_renderer.rb +1 -1
- data/lib/isodoc/iso/iso.amendment.xsl +70 -13
- data/lib/isodoc/iso/iso.international-standard.xsl +70 -13
- data/lib/metanorma/iso/themes/iso/theme.yaml +3 -0
- data/lib/metanorma/iso/themes/iso-legacy/theme.yaml +3 -0
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +1 -1
- metadata +7 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4304570f65711cbb2f2a72e262594a51f08a878702f181646e95f34c4cb25fa0
|
|
4
|
+
data.tar.gz: 36f9006dc6ebbb4c81e6585304b458ab070f9beaabaabf490b72da1d6174dbbd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0ea91039084180c522c9d7c17d0bc835fde126469168bcbc349794c0899f692dad97de3b25ed0fa84c09499f66dafb6de8a5eda9efa8a3df25420bedfceb2d9
|
|
7
|
+
data.tar.gz: 583b61b59a576242fb116818b19d18780d5c9332f110f51d0006790097a460aaddf56bd3c7334041692efa46d29472be313ba525d7060131addbaa9d18397b7b
|
|
@@ -24,8 +24,52 @@ User reports `rice-dis-output-latest.docx` won't open in Word.
|
|
|
24
24
|
1. Remove `docProps/custom.xml` and its content type override
|
|
25
25
|
2. Test opening after each removal to isolate the cause
|
|
26
26
|
|
|
27
|
-
## Status: DONE (verified in Microsoft Word, 2026-11-19)
|
|
27
|
+
## Status: DONE (verified in Microsoft Word, 2026-11-19; re-verified on 3.5.42, 2026-12-02)
|
|
28
28
|
|
|
29
29
|
## Verification (2026-11-19)
|
|
30
30
|
- rice.presentation.xml rendered to DOCX at ac2393fb (lane/1728-cards-batch4), opened in Microsoft Word read-only: no "unreadable content" or repair dialog.
|
|
31
31
|
- Table of contents entries clicked in Word jump to their headings.
|
|
32
|
+
|
|
33
|
+
## Re-verification on the 3.5.42 baseline (2026-12-02)
|
|
34
|
+
|
|
35
|
+
The 2026-11-19 verification predated the Dec 1 wave (#1945–#1948, #1953).
|
|
36
|
+
Re-rendered `spec/fixtures/iso/is/document-en.dis.presentation.xml` through
|
|
37
|
+
the documented one-process render (metanorma-iso v3.5.42 worktree, deps in
|
|
38
|
+
`versions.txt`) and re-ran the gate:
|
|
39
|
+
|
|
40
|
+
- Opened in Microsoft Word for Mac: no "unreadable content" or repair
|
|
41
|
+
dialog; the document opens, OMML math renders, and the file mtime is
|
|
42
|
+
unchanged after close (no repair + save). Baseline artifacts at
|
|
43
|
+
`~/metanorma/baselines/138-14/` (`dis.doc`, `dis.docx`, `versions.txt`).
|
|
44
|
+
- 26-point OOXML audit green (ZIP attributes, XML well-formedness, control
|
|
45
|
+
bytes, content types, rel targets, style/numId/footnote/hyperlink
|
|
46
|
+
resolution, required styles, sectPr position, pPr/rPr ordering, no
|
|
47
|
+
LF/CR/TAB in `w:t`, mc:Ignorable declarations, custom.xml, image media).
|
|
48
|
+
- Not a defect: Word's "This document contains fields that may refer to
|
|
49
|
+
other files … update the fields?" yes/no prompt on open. It is the
|
|
50
|
+
deliberate `w:updateFields` set by the ToC builder so Word refreshes
|
|
51
|
+
cached ToC page numbers; answering Yes refreshes, No keeps them. It is
|
|
52
|
+
not the corrupt-file dialog.
|
|
53
|
+
|
|
54
|
+
### Strict OOXML (transitional schema) findings — none Word-blocking
|
|
55
|
+
|
|
56
|
+
Validation against the transitional schema set (uniword `data/schemas`,
|
|
57
|
+
`xmllint`) leaves only tolerated artifacts:
|
|
58
|
+
|
|
59
|
+
1. `word/settings.xml`: `w:docVars` serialized after `w:rsids` — the
|
|
60
|
+
reconciler anchored `w:rsids` on `w:compat` unconditionally. Fixed
|
|
61
|
+
upstream in metanorma/uniword#127 (anchor on docVars when present).
|
|
62
|
+
2. `word/styles.xml`: `Heading6` (outlineLvl before spacing, predates the
|
|
63
|
+
repo) and `zzCopyrightaddress` (jc inserted after contextualSpacing by
|
|
64
|
+
96c49337) violated the CT_PPrBase sequence. Fixed in
|
|
65
|
+
`data/iso-dis/template.docx` on this lane.
|
|
66
|
+
3. `word/document.xml`: OMML `m:dPr` children serialize as
|
|
67
|
+
`begChr, endChr, sepChr, grow` (sepChr must precede endChr). Plurimath
|
|
68
|
+
`to_omml` emits that order and lutaml-model's ordered mapping preserves
|
|
69
|
+
it through `Omml.parse`. Word renders the construct correctly (verified
|
|
70
|
+
in the same open). Write-up for the owner; plurimath/omml are outside
|
|
71
|
+
the auto-file org list.
|
|
72
|
+
4. The remaining `mc:Ignorable`-attribute and `w14:`/`w15:`/`w16cid:`
|
|
73
|
+
extension-attribute "errors" are xmllint MCE limitations; Word's own
|
|
74
|
+
files carry the same constructs.
|
|
75
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# 088b: Figures clipped to a sliver by the Normal exact line rule
|
|
2
|
+
|
|
3
|
+
## Status: DONE (fixed on lane/1728-p0-wordopen, 2026-12-02)
|
|
4
|
+
|
|
5
|
+
## Symptom
|
|
6
|
+
|
|
7
|
+
User reports DOCX figures "not properly showing, only showing some half or
|
|
8
|
+
not showing" — inline figure images render as a thin sliver (the bottom
|
|
9
|
+
edge only) above the caption; some figures appear almost entirely missing.
|
|
10
|
+
|
|
11
|
+
## Root cause
|
|
12
|
+
|
|
13
|
+
The DIS template's `Normal` style carries
|
|
14
|
+
`<w:spacing w:after="160" w:line="249" w:lineRule="exact"/>`. The
|
|
15
|
+
`FigureGraphic` style (based on `BaseText`, which does not override the
|
|
16
|
+
line rule) inherits that EXACT 249-twip line height, and Word (and
|
|
17
|
+
LibreOffice) clip inline drawings to the fixed line height. A figure
|
|
18
|
+
2.5in tall in a 249-twip line shows only the bottom ~0.17in.
|
|
19
|
+
|
|
20
|
+
Evidence:
|
|
21
|
+
- All five drawings in the DIS-fixture output are `wp:inline` in
|
|
22
|
+
`FigureGraphic` paragraphs with no direct spacing override.
|
|
23
|
+
- The emitted extents match the source pixel aspect ratios exactly, so
|
|
24
|
+
sizing was never the problem — clipping was.
|
|
25
|
+
- The DOC baseline renders the same figures full-height: its figure
|
|
26
|
+
paragraphs carry `class="figure"` with no line-height constraint.
|
|
27
|
+
- A/B LibreOffice render of the fixture output before/after the fix:
|
|
28
|
+
pre-fix Figure A.1 is a sliver and Figure C.2 subfigures are bottom
|
|
29
|
+
arcs; post-fix both render complete (page count moves 20 → 21).
|
|
30
|
+
- User observed the clipping on the same artifact opened in Microsoft
|
|
31
|
+
Word; Word truncated identically.
|
|
32
|
+
|
|
33
|
+
## Fix
|
|
34
|
+
|
|
35
|
+
- `data/iso-dis/template.docx` `FigureGraphic` spacing gains
|
|
36
|
+
`w:line="240" w:lineRule="auto"` (single spacing, line grows to the
|
|
37
|
+
image height). `Normal`'s exact 249 rule is untouched so body-text
|
|
38
|
+
layout parity with the DOC baseline is preserved.
|
|
39
|
+
- `data/iso-dis/styles.yml` mirrors the FigureGraphic spacing.
|
|
40
|
+
|
|
41
|
+
## Verification (2026-12-02)
|
|
42
|
+
|
|
43
|
+
- Re-rendered DIS fixture: emitted `word/styles.xml` carries
|
|
44
|
+
`<w:spacing w:before="240" w:after="120" w:line="240" w:lineRule="auto"/>`
|
|
45
|
+
on `FigureGraphic`.
|
|
46
|
+
- LibreOffice A/B: figures render complete in the post-fix output.
|
|
47
|
+
- Style specs green (style_mapping, style_resolver, integrity,
|
|
48
|
+
template_provenance — 144 examples).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Comparing elements found in reference STS XML vs sts-ruby model classes.
|
|
6
6
|
|
|
7
|
-
Status: 16 "Verify mapping" rows checked against sts-ruby origin/main (8279d6b): 14 mapped, 2 gaps (`target`, `named-content` in `Paragraph`).
|
|
7
|
+
Status: 16 "Verify mapping" rows checked against sts-ruby origin/main (8279d6b): 14 mapped, 2 gaps (`target`, `named-content` in `Paragraph`). CLOSED 2026-12-02: both gaps mapped and shipped in sts 0.6.15 (see Status below).
|
|
8
8
|
|
|
9
9
|
### Front (iso-meta) — Sts::IsoSts::IsoMeta
|
|
10
10
|
|
|
@@ -145,8 +145,8 @@ Status: 16 "Verify mapping" rows checked against sts-ruby origin/main (8279d6b):
|
|
|
145
145
|
| `inline-formula` | `InlineFormula` | Present |
|
|
146
146
|
| `fn` | `TbxIsoTml::Fn` | Present |
|
|
147
147
|
| `break` | `Break` | Present |
|
|
148
|
-
| `target` | `Target
|
|
149
|
-
| `named-content` | `NamedContent
|
|
148
|
+
| `target` | `Target`, mapped in `Paragraph` (lib/sts/iso_sts/paragraph.rb:88, lib/sts/niso_sts/paragraph.rb:76; sts-ruby commit 7fc8f84, released in sts 0.6.15) | Mapped |
|
|
149
|
+
| `named-content` | `NamedContent`, mapped in `Paragraph` (lib/sts/iso_sts/paragraph.rb:89, lib/sts/niso_sts/paragraph.rb:77; sts-ruby commit 7fc8f84, released in sts 0.6.15) | Mapped |
|
|
150
150
|
| `graphic` (inline) | `Graphic` | Present |
|
|
151
151
|
| `mml:math` | `Mathml2::Math` | Present |
|
|
152
152
|
|
|
@@ -184,3 +184,13 @@ CLOSED on the card's own scope, with one dependency follow-up outside this repo.
|
|
|
184
184
|
- The 14 "Mapped" rows: every `lib/sts/...rb:LINE` reference in this card was read in sts-ruby origin/main (da0c5e6) and in the installed sts 0.6.14 gem; all 14 lines are the `map_element` for the named element, in both. Command: `grep -o 'lib/sts/[a-z_/]*\.rb:[0-9]*' <this card> | sort -u`, then `git show origin/main:<file> | sed -n <line>p`.
|
|
185
185
|
- The 2 gaps (`target`, `named-content` in `Paragraph`): mapped in sts-ruby origin/main (da0c5e6): lib/sts/iso_sts/paragraph.rb:88-89 and lib/sts/niso_sts/paragraph.rb:76-77, commit 7fc8f84. NOT in a release: `git merge-base --is-ancestor 7fc8f84 v0.6.14` fails and `git tag --contains da0c5e6` lists no tag; the installed sts 0.6.14 (the version `metanorma-iso.gemspec` allows, `~> 0.6.14`) has no such mapping and drops both on a round trip: `Sts::IsoSts::Standard.from_xml('<standard><body><sec><p>a <named-content content-type="x">nc</named-content> <target id="t1"/> b</p></sec></body></standard>').to_xml` yields `<p>a b</p>`.
|
|
186
186
|
- Remaining outside this card: a sts release that includes 7fc8f84, then a dependency bump here (not done: no version bumps in a feature branch). The converter does not emit `target` or `named-content` today, so no output of this repo is affected.
|
|
187
|
+
|
|
188
|
+
## Status (2026-12-02)
|
|
189
|
+
|
|
190
|
+
DONE. Both mapping gaps shipped and consumed; verification green on both sides.
|
|
191
|
+
|
|
192
|
+
- Mapping: metanorma/sts-ruby PR #73 merged to main (da0c5e6): 7fc8f84 maps `target` + `named-content` inside paragraphs (lib/sts/iso_sts/paragraph.rb:88-89, lib/sts/niso_sts/paragraph.rb:76-77), and 3788bf3 extends both elements to every inline parent the XSDs allow (87 IsoSts/NisoSts classes), fixes repeated `named-content` collapsing in IsoSts Label/Term, and nests content in `NamedContent`.
|
|
193
|
+
- Release: sts 0.6.15 (tag v0.6.15, rubygems 0.6.15 latest, GitHub Release published 2026-11-20 by github-actions[bot]). Released-gem probe: `Sts::IsoSts::Standard` and `Sts::NisoSts::Standard` both keep `<target>` and `<named-content>` on a parse→emit round trip.
|
|
194
|
+
- Consumer: metanorma-iso `5cbb0e1d` ("chore(deps): require sts ~> 0.6.15"), shipped in v3.5.40.
|
|
195
|
+
- Round-trip verdict (fresh clone at origin/main 0a0b137, private reference fixtures restored): 362 examples, 0 failures — 34 reference-doc round trips (17 files) plus the focused specs added with the mapping (322 inline_named_content + 6 paragraph_inline_elements examples).
|
|
196
|
+
- STS-lane verdict (metanorma-iso spec/sts against the released 0.6.15): 730 examples, 0 failures.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TODO 005: Verify DOCX opens in Word without "unreadable content" error
|
|
2
2
|
|
|
3
|
-
## Status: DONE (verified in Microsoft Word, 2026-11-19)
|
|
3
|
+
## Status: DONE (verified in Microsoft Word, 2026-11-19; re-verified on 3.5.42, 2026-12-02)
|
|
4
4
|
|
|
5
5
|
## Context
|
|
6
6
|
All known XML-level fixes have been applied:
|
|
@@ -33,3 +33,21 @@ Generated: `data/rice_fixed9.docx`
|
|
|
33
33
|
## Verification (2026-11-19)
|
|
34
34
|
- rice.presentation.xml rendered to DOCX at ac2393fb (lane/1728-cards-batch4), opened in Microsoft Word read-only: no "unreadable content" or repair dialog.
|
|
35
35
|
- Table of contents entries clicked in Word jump to their headings.
|
|
36
|
+
|
|
37
|
+
## Re-verification on the 3.5.42 baseline (2026-12-02)
|
|
38
|
+
|
|
39
|
+
- DIS-fixture DOCX (one-process render, metanorma-iso v3.5.42 worktree,
|
|
40
|
+
see P0-005 for the full gate) opened in Microsoft Word for Mac: no
|
|
41
|
+
"unreadable content" or repair dialog; document opens, OMML math
|
|
42
|
+
renders, file mtime unchanged after close without saving.
|
|
43
|
+
- The only prompt on open is Word's "This document contains fields that
|
|
44
|
+
may refer to other files. Do you want to update the fields in this
|
|
45
|
+
document?" — driven by the deliberate `w:updateFields` from the ToC
|
|
46
|
+
builder so Word refreshes cached ToC page numbers. Not a corruption
|
|
47
|
+
warning; answering either way opens the document.
|
|
48
|
+
- Test-placement caveat for future manual runs: do not open test
|
|
49
|
+
artifacts from `/tmp` — after answering Yes, macOS asks Word to grant
|
|
50
|
+
access to /tmp, which Word cannot. Use a user folder (the baselines
|
|
51
|
+
now live at `~/metanorma/baselines/138-14/`).
|
|
52
|
+
- Figure rendering defect observed on the same artifact is tracked and
|
|
53
|
+
fixed in P1-014.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# P4-001 — Peter Wyatt's DOC/DOCX comparison
|
|
2
|
+
|
|
3
|
+
[Peter's report](https://github.com/metanorma/metanorma-iso/issues/1728#issuecomment-7086984266) was available through the GitHub connector. The numbering below follows the approved 14-point plan and separates ToC indentation from link coverage and footnote numbering from spacing. The [follow-up triage](https://github.com/metanorma/metanorma-iso/issues/1728#issuecomment-7098463988) treats the DOCX/PDF cover difference as expected. The cover remains in the matrix as an observation.
|
|
4
|
+
|
|
5
|
+
## Inputs and baseline
|
|
6
|
+
|
|
7
|
+
The GitHub connector returned 404 for both ISOTC171SC2 projects and `metanorma/mn-samples-iso-private`. No local copy was found. The public [PDF Association repository](https://github.com/pdf-association/pdf-issues) tracks errata and did not provide buildable Metanorma source for either document. There are no source SHAs or output baselines for those two projects in this run.
|
|
8
|
+
|
|
9
|
+
Pia's card-thread reply to blocker #15, steps 2 and 5, directs us to finish the checks possible on the tracked DIS fixture if neither document can be reached. The fixture comparison is that fallback. The original acceptance criterion for 19005-4 and 15930-9 remains open.
|
|
10
|
+
|
|
11
|
+
One Ruby process generated `dis.doc` and `dis.docx` from `spec/fixtures/iso/is/document-en.dis.presentation.xml`. Source and renderer both came from metanorma/metanorma-iso main at `c27737218dc3da8b05442cd6f0e2da46f86d8a6e`. The renderer versions were Ruby 3.4.8, metanorma-iso 3.5.41 (main checkout), metanorma-standoc 3.5.36, metanorma-document 0.5.22, isodoc 3.7.30, html2doc 1.12.2, uniword 1.7.11, Nokogiri 1.19.7 and rubyzip 3.7.1. A byte comparison of 488 shared `lib/` and `data/` files against the installed 3.5.41 gem found five differences, including the DOCX cover renderer. These results apply to the checkout build.
|
|
12
|
+
|
|
13
|
+
The fixture artifacts are in `.scratch/baselines/138-14/`. The lane runner copies these to `~/metanorma/baselines/138-14/` before the worktree is removed. Keep `dis.doc`, `dis.docx` and the full loaded gem manifest (`versions.txt`) together. The original fixture DOC SHA-256 is `e58d8273a23cdce5993323d3f0e5160a010cf0f182e4263748ee03f0237fec04` and the DOCX SHA-256 is `9c85dc9deb46d4f0a7facdd82a1b951ee42b8688dee71b3db219d3fe49a655c3`.
|
|
14
|
+
|
|
15
|
+
chore for lane runner: create ~/metanorma/baselines/138-14/ and copy .scratch/baselines/138-14/ into it before worktree cleanup (sandbox denied creating it)
|
|
16
|
+
|
|
17
|
+
`Metanorma::Iso::Processor#output` in `lib/metanorma/iso/processor.rb` dispatches DOC to `IsoDoc::Iso::WordConvert`, which selects `WordDISConvert` for this fixture and uses the isodoc/html2doc MHTML chain. DOCX dispatches through `output_word` to `IsoDoc::Iso::Docx::Adapter` and Uniword. The installed 3.5.30 release has the same split. Changes confined to the legacy Word renderer can affect DOC alone. Changes upstream in the shared presentation XML can affect both. The release [announcement for Peter's test](https://github.com/metanorma/metanorma-iso/issues/1728#issuecomment-7109146417) identifies the corresponding stable release, but the original DOC file remains unavailable for provenance checking.
|
|
18
|
+
|
|
19
|
+
## Measurement matrix
|
|
20
|
+
|
|
21
|
+
Both unavailable project columns carry the same evidence status, **needs Peter's exact input**. Fixture results characterize the emitted markup for the named section only. No Word pagination, field refresh or click behavior was tested. DOC references below are to the extracted MHTML body (`doc.html`) or decoded header MIME part (`doc-header-decoded.html`). DOCX references are relative to its `word/` directory. Owner paths are relative to `lib/isodoc/iso/` unless noted.
|
|
22
|
+
|
|
23
|
+
| # | Check | 19005-4 | 15930-9 | DIS fixture result and evidence | Owning files |
|
|
24
|
+
|---|---|---|---|---|---|
|
|
25
|
+
| 1 | Cover | needs Peter's exact input | needs Peter's exact input | **Reproduced** the DOC/DOCX markup difference on the cover. DOC puts the English title and part in one bold `zzCover` paragraph. DOCX uses separate `CoverTitleA1` and `CoverTitleA2` paragraphs. PDF styling was outside this build. | `word_dis_convert.rb`, `docx/cover_renderer.rb` |
|
|
26
|
+
| 2 | Header/footer alignment | needs Peter's exact input | needs Peter's exact input | DOCX headers and footers match DOC on the DIS fixture (alternating headers, one-line footers with the page number at the outer edge), since 96c49337. Peter's columns still need his exact input. | `html/header-dis.html`, `docx/header_footer_renderer.rb`, `docx/section_manager.rb` |
|
|
27
|
+
| 3 | Pale red text on alternating DOC pages | needs Peter's exact input | needs Peter's exact input | **Not reproduced** in emitted markup. The decoded DOC header part contains neither a watermark identifier nor a VML text path. No page-bottom rendering was inspected. | `html/header-dis.html` |
|
|
28
|
+
| 4 | Copyright after cover | needs Peter's exact input | needs Peter's exact input | **Not reproduced** for the reported boxed, justified DOCX. DOC `zzCopyright` uses `color: blue`. DOCX `styles.xml` sets `zzCopyright` to `<w:color w:val="0000FF"/>`, left justification and no paragraph border, and `document.xml` uses that style without a direct border on the copyright paragraphs. | `html/isodoc-dis.scss`, `docx/boilerplate_renderer.rb`, `data/iso-dis/styles.yml` (repo root) |
|
|
29
|
+
| 5 | ToC indentation | needs Peter's exact input | needs Peter's exact input | **Not reproduced** in styled DOCX entries. `TOC1`, `TOC2` and `TOC3` have effective first-line positions of 0, 720 and 1080 twips after subtracting their hanging indents. DOC emits distinct `MsoToc1` and `MsoToc2` classes for Scope and 4.1. | `docx/toc_builder.rb`, `data/iso-dis/styles.yml` (repo root), `word_cleanup.rb` |
|
|
30
|
+
| 6 | ToC title links | needs Peter's exact input | needs Peter's exact input | **Not reproduced** in cached markup. DOC `1 Scope` sits inside the local link. DOCX `1 Scope` also sits inside `w:hyperlink` before the tab and `PAGEREF`. All 26 cached DOCX ToC hyperlink anchors resolve to bookmark names. | `docx/toc_builder.rb`, `word_cleanup.rb` |
|
|
31
|
+
| 7 | Annex ToC qualifiers | needs Peter's exact input | needs Peter's exact input | **Not reproduced** in cached entries. Both formats include `(normative)` for Annex A and `(informative)` for Annexes B–E. | `docx/toc_builder.rb`, `word_cleanup.rb` |
|
|
32
|
+
| 8 | Table column widths | needs Peter's exact input | needs Peter's exact input | **Reproduced** different width markup in Table 1 (4.2). DOC emits `MsoISOTable` without a column grid. DOCX emits a 100% table (`w:tblW` type `pct`, value `5000`) with grid widths 2869, 1116, 2391, 1913 and 1915 twips. DOCX tables are full text width unless the source gives a width; Peter's visual comparison still needs his original table. | `word_dis_convert.rb`, `html/isodoc-dis.scss`, `docx/renderers/table_renderer.rb` |
|
|
33
|
+
| 9 | Title above Scope | needs Peter's exact input | needs Peter's exact input | **Not reproduced** for the reported bilingual DOCX title. DOC has an English `zzSTDTitle` with blue CSS. DOCX has English `MainTitle1` and `MainTitle2` immediately before Scope. The French title is on the cover. | `word_convert.rb`, `html/isodoc-dis.scss`, `docx/middle_title_renderer.rb` |
|
|
34
|
+
| 10 | Footnote number punctuation | needs Peter's exact input | needs Peter's exact input | **Not reproduced** in the first normative-reference footnote body. DOC uses a Word automatic number span. DOCX `footnotes.xml` uses `w:footnoteRef` followed by a space run, with no literal closing parenthesis. | `word_cleanup.rb`, `docx/inline_renderers/footnote_renderer.rb` |
|
|
35
|
+
| 11 | Footnote number/text spacing | needs Peter's exact input | needs Peter's exact input | **Not reproduced** in the first normative-reference footnote body. DOC emits a literal space after the `mso-footnote-id:ftn1` anchor. DOCX writes `<w:t xml:space="preserve"> </w:t>` after `w:footnoteRef`. | `word_cleanup.rb`, `docx/inline_renderers/footnote_renderer.rb` |
|
|
36
|
+
| 12 | Term definition space before | needs Peter's exact input | needs Peter's exact input | **Not reproduced** for the first definition after the designations (3.1). DOC emits `class="Definition" style="margin-top:12.0pt;"`. DOCX uses the `Definition` paragraph style for the corresponding text. | `word_cleanup.rb`, `docx/renderers/term_renderer.rb` |
|
|
37
|
+
| 13 | NOTE/EXAMPLE separator | needs Peter's exact input | needs Peter's exact input | **Not reproduced** for Table 1 NOTE 1. DOC emits `mso-tab-count:1` and DOCX emits `w:tab`. The unnumbered example in 3.6 differs structurally: DOC puts a tab between label and text, while DOCX puts the label and body in separate `Example` and `Exampleindent` paragraphs. The fixture lacks a matching numbered example. | `word_cleanup.rb`, `docx/renderers/term_renderer.rb`, `docx/renderers/example_renderer.rb`, `docx/renderers/table_cell_element/note_handler.rb` |
|
|
38
|
+
| 14 | Stray Annex A line | needs Peter's exact input | needs Peter's exact input | **Not reproduced** in the Annex A body markup. DOC has one `p.ANNEX` after the break. DOCX has one `ANNEX` heading after the break. Both carry the obligation and title in that heading and neither emits a second literal Annex A title in the adjacent body. | `word_cleanup.rb`, `docx/renderers/annex_renderer.rb` |
|
|
39
|
+
|
|
40
|
+
## Missing comparison inputs
|
|
41
|
+
|
|
42
|
+
missing: the exact 19005-4 and 15930-9 source revisions (repo + commit or file), the DOC/DOCX files Peter reviewed, and any images, fonts or bibliography files they need. Ask Peter Wyatt or Ronald to post the paths or attach them in the card thread.
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# P4-002 — Reference ruling for cover, header/footer and copyright
|
|
2
|
+
|
|
3
|
+
Recorded 2026-12-01 against checkout `abb1547835eb4f9e58bef1a03c93e2d5a84f505d`.
|
|
4
|
+
Status: reference investigation complete; unresolved acceptance choices are
|
|
5
|
+
escalated below. This document authorizes no renderer or template change.
|
|
6
|
+
|
|
7
|
+
## Evidence and limits
|
|
8
|
+
|
|
9
|
+
The numbering follows [P4-001](P4-001-peter-review-matrix.md), rows 1, 2 and 4,
|
|
10
|
+
which records the DIS fixture comparison at `c2773721`. Those are markup
|
|
11
|
+
observations, not a Word pagination or visual acceptance test. This investigation
|
|
12
|
+
reads the template XML and history; it does not regenerate that baseline.
|
|
13
|
+
Peter's two project columns remain **needs Peter's exact input** under the
|
|
14
|
+
2026-12-01 PM decision. Their source revisions, assets and reviewed DOC/DOCX
|
|
15
|
+
files remain requested in P4-001, “Missing comparison inputs”.
|
|
16
|
+
|
|
17
|
+
[Issue #1728](https://github.com/metanorma/metanorma-iso/issues/1728) requires
|
|
18
|
+
Simple for pre-DIS stages and DIS for DIS and later, with acceptance measured
|
|
19
|
+
against previously submitted MHTML artifacts of the matching stage.
|
|
20
|
+
[Peter's report](https://github.com/metanorma/metanorma-iso/issues/1728#issuecomment-7086984266)
|
|
21
|
+
describes two IS documents. A Simple-stage example cannot settle their layout.
|
|
22
|
+
The tracked DIS fixture is also not an accepted submission merely because we
|
|
23
|
+
can build it.
|
|
24
|
+
|
|
25
|
+
The following files were inspected directly with Rubyzip and Nokogiri. Part
|
|
26
|
+
paths below are inside these archives; paragraph indices are one-based XPath
|
|
27
|
+
`/w:document/w:body/w:p[N]`, not visual page numbers.
|
|
28
|
+
|
|
29
|
+
| Reference | Tracked file | SHA-256 at the inspected checkout |
|
|
30
|
+
|---|---|---|
|
|
31
|
+
| S | [Simple template](../data/iso-simple/template.dotx) | `5e1253029e5b3c91dd174a92c494204050ace552b4bb236d4739faa68b9c3a50` |
|
|
32
|
+
| D | [DIS template](../data/iso-dis/template.docx) | `ea92da771b05d1b5b4cdc26615543912d44c09b6fd8943b2f2b223ad53c32a04` |
|
|
33
|
+
|
|
34
|
+
These are repository-maintained templates, not untouched ISO originals.
|
|
35
|
+
In particular, [96c49337](https://github.com/metanorma/metanorma-iso/commit/96c4933741e300a12f90c3cb1423feeb57ba584f)
|
|
36
|
+
changed both templates' copyright styles and the DIS header/footer renderer to
|
|
37
|
+
match DOC. It added left alignment, added DIS blue text and removed copyright
|
|
38
|
+
style borders. Thus current DOC/DOCX agreement is not independent acceptance
|
|
39
|
+
evidence. The predecessor archives, inspected with
|
|
40
|
+
`git show 96c49337^:data/iso-simple/template.dotx` and
|
|
41
|
+
`git show 96c49337^:data/iso-dis/template.docx`, have SHA-256
|
|
42
|
+
`e64ed8360c464a9b26f33fa61cca2ad82c0fefceebcc82f11d7e94814f980766` and
|
|
43
|
+
`9d1621b1adc792c8937719e12a14279a9f0702b50fddd198f7f3b01fef5f28ea`
|
|
44
|
+
respectively. They establish earlier repository behavior, not certified ISO
|
|
45
|
+
provenance either. The DIS [style-library metadata](../data/iso-dis/styles.yml)
|
|
46
|
+
names `20250530-ISO_DIS_15926-100.docx` with a different reference hash,
|
|
47
|
+
`3d500eabc9564a8872edce573a2c1daee39de5e70282d4e061b5d9a53e64954c`;
|
|
48
|
+
that named original is not tracked here.
|
|
49
|
+
|
|
50
|
+
No accepted submitted artifact of a verified matching stage was available for
|
|
51
|
+
this comparison. [P1-004](P1-004-copyright-on-cover-page.md) records prior
|
|
52
|
+
measurement of the private ISO 5878 submission dated 20260429 and ISO 2533
|
|
53
|
+
submission dated 20260907, but only establishes page ordering for this topic.
|
|
54
|
+
It supplies neither their local paths nor measurements of title formatting,
|
|
55
|
+
header alignment or copyright colour/borders. It cannot decide those properties.
|
|
56
|
+
Private input and output files must stay out of this repository.
|
|
57
|
+
|
|
58
|
+
## Disposition
|
|
59
|
+
|
|
60
|
+
| Point | Reproduction recorded in P4-001 | Ruling and downstream gate |
|
|
61
|
+
|---|---|---|
|
|
62
|
+
| 1 — Cover | DOC/DOCX title structure differs on the DIS fixture; PDF was not built. | **Cited ruling for PDF:** matching PDF cover styling is not required. **Escalated for DOC/DOCX:** split DIS title versus the accepted DOC title treatment needs a matching-stage submitted artifact. Keep any fix for this remaining cover difference blocked. |
|
|
63
|
+
| 2 — Header/footer alignment | **Did not reproduce** in the inspected DIS fixture markup: both outputs have alternating left/right headers and left-aligned copyright footer paragraphs. | **Decided 2026-12-01:** Keep the current DOC-matching layout from 96c49337. See the Point 2 ruling below for the reopening criterion. |
|
|
64
|
+
| 4 — Copyright after cover | **Did not reproduce** for the reported boxed, justified DOCX: both outputs are blue; DOCX is left-aligned and unboxed. | No fixture-based fix. Historical template styles differ from the current patched templates; the reference choice for [#1840](https://github.com/metanorma/metanorma-iso/issues/1840) remains **escalated**. Keep further colour/alignment/box changes blocked pending the evidence below. |
|
|
65
|
+
|
|
66
|
+
These gates concern future fixes; they do not request reopening or reverting
|
|
67
|
+
already-landed work. “Did not reproduce” applies only to the named fixture and
|
|
68
|
+
properties inspected, not to Peter's unavailable documents.
|
|
69
|
+
|
|
70
|
+
## 1 — Cover: stage-specific evidence
|
|
71
|
+
|
|
72
|
+
The [owner's follow-up](https://github.com/metanorma/metanorma-iso/issues/1728#issuecomment-7098463988)
|
|
73
|
+
explicitly treats the DOCX/PDF cover difference as intentional. Do not use the
|
|
74
|
+
PDF cover as a target for either Word template.
|
|
75
|
+
|
|
76
|
+
| Property | Simple evidence (S) | DIS evidence (D) |
|
|
77
|
+
|---|---|---|
|
|
78
|
+
| Title style and structure | `word/document.xml` p[4]: one title paragraph, no explicit `w:pStyle`, direct 16 pt text with a bold “Title” label. `zzCover` and `CoverTitleA1` are absent from `word/styles.xml`. | `word/document.xml` p[5] and p[6]: separate `CoverTitleA1` and `CoverTitleA2`. `word/styles.xml` gives A1 bold 16 pt; A2 inherits A1. |
|
|
79
|
+
| Alignment | Direct `w:jc="right"` on identifier, committee and date (p[1..3]); direct left on title (p[4]); centre on stage badge (p[6]). | `zzCoverlarge` inherits right alignment from `zzCover` for metadata. Title styles inherit `BaseHeading`, with no explicit `w:jc` in that chain or paragraph: default left alignment, not the right-aligned metadata style. |
|
|
80
|
+
| Colour | Cover-title formatting sets no explicit colour; it does not prescribe blue. | No explicit colour in the title paragraphs or A1/A2/BaseHeading chain; it does not prescribe blue. |
|
|
81
|
+
| Box treatment | Title has no paragraph border. Stage badge and warning paragraphs (p[6], p[8..10]) have direct single borders. `zzwarninghdr`/`zzwarning` also define borders in `word/styles.xml`. | Title paragraphs and their style chain have no paragraph border. Simple's warning styles are absent; the DIS mapping uses `Notice`. |
|
|
82
|
+
|
|
83
|
+
P4-001 instead records the fixture DOC's combined bold `zzCover` title and
|
|
84
|
+
part, versus DOCX's A1/A2 split. The template supports the latter structure,
|
|
85
|
+
but no accepted matching-stage submission was compared. The older CD cover
|
|
86
|
+
measurements in [P2-007](P2-007-cover-page-structure.md) concern a different
|
|
87
|
+
stage and do not settle this DIS/IS choice.
|
|
88
|
+
|
|
89
|
+
**Escalation to Ronald:** retain the split title and template formatting above,
|
|
90
|
+
or adopt the combined-title treatment from a verified accepted DIS/IS MHTML
|
|
91
|
+
submission? Supply that artifact, its matching presentation XML/source revision
|
|
92
|
+
and stage, or explicitly rule on the conflict. PDF imitation is already ruled
|
|
93
|
+
out. Do not change cover styles based only on the fixture difference.
|
|
94
|
+
|
|
95
|
+
## 2 — Headers and footers: conflicting alignment references
|
|
96
|
+
|
|
97
|
+
In D, `word/header1.xml` through `header4.xml` use `HeaderCentered`; the style
|
|
98
|
+
in `word/styles.xml` explicitly centres the paragraph. `word/footer1.xml`
|
|
99
|
+
through `footer4.xml` contain two centred paragraphs: `FooterCentered` for
|
|
100
|
+
copyright, then `FooterPageRomanNumber` or `FooterPageNumber` for the PAGE
|
|
101
|
+
field. These styles/paragraphs prescribe no explicit text colour or paragraph
|
|
102
|
+
box. The page number is on a separate line, not at the outer edge of one line.
|
|
103
|
+
|
|
104
|
+
S has different layouts within the same template. `word/header1.xml` uses
|
|
105
|
+
`Header` with direct left alignment; `header2.xml` and `header3.xml` use
|
|
106
|
+
`Header` with direct centre alignment. Footers 1, 3 and 5 use `Footer` with
|
|
107
|
+
PAGE before copyright and a tab; footers 4 and 6 have two directly centred
|
|
108
|
+
paragraphs; footer 2 has one directly centred copyright paragraph styled
|
|
109
|
+
`Header`. These paragraphs/styles have no paragraph box or explicit text
|
|
110
|
+
colour. Section references in `word/document.xml`, resolved through
|
|
111
|
+
`word/_rels/document.xml.rels`, determine which part applies; file numbers
|
|
112
|
+
alone do not mean odd or even pages. Do not apply one global alignment to S.
|
|
113
|
+
|
|
114
|
+
Decided 2026-12-01 under the 2026-11-18 style rule: keep the current DOC-matching layout from 96c49337. Reopen only if an accepted DIS/IS submission of the same stage shows a different layout that the template defines, for a named section and odd or even page.
|
|
115
|
+
|
|
116
|
+
## 4 — Copyright: style versus direct formatting
|
|
117
|
+
|
|
118
|
+
| Evidence | Style, alignment, colour and box treatment |
|
|
119
|
+
|---|---|
|
|
120
|
+
| D now | `word/document.xml` p[8..16] uses `zzCopyright` / `zzCopyrightaddress`. In `word/styles.xml`, `zzCopyright` specifies left alignment and `0000FF` blue; the address inherits it. Neither style nor those paragraphs has a border. |
|
|
121
|
+
| D before 96c49337 | `word/styles.xml`, `w:style[@w:styleId='zzCopyright']`: single auto-colour borders on all four sides, no explicit text colour, and no alignment override; `Normal` supplies `w:jc="both"` (justified). This is materially different from D now. |
|
|
122
|
+
| S now | `zzCopyright` in `word/styles.xml` is blue, left-aligned and unboxed. However, `word/document.xml` p[16..24] adds direct borders and run colour `auto`. The specimen copyright is therefore boxed with automatic text colour, despite the patched style. The first paragraph directly sets left alignment; the others inherit the current left style. |
|
|
123
|
+
| S before 96c49337 | `zzCopyright` has blue single borders and blue text, inherits justified `Normal`, and has no left override. The document's direct run colours and borders must still be considered; reading the style alone does not describe the specimen. |
|
|
124
|
+
|
|
125
|
+
Both current templates place copyright after the cover section break (D p[7],
|
|
126
|
+
S p[15]); P1-004 independently records the existing ordering fix. Page
|
|
127
|
+
placement does not decide colour, justification or box treatment.
|
|
128
|
+
|
|
129
|
+
**Escalation to Ronald (#1840):** for the verified DIS/IS stage, retain the
|
|
130
|
+
current blue, left-aligned, unboxed DOC treatment, or follow the earlier
|
|
131
|
+
boxed/justified DIS template treatment? For any pre-DIS follow-up, explicitly
|
|
132
|
+
resolve S's style-versus-specimen difference too. Provide an accepted
|
|
133
|
+
submission and matching source/stage, or an explicit owner choice covering
|
|
134
|
+
style, alignment, colour and borders. Do not infer acceptance from the edits
|
|
135
|
+
made in 96c49337 or copy S's direct-formatting box into D.
|
|
136
|
+
|
|
137
|
+
## Verification
|
|
138
|
+
|
|
139
|
+
Inspected the two archive hashes, cover/copyright paragraphs, relevant styles
|
|
140
|
+
and inheritance, header/footer parts, and the pre-96c49337 copyright styles.
|
|
141
|
+
The cited current and historical values are XML observations; automatic
|
|
142
|
+
colour is not a measured screen colour. No Word visual or private-artifact
|
|
143
|
+
parity comparison was possible. No rendering behavior or executable spec is
|
|
144
|
+
changed by this documentation-only card.
|
|
145
|
+
|
|
146
|
+
The prescribed Ruby 3.4.8 `check.rb` completed successfully: specs skipped
|
|
147
|
+
(no library/spec changes), RuboCop skipped (no Ruby changes). All six local
|
|
148
|
+
Markdown reference links resolve, and the new file has no whitespace errors.
|
data/TODO.docx/README.md
CHANGED
|
@@ -4,15 +4,18 @@ Priority-based index of remaining TODOs for the ISO DOCX output pipeline.
|
|
|
4
4
|
|
|
5
5
|
## P0 — Critical (Word cannot open the file)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Status: DONE — the whole cluster is resolved. P0-005 verified in Microsoft
|
|
8
|
+
Word on 2026-11-19 and re-verified on the 3.5.42 baseline on 2026-12-02
|
|
9
|
+
(no "unreadable content" or repair dialog; see the point files for the
|
|
10
|
+
evidence and the residual tolerated-construct notes).
|
|
8
11
|
|
|
9
12
|
| # | Issue | Impact |
|
|
10
13
|
|---|-------|--------|
|
|
11
|
-
| P0-001 | Missing headerReference/footerReference/titlePg in sectPr |
|
|
12
|
-
| P0-002 | Detailed sectPr header/footer ref requirements |
|
|
13
|
-
| P0-003 | Body sectPr differences vs reference |
|
|
14
|
-
| P0-004 | Body sectPr structure incomplete |
|
|
15
|
-
| P0-005 | Word reports unreadable content |
|
|
14
|
+
| P0-001 | Missing headerReference/footerReference/titlePg in sectPr | status: done |
|
|
15
|
+
| P0-002 | Detailed sectPr header/footer ref requirements | status: done |
|
|
16
|
+
| P0-003 | Body sectPr differences vs reference | status: done |
|
|
17
|
+
| P0-004 | Body sectPr structure incomplete | status: done |
|
|
18
|
+
| P0-005 | Word reports unreadable content | status: done (Word-verified 2026-11-19, re-verified 2026-12-02) |
|
|
16
19
|
|
|
17
20
|
## P1 — Major Content Issues
|
|
18
21
|
|
|
@@ -32,7 +35,8 @@ Content is missing or visibly broken in the output.
|
|
|
32
35
|
| P1-010 | Normative references formatting | Style and structure issues |
|
|
33
36
|
| P1-011 | Normative reference footnote markers | Footnote markers in normref |
|
|
34
37
|
| P1-012 | Normref style and markers combined | Consolidated normref issue |
|
|
35
|
-
| P1-013 | Inline math OMML (partial — text fallback) |
|
|
38
|
+
| P1-013 | Inline math OMML (partial — text fallback) | status: done (block and inline math render as OMML) |
|
|
39
|
+
| P1-014 | Figures clipped to a sliver by Normal's exact line rule | status: done (FigureGraphic line rule fixed 2026-12-02) |
|
|
36
40
|
|
|
37
41
|
## P2 — Formatting and Styling
|
|
38
42
|
|
|
@@ -69,7 +73,7 @@ Missing features or test coverage, but output is usable.
|
|
|
69
73
|
| P3-004 | STS missing standalone transformers | cross_ref, bib_ref, terms_section, annex, bibliography |
|
|
70
74
|
| P3-005 | End-to-end rice output spec (tagged :slow) | Not in default CI |
|
|
71
75
|
| P3-006 | Amendment doctype awareness | No amendment-specific rendering |
|
|
72
|
-
| P3-007 | Verify Word opens (manual test) |
|
|
76
|
+
| P3-007 | Verify Word opens (manual test) | status: done (Word-verified 2026-11-19, re-verified 2026-12-02) |
|
|
73
77
|
| P3-008 | Architecture root-cause fixes (Phase 2/3) | Assembly refactoring |
|
|
74
78
|
|
|
75
79
|
## REF — Reference Documents
|
data/data/iso-dis/styles.yml
CHANGED
|
@@ -1363,6 +1363,8 @@ style_library:
|
|
|
1363
1363
|
spacing:
|
|
1364
1364
|
before: '240'
|
|
1365
1365
|
after: '120'
|
|
1366
|
+
line: '240'
|
|
1367
|
+
line_rule: 'auto'
|
|
1366
1368
|
alignment: center
|
|
1367
1369
|
keep_next: true
|
|
1368
1370
|
keep_lines: false
|
|
@@ -2698,7 +2700,7 @@ style_library:
|
|
|
2698
2700
|
spacing:
|
|
2699
2701
|
line: '240'
|
|
2700
2702
|
line_rule: 'auto'
|
|
2701
|
-
alignment:
|
|
2703
|
+
alignment: both
|
|
2702
2704
|
keep_next: false
|
|
2703
2705
|
keep_lines: false
|
|
2704
2706
|
page_break_before: false
|
|
@@ -2802,6 +2804,7 @@ style_library:
|
|
|
2802
2804
|
semi_hidden: false
|
|
2803
2805
|
unhide_when_used: false
|
|
2804
2806
|
paragraph_properties:
|
|
2807
|
+
alignment: left
|
|
2805
2808
|
indent:
|
|
2806
2809
|
firstLine: '340'
|
|
2807
2810
|
keep_next: false
|
data/data/iso-dis/template.docx
CHANGED
|
Binary file
|
data/data/iso-simple/styles.yml
CHANGED
|
Binary file
|
|
@@ -5346,7 +5346,19 @@
|
|
|
5346
5346
|
</xsl:choose>
|
|
5347
5347
|
</xsl:template>
|
|
5348
5348
|
|
|
5349
|
-
<xsl:template name="insertHeaderEven"
|
|
5349
|
+
<xsl:template name="insertHeaderEven"><!-- for override feature, don't remove -->
|
|
5350
|
+
<xsl:param name="num"/>
|
|
5351
|
+
<xsl:param name="is_header">true</xsl:param>
|
|
5352
|
+
<xsl:param name="border_around_page">false</xsl:param>
|
|
5353
|
+
<xsl:param name="header_region_name">header-even</xsl:param>
|
|
5354
|
+
<xsl:call-template name="insertHeaderEvenISO">
|
|
5355
|
+
<xsl:with-param name="num" select="$num"/>
|
|
5356
|
+
<xsl:with-param name="is_header" select="$is_header"/>
|
|
5357
|
+
<xsl:with-param name="border_around_page" select="$border_around_page"/>
|
|
5358
|
+
<xsl:with-param name="header_region_name" select="$header_region_name"/>
|
|
5359
|
+
</xsl:call-template>
|
|
5360
|
+
</xsl:template>
|
|
5361
|
+
<xsl:template name="insertHeaderEvenISO">
|
|
5350
5362
|
<xsl:param name="num"/>
|
|
5351
5363
|
<xsl:param name="is_header">true</xsl:param>
|
|
5352
5364
|
<xsl:param name="border_around_page">false</xsl:param>
|
|
@@ -5399,8 +5411,14 @@
|
|
|
5399
5411
|
</xsl:choose>
|
|
5400
5412
|
</fo:block-container>
|
|
5401
5413
|
</fo:static-content>
|
|
5402
|
-
</xsl:template> <!-- END:
|
|
5403
|
-
<xsl:template name="insertHeaderFirst"
|
|
5414
|
+
</xsl:template> <!-- END: insertHeaderEvenISO -->
|
|
5415
|
+
<xsl:template name="insertHeaderFirst"><!-- for override feature, don't remove -->
|
|
5416
|
+
<xsl:param name="num"/>
|
|
5417
|
+
<xsl:call-template name="insertHeaderFirstISO">
|
|
5418
|
+
<xsl:with-param name="num" select="$num"/>
|
|
5419
|
+
</xsl:call-template>
|
|
5420
|
+
</xsl:template>
|
|
5421
|
+
<xsl:template name="insertHeaderFirstISO">
|
|
5404
5422
|
<xsl:param name="num"/>
|
|
5405
5423
|
<xsl:variable name="ISOnumber" select="$variables/mnx:doc[@num = $num]/ISOnumber"/>
|
|
5406
5424
|
<xsl:variable name="doctype" select="$variables/mnx:doc[@num = $num]/doctype"/>
|
|
@@ -5498,8 +5516,18 @@
|
|
|
5498
5516
|
</xsl:otherwise>
|
|
5499
5517
|
</xsl:choose>
|
|
5500
5518
|
</fo:static-content>
|
|
5501
|
-
</xsl:template> <!-- END:
|
|
5502
|
-
<xsl:template name="insertHeaderOdd"
|
|
5519
|
+
</xsl:template> <!-- END: insertHeaderFirstISO -->
|
|
5520
|
+
<xsl:template name="insertHeaderOdd"><!-- for override feature, don't remove -->
|
|
5521
|
+
<xsl:param name="num"/>
|
|
5522
|
+
<xsl:param name="is_header">true</xsl:param>
|
|
5523
|
+
<xsl:param name="border_around_page">false</xsl:param>
|
|
5524
|
+
<xsl:call-template name="insertHeaderOddISO">
|
|
5525
|
+
<xsl:with-param name="num" select="$num"/>
|
|
5526
|
+
<xsl:with-param name="is_header" select="$is_header"/>
|
|
5527
|
+
<xsl:with-param name="border_around_page" select="$border_around_page"/>
|
|
5528
|
+
</xsl:call-template>
|
|
5529
|
+
</xsl:template>
|
|
5530
|
+
<xsl:template name="insertHeaderOddISO">
|
|
5503
5531
|
<xsl:param name="num"/>
|
|
5504
5532
|
<xsl:param name="is_header">true</xsl:param>
|
|
5505
5533
|
<xsl:param name="border_around_page">false</xsl:param>
|
|
@@ -5543,7 +5571,7 @@
|
|
|
5543
5571
|
</xsl:choose>
|
|
5544
5572
|
</fo:block-container>
|
|
5545
5573
|
</fo:static-content>
|
|
5546
|
-
</xsl:template> <!-- END:
|
|
5574
|
+
</xsl:template> <!-- END: insertHeaderOddISO -->
|
|
5547
5575
|
|
|
5548
5576
|
<xsl:template name="insertHeader1951">
|
|
5549
5577
|
<xsl:param name="num"/>
|
|
@@ -5650,7 +5678,17 @@
|
|
|
5650
5678
|
</fo:block-container>
|
|
5651
5679
|
</fo:static-content>
|
|
5652
5680
|
</xsl:template> <!-- END: insertFooterFirst1972_1998 -->
|
|
5653
|
-
<xsl:template name="insertFooterEven"
|
|
5681
|
+
<xsl:template name="insertFooterEven"><!-- to override feature, don't remove -->
|
|
5682
|
+
<xsl:param name="num"/>
|
|
5683
|
+
<xsl:param name="font-weight" select="'bold'"/>
|
|
5684
|
+
<xsl:param name="insert_footer_last">true</xsl:param>
|
|
5685
|
+
<xsl:call-template name="insertFooterEvenISO">
|
|
5686
|
+
<xsl:with-param name="num" select="$num"/>
|
|
5687
|
+
<xsl:with-param name="font-weight" select="$font-weight"/>
|
|
5688
|
+
<xsl:with-param name="insert_footer_last" select="$insert_footer_last"/>
|
|
5689
|
+
</xsl:call-template>
|
|
5690
|
+
</xsl:template>
|
|
5691
|
+
<xsl:template name="insertFooterEvenISO">
|
|
5654
5692
|
<xsl:param name="num"/>
|
|
5655
5693
|
<xsl:param name="font-weight" select="'bold'"/>
|
|
5656
5694
|
<xsl:param name="insert_footer_last">true</xsl:param>
|
|
@@ -5719,8 +5757,16 @@
|
|
|
5719
5757
|
</fo:block-container>
|
|
5720
5758
|
</fo:static-content>
|
|
5721
5759
|
</xsl:if>
|
|
5722
|
-
</xsl:template> <!-- END:
|
|
5723
|
-
<xsl:template name="insertFooterOdd"
|
|
5760
|
+
</xsl:template> <!-- END: insertFooterEvenISO -->
|
|
5761
|
+
<xsl:template name="insertFooterOdd"><!-- for override feature, don't remove -->
|
|
5762
|
+
<xsl:param name="num"/>
|
|
5763
|
+
<xsl:param name="font-weight" select="'bold'"/>
|
|
5764
|
+
<xsl:call-template name="insertFooterOddISO">
|
|
5765
|
+
<xsl:with-param name="num" select="$num"/>
|
|
5766
|
+
<xsl:with-param name="font-weight" select="$font-weight"/>
|
|
5767
|
+
</xsl:call-template>
|
|
5768
|
+
</xsl:template>
|
|
5769
|
+
<xsl:template name="insertFooterOddISO">
|
|
5724
5770
|
<xsl:param name="num"/>
|
|
5725
5771
|
<xsl:param name="font-weight" select="'bold'"/>
|
|
5726
5772
|
<xsl:variable name="copyrightText" select="$variables/mnx:doc[@num = $num]/copyrightText"/>
|
|
@@ -5777,7 +5823,7 @@
|
|
|
5777
5823
|
</xsl:choose>
|
|
5778
5824
|
</fo:block-container>
|
|
5779
5825
|
</fo:static-content>
|
|
5780
|
-
</xsl:template> <!-- END:
|
|
5826
|
+
</xsl:template> <!-- END: insertFooterOddISO -->
|
|
5781
5827
|
<xsl:template name="insertFooter1951">
|
|
5782
5828
|
<xsl:param name="num"/>
|
|
5783
5829
|
<xsl:param name="insert_footer_last">false</xsl:param>
|
|
@@ -8328,13 +8374,20 @@
|
|
|
8328
8374
|
<xsl:param name="bitmap_width" select="$pageWidth"/>
|
|
8329
8375
|
<xsl:choose>
|
|
8330
8376
|
<xsl:when test="*[local-name() = 'svg'] or java:endsWith(java:java.lang.String.new(@src), '.svg')">
|
|
8331
|
-
<fo:instream-foreign-object fox:
|
|
8377
|
+
<fo:instream-foreign-object fox:placement="Block">
|
|
8332
8378
|
<xsl:attribute name="content-height"><xsl:value-of select="$svg_content_height"/>mm</xsl:attribute>
|
|
8379
|
+
<xsl:call-template name="addAltText">
|
|
8380
|
+
<xsl:with-param name="name">Image Front</xsl:with-param>
|
|
8381
|
+
</xsl:call-template>
|
|
8333
8382
|
<xsl:call-template name="getSVG"/>
|
|
8334
8383
|
</fo:instream-foreign-object>
|
|
8335
8384
|
</xsl:when>
|
|
8336
8385
|
<xsl:when test="starts-with(@src, 'data:application/pdf;base64')">
|
|
8337
|
-
<fo:external-graphic src="{@src}" fox:
|
|
8386
|
+
<fo:external-graphic src="{@src}" fox:placement="Block">
|
|
8387
|
+
<xsl:call-template name="addAltText">
|
|
8388
|
+
<xsl:with-param name="name">Image Front</xsl:with-param>
|
|
8389
|
+
</xsl:call-template>
|
|
8390
|
+
</fo:external-graphic>
|
|
8338
8391
|
</xsl:when>
|
|
8339
8392
|
<xsl:otherwise> <!-- bitmap image -->
|
|
8340
8393
|
<xsl:variable name="coverimage_src" select="normalize-space(@src)"/>
|
|
@@ -8344,7 +8397,11 @@
|
|
|
8344
8397
|
<xsl:with-param name="src" select="$coverimage_src"/>
|
|
8345
8398
|
</xsl:call-template>
|
|
8346
8399
|
</xsl:variable>
|
|
8347
|
-
<fo:external-graphic src="{$coverpage}" width="{$bitmap_width}mm" content-height="scale-to-fit" scaling="uniform" fox:
|
|
8400
|
+
<fo:external-graphic src="{$coverpage}" width="{$bitmap_width}mm" content-height="scale-to-fit" scaling="uniform" fox:placement="Block">
|
|
8401
|
+
<xsl:call-template name="addAltText">
|
|
8402
|
+
<xsl:with-param name="name">Image Front</xsl:with-param>
|
|
8403
|
+
</xsl:call-template>
|
|
8404
|
+
</fo:external-graphic>
|
|
8348
8405
|
</xsl:if>
|
|
8349
8406
|
</xsl:otherwise>
|
|
8350
8407
|
</xsl:choose>
|
|
@@ -5346,7 +5346,19 @@
|
|
|
5346
5346
|
</xsl:choose>
|
|
5347
5347
|
</xsl:template>
|
|
5348
5348
|
|
|
5349
|
-
<xsl:template name="insertHeaderEven"
|
|
5349
|
+
<xsl:template name="insertHeaderEven"><!-- for override feature, don't remove -->
|
|
5350
|
+
<xsl:param name="num"/>
|
|
5351
|
+
<xsl:param name="is_header">true</xsl:param>
|
|
5352
|
+
<xsl:param name="border_around_page">false</xsl:param>
|
|
5353
|
+
<xsl:param name="header_region_name">header-even</xsl:param>
|
|
5354
|
+
<xsl:call-template name="insertHeaderEvenISO">
|
|
5355
|
+
<xsl:with-param name="num" select="$num"/>
|
|
5356
|
+
<xsl:with-param name="is_header" select="$is_header"/>
|
|
5357
|
+
<xsl:with-param name="border_around_page" select="$border_around_page"/>
|
|
5358
|
+
<xsl:with-param name="header_region_name" select="$header_region_name"/>
|
|
5359
|
+
</xsl:call-template>
|
|
5360
|
+
</xsl:template>
|
|
5361
|
+
<xsl:template name="insertHeaderEvenISO">
|
|
5350
5362
|
<xsl:param name="num"/>
|
|
5351
5363
|
<xsl:param name="is_header">true</xsl:param>
|
|
5352
5364
|
<xsl:param name="border_around_page">false</xsl:param>
|
|
@@ -5399,8 +5411,14 @@
|
|
|
5399
5411
|
</xsl:choose>
|
|
5400
5412
|
</fo:block-container>
|
|
5401
5413
|
</fo:static-content>
|
|
5402
|
-
</xsl:template> <!-- END:
|
|
5403
|
-
<xsl:template name="insertHeaderFirst"
|
|
5414
|
+
</xsl:template> <!-- END: insertHeaderEvenISO -->
|
|
5415
|
+
<xsl:template name="insertHeaderFirst"><!-- for override feature, don't remove -->
|
|
5416
|
+
<xsl:param name="num"/>
|
|
5417
|
+
<xsl:call-template name="insertHeaderFirstISO">
|
|
5418
|
+
<xsl:with-param name="num" select="$num"/>
|
|
5419
|
+
</xsl:call-template>
|
|
5420
|
+
</xsl:template>
|
|
5421
|
+
<xsl:template name="insertHeaderFirstISO">
|
|
5404
5422
|
<xsl:param name="num"/>
|
|
5405
5423
|
<xsl:variable name="ISOnumber" select="$variables/mnx:doc[@num = $num]/ISOnumber"/>
|
|
5406
5424
|
<xsl:variable name="doctype" select="$variables/mnx:doc[@num = $num]/doctype"/>
|
|
@@ -5498,8 +5516,18 @@
|
|
|
5498
5516
|
</xsl:otherwise>
|
|
5499
5517
|
</xsl:choose>
|
|
5500
5518
|
</fo:static-content>
|
|
5501
|
-
</xsl:template> <!-- END:
|
|
5502
|
-
<xsl:template name="insertHeaderOdd"
|
|
5519
|
+
</xsl:template> <!-- END: insertHeaderFirstISO -->
|
|
5520
|
+
<xsl:template name="insertHeaderOdd"><!-- for override feature, don't remove -->
|
|
5521
|
+
<xsl:param name="num"/>
|
|
5522
|
+
<xsl:param name="is_header">true</xsl:param>
|
|
5523
|
+
<xsl:param name="border_around_page">false</xsl:param>
|
|
5524
|
+
<xsl:call-template name="insertHeaderOddISO">
|
|
5525
|
+
<xsl:with-param name="num" select="$num"/>
|
|
5526
|
+
<xsl:with-param name="is_header" select="$is_header"/>
|
|
5527
|
+
<xsl:with-param name="border_around_page" select="$border_around_page"/>
|
|
5528
|
+
</xsl:call-template>
|
|
5529
|
+
</xsl:template>
|
|
5530
|
+
<xsl:template name="insertHeaderOddISO">
|
|
5503
5531
|
<xsl:param name="num"/>
|
|
5504
5532
|
<xsl:param name="is_header">true</xsl:param>
|
|
5505
5533
|
<xsl:param name="border_around_page">false</xsl:param>
|
|
@@ -5543,7 +5571,7 @@
|
|
|
5543
5571
|
</xsl:choose>
|
|
5544
5572
|
</fo:block-container>
|
|
5545
5573
|
</fo:static-content>
|
|
5546
|
-
</xsl:template> <!-- END:
|
|
5574
|
+
</xsl:template> <!-- END: insertHeaderOddISO -->
|
|
5547
5575
|
|
|
5548
5576
|
<xsl:template name="insertHeader1951">
|
|
5549
5577
|
<xsl:param name="num"/>
|
|
@@ -5650,7 +5678,17 @@
|
|
|
5650
5678
|
</fo:block-container>
|
|
5651
5679
|
</fo:static-content>
|
|
5652
5680
|
</xsl:template> <!-- END: insertFooterFirst1972_1998 -->
|
|
5653
|
-
<xsl:template name="insertFooterEven"
|
|
5681
|
+
<xsl:template name="insertFooterEven"><!-- to override feature, don't remove -->
|
|
5682
|
+
<xsl:param name="num"/>
|
|
5683
|
+
<xsl:param name="font-weight" select="'bold'"/>
|
|
5684
|
+
<xsl:param name="insert_footer_last">true</xsl:param>
|
|
5685
|
+
<xsl:call-template name="insertFooterEvenISO">
|
|
5686
|
+
<xsl:with-param name="num" select="$num"/>
|
|
5687
|
+
<xsl:with-param name="font-weight" select="$font-weight"/>
|
|
5688
|
+
<xsl:with-param name="insert_footer_last" select="$insert_footer_last"/>
|
|
5689
|
+
</xsl:call-template>
|
|
5690
|
+
</xsl:template>
|
|
5691
|
+
<xsl:template name="insertFooterEvenISO">
|
|
5654
5692
|
<xsl:param name="num"/>
|
|
5655
5693
|
<xsl:param name="font-weight" select="'bold'"/>
|
|
5656
5694
|
<xsl:param name="insert_footer_last">true</xsl:param>
|
|
@@ -5719,8 +5757,16 @@
|
|
|
5719
5757
|
</fo:block-container>
|
|
5720
5758
|
</fo:static-content>
|
|
5721
5759
|
</xsl:if>
|
|
5722
|
-
</xsl:template> <!-- END:
|
|
5723
|
-
<xsl:template name="insertFooterOdd"
|
|
5760
|
+
</xsl:template> <!-- END: insertFooterEvenISO -->
|
|
5761
|
+
<xsl:template name="insertFooterOdd"><!-- for override feature, don't remove -->
|
|
5762
|
+
<xsl:param name="num"/>
|
|
5763
|
+
<xsl:param name="font-weight" select="'bold'"/>
|
|
5764
|
+
<xsl:call-template name="insertFooterOddISO">
|
|
5765
|
+
<xsl:with-param name="num" select="$num"/>
|
|
5766
|
+
<xsl:with-param name="font-weight" select="$font-weight"/>
|
|
5767
|
+
</xsl:call-template>
|
|
5768
|
+
</xsl:template>
|
|
5769
|
+
<xsl:template name="insertFooterOddISO">
|
|
5724
5770
|
<xsl:param name="num"/>
|
|
5725
5771
|
<xsl:param name="font-weight" select="'bold'"/>
|
|
5726
5772
|
<xsl:variable name="copyrightText" select="$variables/mnx:doc[@num = $num]/copyrightText"/>
|
|
@@ -5777,7 +5823,7 @@
|
|
|
5777
5823
|
</xsl:choose>
|
|
5778
5824
|
</fo:block-container>
|
|
5779
5825
|
</fo:static-content>
|
|
5780
|
-
</xsl:template> <!-- END:
|
|
5826
|
+
</xsl:template> <!-- END: insertFooterOddISO -->
|
|
5781
5827
|
<xsl:template name="insertFooter1951">
|
|
5782
5828
|
<xsl:param name="num"/>
|
|
5783
5829
|
<xsl:param name="insert_footer_last">false</xsl:param>
|
|
@@ -8328,13 +8374,20 @@
|
|
|
8328
8374
|
<xsl:param name="bitmap_width" select="$pageWidth"/>
|
|
8329
8375
|
<xsl:choose>
|
|
8330
8376
|
<xsl:when test="*[local-name() = 'svg'] or java:endsWith(java:java.lang.String.new(@src), '.svg')">
|
|
8331
|
-
<fo:instream-foreign-object fox:
|
|
8377
|
+
<fo:instream-foreign-object fox:placement="Block">
|
|
8332
8378
|
<xsl:attribute name="content-height"><xsl:value-of select="$svg_content_height"/>mm</xsl:attribute>
|
|
8379
|
+
<xsl:call-template name="addAltText">
|
|
8380
|
+
<xsl:with-param name="name">Image Front</xsl:with-param>
|
|
8381
|
+
</xsl:call-template>
|
|
8333
8382
|
<xsl:call-template name="getSVG"/>
|
|
8334
8383
|
</fo:instream-foreign-object>
|
|
8335
8384
|
</xsl:when>
|
|
8336
8385
|
<xsl:when test="starts-with(@src, 'data:application/pdf;base64')">
|
|
8337
|
-
<fo:external-graphic src="{@src}" fox:
|
|
8386
|
+
<fo:external-graphic src="{@src}" fox:placement="Block">
|
|
8387
|
+
<xsl:call-template name="addAltText">
|
|
8388
|
+
<xsl:with-param name="name">Image Front</xsl:with-param>
|
|
8389
|
+
</xsl:call-template>
|
|
8390
|
+
</fo:external-graphic>
|
|
8338
8391
|
</xsl:when>
|
|
8339
8392
|
<xsl:otherwise> <!-- bitmap image -->
|
|
8340
8393
|
<xsl:variable name="coverimage_src" select="normalize-space(@src)"/>
|
|
@@ -8344,7 +8397,11 @@
|
|
|
8344
8397
|
<xsl:with-param name="src" select="$coverimage_src"/>
|
|
8345
8398
|
</xsl:call-template>
|
|
8346
8399
|
</xsl:variable>
|
|
8347
|
-
<fo:external-graphic src="{$coverpage}" width="{$bitmap_width}mm" content-height="scale-to-fit" scaling="uniform" fox:
|
|
8400
|
+
<fo:external-graphic src="{$coverpage}" width="{$bitmap_width}mm" content-height="scale-to-fit" scaling="uniform" fox:placement="Block">
|
|
8401
|
+
<xsl:call-template name="addAltText">
|
|
8402
|
+
<xsl:with-param name="name">Image Front</xsl:with-param>
|
|
8403
|
+
</xsl:call-template>
|
|
8404
|
+
</fo:external-graphic>
|
|
8348
8405
|
</xsl:if>
|
|
8349
8406
|
</xsl:otherwise>
|
|
8350
8407
|
</xsl:choose>
|
data/metanorma-iso.gemspec
CHANGED
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
spec.required_ruby_version = Gem::Requirement.new(">= 3.3.0")
|
|
35
35
|
|
|
36
36
|
spec.add_dependency "isodoc", "~> 3.7", ">= 3.7.21" # bibdata.* in Word headers (isodoc#917)
|
|
37
|
-
spec.add_dependency "metanorma-document", "~> 0.5.
|
|
37
|
+
spec.add_dependency "metanorma-document", "~> 0.5.21" # 0.5.21 removed logos_light; ISO themes now use logo records
|
|
38
38
|
spec.add_dependency "metanorma-standoc", ">= 3.4.2" # relaxed until standoc#1232 releases
|
|
39
39
|
spec.add_dependency "mnconvert", "~> 1.14"
|
|
40
40
|
spec.add_dependency "pubid", "~> 2.0.3"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-iso
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.5.
|
|
4
|
+
version: 3.5.43
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-12-
|
|
11
|
+
date: 2026-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: isodoc
|
|
@@ -36,14 +36,14 @@ dependencies:
|
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0.5.
|
|
39
|
+
version: 0.5.21
|
|
40
40
|
type: :runtime
|
|
41
41
|
prerelease: false
|
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - "~>"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 0.5.
|
|
46
|
+
version: 0.5.21
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
48
|
name: metanorma-standoc
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -409,6 +409,7 @@ files:
|
|
|
409
409
|
- TODO.docx/P1-011-normref-footnote-markers.md
|
|
410
410
|
- TODO.docx/P1-012-normref-style-and-markers.md
|
|
411
411
|
- TODO.docx/P1-013-inline-math-omml.md
|
|
412
|
+
- TODO.docx/P1-014-figure-line-clipping.md
|
|
412
413
|
- TODO.docx/P2-001-character-styles-gap.md
|
|
413
414
|
- TODO.docx/P2-002-style-alignment-gaps.md
|
|
414
415
|
- TODO.docx/P2-003-missing-rstyles.md
|
|
@@ -433,6 +434,8 @@ files:
|
|
|
433
434
|
- TODO.docx/P3-006-amendment-doctype.md
|
|
434
435
|
- TODO.docx/P3-007-verify-word-opens.md
|
|
435
436
|
- TODO.docx/P3-008-architecture-root-cause.md
|
|
437
|
+
- TODO.docx/P4-001-peter-review-matrix.md
|
|
438
|
+
- TODO.docx/P4-002-reference-ruling.md
|
|
436
439
|
- TODO.docx/README.md
|
|
437
440
|
- TODO.docx/REF-001-iso-template-style-audit.md
|
|
438
441
|
- TODO.fixup-sts/01-remove-require-relative.md
|