metanorma-itu 2.8.12 → 2.8.14
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/.rubocop.yml +9 -0
- data/lib/isodoc/itu/base_convert.rb +8 -0
- data/lib/isodoc/itu/html/_coverpage.css +9 -0
- data/lib/isodoc/itu/html/htmlstyle.css +9 -0
- data/lib/isodoc/itu/itu.implementers-guide.xsl +277 -146
- data/lib/isodoc/itu/itu.in-force.xsl +277 -146
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +277 -146
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +277 -146
- data/lib/isodoc/itu/itu.recommendation.xsl +277 -146
- data/lib/isodoc/itu/itu.resolution.xsl +277 -146
- data/lib/isodoc/itu/itu.service-publication.xsl +277 -146
- data/lib/isodoc/itu/itu.technical-paper.xsl +277 -146
- data/lib/isodoc/itu/itu.technical-report.xsl +277 -146
- data/lib/metanorma/itu/basicdoc.rng +23 -14
- data/lib/metanorma/itu/cleanup.rb +13 -13
- data/lib/metanorma/itu/converter.rb +6 -2
- data/lib/metanorma/itu/isodoc.rng +1 -1
- data/lib/metanorma/itu/{mathml3-content.rng → mathml4-content.rng} +104 -80
- data/lib/metanorma/itu/mathml4-core.rng +1041 -0
- data/lib/metanorma/itu/{mathml3-presentation.rng → mathml4-presentation.rng} +184 -1060
- data/lib/metanorma/itu/{mathml3-strict-content.rng → mathml4-strict-content.rng} +92 -8
- data/lib/metanorma/itu/mathml4.rng +30 -0
- data/lib/metanorma/itu/metanorma-mathml.rng +22 -8
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +6 -7
- data/.hound.yml +0 -5
- data/lib/metanorma/itu/mathml3-common.rng +0 -257
- data/lib/metanorma/itu/mathml3.rng +0 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6bde0efdd7763cdf181075e4c046f2efe868e764395b6fde491083c3548acff3
|
|
4
|
+
data.tar.gz: 43d07a4790c0bae983de907410ba191f1cfbcaad23e4ae2807eeb761ef2039d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c82d7ed8cd3954a1f2cd628ab3bd9b197c2a4ce812d6bc4c30eb0f4d5ec021afe986187975abf68ff59106ab050724d5d35f951d4e8073dbf0e4ac8e41232247
|
|
7
|
+
data.tar.gz: 6ba8b94f4f0e6ec59b43fe930acb6b02c7f6bc71b04678887da8a349af004b59758489e0e5535306c5a7df06644e88c6974212c04744424224c56d50c89c70f0
|
data/.rubocop.yml
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
# See https://github.com/metanorma/cimas
|
|
3
3
|
inherit_from:
|
|
4
4
|
- https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
|
|
5
|
+
# .rubocop_todo.yml MUST be the last entry. inherit_from is last-wins:
|
|
6
|
+
# if listed before oss-guides, the shared config's stricter Metrics/
|
|
7
|
+
# (MethodLength, BlockLength, etc.) rules override the todo's per-file
|
|
8
|
+
# grandfathering, and the todo becomes inert on those cops. Empirically
|
|
9
|
+
# verified on suma 2026-07-06: with todo listed first, 34 Metrics/* offenses
|
|
10
|
+
# remained; moved last, cleared. Every gem in the metanorma-org fleet
|
|
11
|
+
# already ships a `.rubocop_todo.yml` on its live tree (audited 2026-07-06,
|
|
12
|
+
# 54/54 have it), so this reference is safe to emit unconditionally.
|
|
13
|
+
- .rubocop_todo.yml
|
|
5
14
|
|
|
6
15
|
# Rubocop plugins enabled centrally so every metanorma-org gem picks them up
|
|
7
16
|
# on cimas sync — best practice belongs at the shared-template layer, not
|
|
@@ -105,6 +105,14 @@ module IsoDoc
|
|
|
105
105
|
n = dlist.at(ns("./colgroup")) and ret = "#{n.remove.to_xml}#{ret}"
|
|
106
106
|
n = dlist.at(ns("./fmt-name")) and ret = "#{n.remove.to_xml}#{ret}"
|
|
107
107
|
dlist.name = "table"
|
|
108
|
+
# GOTCHA (metanorma/iso-10303#712): ITU renders definition lists as
|
|
109
|
+
# tables, and this hard-sets class="dl", OVERWRITING any author custom
|
|
110
|
+
# @class ([class="..."]). So the block-@class support added in
|
|
111
|
+
# metanorma-standoc#1197 does NOT reach dl in ITU. Left as-is
|
|
112
|
+
# deliberately (class="dl" is the intentional dl-as-table marker); making
|
|
113
|
+
# it additive would re-enter the dl->table / MsoISOTable-border
|
|
114
|
+
# interaction. If an author class is ever wanted here, merge instead of
|
|
115
|
+
# overwrite: ["dl", dlist["class"]].compact.join(" ").
|
|
108
116
|
dlist["class"] = "dl"
|
|
109
117
|
dlist.children.first.previous = ret
|
|
110
118
|
end
|
|
@@ -130,6 +130,10 @@ dl dd {
|
|
|
130
130
|
grid-column-start: 2;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
+
dl:has(dt .stem) {
|
|
134
|
+
grid-template-columns: fit-content(8em) auto;
|
|
135
|
+
}
|
|
136
|
+
|
|
133
137
|
b, strong {
|
|
134
138
|
font-weight: bold;
|
|
135
139
|
}
|
|
@@ -143,6 +147,11 @@ a.FootnoteRef, span.FootnoteRef {
|
|
|
143
147
|
vertical-align: super;
|
|
144
148
|
}
|
|
145
149
|
|
|
150
|
+
a.TableFootnoteRef, a.FootnoteRef, a.footnote-number,
|
|
151
|
+
sup a, a:has(> sup) {
|
|
152
|
+
vertical-align: baseline;
|
|
153
|
+
}
|
|
154
|
+
|
|
146
155
|
.addition {
|
|
147
156
|
color: blue;
|
|
148
157
|
}
|
|
@@ -130,6 +130,10 @@ dl dd {
|
|
|
130
130
|
grid-column-start: 2;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
+
dl:has(dt .stem) {
|
|
134
|
+
grid-template-columns: fit-content(8em) auto;
|
|
135
|
+
}
|
|
136
|
+
|
|
133
137
|
b, strong {
|
|
134
138
|
font-weight: bold;
|
|
135
139
|
}
|
|
@@ -143,6 +147,11 @@ a.FootnoteRef, span.FootnoteRef {
|
|
|
143
147
|
vertical-align: super;
|
|
144
148
|
}
|
|
145
149
|
|
|
150
|
+
a.TableFootnoteRef, a.FootnoteRef, a.footnote-number,
|
|
151
|
+
sup a, a:has(> sup) {
|
|
152
|
+
vertical-align: baseline;
|
|
153
|
+
}
|
|
154
|
+
|
|
146
155
|
.addition {
|
|
147
156
|
color: blue;
|
|
148
157
|
}
|