metanorma-ieee 1.5.4 → 1.5.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6227353f56d9415296be8d468d8d8117149929514dc33caf73e154347c7fa839
4
- data.tar.gz: 2b4bcfeeedde0039d75dab66d1124cb4336fa6270933b9adb8d1a794c64dfdca
3
+ metadata.gz: f8929322a9a987ee96a1c831dec2ff64ebb4933dfa76aec941054d887db637dc
4
+ data.tar.gz: b27dfd1da70c300b0721458d3973edd88175bff053c2479d9b48ea5d0785ab21
5
5
  SHA512:
6
- metadata.gz: 53db1e0ae3f5afc98fadc61a427eff494e5ef58ffbc05680dce7f6070a356d72d7fe8e1fcfe68faa8a205a4b306035920ae4856d91bf50ac020804ec97952572
7
- data.tar.gz: 94064f7e573b6d9be2e0a28ab6dbe34d727198fc573d7faf5aa09135baa07bf2a2d262b75f5f1d9eca8a4c4fb5d5cc7f816e61a397df9cb5ad852f821b0d9d71
6
+ metadata.gz: 7262aee1a6ac6b9f085b916c549d4b9497d8bb9d57cd5f547ab3458f17d166c791ced5eb08af0de9a1330f9af23b8ef00ce7aff1c10f5acb5b763bbb4328292d
7
+ data.tar.gz: 6d7f7a677c80f6de11699c83ef5545b8b9b64a055cf80cc468fcafca95bec19a7ad0834dc7c43271b470cd214914e3b54c67451520a6b54be8e3d0f77f89a6c6
@@ -145,16 +145,6 @@ div.document-stage-band, div.document-type-band {
145
145
  background-color: #333333;
146
146
  }
147
147
 
148
- a.FootnoteRef + a.FootnoteRef::before {
149
- content: ", ";
150
- vertical-align: super;
151
- }
152
-
153
- a.TableFootnoteRef + a.TableFootnoteRef::before {
154
- content: ", ";
155
- vertical-align: super;
156
- }
157
-
158
148
  a.TableFootnoteRef, span.TableFootnoteRef,
159
149
  a.FootnoteRef, span.FootnoteRef {
160
150
  vertical-align: super;
@@ -704,6 +694,124 @@ li p {
704
694
  display: none;
705
695
  }
706
696
 
697
+ /* https://github.com/metanorma/metanorma-iso/issues/319 : force a) parentheses for ordered lists */
698
+ ol[class=alphabet] {
699
+ counter-reset: alphabet;
700
+ }
701
+
702
+ ol[class=arabic] {
703
+ counter-reset: arabic;
704
+ }
705
+
706
+ ol[class=roman] {
707
+ counter-reset: roman;
708
+ }
709
+
710
+ ol[class=alphabet_upper] {
711
+ counter-reset: alphabet_upper;
712
+ }
713
+
714
+ ol[class=roman_upper] {
715
+ counter-reset: roman_upper;
716
+ }
717
+
718
+ ol[class=alphabet] ol[class=alphabet] {
719
+ counter-reset: alphabet2;
720
+ }
721
+
722
+ ol[class=arabic] ol[class=arabic] {
723
+ counter-reset: arabic2;
724
+ }
725
+
726
+ ol[class=roman] ol[class=roman] {
727
+ counter-reset: roman2;
728
+ }
729
+
730
+ ol[class=alphabet_upper] ol[class=alphabet_upper] {
731
+ counter-reset: alphabet_upper2;
732
+ }
733
+
734
+ ol[class=roman_upper] ol[class=roman_upper] {
735
+ counter-reset: roman_upper2;
736
+ }
737
+
738
+ ol {
739
+ counter-reset: alphabet;
740
+ }
741
+
742
+ ol > li {
743
+ list-style: none;
744
+ position: relative;
745
+ }
746
+
747
+ ol > li::before {
748
+ position: absolute;
749
+ left: -1.4em;
750
+ }
751
+
752
+ ol[class=roman] > li::before {
753
+ left: -2em;
754
+ }
755
+
756
+ ol[class=roman_upper] > li::before {
757
+ left: -2.3em;
758
+ }
759
+
760
+ ol[class=alphabet] > li::before {
761
+ counter-increment: alphabet;
762
+ content: counter(alphabet, lower-alpha) ") ";
763
+ }
764
+
765
+ ol[class=arabic] > li::before {
766
+ counter-increment: arabic;
767
+ content: counter(arabic, decimal) ") ";
768
+ }
769
+
770
+ ol[class=roman] > li::before {
771
+ counter-increment: roman;
772
+ content: counter(roman, lower-roman) ") ";
773
+ }
774
+
775
+ ol[class=alphabet_upper] > li::before {
776
+ counter-increment: alphabet_upper;
777
+ content: counter(alphabet_upper, upper-alpha) ") ";
778
+ }
779
+
780
+ ol[class=roman_upper] > li::before {
781
+ counter-increment: roman_upper;
782
+ content: counter(roman_upper, upper-roman) ") ";
783
+ }
784
+
785
+ ol > li::before {
786
+ counter-increment: alphabet;
787
+ content: counter(alphabet, lower-alpha) ") ";
788
+ }
789
+
790
+ ol[class=alphabet] ol[class=alphabet] > li::before {
791
+ counter-increment: alphabet2;
792
+ content: counter(alphabet2, lower-alpha) ") ";
793
+ }
794
+
795
+ ol[class=arabic] ol[class=arabic] > li::before {
796
+ counter-increment: arabic2;
797
+ content: counter(arabic2, decimal) ") ";
798
+ }
799
+
800
+ ol[class=roman] ol[class=roman] > li::before {
801
+ counter-increment: roman2;
802
+ content: counter(roman2, lower-roman) ") ";
803
+ }
804
+
805
+ ol[class=alphabet_upper] ol[class=alphabet_upper] > li::before {
806
+ counter-increment: alphabet_upper2;
807
+ content: counter(alphabet_upper2, upper-alpha) ") ";
808
+ }
809
+
810
+ ol[class=roman_upper] ol[class=roman_upper] > li::before {
811
+ counter-increment: roman_upper2;
812
+ content: counter(roman_upper2, upper-roman) ") ";
813
+ }
814
+
707
815
  p.AltTerms {
708
816
  margin-bottom: 0;
709
817
  margin-left: 2em;
@@ -714,10 +822,6 @@ p.Terms {
714
822
  }
715
823
 
716
824
  /* Navigation*/
717
- #toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
718
- font-family: {{bodyfont}};
719
- font-weight: 400;
720
- }
721
825
  #toc ul, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) ul {
722
826
  margin: 0;
723
827
  padding: 0;
@@ -765,6 +869,10 @@ p.Terms {
765
869
  color: black;
766
870
  }
767
871
  }
872
+ #toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
873
+ font-family: {{bodyfont}};
874
+ font-weight: 400;
875
+ }
768
876
  @media screen and (max-width: 768px) {
769
877
  #toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
770
878
  padding: 0 1.5em;
@@ -782,9 +890,6 @@ p.Terms {
782
890
  font-size: 100%;
783
891
  }
784
892
 
785
- nav {
786
- line-height: 1.2em;
787
- }
788
893
  @media screen and (min-width: 768px) {
789
894
  nav {
790
895
  position: fixed;
@@ -809,11 +914,10 @@ nav {
809
914
  background-color: white;
810
915
  }
811
916
  }
812
-
813
- #toggle {
814
- margin-left: -4em;
815
- margin-top: -2em;
917
+ nav {
918
+ line-height: 1.2em;
816
919
  }
920
+
817
921
  @media screen and (min-width: 768px) {
818
922
  #toggle {
819
923
  position: fixed;
@@ -842,6 +946,10 @@ nav {
842
946
  display: none;
843
947
  }
844
948
  }
949
+ #toggle {
950
+ margin-left: -4em;
951
+ margin-top: -2em;
952
+ }
845
953
 
846
954
  @media screen and (min-width: 768px) {
847
955
  .container {
@@ -872,17 +980,6 @@ nav {
872
980
  width: 100%;
873
981
  }
874
982
  }
875
- .figure,
876
- pre,
877
- .pseudocode {
878
- background-color: #f7f7f7;
879
- font-size: {{monospacefontsize}};
880
- line-height: 1.6em;
881
- padding: 1.5em;
882
- margin: 2em 0 1em 0;
883
- overflow: auto;
884
- font-size: {{normalfontsize}};
885
- }
886
983
  .figure .SourceTitle,
887
984
  pre .SourceTitle,
888
985
  .pseudocode .SourceTitle {
@@ -890,13 +987,18 @@ pre .SourceTitle,
890
987
  font-size: 1em;
891
988
  text-align: center;
892
989
  }
893
-
894
- div.figure {
990
+ .figure,
991
+ pre,
992
+ .pseudocode {
993
+ background-color: #f7f7f7;
994
+ font-size: {{monospacefontsize}};
895
995
  line-height: 1.6em;
896
996
  padding: 1.5em;
897
997
  margin: 2em 0 1em 0;
898
998
  overflow: auto;
999
+ font-size: {{normalfontsize}};
899
1000
  }
1001
+
900
1002
  div.figure .FigureTitle, div.figure .figure-title {
901
1003
  font-weight: 700;
902
1004
  font-size: 1em;
@@ -909,6 +1011,12 @@ div.figure > img, div.figure > svg {
909
1011
  max-width: 100%;
910
1012
  height: auto;
911
1013
  }
1014
+ div.figure {
1015
+ line-height: 1.6em;
1016
+ padding: 1.5em;
1017
+ margin: 2em 0 1em 0;
1018
+ overflow: auto;
1019
+ }
912
1020
 
913
1021
  table div.figure {
914
1022
  padding: 0;
@@ -1140,6 +1248,13 @@ p.NormRef {
1140
1248
  /*
1141
1249
  3.6 Source Code + figures
1142
1250
  */
1251
+ .figure .SourceTitle,
1252
+ pre .SourceTitle,
1253
+ .pseudocode .SourceTitle {
1254
+ font-weight: 700;
1255
+ font-size: 1em;
1256
+ text-align: center;
1257
+ }
1143
1258
  .figure,
1144
1259
  pre,
1145
1260
  .pseudocode {
@@ -1151,13 +1266,6 @@ pre,
1151
1266
  overflow: auto;
1152
1267
  font-size: {{normalfontsize}};
1153
1268
  }
1154
- .figure .SourceTitle,
1155
- pre .SourceTitle,
1156
- .pseudocode .SourceTitle {
1157
- font-weight: 700;
1158
- font-size: 1em;
1159
- text-align: center;
1160
- }
1161
1269
 
1162
1270
  pre {
1163
1271
  font-family: {{monospacefont}};
@@ -1230,19 +1338,23 @@ pre {
1230
1338
  padding: 0.5em;
1231
1339
  margin: 2em 0 1em 0;
1232
1340
  text-align: left;
1233
- color: #424242;
1234
- padding-left: 2em;
1235
- color: black;
1236
- padding-left: 2em;
1237
1341
  }
1238
1342
  .example p {
1239
1343
  margin: 0;
1240
1344
  }
1345
+ .example {
1346
+ color: #424242;
1347
+ padding-left: 2em;
1348
+ }
1241
1349
  .example .example-title {
1242
1350
  font-weight: 700;
1243
1351
  text-transform: uppercase;
1244
1352
  margin-left: -1.5em;
1245
1353
  }
1354
+ .example {
1355
+ color: black;
1356
+ padding-left: 2em;
1357
+ }
1246
1358
  .example .example-title {
1247
1359
  margin-left: -1.5em;
1248
1360
  font-style: italic;
@@ -1262,7 +1374,6 @@ table {
1262
1374
  margin-left: auto;
1263
1375
  margin-right: auto;
1264
1376
  padding-right: 2em;
1265
- text-align: center;
1266
1377
  }
1267
1378
  table, table th, table td {
1268
1379
  border: 1px solid black;
@@ -1274,6 +1385,9 @@ table th, table td {
1274
1385
  table td.header {
1275
1386
  font-weight: 400;
1276
1387
  }
1388
+ table {
1389
+ text-align: center;
1390
+ }
1277
1391
 
1278
1392
  td,
1279
1393
  th {
@@ -247,6 +247,102 @@ li p {
247
247
  display: none;
248
248
  }
249
249
 
250
+ /* https://github.com/metanorma/metanorma-iso/issues/319 : force a) parentheses for ordered lists */
251
+
252
+ ol[class="alphabet"] {
253
+ counter-reset: alphabet;
254
+ }
255
+ ol[class="arabic"] {
256
+ counter-reset: arabic;
257
+ }
258
+ ol[class="roman"] {
259
+ counter-reset: roman;
260
+ }
261
+ ol[class="alphabet_upper"] {
262
+ counter-reset: alphabet_upper;
263
+ }
264
+ ol[class="roman_upper"] {
265
+ counter-reset: roman_upper;
266
+ }
267
+ ol[class="alphabet"] ol[class="alphabet"] {
268
+ counter-reset: alphabet2;
269
+ }
270
+ ol[class="arabic"] ol[class="arabic"] {
271
+ counter-reset: arabic2;
272
+ }
273
+ ol[class="roman"] ol[class="roman"] {
274
+ counter-reset: roman2;
275
+ }
276
+ ol[class="alphabet_upper"] ol[class="alphabet_upper"] {
277
+ counter-reset: alphabet_upper2;
278
+ }
279
+ ol[class="roman_upper"] ol[class="roman_upper"] {
280
+ counter-reset: roman_upper2;
281
+ }
282
+ ol {
283
+ counter-reset: alphabet;
284
+ }
285
+
286
+ ol > li {
287
+ list-style: none;
288
+ position: relative;
289
+ }
290
+ ol > li::before {
291
+ position: absolute;
292
+ left: -1.4em;
293
+ }
294
+ ol[class="roman"] > li::before {
295
+ left: -2.0em;
296
+ }
297
+ ol[class="roman_upper"] > li::before {
298
+ left: -2.3em;
299
+ }
300
+ ol[class="alphabet"] > li::before {
301
+ counter-increment: alphabet;
302
+ content: counter(alphabet, lower-alpha)") "
303
+ }
304
+ ol[class="arabic"] > li::before {
305
+ counter-increment: arabic;
306
+ content: counter(arabic, decimal)") "
307
+ }
308
+ ol[class="roman"] > li::before {
309
+ counter-increment: roman;
310
+ content: counter(roman, lower-roman)") "
311
+ }
312
+ ol[class="alphabet_upper"] > li::before {
313
+ counter-increment: alphabet_upper;
314
+ content: counter(alphabet_upper, upper-alpha)") "
315
+ }
316
+ ol[class="roman_upper"] > li::before {
317
+ counter-increment: roman_upper;
318
+ content: counter(roman_upper, upper-roman)") "
319
+ }
320
+ ol > li::before {
321
+ counter-increment: alphabet;
322
+ content: counter(alphabet, lower-alpha)") "
323
+ }
324
+ ol[class="alphabet"] ol[class="alphabet"] > li::before {
325
+ counter-increment: alphabet2;
326
+ content: counter(alphabet2, lower-alpha)") "
327
+ }
328
+ ol[class="arabic"] ol[class="arabic"] > li::before {
329
+ counter-increment: arabic2;
330
+ content: counter(arabic2, decimal)") "
331
+ }
332
+ ol[class="roman"] ol[class="roman"] > li::before {
333
+ counter-increment: roman2;
334
+ content: counter(roman2, lower-roman)") "
335
+ }
336
+ ol[class="alphabet_upper"] ol[class="alphabet_upper"] > li::before {
337
+ counter-increment: alphabet_upper2;
338
+ content: counter(alphabet_upper2, upper-alpha)") "
339
+ }
340
+ ol[class="roman_upper"] ol[class="roman_upper"] > li::before {
341
+ counter-increment: roman_upper2;
342
+ content: counter(roman_upper2, upper-roman)") "
343
+ }
344
+
345
+
250
346
  p.AltTerms {
251
347
  margin-bottom: 0;
252
348
  margin-left: 2em;
@@ -83,6 +83,11 @@ module IsoDoc
83
83
  else super
84
84
  end
85
85
  end
86
+
87
+ def ol_attrs(node)
88
+ ret = super
89
+ ret.merge(class: OL_STYLE.invert[ret[:type]])
90
+ end
86
91
 
87
92
  include BaseConvert
88
93
  include Init
@@ -21,6 +21,7 @@ doctype_abbrev:
21
21
  term_def_boilerplate: |
22
22
  For the purposes of this document, the following terms and definitions apply. The _IEEE Standards Dictionary Online_ should be consulted for terms not defined in this clause.footnote:[_IEEE Standards Dictionary Online_ is available at: http://dictionary.ieee.org[]. An IEEE Account is required for access to the dictionary, and one can be created at no charge on the dictionary sign-in page.]
23
23
  norm_with_refs_pref: The following referenced documents are indispensable for the application of this document (i.e., they must be understood and used, so each referenced document is cited in text and its relationship to this document is explained). For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments or corrigenda) applies.
24
+ norm_empty_pref: There are no normative references in this {{ doctype | downcase}}.
24
25
  biblio_pref: Bibliographical references are resources that provide additional or helpful material but do not need to be understood or used to implement this standard. Reference to these resources is made for informational use only.
25
26
  note_inform_fn: Notes to text, tables, and figures are for information only and do not contain requirements needed to implement the standard.
26
27
  biblio_ref_inform_fn: The numbers in brackets correspond to those of the bibliography in Annex B.