metanorma-iso 3.5.40 → 3.5.42

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da240e228ac0cf796e085001b75242dc2aa41e8dd67cc3aaa597274f5b3e15be
4
- data.tar.gz: 26867cb97c50948597f7454de83756512a35e50f13fd98393bc068f3f81b4383
3
+ metadata.gz: 8c4a791996a78de404d582e799c2234c9d4d5aa9250caab4e1c05443de7fe376
4
+ data.tar.gz: 61aeea62b84d2cab30e7cf14e235e9797622c3c02e40db89f120a1243cc21047
5
5
  SHA512:
6
- metadata.gz: 668a9306dc36ad38800220cccbb1767222d905682e3e2640305eace497654def08a22bc8956c75c74293d25df7f41ed49288ca5afa46c73541e48554c0a5bf3c
7
- data.tar.gz: 769289b8df4ebbe0141aa9fe0797dbc8c9a33e9f800e8be9e0eaafd9a0998470128b6d11482fac810e6065d6bd51b2d4bcd8675a36b3c55b2cac48afb80a3e88
6
+ metadata.gz: 8a03260072fef051d274e9cbe8adb40b30343c2fe53dda0f058892efef4a8f59b80a8de3ad0bd80672725615149a49cac7880e21396dc28a923b06b50d9c71fd
7
+ data.tar.gz: d592773b520fa1d8b988022082bf7fb7499a818b7835f2cbb87f8adafabe51506859ce8dde61c3835ddbaed507c3645e731afc24ef9776781a04339b3de316c0
@@ -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.
@@ -2698,7 +2698,7 @@ style_library:
2698
2698
  spacing:
2699
2699
  line: '240'
2700
2700
  line_rule: 'auto'
2701
- alignment: left
2701
+ alignment: both
2702
2702
  keep_next: false
2703
2703
  keep_lines: false
2704
2704
  page_break_before: false
@@ -2802,6 +2802,7 @@ style_library:
2802
2802
  semi_hidden: false
2803
2803
  unhide_when_used: false
2804
2804
  paragraph_properties:
2805
+ alignment: left
2805
2806
  indent:
2806
2807
  firstLine: '340'
2807
2808
  keep_next: false
Binary file
@@ -489,7 +489,7 @@ style_library:
489
489
  indent:
490
490
  left: '0.5'
491
491
  right: '0.5'
492
- alignment: left
492
+ alignment: both
493
493
  run_properties:
494
494
  color: 0000FF
495
495
  zzSTDTitle:
Binary file
@@ -236,7 +236,7 @@ module IsoDoc
236
236
  end
237
237
 
238
238
  def draft_word(bib)
239
- bib.respond_to?(:draft_label) ? bib.draft_label : "draft"
239
+ bib.is_a?(Metanorma::Iso::Document::Metadata::IsoBibliographicItem) ? bib.draft_label : "draft"
240
240
  end
241
241
 
242
242
  def extract_draft(bib)
@@ -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: insertHeaderEven -->
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: insertHeaderFirst -->
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: insertHeaderOdd -->
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: insertFooterEven -->
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: insertFooterOdd -->
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:alt-text="Image Front" fox:placement="Block">
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:alt-text="Image Front" fox:placement="Block"/>
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:alt-text="Image Front" fox:placement="Block"/>
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: insertHeaderEven -->
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: insertHeaderFirst -->
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: insertHeaderOdd -->
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: insertFooterEven -->
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: insertFooterOdd -->
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:alt-text="Image Front" fox:placement="Block">
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:alt-text="Image Front" fox:placement="Block"/>
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:alt-text="Image Front" fox:placement="Block"/>
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>
@@ -171,7 +171,7 @@ module IsoDoc
171
171
  super
172
172
  end
173
173
 
174
- def twitter_cldr_localiser_symbols
174
+ def number_formatter_symbols
175
175
  { group: "&#xA0;", fraction_group: "&#xA0;",
176
176
  fraction_group_digits: 3, decimal: "," }
177
177
  end
@@ -81,6 +81,9 @@ logo_slots:
81
81
  - slot: cover
82
82
  use: cover
83
83
  style: color-light
84
+ - slot: header
85
+ use: cover
86
+ style: color-light
84
87
 
85
88
  # Section ordering
86
89
  preface_order:
@@ -39,6 +39,9 @@ logo_slots:
39
39
  - slot: cover
40
40
  use: cover
41
41
  style: color-light
42
+ - slot: header
43
+ use: cover
44
+ style: color-light
42
45
 
43
46
  # Section ordering
44
47
  preface_order:
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Iso
3
- VERSION = "3.5.40".freeze
3
+ VERSION = "3.5.42".freeze
4
4
  end
5
5
  end
@@ -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.17" # the shared STS engine; 0.5.17 = fn-spacing + xref-label fixes (metanorma-document#202)
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.40
4
+ version: 3.5.42
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-01 00:00:00.000000000 Z
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.17
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.17
46
+ version: 0.5.21
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: metanorma-standoc
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -433,6 +433,8 @@ files:
433
433
  - TODO.docx/P3-006-amendment-doctype.md
434
434
  - TODO.docx/P3-007-verify-word-opens.md
435
435
  - TODO.docx/P3-008-architecture-root-cause.md
436
+ - TODO.docx/P4-001-peter-review-matrix.md
437
+ - TODO.docx/P4-002-reference-ruling.md
436
438
  - TODO.docx/README.md
437
439
  - TODO.docx/REF-001-iso-template-style-audit.md
438
440
  - TODO.fixup-sts/01-remove-require-relative.md