metanorma-iso 3.4.5 → 3.4.7

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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +13 -1
  3. data/Makefile +0 -45
  4. data/lib/isodoc/iso/html/html_iso_titlepage.html +6 -0
  5. data/lib/isodoc/iso/html/style-human.css +0 -4
  6. data/lib/isodoc/iso/html/style-human.scss +0 -2
  7. data/lib/isodoc/iso/html/style-iso.css +0 -2
  8. data/lib/isodoc/iso/html/style-iso.scss +0 -2
  9. data/lib/isodoc/iso/html/word_iso_titlepage-dis.html +14 -0
  10. data/lib/isodoc/iso/html/word_iso_titlepage-prf.html +14 -0
  11. data/lib/isodoc/iso/html/word_iso_titlepage.html +14 -0
  12. data/lib/isodoc/iso/i18n-de.yaml +2 -0
  13. data/lib/isodoc/iso/i18n-en.yaml +4 -0
  14. data/lib/isodoc/iso/i18n-fr.yaml +4 -0
  15. data/lib/isodoc/iso/i18n-ru.yaml +4 -0
  16. data/lib/isodoc/iso/i18n-zh-Hans.yaml +2 -0
  17. data/lib/isodoc/iso/iso.amendment.xsl +648 -83
  18. data/lib/isodoc/iso/iso.international-standard.xsl +648 -83
  19. data/lib/isodoc/iso/metadata.rb +15 -1
  20. data/lib/isodoc/iso/presentation_origin.rb +2 -6
  21. data/lib/isodoc/iso/presentation_xml_convert.rb +16 -1
  22. data/lib/isodoc/iso/word_cleanup.rb +1 -2
  23. data/lib/isodoc/iso/word_convert.rb +11 -0
  24. data/lib/metanorma/iso/basicdoc.rng +31 -6
  25. data/lib/metanorma/iso/cleanup_biblio.rb +55 -15
  26. data/lib/metanorma/iso/front.rb +14 -2
  27. data/lib/metanorma/iso/front_id.rb +8 -2
  28. data/lib/metanorma/iso/isodoc.rng +28 -3
  29. data/lib/metanorma/iso/mathml3-common.rng +257 -0
  30. data/lib/metanorma/iso/mathml3-content.rng +1544 -0
  31. data/lib/metanorma/iso/mathml3-presentation.rng +2324 -0
  32. data/lib/metanorma/iso/mathml3-strict-content.rng +205 -0
  33. data/lib/metanorma/iso/mathml3.rng +23 -0
  34. data/lib/metanorma/iso/metanorma-mathml.rng +45 -0
  35. data/lib/metanorma/iso/publisher_identity.rb +36 -0
  36. data/lib/metanorma/iso/relaton-iso.rng +2 -0
  37. data/lib/metanorma/iso/reqt.rng +10 -2
  38. data/lib/metanorma/iso/validate.rb +1 -1
  39. data/lib/metanorma/iso/validate_section.rb +1 -5
  40. data/lib/metanorma/iso/version.rb +1 -1
  41. data/lib/metanorma-iso.rb +1 -0
  42. data/lib/relaton/render/config.yml +9 -9
  43. data/metanorma-iso.gemspec +1 -1
  44. metadata +11 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91f9230ee17e15e6511a7d8b4a787c90ea830403daf0cfc54b75a7fabb4e4d0c
4
- data.tar.gz: 83d997bcc7d2bf3a7884a7bf155e7b2e0ef63148b99075e560821d309467277b
3
+ metadata.gz: 0af54faafa49b9a295ffdbe60b9ab015f6a097bf130283dbfb043fb96be24714
4
+ data.tar.gz: 0f882ef90048ea6f2dad7aacc0ec647561be2d767a463488986f300521bd10e5
5
5
  SHA512:
6
- metadata.gz: 49c2ddd6e4c19245d0ee90f3ff4697a1971a20b7a8ec608b8cb7b704b6ed838299502917453100c683c2c5a69c45c53c10eb2432ea6c6300ba119e3be3bfa215
7
- data.tar.gz: 2f70229f2706c9bc2e01e0b879e243575fe6a387f9dc1ebf77665260ea523ab79f11bf88deebe6677a4e9f74c241d9fb29583c19819eaadc3bae290d8307c44f
6
+ metadata.gz: 9f4904edaadda14223f80d4da1e88cf1b436f8dc78b988ef7e515774e81ca8cffecf2dfb4a7fba0cebbb8971d5a0bd0ff815b993fef3a613c5523ccce2ccfa3e
7
+ data.tar.gz: cc9b504554654940a3eccd7be06cf8bfe89dfa866354faa443f22e4020cedfbf85dbd60312dddda87b831306e611caa45c71f234c5a4fa150c448a5cb51c24c1
data/.rubocop.yml CHANGED
@@ -3,8 +3,20 @@
3
3
  inherit_from:
4
4
  - https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
5
5
 
6
+ # Rubocop plugins enabled centrally so every metanorma-org gem picks them up
7
+ # on cimas sync — best practice belongs at the shared-template layer, not
8
+ # per-repo. Per ronaldtse feedback on metanorma/ci#332.
9
+ plugins:
10
+ - rubocop-rspec
11
+ - rubocop-performance
12
+ - rubocop-rake
13
+
6
14
  # local repo-specific modifications
7
15
  # ...
8
16
 
9
17
  AllCops:
10
- TargetRubyVersion: 3.4
18
+ # 3.3 matches the org-wide minimum being pushed via #274 (Raise minimum
19
+ # Ruby version to 3.3 due to EOL of 3.2 on 2026-03-31). Was 3.4 before
20
+ # this commit — 3.4 was above the org's stated minimum and would have
21
+ # applied Rubocop rules that fail-close on gems still targeting 3.3.
22
+ TargetRubyVersion: 3.3
data/Makefile CHANGED
@@ -8,15 +8,6 @@ SHELL := /bin/bash
8
8
  # Ensure the xml2rfc cache directory exists locally
9
9
  IGNORE := $(shell mkdir -p $(HOME)/.cache/xml2rfc)
10
10
 
11
- TRANG_RELEASE := https://github.com/relaxng/jing-trang/releases/download/V20181222/trang-20181222.zip
12
- TOOLS_DIR := ${CURDIR}/tools
13
- TRANG_JAR := $(TOOLS_DIR)/trang.jar
14
- XSDVIPATH := $(TOOLS_DIR)/xsdvi.jar
15
- XSLT_FILE := $(TOOLS_DIR)/xs3pxsl
16
- XSLT_FILE_MERGE := $(TOOLS_DIR)/xsdmerge.xsl
17
- RNG_FILE_SRC := lib/metanorma/iso/isostandard-compile.rng
18
- XSD_FILE_DEST := ${CURDIR}/xsd_doc/isostandard.xsd
19
-
20
11
  all: $(TXT) $(HTML) $(XML) $(NITS)
21
12
 
22
13
  clean:
@@ -45,39 +36,3 @@ clean:
45
36
 
46
37
  open:
47
38
  open *.txt
48
-
49
-
50
- $(XSDVIPATH):
51
- mkdir -p $(dir $@); \
52
- curl -sSL https://sourceforge.net/projects/xsdvi/files/latest/download > $(dir $@)/xsdvi.zip; \
53
- unzip -p $(dir $@)/xsdvi.zip dist/lib/xercesImpl.jar > $(dir $@)/xercesImpl.jar; \
54
- curl -sSL https://github.com/metanorma/xsdvi/releases/download/v1.0/xsdvi-1.0.jar > $@
55
-
56
- $(XSLT_FILE):
57
- mkdir -p $(dir $@)
58
- curl -sSL https://raw.githubusercontent.com/metanorma/xs3p/main/xsl/xs3p.xsl > $@
59
-
60
- $(XSLT_FILE_MERGE):
61
- mkdir -p $(dir $@)
62
- curl -sSL https://raw.githubusercontent.com/metanorma/xs3p/main/xsl/xsdmerge.xsl > $@
63
-
64
- $(TRANG_JAR):
65
- mkdir -p $(dir $@); \
66
- cd $(dir $@); \
67
- curl -sSL $(TRANG_RELEASE) > trang.zip; \
68
- unzip -p trang.zip trang-20181222/trang.jar > $@
69
-
70
-
71
- $(XSD_FILE_DEST): $(TRANG_JAR)
72
- mkdir -p $(dir $@); \
73
- java -jar $< $(RNG_FILE_SRC) $@
74
-
75
- xsd_doc: $(XSD_FILE_DEST) $(XSDVIPATH) $(XSLT_FILE) $(XSLT_FILE_MERGE)
76
- mkdir -p $@/diagrams; \
77
- cd $@; \
78
- java -jar $(XSDVIPATH) $< -rootNodeName all -oneNodeOnly -outputPath diagrams; \
79
- xsltproc --nonet --stringparam rootxsd iso-standard --output $@.tmp $(XSLT_FILE_MERGE) $<;\
80
- xsltproc --nonet --param title "'Metanorma XML Schema Documentation, ISO Standard'" \
81
- --output index.html $(XSLT_FILE) $@.tmp;\
82
- rm $@.tmp
83
-
@@ -46,6 +46,12 @@
46
46
  {% if doctitleaddlabel %}
47
47
  <div class="doctitle-part">{{ doctitleaddlabel }}{% if doctitleadd %}: {{ doctitleadd }}{% endif %}</div>
48
48
  {% endif %}
49
+ {% if doctitlesuplabel %}
50
+ <div class="doctitle-part">{{ doctitlesuplabel }}{% if doctitlesup %}: {{ doctitlesup }}{% endif %}</div>
51
+ {% endif %}
52
+ {% if doctitleextlabel %}
53
+ <div class="doctitle-part">{{ doctitleextlabel }}{% if doctitleext %}: {{ doctitleext }}{% endif %}</div>
54
+ {% endif %}
49
55
  {% if doctitlecorrlabel %}
50
56
  <div class="doctitle-part">{{ doctitlecorrlabel }}</div>
51
57
  {% endif %}
@@ -849,10 +849,6 @@ nav {
849
849
  display: none;
850
850
  }
851
851
  }
852
- #toggle {
853
- margin-left: -4em;
854
- margin-top: -2em;
855
- }
856
852
 
857
853
  @media screen and (min-width: 768px) {
858
854
  .container {
@@ -301,8 +301,6 @@ nav {
301
301
 
302
302
  #toggle {
303
303
  @include sidebarNavToggle(white, black);
304
- margin-left: -4em;
305
- margin-top: -2em;
306
304
  }
307
305
 
308
306
  @media screen and (min-width: 768px) {
@@ -800,8 +800,6 @@ nav {
800
800
  }
801
801
  #toggle {
802
802
  border-right: solid black 1px;
803
- margin-left: -4em;
804
- margin-top: -2em;
805
803
  }
806
804
 
807
805
  @media screen and (min-width: 768px) {
@@ -242,8 +242,6 @@ nav {
242
242
  #toggle {
243
243
  @include sidebarNavToggle(black, #f7f7f7);
244
244
  border-right: solid black 1px;
245
- margin-left: -4em;
246
- margin-top: -2em;
247
245
  }
248
246
 
249
247
  @media screen and (min-width: 768px) {
@@ -34,6 +34,14 @@
34
34
  <p class="zzCover"><b>{{ doctitleaddlabel }}</b></p>
35
35
  {% endif %}
36
36
 
37
+ {% if doctitlesuplabel %}
38
+ <p class="zzCover"><b>{{ doctitlesuplabel }}</b></p>
39
+ {% endif %}
40
+
41
+ {% if doctitleextlabel %}
42
+ <p class="zzCover"><b>{{ doctitleextlabel }}</b></p>
43
+ {% endif %}
44
+
37
45
  {% if doctitlecorrlabel %}
38
46
  <p class="zzCover"><b>{{ doctitlecorrlabel }}</b></p>
39
47
  {% endif %}
@@ -52,6 +60,12 @@
52
60
  {% if doctitleaddlabel %}
53
61
  <p class="zzCover"><b>{{ doctitleaddlabel }}{% if doctitleadd %}: {{ doctitleadd }}{% endif %}</b></p>
54
62
  {% endif %}
63
+ {% if doctitlesuplabel %}
64
+ <p class="zzCover"><b>{{ doctitlesuplabel }}{% if doctitlesup %}: {{ doctitlesup }}{% endif %}</b></p>
65
+ {% endif %}
66
+ {% if doctitleextlabel %}
67
+ <p class="zzCover"><b>{{ doctitleextlabel }}{% if doctitleext %}: {{ doctitleext }}{% endif %}</b></p>
68
+ {% endif %}
55
69
  {% if doctitlecorrlabel %}
56
70
  <p class="zzCover"><b>{{ doctitlecorrlabel }}</b></p>
57
71
  {% endif %}
@@ -28,6 +28,14 @@
28
28
  <p class="zzCover"><b>{{ doctitleaddlabel }}</b></p>
29
29
  {% endif %}
30
30
 
31
+ {% if doctitlesuplabel %}
32
+ <p class="zzCover"><b>{{ doctitlesuplabel }}</b></p>
33
+ {% endif %}
34
+
35
+ {% if doctitleextlabel %}
36
+ <p class="zzCover"><b>{{ doctitleextlabel }}</b></p>
37
+ {% endif %}
38
+
31
39
  {% if doctitlecorrlabel %}
32
40
  <p class="zzCover"><b>{{ doctitlecorrlabel }}</b></p>
33
41
  {% endif %}
@@ -46,6 +54,12 @@
46
54
  {% if doctitleaddlabel %}
47
55
  <p class="zzCover"><b>{{ doctitleaddlabel }}{% if doctitleadd %}: {{ doctitleadd }}{% endif %}</b></p>
48
56
  {% endif %}
57
+ {% if doctitlesuplabel %}
58
+ <p class="zzCover"><b>{{ doctitlesuplabel }}{% if doctitlesup %}: {{ doctitlesup }}{% endif %}</b></p>
59
+ {% endif %}
60
+ {% if doctitleextlabel %}
61
+ <p class="zzCover"><b>{{ doctitleextlabel }}{% if doctitleext %}: {{ doctitleext }}{% endif %}</b></p>
62
+ {% endif %}
49
63
  {% if doctitlecorrlabel %}
50
64
  <p class="zzCover"><b>{{ doctitlecorrlabel }}</b></p>
51
65
  {% endif %}
@@ -22,6 +22,14 @@ style='mso-bidi-font-weight:normal'><span lang="EN-GB" style='font-size:14.0pt'>
22
22
  <p class="MsoNormal" align="right" style='text-align:right'><b>{{ doctitleaddlabel }}</b></p>
23
23
  {% endif %}
24
24
 
25
+ {% if doctitlesuplabel %}
26
+ <p class="MsoNormal" align="right" style='text-align:right'><b>{{ doctitlesuplabel }}</b></p>
27
+ {% endif %}
28
+
29
+ {% if doctitleextlabel %}
30
+ <p class="MsoNormal" align="right" style='text-align:right'><b>{{ doctitleextlabel }}</b></p>
31
+ {% endif %}
32
+
25
33
  {% if doctitlecorrlabel %}
26
34
  <p class="MsoNormal" align="right" style='text-align:right'><b>{{ doctitlecorrlabel }}</b></p>
27
35
  {% endif %}
@@ -61,6 +69,12 @@ style='mso-no-proof:yes'>{{ editorialgroup }}</span></p>
61
69
  {% if doctitleaddlabel %}
62
70
  <p class="MsoNormal" style='text-align:left;line-height:18.0pt;margin-bottom:0.0pt;margin-top:6.0pt;font-size:16.0pt'>{{ doctitleaddlabel }}{% if doctitleadd %}: {{ doctitleadd }}{% endif %}</p>
63
71
  {% endif %}
72
+ {% if doctitlesuplabel %}
73
+ <p class="MsoNormal" style='text-align:left;line-height:18.0pt;margin-bottom:0.0pt;margin-top:6.0pt;font-size:16.0pt'>{{ doctitlesuplabel }}{% if doctitlesup %}: {{ doctitlesup }}{% endif %}</p>
74
+ {% endif %}
75
+ {% if doctitleextlabel %}
76
+ <p class="MsoNormal" style='text-align:left;line-height:18.0pt;margin-bottom:0.0pt;margin-top:6.0pt;font-size:16.0pt'>{{ doctitleextlabel }}{% if doctitleext %}: {{ doctitleext }}{% endif %}</p>
77
+ {% endif %}
64
78
  {% if doctitlecorrlabel %}
65
79
  <p class="MsoNormal" style='text-align:left;line-height:18.0pt;margin-bottom:0.0pt;margin-top:6.0pt;font-size:16.0pt'>{{ doctitlecorrlabel }}</p>
66
80
  {% endif %}
@@ -48,6 +48,8 @@ doctype_dict:
48
48
  guide: Leitfaden
49
49
  amendment: Änderung
50
50
  addendum: Nachtrag
51
+ supplement: Beiblatt
52
+ extract: Auszug
51
53
  technical-corrigendum: Technische Berichtigung
52
54
  directive: Richtlinie
53
55
  committee-document: Ausschussdokument
@@ -44,6 +44,8 @@ title_prefixes:
44
44
  amendment: "AMENDMENT {{ var1 }}"
45
45
  corrigendum: "TECHNICAL CORRIGENDUM {{ var1 }}"
46
46
  addendum: "ADDENDUM {{ var1 }}"
47
+ supplement: "SUPPLEMENT {{ var1 }}"
48
+ extract: "EXTRACT {{ var1 }}"
47
49
  doctype_dict:
48
50
  international-standard: International Standard
49
51
  technical-specification: Technical Specification
@@ -53,6 +55,8 @@ doctype_dict:
53
55
  guide: Guide
54
56
  amendment: Amendment
55
57
  addendum: Addendum
58
+ supplement: Supplement
59
+ extract: Extract
56
60
  technical-corrigendum: Technical Corrigendum
57
61
  directive: Directive
58
62
  committee-document: Committee Document
@@ -42,6 +42,8 @@ title_prefixes:
42
42
  amendment: "AMENDEMENT {{ var1 }}"
43
43
  corrigendum: "RECTIFICATIF TECHNIQUE {{ var1 }}"
44
44
  addendum: "ADDITIF {{ var1 }}"
45
+ supplement: "SUPPLÉMENT {{ var1 }}"
46
+ extract: "EXTRAIT {{ var1 }}"
45
47
  doctype_dict:
46
48
  international-standard: Norme internationale
47
49
  technical-specification: Spécification technique
@@ -51,6 +53,8 @@ doctype_dict:
51
53
  guide: Guide
52
54
  amendment: Amendement
53
55
  addendum: Additif
56
+ supplement: Supplément
57
+ extract: Extrait
54
58
  technical-corrigendum: Rectificatif technique
55
59
  directive: Directive
56
60
  committee-document: Document du comité
@@ -42,6 +42,8 @@ title_prefixes:
42
42
  amendment: "ПОПРАВКА {{ var1 }}"
43
43
  corrigendum: "ТЕХНИЧЕСКОЕ ИСПРАВЛЕНИЕ {{ var1 }}"
44
44
  addendum: "ДОПОЛНЕНИЕ {{ var1 }}"
45
+ supplement: "ПРИБАВЛЕНИЕ {{ var1 }}"
46
+ extract: "ИЗВЛЕЧЕНИЕ {{ var1 }}"
45
47
  doctype_dict:
46
48
  international-standard: Международный Стандарт
47
49
  technical-specification: Техническая Спецификация
@@ -51,6 +53,8 @@ doctype_dict:
51
53
  guide: Руководство
52
54
  amendment: Поправка
53
55
  addendum: Дополнение
56
+ supplement: Прибавление
57
+ extract: Извлечение
54
58
  technical-corrigendum: Техническое Исправление
55
59
  directive: Директива
56
60
  committee-document: Документ комитета
@@ -33,6 +33,8 @@ doctype_dict:
33
33
  guide: 指南
34
34
  amendment: 修正
35
35
  addendum: 附录
36
+ supplement: 补充
37
+ extract: 摘录
36
38
  technical-corrigendum: 技术勘误
37
39
  directive: 指令
38
40
  committee-document: 委员会文件