metanorma-itu 2.6.1 → 2.6.3
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/lib/isodoc/itu/html/_coverpage.css +7 -0
- data/lib/isodoc/itu/html/htmlstyle.css +14 -6
- data/lib/isodoc/itu/html/htmlstyle.scss +2 -0
- data/lib/isodoc/itu/itu.implementers-guide.xsl +618 -248
- data/lib/isodoc/itu/itu.in-force.xsl +618 -248
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +618 -248
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +618 -248
- data/lib/isodoc/itu/itu.recommendation.xsl +618 -248
- data/lib/isodoc/itu/itu.resolution.xsl +618 -248
- data/lib/isodoc/itu/itu.service-publication.xsl +618 -248
- data/lib/isodoc/itu/itu.technical-paper.xsl +618 -248
- data/lib/isodoc/itu/itu.technical-report.xsl +618 -248
- data/lib/isodoc/itu/presentation_ref.rb +8 -4
- data/lib/isodoc/itu/presentation_section.rb +118 -0
- data/lib/isodoc/itu/presentation_xml_convert.rb +20 -132
- data/lib/isodoc/itu/xref.rb +0 -19
- data/lib/metanorma/itu/basicdoc.rng +71 -59
- data/lib/metanorma/itu/front.rb +2 -1
- data/lib/metanorma/itu/isodoc.rng +60 -18
- data/lib/metanorma/itu/validate.rb +0 -1
- data/lib/metanorma/itu/version.rb +1 -1
- metadata +3 -2
@@ -17,7 +17,7 @@
|
|
17
17
|
these elements; we just want one namespace for any child grammars
|
18
18
|
of this.
|
19
19
|
-->
|
20
|
-
<!-- VERSION v2.0.
|
20
|
+
<!-- VERSION v2.0.2 -->
|
21
21
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
22
22
|
<include href="reqt.rng"/>
|
23
23
|
<include href="basicdoc.rng">
|
@@ -33,6 +33,15 @@
|
|
33
33
|
</zeroOrMore>
|
34
34
|
</element>
|
35
35
|
</define>
|
36
|
+
<define name="fn" combine="interleave">
|
37
|
+
<optional>
|
38
|
+
<attribute name="hiddenref">
|
39
|
+
<a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
|
40
|
+
This is done if the footnote reference is already presented in some other form, e.g. within a figure image.</a:documentation>
|
41
|
+
<data type="boolean"/>
|
42
|
+
</attribute>
|
43
|
+
</optional>
|
44
|
+
</define>
|
36
45
|
<define name="index-primary">
|
37
46
|
<element name="primary">
|
38
47
|
<oneOrMore>
|
@@ -245,23 +254,9 @@
|
|
245
254
|
<a:documentation>The caption of the block</a:documentation>
|
246
255
|
</ref>
|
247
256
|
</optional>
|
248
|
-
<
|
249
|
-
<
|
250
|
-
|
251
|
-
<a:documentation>The computer code or other such text presented in the block, as a single unformatted string.
|
252
|
-
(The string should be treated as pre-formatted text, with whitespace treated as significant)</a:documentation>
|
253
|
-
</text>
|
254
|
-
<ref name="callout">
|
255
|
-
<a:documentation>Zero or more cross-references; these are intended to be embedded within the content string, and link to annotations</a:documentation>
|
256
|
-
</ref>
|
257
|
-
<ref name="xref">
|
258
|
-
<a:documentation>Hyperlink of code segment to another part of the document</a:documentation>
|
259
|
-
</ref>
|
260
|
-
<ref name="eref">
|
261
|
-
<a:documentation>Hyperlink of code segment to external bibliographic resource</a:documentation>
|
262
|
-
</ref>
|
263
|
-
</choice>
|
264
|
-
</oneOrMore>
|
257
|
+
<ref name="sourcecodebody">
|
258
|
+
<a:documentation>The sourcecode content</a:documentation>
|
259
|
+
</ref>
|
265
260
|
<zeroOrMore>
|
266
261
|
<ref name="annotation">
|
267
262
|
<a:documentation>Annotations to the source code; each annotation consists of zero or more paragraphs,
|
@@ -277,6 +272,26 @@ and is intended to be referenced by a callout within the source code</a:document
|
|
277
272
|
<a:documentation>A source for the block</a:documentation>
|
278
273
|
</ref>
|
279
274
|
</define>
|
275
|
+
<define name="sourcecodebody">
|
276
|
+
<a:documentation>The computer code or other such text presented in the block, as a single unformatted string.
|
277
|
+
(The string should be treated as pre-formatted text, with whitespace treated as significant)</a:documentation>
|
278
|
+
<element name="body">
|
279
|
+
<oneOrMore>
|
280
|
+
<choice>
|
281
|
+
<text/>
|
282
|
+
<ref name="callout">
|
283
|
+
<a:documentation>Zero or more cross-references; these are intended to be embedded within the content string, and link to annotations</a:documentation>
|
284
|
+
</ref>
|
285
|
+
<ref name="xref">
|
286
|
+
<a:documentation>Hyperlink of code segment to another part of the document</a:documentation>
|
287
|
+
</ref>
|
288
|
+
<ref name="eref">
|
289
|
+
<a:documentation>Hyperlink of code segment to external bibliographic resource</a:documentation>
|
290
|
+
</ref>
|
291
|
+
</choice>
|
292
|
+
</oneOrMore>
|
293
|
+
</element>
|
294
|
+
</define>
|
280
295
|
<define name="sections">
|
281
296
|
<element name="sections">
|
282
297
|
<oneOrMore>
|
@@ -408,6 +423,21 @@ normative or informative references, some split references into sections organiz
|
|
408
423
|
</oneOrMore>
|
409
424
|
</choice>
|
410
425
|
</define>
|
426
|
+
<define name="TdAttributes" combine="interleave">
|
427
|
+
<attribute name="style">
|
428
|
+
<a:documentation>CSS style: only background-color supported</a:documentation>
|
429
|
+
</attribute>
|
430
|
+
</define>
|
431
|
+
<define name="ThAttributes" combine="interleave">
|
432
|
+
<attribute name="style">
|
433
|
+
<a:documentation>CSS style: only background-color supported</a:documentation>
|
434
|
+
</attribute>
|
435
|
+
</define>
|
436
|
+
<define name="TrAttributes">
|
437
|
+
<attribute name="style">
|
438
|
+
<a:documentation>CSS style: only background-color supported</a:documentation>
|
439
|
+
</attribute>
|
440
|
+
</define>
|
411
441
|
<define name="table-note">
|
412
442
|
<element name="note">
|
413
443
|
<ref name="OptionalId"/>
|
@@ -1257,6 +1287,11 @@ numbers</a:documentation>
|
|
1257
1287
|
<a:documentation>Colophon or postface material</a:documentation>
|
1258
1288
|
</ref>
|
1259
1289
|
</optional>
|
1290
|
+
<optional>
|
1291
|
+
<ref name="review-container">
|
1292
|
+
<a:documentation>Annotations to the document</a:documentation>
|
1293
|
+
</ref>
|
1294
|
+
</optional>
|
1260
1295
|
</element>
|
1261
1296
|
</define>
|
1262
1297
|
<define name="misccontainer">
|
@@ -1267,6 +1302,13 @@ numbers</a:documentation>
|
|
1267
1302
|
</oneOrMore>
|
1268
1303
|
</element>
|
1269
1304
|
</define>
|
1305
|
+
<define name="review-container">
|
1306
|
+
<element name="review-container">
|
1307
|
+
<oneOrMore>
|
1308
|
+
<ref name="review"/>
|
1309
|
+
</oneOrMore>
|
1310
|
+
</element>
|
1311
|
+
</define>
|
1270
1312
|
<define name="preface">
|
1271
1313
|
<element name="preface">
|
1272
1314
|
<oneOrMore>
|
@@ -97,7 +97,6 @@ module Metanorma
|
|
97
97
|
|
98
98
|
def itu_identifier_validate(xmldoc)
|
99
99
|
xmldoc.xpath("//bibdata/docidentifier[@type = 'ITU']").each do |x|
|
100
|
-
warn x.text
|
101
100
|
/^SG \d+/.match?(x.text) ||
|
102
101
|
/^ITU-[RTD] [AD-VX-Z]\.\d+(\.\d+)?$/.match?(x.text) or
|
103
102
|
@log.add("Style", nil, "#{x.text} does not match ITU document " \
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-itu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|
@@ -328,6 +328,7 @@ files:
|
|
328
328
|
- lib/isodoc/itu/presentation_contribution.rb
|
329
329
|
- lib/isodoc/itu/presentation_preface.rb
|
330
330
|
- lib/isodoc/itu/presentation_ref.rb
|
331
|
+
- lib/isodoc/itu/presentation_section.rb
|
331
332
|
- lib/isodoc/itu/presentation_xml_convert.rb
|
332
333
|
- lib/isodoc/itu/ref.rb
|
333
334
|
- lib/isodoc/itu/terms.rb
|