metanorma-m3aawg 1.5.2 → 1.5.3

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: 22aff62dc924926aa7ab09848015f5e7ff323ea2b59ddb4722105e45fb705ac9
4
- data.tar.gz: 6fd9fef7b7512f11a6f43746257f4a41d1d9452fe07d39bd6f93166b0e76b047
3
+ metadata.gz: 44bc008b2526c485f9be13de6951dcf6003758f95931a5d2efff0e8771b36915
4
+ data.tar.gz: e3adf48a8f4b9573372ed0538dd3ab0353f82fdcbe21188269ddf0a61e4c8885
5
5
  SHA512:
6
- metadata.gz: 1d32906798587b973eff3894283069181f6add337ee2b3d40522821302a102553c1e0dcb9e4496bcc1078f30b546d4ed4c3e31ee99d449ca883a2af9a01d1fd1
7
- data.tar.gz: e030f5e5de744da5097a66df718a8c171cec2c9536e50bf9df9ac1f67d119c088f9c223d32a7e99915902761547c98ff8bd08d456ed3b5a0d95b1c0db32d7b7e
6
+ metadata.gz: 709666016fd3247cf97f366a3bb4fa67dc4518a6d456a3d9f13ba73b18b6937e822d6d94fd161a277b96f54c4e1237edf4e4b0a55688f2b14c0912f4e6664d9f
7
+ data.tar.gz: bf307b0957e62dcb3f6e143040e12d89ce942281659b08272a8fb977824f548a0f73489d2abc051df8681eafd6b83ec5b50d580cbdcbad8fb84e6ef73bd1f8c9
@@ -158,7 +158,17 @@
158
158
  <data type="ID"/>
159
159
  </attribute>
160
160
  <oneOrMore>
161
- <ref name="paragraph"/>
161
+ <choice>
162
+ <ref name="formula"/>
163
+ <ref name="ul"/>
164
+ <ref name="ol"/>
165
+ <ref name="dl"/>
166
+ <ref name="quote"/>
167
+ <ref name="sourcecode"/>
168
+ <ref name="paragraph"/>
169
+ <ref name="table"/>
170
+ <ref name="figure"/>
171
+ </choice>
162
172
  </oneOrMore>
163
173
  </element>
164
174
  </define>
@@ -402,6 +412,16 @@
402
412
  </choice>
403
413
  </attribute>
404
414
  </optional>
415
+ <optional>
416
+ <attribute name="valign">
417
+ <choice>
418
+ <value>top</value>
419
+ <value>middle</value>
420
+ <value>bottom</value>
421
+ <value>baseline</value>
422
+ </choice>
423
+ </attribute>
424
+ </optional>
405
425
  <choice>
406
426
  <zeroOrMore>
407
427
  <ref name="TextElement"/>
@@ -429,6 +449,16 @@
429
449
  </choice>
430
450
  </attribute>
431
451
  </optional>
452
+ <optional>
453
+ <attribute name="valign">
454
+ <choice>
455
+ <value>top</value>
456
+ <value>middle</value>
457
+ <value>bottom</value>
458
+ <value>baseline</value>
459
+ </choice>
460
+ </attribute>
461
+ </optional>
432
462
  <choice>
433
463
  <zeroOrMore>
434
464
  <ref name="TextElement"/>
@@ -581,6 +581,8 @@
581
581
  <ref name="ol"/>
582
582
  <ref name="dl"/>
583
583
  <ref name="formula"/>
584
+ <ref name="quote"/>
585
+ <ref name="sourcecode"/>
584
586
  </choice>
585
587
  </oneOrMore>
586
588
  </element>
@@ -664,6 +666,16 @@
664
666
  </choice>
665
667
  </attribute>
666
668
  </optional>
669
+ <optional>
670
+ <attribute name="valign">
671
+ <choice>
672
+ <value>top</value>
673
+ <value>middle</value>
674
+ <value>bottom</value>
675
+ <value>baseline</value>
676
+ </choice>
677
+ </attribute>
678
+ </optional>
667
679
  <choice>
668
680
  <zeroOrMore>
669
681
  <choice>
@@ -700,6 +712,16 @@
700
712
  </choice>
701
713
  </attribute>
702
714
  </optional>
715
+ <optional>
716
+ <attribute name="valign">
717
+ <choice>
718
+ <value>top</value>
719
+ <value>middle</value>
720
+ <value>bottom</value>
721
+ <value>baseline</value>
722
+ </choice>
723
+ </attribute>
724
+ </optional>
703
725
  <choice>
704
726
  <zeroOrMore>
705
727
  <choice>
@@ -1052,14 +1074,17 @@
1052
1074
  <ref name="section-title"/>
1053
1075
  </optional>
1054
1076
  <group>
1055
- <group>
1056
- <zeroOrMore>
1057
- <ref name="BasicBlock"/>
1058
- </zeroOrMore>
1059
- <zeroOrMore>
1060
- <ref name="note"/>
1061
- </zeroOrMore>
1062
- </group>
1077
+ <choice>
1078
+ <group>
1079
+ <zeroOrMore>
1080
+ <ref name="BasicBlock"/>
1081
+ </zeroOrMore>
1082
+ <zeroOrMore>
1083
+ <ref name="note"/>
1084
+ </zeroOrMore>
1085
+ </group>
1086
+ <ref name="amend"/>
1087
+ </choice>
1063
1088
  <zeroOrMore>
1064
1089
  <choice>
1065
1090
  <ref name="clause-subsection"/>
@@ -1510,4 +1535,79 @@
1510
1535
  <ref name="CitationType"/>
1511
1536
  </element>
1512
1537
  </define>
1538
+ <define name="amend">
1539
+ <element name="amend">
1540
+ <optional>
1541
+ <attribute name="id">
1542
+ <data type="ID"/>
1543
+ </attribute>
1544
+ </optional>
1545
+ <attribute name="change">
1546
+ <choice>
1547
+ <value>add</value>
1548
+ <value>modify</value>
1549
+ <value>delete</value>
1550
+ </choice>
1551
+ </attribute>
1552
+ <optional>
1553
+ <attribute name="path"/>
1554
+ </optional>
1555
+ <optional>
1556
+ <attribute name="path_end"/>
1557
+ </optional>
1558
+ <optional>
1559
+ <attribute name="title"/>
1560
+ </optional>
1561
+ <optional>
1562
+ <element name="location">
1563
+ <zeroOrMore>
1564
+ <ref name="locality"/>
1565
+ </zeroOrMore>
1566
+ </element>
1567
+ </optional>
1568
+ <zeroOrMore>
1569
+ <ref name="autonumber"/>
1570
+ </zeroOrMore>
1571
+ <optional>
1572
+ <element name="description">
1573
+ <zeroOrMore>
1574
+ <ref name="BasicBlock"/>
1575
+ </zeroOrMore>
1576
+ </element>
1577
+ </optional>
1578
+ <optional>
1579
+ <element name="newcontent">
1580
+ <zeroOrMore>
1581
+ <ref name="BasicBlock"/>
1582
+ </zeroOrMore>
1583
+ </element>
1584
+ </optional>
1585
+ <optional>
1586
+ <element name="description">
1587
+ <zeroOrMore>
1588
+ <ref name="BasicBlock"/>
1589
+ </zeroOrMore>
1590
+ </element>
1591
+ </optional>
1592
+ </element>
1593
+ </define>
1594
+ <define name="autonumber">
1595
+ <element name="autonumber">
1596
+ <attribute name="type">
1597
+ <choice>
1598
+ <value>requirement</value>
1599
+ <value>recommendation</value>
1600
+ <value>permission</value>
1601
+ <value>table</value>
1602
+ <value>figure</value>
1603
+ <value>admonition</value>
1604
+ <value>formula</value>
1605
+ <value>sourcecode</value>
1606
+ <value>example</value>
1607
+ <value>note</value>
1608
+ </choice>
1609
+ </attribute>
1610
+ <text/>
1611
+ </element>
1612
+ </define>
1513
1613
  </grammar>
@@ -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 %}
@@ -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}}; }
@@ -534,7 +534,7 @@ table.dl
534
534
  margin-right:0cm;
535
535
  margin-bottom:11.0pt;
536
536
  margin-left:20.15pt;}
537
- table.MsoISOTable
537
+ table.MsoISOTable, table.MsoISOTableBig
538
538
  {mso-style-name:"Table ISO";
539
539
  mso-tstyle-rowband-size:0;
540
540
  mso-tstyle-colband-size:0;
@@ -554,15 +554,15 @@ table.MsoISOTable
554
554
  mso-border-insidev:.75pt solid windowtext;
555
555
  font-size:10.0pt;
556
556
  font-family:$bodyfont;}
557
- table.MsoISOTable th
557
+ table.MsoISOTable th, table.MsoISOTableBig th
558
558
  {border:solid windowtext 1pt;
559
559
  mso-border-alt:solid windowtext 1pt;
560
560
  padding:0cm 2.85pt 0cm 2.85pt;}
561
- table.MsoISOTable td
561
+ table.MsoISOTable td, table.MsoISOTableBig td
562
562
  {border:solid windowtext 1pt;
563
563
  mso-border-alt:solid windowtext 1pt;
564
564
  padding:0cm 2.85pt 0cm 2.85pt;}
565
- table.MsoISOTable p
565
+ table.MsoISOTable p, table.MsoISOTableBig p
566
566
  {font-size:10.0pt; }
567
567
  table.MsoTableGrid
568
568
  {mso-style-name:"Table Grid";
@@ -733,6 +733,20 @@ div.example p.MsoListParagraph {
733
733
 
734
734
  div.Note p.MsoListParagraph {
735
735
  font-size: 10.0pt;
736
+ margin-left: 1.0cm;
737
+ }
738
+
739
+ div.Note span.stem {
740
+ font-size: 10.0pt; }
741
+
742
+ div.Note p.Sourcecode, div.Note pre.Sourcecode {
743
+ font-size: 8.0pt;
744
+ margin-left: 1.0cm;
745
+ }
746
+
747
+ div.Note table.dl {
748
+ font-size: 10.0pt;
749
+ margin-left: 1.0cm;
736
750
  }
737
751
 
738
752
  span.note_label, span.example_label, td.example_label, td.note_label
@@ -1,7 +1,9 @@
1
1
  <div class="coverpage">
2
2
  <p class="zzSTDPreTitle">Messaging, Malware and Mobile Anti-Abuse Working Group</p>
3
3
  <p class="zzSTDTitle1">{{doctitle}}</p>
4
- <p><b>{{revdate_monthyear}}</b></p>
4
+ {% if edition %}<p><b>Version {{edition}}</b></p>{% endif %}
5
+ {% if revdate_monthyear %}<p><b>{{revdate_monthyear}}</b></p>{% endif %}
6
+ {% if url %}<p align='center' style="margin-top:12pt;">The direct URL to this paper is: <a href="{{url}}">{{url}}</a></p>{% endif %}
5
7
  </div>
6
8
 
7
9
 
@@ -26,6 +26,12 @@ lang="EN-GB" style='font-size:40.0pt'>{% if unpublished %}{{ stage }}{% endif %}
26
26
 
27
27
  </div>
28
28
 
29
+ {% if url %}
30
+ <p class="MsoNormal" align="center" style='text-align:center'><span
31
+ lang="EN-GB" style='font-size:12.0pt'>The direct URL to this paper is: <a href='{{url}}'>{{url}}</a></span></p>
32
+ {% endif %}
33
+
34
+
29
35
  <p class="MsoNormal" style='margin-bottom:6.0pt'><span lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
30
36
 
31
37
  {% if unpublished %}
@@ -14,8 +14,10 @@ module IsoDoc
14
14
 
15
15
  def default_fonts(options)
16
16
  {
17
- bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' : '"Overpass",sans-serif'),
18
- headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' : '"Overpass",sans-serif'),
17
+ bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' :
18
+ '"Overpass",sans-serif'),
19
+ headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' :
20
+ '"Overpass",sans-serif'),
19
21
  monospacefont: '"Space Mono",monospace'
20
22
  }
21
23
  end
@@ -33,9 +35,12 @@ module IsoDoc
33
35
  def colophon(body, docxml)
34
36
  body.div **{ class: "colophon" } do |div|
35
37
  div << <<~"COLOPHON"
36
- <p>As with all M3AAWG documents that we publish, please check the M3AAWG website
37
- (<a href="http://www.m3aawg.org">www.m3aawg.org</a>) for updates to this paper.</p>
38
- <p>&copy; {{ docyear }} copyright by the Messaging, Malware and Mobile Anti-Abuse Working Group (M3AAWG)</p>
38
+ <p>As with all M<sup>3</sup>AAWG documents that we publish,
39
+ please check the M<sup>3</sup>AAWG website
40
+ (<a href="http://www.m3aawg.org">www.m3aawg.org</a>) for updates to
41
+ this paper.</p>
42
+ <p>&copy; #{@meta.get[:docyear]} copyright by the Messaging, Malware
43
+ and Mobile Anti-Abuse Working Group (M<sup>3</sup>AAWG)</p>
39
44
  COLOPHON
40
45
  end
41
46
  end
@@ -48,7 +53,8 @@ module IsoDoc
48
53
  end
49
54
 
50
55
  def make_body(xml, docxml)
51
- body_attr = { lang: "EN-US", link: "blue", vlink: "#954F72", "xml:lang": "EN-US", class: "container" }
56
+ body_attr = { lang: "EN-US", link: "blue", vlink: "#954F72",
57
+ "xml:lang": "EN-US", class: "container" }
52
58
  xml.body **body_attr do |body|
53
59
  make_body1(body, docxml)
54
60
  make_body2(body, docxml)