metanorma-m3aawg 1.5.0 → 1.5.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: 94c7b82480769b8de334650f945711c4db8c1487c569385493cd14b09c158e95
4
- data.tar.gz: 4ed2f0a6757190d584b5bee3027d66c64b7780ebf077c59a8bc77bcb78d8fa67
3
+ metadata.gz: 1e4609234c251bfd60f7f8db10d5b2bf164086060667e333f3157d98bd09126b
4
+ data.tar.gz: 5cff4ab9b4f71cd267bcbd6246791418a8d0f0c96ff58b385c08bbec9cfffccd
5
5
  SHA512:
6
- metadata.gz: 8537d1bbb48f69310f1f97472ff7d44ccc87cbb5f9425348e5dba8d60522171645371032528a2d058cb051e0556695e6fcecc3c755b14e20ade3a7b07e81f488
7
- data.tar.gz: 14120e590dbab99118c4ad5def4030b5b5537aea4b5fc7bf067b35a23c95884c76803fde6fef29d7597d0708ed52d26f507833d89a7a16dec31dc83dd5587890
6
+ metadata.gz: e2f4d8ee7faf5754835acc43f0027ce303a60eb942e91d42109a2edce07ae58141364160be689813685f8a696a86028446040a6023faa50b808efc355f520959
7
+ data.tar.gz: 2a6bb8be8bd69a43010f69919736b43d2283bd7a2a0550325fca49f058f6835437c6d629f081c1186556a60e7201e47bd0e58acb03a72b16a5f1f108ef4db785
@@ -402,6 +402,16 @@
402
402
  </choice>
403
403
  </attribute>
404
404
  </optional>
405
+ <optional>
406
+ <attribute name="valign">
407
+ <choice>
408
+ <value>top</value>
409
+ <value>middle</value>
410
+ <value>bottom</value>
411
+ <value>baseline</value>
412
+ </choice>
413
+ </attribute>
414
+ </optional>
405
415
  <choice>
406
416
  <zeroOrMore>
407
417
  <ref name="TextElement"/>
@@ -429,6 +439,16 @@
429
439
  </choice>
430
440
  </attribute>
431
441
  </optional>
442
+ <optional>
443
+ <attribute name="valign">
444
+ <choice>
445
+ <value>top</value>
446
+ <value>middle</value>
447
+ <value>bottom</value>
448
+ <value>baseline</value>
449
+ </choice>
450
+ </attribute>
451
+ </optional>
432
452
  <choice>
433
453
  <zeroOrMore>
434
454
  <ref name="TextElement"/>
@@ -998,6 +1018,9 @@
998
1018
  <value>alphabet_upper</value>
999
1019
  </choice>
1000
1020
  </attribute>
1021
+ <optional>
1022
+ <attribute name="start"/>
1023
+ </optional>
1001
1024
  <oneOrMore>
1002
1025
  <ref name="li"/>
1003
1026
  </oneOrMore>
@@ -18,24 +18,8 @@ module Asciidoctor
18
18
 
19
19
  register_for "m3aawg"
20
20
 
21
- def metadata_author(node, xml)
22
- xml.contributor do |c|
23
- c.role **{ type: "author" }
24
- c.organization do |a|
25
- a.name "Messaging Malware and Mobile Anti-Abuse Working Group"
26
- a.abbreviation "M3AAWG"
27
- end
28
- end
29
- end
30
-
31
- def metadata_publisher(node, xml)
32
- xml.contributor do |c|
33
- c.role **{ type: "publisher" }
34
- c.organization do |a|
35
- a.name "Messaging Malware and Mobile Anti-Abuse Working Group"
36
- a.abbreviation "M3AAWG"
37
- end
38
- end
21
+ def default_publisher
22
+ "Messaging Malware and Mobile Anti-Abuse Working Group"
39
23
  end
40
24
 
41
25
  def metadata_committee(node, xml)
@@ -65,19 +49,6 @@ module Asciidoctor
65
49
  xml.docnumber { |i| i << node.attr("docnumber") }
66
50
  end
67
51
 
68
- def metadata_copyright(node, xml)
69
- from = node.attr("copyright-year") || Date.today.year
70
- xml.copyright do |c|
71
- c.from from
72
- c.owner do |owner|
73
- owner.organization do |o|
74
- o.name "Messaging Malware and Mobile Anti-Abuse Working Group"
75
- o.abbreviation "M3AAWG"
76
- end
77
- end
78
- end
79
- end
80
-
81
52
  def title_validate(root)
82
53
  nil
83
54
  end
@@ -88,7 +59,7 @@ module Asciidoctor
88
59
  end
89
60
 
90
61
  def doctype(node)
91
- d = node.attr("doctype")
62
+ d = super
92
63
  unless %w{policy best-practices supporting-document report}.include? d
93
64
  @log.add("Document Attributes", nil, "#{d} is not a legal document type: reverting to 'report'")
94
65
  d = "report"
@@ -43,7 +43,9 @@
43
43
  <define name="xref">
44
44
  <element name="xref">
45
45
  <attribute name="target">
46
- <data type="IDREF"/>
46
+ <data type="string">
47
+ <param name="pattern">\i\c*|\c+#\c+</param>
48
+ </data>
47
49
  </attribute>
48
50
  <optional>
49
51
  <attribute name="type">
@@ -61,6 +63,11 @@
61
63
  </choice>
62
64
  </attribute>
63
65
  </optional>
66
+ <optional>
67
+ <attribute name="droploc">
68
+ <data type="boolean"/>
69
+ </attribute>
70
+ </optional>
64
71
  <text/>
65
72
  </element>
66
73
  </define>
@@ -578,6 +585,8 @@
578
585
  <ref name="ol"/>
579
586
  <ref name="dl"/>
580
587
  <ref name="formula"/>
588
+ <ref name="quote"/>
589
+ <ref name="sourcecode"/>
581
590
  </choice>
582
591
  </oneOrMore>
583
592
  </element>
@@ -661,6 +670,16 @@
661
670
  </choice>
662
671
  </attribute>
663
672
  </optional>
673
+ <optional>
674
+ <attribute name="valign">
675
+ <choice>
676
+ <value>top</value>
677
+ <value>middle</value>
678
+ <value>bottom</value>
679
+ <value>baseline</value>
680
+ </choice>
681
+ </attribute>
682
+ </optional>
664
683
  <choice>
665
684
  <zeroOrMore>
666
685
  <choice>
@@ -697,6 +716,16 @@
697
716
  </choice>
698
717
  </attribute>
699
718
  </optional>
719
+ <optional>
720
+ <attribute name="valign">
721
+ <choice>
722
+ <value>top</value>
723
+ <value>middle</value>
724
+ <value>bottom</value>
725
+ <value>baseline</value>
726
+ </choice>
727
+ </attribute>
728
+ </optional>
700
729
  <choice>
701
730
  <zeroOrMore>
702
731
  <choice>
@@ -834,6 +863,13 @@
834
863
  </define>
835
864
  <define name="standard-document">
836
865
  <element name="standard-document">
866
+ <attribute name="version"/>
867
+ <attribute name="type">
868
+ <choice>
869
+ <value>semantic</value>
870
+ <value>presentation</value>
871
+ </choice>
872
+ </attribute>
837
873
  <ref name="bibdata"/>
838
874
  <optional>
839
875
  <ref name="boilerplate"/>
@@ -855,7 +891,7 @@
855
891
  <oneOrMore>
856
892
  <choice>
857
893
  <ref name="content"/>
858
- <ref name="preface_abstract"/>
894
+ <ref name="abstract"/>
859
895
  <ref name="foreword"/>
860
896
  <ref name="introduction"/>
861
897
  <ref name="acknowledgements"/>
@@ -1049,14 +1085,17 @@
1049
1085
  <ref name="section-title"/>
1050
1086
  </optional>
1051
1087
  <group>
1052
- <group>
1053
- <zeroOrMore>
1054
- <ref name="BasicBlock"/>
1055
- </zeroOrMore>
1056
- <zeroOrMore>
1057
- <ref name="note"/>
1058
- </zeroOrMore>
1059
- </group>
1088
+ <choice>
1089
+ <group>
1090
+ <zeroOrMore>
1091
+ <ref name="BasicBlock"/>
1092
+ </zeroOrMore>
1093
+ <zeroOrMore>
1094
+ <ref name="note"/>
1095
+ </zeroOrMore>
1096
+ </group>
1097
+ <ref name="amend"/>
1098
+ </choice>
1060
1099
  <zeroOrMore>
1061
1100
  <choice>
1062
1101
  <ref name="clause-subsection"/>
@@ -1453,11 +1492,6 @@
1453
1492
  </optional>
1454
1493
  </element>
1455
1494
  </define>
1456
- <define name="preface_abstract">
1457
- <element name="abstract">
1458
- <ref name="Basic-Section"/>
1459
- </element>
1460
- </define>
1461
1495
  <define name="term-clause">
1462
1496
  <element name="clause">
1463
1497
  <optional>
@@ -1507,4 +1541,79 @@
1507
1541
  <ref name="CitationType"/>
1508
1542
  </element>
1509
1543
  </define>
1544
+ <define name="amend">
1545
+ <element name="amend">
1546
+ <optional>
1547
+ <attribute name="id">
1548
+ <data type="ID"/>
1549
+ </attribute>
1550
+ </optional>
1551
+ <attribute name="change">
1552
+ <choice>
1553
+ <value>add</value>
1554
+ <value>modify</value>
1555
+ <value>delete</value>
1556
+ </choice>
1557
+ </attribute>
1558
+ <optional>
1559
+ <attribute name="path"/>
1560
+ </optional>
1561
+ <optional>
1562
+ <attribute name="path_end"/>
1563
+ </optional>
1564
+ <optional>
1565
+ <attribute name="title"/>
1566
+ </optional>
1567
+ <optional>
1568
+ <element name="location">
1569
+ <zeroOrMore>
1570
+ <ref name="locality"/>
1571
+ </zeroOrMore>
1572
+ </element>
1573
+ </optional>
1574
+ <zeroOrMore>
1575
+ <ref name="autonumber"/>
1576
+ </zeroOrMore>
1577
+ <optional>
1578
+ <element name="description">
1579
+ <zeroOrMore>
1580
+ <ref name="BasicBlock"/>
1581
+ </zeroOrMore>
1582
+ </element>
1583
+ </optional>
1584
+ <optional>
1585
+ <element name="newcontent">
1586
+ <zeroOrMore>
1587
+ <ref name="BasicBlock"/>
1588
+ </zeroOrMore>
1589
+ </element>
1590
+ </optional>
1591
+ <optional>
1592
+ <element name="description">
1593
+ <zeroOrMore>
1594
+ <ref name="BasicBlock"/>
1595
+ </zeroOrMore>
1596
+ </element>
1597
+ </optional>
1598
+ </element>
1599
+ </define>
1600
+ <define name="autonumber">
1601
+ <element name="autonumber">
1602
+ <attribute name="type">
1603
+ <choice>
1604
+ <value>requirement</value>
1605
+ <value>recommendation</value>
1606
+ <value>permission</value>
1607
+ <value>table</value>
1608
+ <value>figure</value>
1609
+ <value>admonition</value>
1610
+ <value>formula</value>
1611
+ <value>sourcecode</value>
1612
+ <value>example</value>
1613
+ <value>note</value>
1614
+ </choice>
1615
+ </attribute>
1616
+ <text/>
1617
+ </element>
1618
+ </define>
1510
1619
  </grammar>
@@ -89,6 +89,13 @@
89
89
  </define>
90
90
  <define name="m3d-standard">
91
91
  <element name="m3d-standard">
92
+ <attribute name="version"/>
93
+ <attribute name="type">
94
+ <choice>
95
+ <value>semantic</value>
96
+ <value>presentation</value>
97
+ </choice>
98
+ </attribute>
92
99
  <ref name="bibdata"/>
93
100
  <zeroOrMore>
94
101
  <ref name="termdocsource"/>
@@ -144,7 +144,7 @@ mso-element-top:.05pt;mso-height-rule:exactly'>
144
144
  </table>
145
145
  </div>
146
146
  <p class=MsoFooter><b style='mso-bidi-font-weight:normal'><span lang=EN-US
147
- style='font-size:8.0pt;font-family:"Garamond",serif;mso-bidi-font-family:Arial'>{{doctitle}}<span style='mso-tab-count:2'>                                                                                                                                                                         </span><o:p></o:p></span></b></p>
147
+ style='font-size:8.0pt;font-family:"Garamond",serif;mso-bidi-font-family:Arial'>{{doctitle}}{% if edition %}, Version {{edition}}{% endif %}<span style='mso-tab-count:2'>                                                                                                                                                                         </span><o:p></o:p></span></b></p>
148
148
  <p class=MsoFooter style='margin-right:18.0pt;tab-stops:center 181.5pt right 432.0pt'><span
149
149
  lang=EN-US style='mso-bidi-font-size:12.0pt;mso-bidi-font-family:Arial;
150
150
  background:#E0E0E0'><o:p>&nbsp;</o:p></span></p>
@@ -173,7 +173,7 @@ mso-element-top:.05pt;mso-height-rule:exactly'>
173
173
  </table>
174
174
  </div>
175
175
  <p class=MsoFooterLandscape><b style='mso-bidi-font-weight:normal'><span lang=EN-US
176
- style='font-size:8.0pt;font-family:"Garamond",serif;mso-bidi-font-family:Arial'>{{doctitle}}<span style='mso-tab-count:2'>                                                                                                                                                                         </span><o:p></o:p></span></b></p>
176
+ style='font-size:8.0pt;font-family:"Garamond",serif;mso-bidi-font-family:Arial'>{{doctitle}}{% if edition %}, Version {{edition}}{% endif %}<span style='mso-tab-count:2'>                                                                                                                                                                         </span><o:p></o:p></span></b></p>
177
177
  <p class=MsoFooterLandscape style='margin-right:18.0pt;tab-stops:center 181.5pt right 432.0pt'><span
178
178
  lang=EN-US style='mso-bidi-font-size:12.0pt;mso-bidi-font-family:Arial;
179
179
  background:#E0E0E0'><o:p>&nbsp;</o:p></span></p>
@@ -255,7 +255,7 @@ lang=EN-US style='font-size:8.0pt;mso-bidi-font-family:Arial'><o:p></o:p></span>
255
255
  </div>
256
256
 
257
257
  <p class=MsoFooter><b style='mso-bidi-font-weight:normal'><span lang=EN-US
258
- style='font-size:8.0pt;font-family:"Garamond",serif;mso-bidi-font-family:Arial'>{{doctitle}}<span style='mso-tab-count:2'>                                                                                                                                                                         </span><o:p></o:p></span></b></p>
258
+ style='font-size:8.0pt;font-family:"Garamond",serif;mso-bidi-font-family:Arial'>{{doctitle}}{% if edition %}, Version {{edition}}{% endif %}<span style='mso-tab-count:2'>                                                                                                                                                                         </span><o:p></o:p></span></b></p>
259
259
 
260
260
  </div>
261
261
 
@@ -313,7 +313,7 @@ lang=EN-US style='font-size:8.0pt;mso-bidi-font-family:Arial'><o:p></o:p></span>
313
313
  </div>
314
314
 
315
315
  <p class=MsoFooterLandscape><b style='mso-bidi-font-weight:normal'><span lang=EN-US
316
- style='font-size:8.0pt;font-family:"Garamond",serif;mso-bidi-font-family:Arial'>{{doctitle}}<span style='mso-tab-count:2'>                                                                                                                                                                         </span><o:p></o:p></span></b></p>
316
+ style='font-size:8.0pt;font-family:"Garamond",serif;mso-bidi-font-family:Arial'>{{doctitle}}{% if edition %}, Version {{edition}}{% endif %}<span style='mso-tab-count:2'>                                                                                                                                                                         </span><o:p></o:p></span></b></p>
317
317
 
318
318
  </div>
319
319
 
@@ -321,6 +321,7 @@ style='font-size:8.0pt;font-family:"Garamond",serif;mso-bidi-font-family:Arial'>
321
321
 
322
322
  <p class=MsoFooter>As with all M3AAWG documents that we publish, please check the M3AAWG website (<a href="http://www.m3aawg.org">www.m3aawg.org</a>) for updates to this paper.</p>
323
323
  <p class=MsoFooter>&copy; {{docyear}} copyright by the Messaging, Malware and Mobile Anti-Abuse Working Group (M3AAWG)</p>
324
+ <p class=MsoFooter style="font-size:9pt;">{{docnumber}}</p>
324
325
  </div>
325
326
 
326
327
  </body>
@@ -1,7 +1,8 @@
1
1
  <div class="coverpage">
2
2
  <p class="coverpage-title">Messaging, Malware and Mobile Anti-Abuse Working Group</p>
3
3
  <p class="coverpage-doc-identity">{{doctitle}}</p>
4
- <p class="coverpage-date">{{revdate_monthyear}}</p>
4
+ {% if edition %}<p class="coverpage-date">{{edition}}</p>{% endif %}
5
+ {% if revdate_monthyear %}<p class="coverpage-date">{{revdate_monthyear}}</p>{% endif %}
5
6
  </div>
6
7
 
7
8
  <nav>
@@ -3,7 +3,7 @@
3
3
  </div>
4
4
 
5
5
  <div class="document-type-band" id="standard-band">
6
- <p class="document-type">Ribose {{ doctype }}</p>
6
+ <p class="document-type">M3AAWG {{ doctype }}</p>
7
7
  </div>
8
8
 
9
9
 
@@ -31,11 +31,10 @@
31
31
  </div>
32
32
 
33
33
  <div class="docinfo">
34
+ {% if edition %}Version {{edition}}<br/>{% endif %}
34
35
  {% if revdate_monthyear -%}Updated <span class="date">{{ revdate_monthyear }}</span>{%- endif -%}{%- if revdate_monthyear and draft -%},{%- endif -%}{%- if draft -%}Version <span class="version">{{ draft }}</span>{%- endif -%}
35
36
  <br/>
36
- {% if url %}
37
- Shortened URL to this document: <a href="{{ url }}">{{ url }}</a>
38
- {% endif %}
37
+ {% if url %}Shortened URL to this document: <a href="{{ url }}">{{ url }}</a>{% endif %}
39
38
  </div>
40
39
 
41
40
  {% if tc %}
@@ -23,7 +23,7 @@ fieldset, form, label, legend,
23
23
  table, caption, tbody, tfoot, thead, tr, th, td,
24
24
  article, aside, canvas, details, embed,
25
25
  figure, figcaption, footer, header, hgroup,
26
- menu, nav, output, ruby, section, summary,
26
+ menu, output, ruby, section, summary,
27
27
  time, mark, audio, video {
28
28
  margin: 0;
29
29
  padding: 0; }
@@ -238,6 +238,9 @@ body {
238
238
  main {
239
239
  margin: 0 3em 0 6em; }
240
240
 
241
+ div.colophon {
242
+ margin: 0 3em 0 6em; }
243
+
241
244
  #toc {
242
245
  font-family: {{bodyfont}};
243
246
  font-weight: 400; }
@@ -28,6 +28,9 @@ body {
28
28
  main {
29
29
  margin: 0 3em 0 6em;
30
30
  }
31
+ div.colophon {
32
+ margin: 0 3em 0 6em;
33
+ }
31
34
 
32
35
  #toc {
33
36
  @include toc(#69C5DC, #69C5DC, #69C5DC);
@@ -562,7 +562,7 @@ table.dl {
562
562
  margin-bottom: 11.0pt;
563
563
  margin-left: 20.15pt; }
564
564
 
565
- table.MsoISOTable {
565
+ table.MsoISOTable, table.MsoISOTableBig {
566
566
  mso-style-name: "Table ISO";
567
567
  mso-tstyle-rowband-size: 0;
568
568
  mso-tstyle-colband-size: 0;
@@ -583,17 +583,17 @@ table.MsoISOTable {
583
583
  font-size: 10.0pt;
584
584
  font-family: {{bodyfont}}; }
585
585
 
586
- table.MsoISOTable th {
586
+ table.MsoISOTable th, table.MsoISOTableBig th {
587
587
  border: solid windowtext 1pt;
588
588
  mso-border-alt: solid windowtext 1pt;
589
589
  padding: 0cm 2.85pt 0cm 2.85pt; }
590
590
 
591
- table.MsoISOTable td {
591
+ table.MsoISOTable td, table.MsoISOTableBig td {
592
592
  border: solid windowtext 1pt;
593
593
  mso-border-alt: solid windowtext 1pt;
594
594
  padding: 0cm 2.85pt 0cm 2.85pt; }
595
595
 
596
- table.MsoISOTable p {
596
+ table.MsoISOTable p, table.MsoISOTableBig p {
597
597
  font-size: 10.0pt; }
598
598
 
599
599
  table.MsoTableGrid {
@@ -751,8 +751,20 @@ div.example p.MsoListParagraph {
751
751
  font-size: 10.0pt; }
752
752
 
753
753
  div.Note p.MsoListParagraph {
754
+ font-size: 10.0pt;
755
+ margin-left: 1.0cm; }
756
+
757
+ div.Note span.stem {
754
758
  font-size: 10.0pt; }
755
759
 
760
+ div.Note p.Sourcecode, div.Note pre.Sourcecode {
761
+ font-size: 8.0pt;
762
+ margin-left: 1.0cm; }
763
+
764
+ div.Note table.dl {
765
+ font-size: 10.0pt;
766
+ margin-left: 1.0cm; }
767
+
756
768
  span.note_label, span.example_label, td.example_label, td.note_label {
757
769
  font-size: 10.0pt;
758
770
  font-family: {{bodyfont}}; }