metanorma-m3aawg 1.8.1 → 1.8.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6773ce3d0cd71c057cf31bb0a343e5dc9ec84b45fb3e7f61b902912f8e073609
4
- data.tar.gz: 60aeef5a018e51de3dc9d43e715854251b8440a02bf00c41f5864465151ec622
3
+ metadata.gz: 78906078cba5ba9056c4b3ee5595c79e1a78edf0923ab5a3a32083893b89a5c6
4
+ data.tar.gz: 246f04fe03f6ed3b482b84af45e52106ff2eb502eac2c5d6eaa8f2b345910cc7
5
5
  SHA512:
6
- metadata.gz: 68520386d589ef7e34e796d5be63d4b8e78c3ca584e341b6e8454e1841c892d9d11dc818f14a313c6ec166e28b952791b46f9a57dc40b4b97f542b132a0d8058
7
- data.tar.gz: ee807b364ad4bd90749f79b4b56dfcec44dd3f458a6db2adae8fe91310c34d4cf8f8b7e260199baeead9a7704c57abdc6492a0b1708c9d6a8cb8185bf65e85ec
6
+ metadata.gz: ef47eaf6fb629292bec9f5aad105007f04fa8b2a262446e4f2559154414dba75b8d3bb8b0b03f101a14e5cc4ce592a43d2fbfb157a35ce5883bf3ccda84f9ef1
7
+ data.tar.gz: 5e8220678630a3876c4dcd70a58228b00855a2492491e5962cec7a3ebb4f5b9b7bfb1554a25d8a44cb5ae8cb359ecc488b3c65339039c828f6a36d5461acdf4d
@@ -1,5 +1,5 @@
1
1
  require "asciidoctor/standoc/converter"
2
- require 'asciidoctor/generic/converter'
2
+ require "asciidoctor/generic/converter"
3
3
 
4
4
  module Asciidoctor
5
5
  module M3AAWG
@@ -11,19 +11,20 @@ module Asciidoctor
11
11
 
12
12
  def metadata_committee(node, xml)
13
13
  return unless node.attr("technical-committee")
14
+
14
15
  xml.editorialgroup do |a|
15
16
  a.committee node.attr("technical-committee"),
16
- **attr_code(type: node.attr("technical-committee-type"))
17
+ **attr_code(type: node.attr("technical-committee-type"))
17
18
  i = 2
18
- while node.attr("technical-committee_#{i}") do
19
+ while node.attr("technical-committee_#{i}")
19
20
  a.committee node.attr("technical-committee_#{i}"),
20
- **attr_code(type: node.attr("technical-committee-type_#{i}"))
21
+ **attr_code(type: node.attr("technical-committee-type_#{i}"))
21
22
  i += 1
22
23
  end
23
24
  end
24
25
  end
25
26
 
26
- def configuration
27
+ def configuration
27
28
  Metanorma::M3AAWG.configuration
28
29
  end
29
30
 
@@ -33,11 +34,14 @@ module Asciidoctor
33
34
  end
34
35
 
35
36
  def outputs(node, ret)
36
- File.open(@filename + ".xml", "w:UTF-8") { |f| f.write(ret) }
37
- presentation_xml_converter(node).convert(@filename + ".xml")
38
- html_converter(node).convert(@filename + ".presentation.xml", nil, false, "#{@filename}.html")
39
- doc_converter(node).convert(@filename + ".presentation.xml", nil, false, "#{@filename}.doc")
40
- pdf_converter(node)&.convert(@filename + ".presentation.xml", nil, false, "#{@filename}.pdf")
37
+ File.open("#{@filename}.xml", "w:UTF-8") { |f| f.write(ret) }
38
+ presentation_xml_converter(node).convert("#{@filename}.xml")
39
+ html_converter(node).convert("#{@filename}.presentation.xml", nil,
40
+ false, "#{@filename}.html")
41
+ doc_converter(node).convert("#{@filename}.presentation.xml", nil,
42
+ false, "#{@filename}.doc")
43
+ pdf_converter(node)&.convert("#{@filename}.presentation.xml", nil,
44
+ false, "#{@filename}.pdf")
41
45
  end
42
46
 
43
47
  def sections_cleanup(xml)
@@ -62,7 +66,7 @@ module Asciidoctor
62
66
  def pdf_converter(node)
63
67
  return nil if node.attr("no-pdf")
64
68
 
65
- IsoDoc::M3AAWG::PdfConvert.new(doc_extract_attributes(node))
69
+ IsoDoc::M3AAWG::PdfConvert.new(pdf_extract_attributes(node))
66
70
  end
67
71
  end
68
72
  end
@@ -58,7 +58,7 @@
58
58
  <attribute name="alt"/>
59
59
  </optional>
60
60
  <optional>
61
- <attribute name="updatetype">
61
+ <attribute name="update-type">
62
62
  <data type="boolean"/>
63
63
  </attribute>
64
64
  </optional>
@@ -1796,6 +1796,20 @@
1796
1796
  <data type="ID"/>
1797
1797
  </attribute>
1798
1798
  </optional>
1799
+ <optional>
1800
+ <attribute name="language"/>
1801
+ </optional>
1802
+ <optional>
1803
+ <attribute name="script"/>
1804
+ </optional>
1805
+ <optional>
1806
+ <attribute name="tag"/>
1807
+ </optional>
1808
+ <optional>
1809
+ <attribute name="multilingual-rendering">
1810
+ <ref name="MultilingualRenderingType"/>
1811
+ </attribute>
1812
+ </optional>
1799
1813
  <oneOrMore>
1800
1814
  <ref name="preferred"/>
1801
1815
  </oneOrMore>
@@ -1814,9 +1828,6 @@
1814
1828
  <optional>
1815
1829
  <ref name="termsubject"/>
1816
1830
  </optional>
1817
- <optional>
1818
- <ref name="termusage"/>
1819
- </optional>
1820
1831
  <oneOrMore>
1821
1832
  <ref name="termdefinition"/>
1822
1833
  </oneOrMore>
@@ -1880,17 +1891,37 @@
1880
1891
  </attribute>
1881
1892
  </optional>
1882
1893
  <optional>
1883
- <attribute name="geographicArea"/>
1894
+ <attribute name="geographic-area"/>
1884
1895
  </optional>
1885
1896
  <choice>
1886
1897
  <ref name="expression_designation"/>
1887
1898
  <ref name="letter_symbol_designation"/>
1888
1899
  <ref name="graphical_symbol_designation"/>
1889
1900
  </choice>
1901
+ <optional>
1902
+ <ref name="fieldofapplication"/>
1903
+ </optional>
1904
+ <optional>
1905
+ <ref name="usageinfo"/>
1906
+ </optional>
1890
1907
  <zeroOrMore>
1891
1908
  <ref name="termsource"/>
1892
1909
  </zeroOrMore>
1893
1910
  </define>
1911
+ <define name="fieldofapplication">
1912
+ <element name="field-of-application">
1913
+ <oneOrMore>
1914
+ <ref name="PureTextElement"/>
1915
+ </oneOrMore>
1916
+ </element>
1917
+ </define>
1918
+ <define name="usageinfo">
1919
+ <element name="usage-info">
1920
+ <oneOrMore>
1921
+ <ref name="PureTextElement"/>
1922
+ </oneOrMore>
1923
+ </element>
1924
+ </define>
1894
1925
  <define name="letter_symbol_designation">
1895
1926
  <element name="letter-symbol">
1896
1927
  <optional>
@@ -1942,11 +1973,15 @@
1942
1973
  </optional>
1943
1974
  <element name="name">
1944
1975
  <zeroOrMore>
1945
- <ref name="PureTextElement"/>
1976
+ <choice>
1977
+ <ref name="PureTextElement"/>
1978
+ <ref name="stem"/>
1979
+ <ref name="index"/>
1980
+ </choice>
1946
1981
  </zeroOrMore>
1947
1982
  </element>
1948
1983
  <optional>
1949
- <element name="abbreviationType">
1984
+ <element name="abbreviation-type">
1950
1985
  <ref name="AbbreviationType"/>
1951
1986
  </element>
1952
1987
  </optional>
@@ -1956,7 +1991,7 @@
1956
1991
  </element>
1957
1992
  </optional>
1958
1993
  <optional>
1959
- <element name="grammarInfo">
1994
+ <element name="grammar">
1960
1995
  <ref name="Grammar"/>
1961
1996
  </element>
1962
1997
  </optional>
@@ -1983,6 +2018,11 @@
1983
2018
  <ref name="GrammarGender"/>
1984
2019
  </element>
1985
2020
  </zeroOrMore>
2021
+ <zeroOrMore>
2022
+ <element name="number">
2023
+ <ref name="GrammarNumber"/>
2024
+ </element>
2025
+ </zeroOrMore>
1986
2026
  <optional>
1987
2027
  <element name="isPreposition">
1988
2028
  <data type="boolean"/>
@@ -2014,7 +2054,7 @@
2014
2054
  </element>
2015
2055
  </optional>
2016
2056
  <zeroOrMore>
2017
- <element name="grammarvalue">
2057
+ <element name="grammar-value">
2018
2058
  <text/>
2019
2059
  </element>
2020
2060
  </zeroOrMore>
@@ -2027,6 +2067,13 @@
2027
2067
  <value>common</value>
2028
2068
  </choice>
2029
2069
  </define>
2070
+ <define name="GrammarNumber">
2071
+ <choice>
2072
+ <value>singular</value>
2073
+ <value>dual</value>
2074
+ <value>plural</value>
2075
+ </choice>
2076
+ </define>
2030
2077
  <define name="termdomain">
2031
2078
  <element name="domain">
2032
2079
  <oneOrMore>
@@ -2041,13 +2088,6 @@
2041
2088
  </oneOrMore>
2042
2089
  </element>
2043
2090
  </define>
2044
- <define name="termusage">
2045
- <element name="usageinfo">
2046
- <oneOrMore>
2047
- <ref name="BasicBlock"/>
2048
- </oneOrMore>
2049
- </element>
2050
- </define>
2051
2091
  <define name="termdefinition">
2052
2092
  <element name="definition">
2053
2093
  <choice>
@@ -2061,13 +2101,16 @@
2061
2101
  </element>
2062
2102
  </define>
2063
2103
  <define name="verbaldefinition">
2064
- <element name="verbaldefinition">
2104
+ <element name="verbal-definition">
2065
2105
  <oneOrMore>
2066
2106
  <choice>
2067
2107
  <ref name="paragraph"/>
2068
2108
  <ref name="dl"/>
2069
2109
  <ref name="ol"/>
2070
2110
  <ref name="ul"/>
2111
+ <ref name="table"/>
2112
+ <ref name="figure"/>
2113
+ <ref name="formula"/>
2071
2114
  </choice>
2072
2115
  </oneOrMore>
2073
2116
  <zeroOrMore>
@@ -2076,7 +2119,7 @@
2076
2119
  </element>
2077
2120
  </define>
2078
2121
  <define name="nonverbalrep">
2079
- <element name="nonverbalrepresentation">
2122
+ <element name="non-verbal-representation">
2080
2123
  <oneOrMore>
2081
2124
  <choice>
2082
2125
  <ref name="table"/>
@@ -82,6 +82,12 @@ code *, pre *, tt *, kbd *, samp * {
82
82
  font-family: {{monospacefont}} !important;
83
83
  font-variant-ligatures: none; }
84
84
 
85
+ p code, dt code, li code, label code, legend code, caption code, th code, td code,
86
+ p tt, dt tt, li tt, label tt, legend tt, caption tt, th tt, td tt,
87
+ p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
88
+ p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
89
+ font-size: {{monospacefontsize}}; }
90
+
85
91
  article, aside, details, figcaption, figure,
86
92
  footer, header, hgroup, menu, nav, section {
87
93
  display: block; }
@@ -93,6 +99,9 @@ table {
93
99
  h1, h2, h3, h4, h5, h6 {
94
100
  font-family: {{headerfont}}; }
95
101
 
102
+ .h1, .h2, .h3, .h4, .h5, .h6 {
103
+ font-family: {{headerfont}}; }
104
+
96
105
  blockquote, q {
97
106
  quotes: none; }
98
107
  blockquote:before, blockquote:after, q:before, q:after {
@@ -565,25 +574,25 @@ p.document-stage {
565
574
  /*
566
575
  3.1 Titles
567
576
  */
568
- h1, h2, h3, h4, h5, h6 {
577
+ h1, h2, h3, h4, h5, h6, p.h1, .h2, .h3, .h4, .h5, .h6 {
569
578
  font-family: {{headerfont}};
570
579
  color: black;
571
580
  font-weight: 600;
572
581
  margin-top: 2em;
573
582
  margin-bottom: 0.3em; }
574
583
 
575
- h1 {
584
+ h1, .h1 {
576
585
  font-size: 1.4em;
577
586
  text-transform: uppercase;
578
587
  margin-top: 2em; }
579
588
 
580
- h1#content {
589
+ h1#content, #content.h1 {
581
590
  margin-top: 2em; }
582
591
 
583
- h2 {
592
+ h2, .h2 {
584
593
  font-size: 1.3em; }
585
594
 
586
- h3 {
595
+ h3, .h3 {
587
596
  font-size: 1.1em; }
588
597
 
589
598
  @media screen {
@@ -597,10 +606,12 @@ h3 {
597
606
  color: #cfcfcf;
598
607
  content: "\f0c1"; } }
599
608
 
600
- .TermNum, .Terms, .AltTerms {
601
- color: black;
609
+ .TermNum {
602
610
  font-weight: 400; }
603
611
 
612
+ .TermNum, .Terms, .AltTerms {
613
+ color: black; }
614
+
604
615
  p.TermNum {
605
616
  font-size: 0.9em;
606
617
  line-height: 1em;
@@ -982,7 +993,7 @@ p {
982
993
  margin: 4em -3em 3em -5em;
983
994
  border-bottom: 4px solid #F22E15; }
984
995
 
985
- .section-title h1 {
996
+ .section-title h1, .section-title .h1 {
986
997
  font-size: 2em;
987
998
  font-weight: 800;
988
999
  line-height: 1em;
@@ -991,7 +1002,7 @@ p {
991
1002
  color: white;
992
1003
  text-transform: none; }
993
1004
 
994
- h2 {
1005
+ h2, .h2 {
995
1006
  border-bottom: solid 1px #69C5DC;
996
1007
  color: black; }
997
1008
 
@@ -217,7 +217,7 @@ p.document-stage {
217
217
  3.1 Titles
218
218
  */
219
219
 
220
- h1,h2,h3,h4,h5,h6 {
220
+ h1,h2,h3,h4,h5,h6,p.h1,.h2,.h3,.h4,.h5,.h6 {
221
221
  font-family: $headerfont;
222
222
  color: black;
223
223
  font-weight: 600;
@@ -225,21 +225,21 @@ p.document-stage {
225
225
  margin-bottom: 0.3em;
226
226
  }
227
227
 
228
- h1 {
228
+ h1,.h1 {
229
229
  font-size: 1.4em;
230
230
  text-transform: uppercase;
231
231
  margin-top: 2em;
232
232
  }
233
233
 
234
- h1#content {
234
+ h1#content,.h1#content {
235
235
  margin-top: 2em;
236
236
  }
237
237
 
238
- h2 {
238
+ h2,.h2 {
239
239
  font-size: 1.3em;
240
240
  }
241
241
 
242
- h3 {
242
+ h3,.h3 {
243
243
  font-size: 1.1em;
244
244
  }
245
245
 
@@ -256,9 +256,12 @@ p.document-stage {
256
256
  }
257
257
  }
258
258
 
259
+ .TermNum {
260
+ font-weight: 400;
261
+ }
262
+
259
263
  .TermNum, .Terms, .AltTerms {
260
264
  color: black;
261
- font-weight: 400;
262
265
  }
263
266
 
264
267
  p.TermNum {
@@ -659,7 +662,7 @@ p {
659
662
  }
660
663
 
661
664
 
662
- .section-title h1 {
665
+ .section-title h1, .section-title .h1 {
663
666
  font-size: 2em;
664
667
  font-weight: 800;
665
668
  line-height: 1em;
@@ -669,7 +672,7 @@ p {
669
672
  text-transform: none;
670
673
  }
671
674
 
672
- h2 {
675
+ h2,.h2 {
673
676
  border-bottom: solid 1px #69C5DC;
674
677
  color: black;
675
678
  }
@@ -312,7 +312,6 @@ p.Terms, li.Terms, div.Terms {
312
312
  mso-fareast-font-family: {{headerfont}};
313
313
  mso-bidi-font-family: {{headerfont}};
314
314
  mso-ansi-language: EN-GB;
315
- font-weight: bold;
316
315
  mso-bidi-font-weight: normal; }
317
316
 
318
317
  p.AltTerms, li.AltTerms, div.AltTerms {
@@ -299,7 +299,6 @@ p.Terms, li.Terms, div.Terms
299
299
  mso-fareast-font-family:$headerfont;
300
300
  mso-bidi-font-family:$headerfont;
301
301
  mso-ansi-language:EN-GB;
302
- font-weight:bold;
303
302
  mso-bidi-font-weight:normal;}
304
303
  p.AltTerms, li.AltTerms, div.AltTerms
305
304
  {mso-style-name:"AltTerm\(s\)";
@@ -17,7 +17,6 @@ $('#toggle').on('click', function(){
17
17
  else {
18
18
  $('nav').show();
19
19
  $('nav').animate({ 'left': '0px' }, 'slow');
20
- $('.container').animate({ 'padding-left': '360px' }, 'slow');
21
20
  }
22
21
  });
23
22
  </script>
@@ -290,7 +290,7 @@ span.blackgraphtx {
290
290
  div.figure, p.figure {
291
291
  text-align: center; }
292
292
 
293
- h1 {
293
+ h1, .h1 {
294
294
  mso-style-priority: 1;
295
295
  mso-style-unhide: no;
296
296
  mso-style-qformat: yes;
@@ -305,8 +305,6 @@ h1 {
305
305
  line-height: 13.5pt;
306
306
  mso-pagination: widow-orphan;
307
307
  page-break-after: avoid;
308
- mso-outline-level: 1;
309
- mso-list: l1 level1 lfo6;
310
308
  mso-hyphenate: none;
311
309
  tab-stops: 20.0pt list 21.6pt left 28.0pt;
312
310
  font-size: 13.0pt;
@@ -318,6 +316,10 @@ h1 {
318
316
  mso-fareast-language: JA;
319
317
  mso-bidi-font-weight: normal; }
320
318
 
319
+ h1 {
320
+ mso-outline-level: 1;
321
+ mso-list: l1 level1 lfo6; }
322
+
321
323
  h1.Annex {
322
324
  mso-style-priority: 1;
323
325
  mso-style-unhide: no;
@@ -374,7 +376,7 @@ h1.Annex {
374
376
  mso-fareast-language: JA;
375
377
  mso-bidi-font-weight: normal; }
376
378
 
377
- h2 {
379
+ h2, .h2 {
378
380
  mso-style-priority: 2;
379
381
  mso-style-unhide: no;
380
382
  mso-style-qformat: yes;
@@ -390,8 +392,6 @@ h2 {
390
392
  line-height: 12.5pt;
391
393
  mso-pagination: widow-orphan;
392
394
  page-break-after: avoid;
393
- mso-outline-level: 2;
394
- mso-list: l1 level2 lfo6;
395
395
  mso-hyphenate: none;
396
396
  tab-stops: 27.0pt 35.0pt;
397
397
  font-size: 12.0pt;
@@ -402,7 +402,11 @@ h2 {
402
402
  mso-fareast-language: JA;
403
403
  mso-bidi-font-weight: normal; }
404
404
 
405
- h3 {
405
+ h2 {
406
+ mso-outline-level: 2;
407
+ mso-list: l1 level2 lfo6; }
408
+
409
+ h3, .h3 {
406
410
  mso-style-priority: 3;
407
411
  mso-style-unhide: no;
408
412
  mso-style-qformat: yes;
@@ -418,8 +422,6 @@ h3 {
418
422
  line-height: 12.0pt;
419
423
  mso-pagination: widow-orphan;
420
424
  page-break-after: avoid;
421
- mso-outline-level: 3;
422
- mso-list: l1 level3 lfo6;
423
425
  mso-hyphenate: none;
424
426
  tab-stops: list 36.0pt left 44.0pt;
425
427
  font-size: {{normalfontsize}};
@@ -429,7 +431,11 @@ h3 {
429
431
  mso-fareast-language: JA;
430
432
  mso-bidi-font-weight: normal; }
431
433
 
432
- h4 {
434
+ h3 {
435
+ mso-outline-level: 3;
436
+ mso-list: l1 level3 lfo6; }
437
+
438
+ h4, .h4 {
433
439
  mso-style-priority: 4;
434
440
  mso-style-unhide: no;
435
441
  mso-style-qformat: yes;
@@ -445,8 +451,6 @@ h4 {
445
451
  line-height: 12.0pt;
446
452
  mso-pagination: widow-orphan;
447
453
  page-break-after: avoid;
448
- mso-outline-level: 4;
449
- mso-list: l1 level4 lfo6;
450
454
  mso-hyphenate: none;
451
455
  tab-stops: 51.05pt 57.0pt 68.0pt;
452
456
  font-size: {{normalfontsize}};
@@ -456,7 +460,11 @@ h4 {
456
460
  mso-fareast-language: JA;
457
461
  mso-bidi-font-weight: normal; }
458
462
 
459
- h5 {
463
+ h4 {
464
+ mso-outline-level: 4;
465
+ mso-list: l1 level4 lfo6; }
466
+
467
+ h5, .h5 {
460
468
  mso-style-priority: 5;
461
469
  mso-style-unhide: no;
462
470
  mso-style-qformat: yes;
@@ -472,8 +480,6 @@ h5 {
472
480
  line-height: 12.0pt;
473
481
  mso-pagination: widow-orphan;
474
482
  page-break-after: avoid;
475
- mso-outline-level: 5;
476
- mso-list: l1 level5 lfo6;
477
483
  mso-hyphenate: none;
478
484
  tab-stops: 51.05pt list 54.0pt;
479
485
  font-size: {{normalfontsize}};
@@ -483,7 +489,11 @@ h5 {
483
489
  mso-fareast-language: JA;
484
490
  mso-bidi-font-weight: normal; }
485
491
 
486
- h6 {
492
+ h5 {
493
+ mso-outline-level: 5;
494
+ mso-list: l1 level5 lfo6; }
495
+
496
+ h6, .h6 {
487
497
  mso-style-priority: 6;
488
498
  mso-style-unhide: no;
489
499
  mso-style-qformat: yes;
@@ -499,8 +509,6 @@ h6 {
499
509
  line-height: 12.0pt;
500
510
  mso-pagination: widow-orphan;
501
511
  page-break-after: avoid;
502
- mso-outline-level: 6;
503
- mso-list: l1 level6 lfo6;
504
512
  mso-hyphenate: none;
505
513
  tab-stops: 51.05pt list 72.0pt;
506
514
  font-size: {{normalfontsize}};
@@ -510,6 +518,10 @@ h6 {
510
518
  mso-fareast-language: JA;
511
519
  mso-bidi-font-weight: normal; }
512
520
 
521
+ h6 {
522
+ mso-outline-level: 6;
523
+ mso-list: l1 level6 lfo6; }
524
+
513
525
  p.MsoToc1, li.MsoToc1, div.MsoToc1 {
514
526
  mso-style-priority: 39;
515
527
  mso-style-unhide: no;