metanorma-iec 2.1.1 → 2.1.2

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: 65e8b6110c8b027d0e499a4cafa47209512d46d1844423002e96d5f099849178
4
- data.tar.gz: f74fa9c52f4f03818bd948b31aa467923779831e32bba5561985a9a82cd155f8
3
+ metadata.gz: 73845b0f396ac7f5dd11ef15f2d9d7365aa2ced653f2f5611b0808d95f598acd
4
+ data.tar.gz: 9b52cac8db8146bfee98bb78296c1eb4402304334bd4b0992bec81884a24e39f
5
5
  SHA512:
6
- metadata.gz: fe060bbb28532776431133cf2e0b7f1ff7356dd0b387076fd4b9e51e8b8810a19e1b58cc9bb74c74090c22183778f8cb800c8ff6963465391502877991936e2d
7
- data.tar.gz: 0a147df6aef5e2aa075a5c86ed5a487a33a40d188ba1ab843177c291d7cc9850de1e60aba4b8b90a07140598703cf4b9c87bbf532e948a9219c9c51ba4882203
6
+ metadata.gz: 66995e9d3026f0aac838fb9b7478f9d2f40ebda4437beaa1758f9c08cecc1e5691eb0de777b4055fde6b3e1a667f9486d9b54df6080f9a8ffa7f88d8e1eeb97e
7
+ data.tar.gz: 60ed769002bad5d29edc41899801579b08d5458901f1b8037754693bddc24a14726149fbdeca5d2c994dd734deaed56ad3440fdd9dd3531704e2c10cebb03d2e
data/Gemfile CHANGED
@@ -6,8 +6,6 @@ source "https://rubygems.org"
6
6
  # Specify your gem's dependencies in gemspec
7
7
  gemspec
8
8
 
9
- gem "reline", "~> 0.2.8.pre.11"
10
-
11
9
  if File.exist? "Gemfile.devel"
12
10
  eval File.read("Gemfile.devel"), nil, "Gemfile.devel" # rubocop:disable Security/Eval
13
11
  end
@@ -677,34 +677,34 @@ ul, ol {
677
677
  list-style-type: none; }
678
678
 
679
679
  /* https://github.com/metanorma/metanorma-iso/issues/319 : ordered list rendering */
680
- ol[type="alphabet"] {
680
+ ol[class="alphabet"] {
681
681
  counter-reset: alphabet; }
682
682
 
683
- ol[type="arabic"] {
683
+ ol[class="arabic"] {
684
684
  counter-reset: arabic; }
685
685
 
686
- ol[type="roman"] {
686
+ ol[class="roman"] {
687
687
  counter-reset: roman; }
688
688
 
689
- ol[type="alphabet_upper"] {
689
+ ol[class="alphabet_upper"] {
690
690
  counter-reset: alphabet_upper; }
691
691
 
692
- ol[type="roman_upper"] {
692
+ ol[class="roman_upper"] {
693
693
  counter-reset: roman_upper; }
694
694
 
695
- ol[type="alphabet"] ol[type="alphabet"] {
695
+ ol[class="alphabet"] ol[class="alphabet"] {
696
696
  counter-reset: alphabet2; }
697
697
 
698
- ol[type="arabic"] ol[type="arabic"] {
698
+ ol[class="arabic"] ol[class="arabic"] {
699
699
  counter-reset: arabic2; }
700
700
 
701
- ol[type="roman"] ol[type="roman"] {
701
+ ol[class="roman"] ol[class="roman"] {
702
702
  counter-reset: roman2; }
703
703
 
704
- ol[type="alphabet_upper"] ol[type="alphabet_upper"] {
704
+ ol[class="alphabet_upper"] ol[class="alphabet_upper"] {
705
705
  counter-reset: alphabet_upper2; }
706
706
 
707
- ol[type="roman_upper"] ol[type="roman_upper"] {
707
+ ol[class="roman_upper"] ol[class="roman_upper"] {
708
708
  counter-reset: roman_upper2; }
709
709
 
710
710
  ol {
@@ -718,29 +718,29 @@ ol > li:before {
718
718
  position: absolute;
719
719
  left: -1.4em; }
720
720
 
721
- ol[type="roman"] > li:before {
721
+ ol[class="roman"] > li:before {
722
722
  left: -2.0em; }
723
723
 
724
- ol[type="roman_upper"] > li:before {
724
+ ol[class="roman_upper"] > li:before {
725
725
  left: -2.3em; }
726
726
 
727
- ol[type="alphabet"] > li:before {
727
+ ol[class="alphabet"] > li:before {
728
728
  counter-increment: alphabet;
729
729
  content: counter(alphabet, lower-alpha) ") "; }
730
730
 
731
- ol[type="arabic"] > li:before {
731
+ ol[class="arabic"] > li:before {
732
732
  counter-increment: arabic;
733
733
  content: counter(arabic, decimal) ") "; }
734
734
 
735
- ol[type="roman"] > li:before {
735
+ ol[class="roman"] > li:before {
736
736
  counter-increment: roman;
737
737
  content: counter(roman, lower-roman) ") "; }
738
738
 
739
- ol[type="alphabet_upper"] > li:before {
739
+ ol[class="alphabet_upper"] > li:before {
740
740
  counter-increment: alphabet_upper;
741
741
  content: counter(alphabet_upper, upper-alpha) ") "; }
742
742
 
743
- ol[type="roman_upper"] > li:before {
743
+ ol[class="roman_upper"] > li:before {
744
744
  counter-increment: roman_upper;
745
745
  content: counter(roman_upper, upper-roman) ") "; }
746
746
 
@@ -748,23 +748,23 @@ ol > li:before {
748
748
  counter-increment: alphabet;
749
749
  content: counter(alphabet, lower-alpha) ") "; }
750
750
 
751
- ol[type="alphabet"] ol[type="alphabet"] > li:before {
751
+ ol[class="alphabet"] ol[class="alphabet"] > li:before {
752
752
  counter-increment: alphabet2;
753
753
  content: counter(alphabet2, lower-alpha) ") "; }
754
754
 
755
- ol[type="arabic"] ol[type="arabic"] > li:before {
755
+ ol[class="arabic"] ol[class="arabic"] > li:before {
756
756
  counter-increment: arabic2;
757
757
  content: counter(arabic2, decimal) ") "; }
758
758
 
759
- ol[type="roman"] ol[type="roman"] > li:before {
759
+ ol[class="roman"] ol[class="roman"] > li:before {
760
760
  counter-increment: roman2;
761
761
  content: counter(roman2, lower-roman) ") "; }
762
762
 
763
- ol[type="alphabet_upper"] ol[type="alphabet_upper"] > li:before {
763
+ ol[class="alphabet_upper"] ol[class="alphabet_upper"] > li:before {
764
764
  counter-increment: alphabet_upper2;
765
765
  content: counter(alphabet_upper2, upper-alpha) ") "; }
766
766
 
767
- ol[type="roman_upper"] ol[type="roman_upper"] > li:before {
767
+ ol[class="roman_upper"] ol[class="roman_upper"] > li:before {
768
768
  counter-increment: roman_upper2;
769
769
  content: counter(roman_upper2, upper-roman) ") "; }
770
770
 
@@ -819,6 +819,12 @@ pre {
819
819
  font-size: 1em;
820
820
  text-align: center; }
821
821
 
822
+ .ListTitle {
823
+ font-weight: 700;
824
+ font-size: 1em;
825
+ text-align: center;
826
+ text-align: left; }
827
+
822
828
  .FigureTitle,
823
829
  .SourceTitle {
824
830
  font-weight: 700;
@@ -406,34 +406,34 @@ ul, ol {margin-left: 2em;}
406
406
 
407
407
  /* https://github.com/metanorma/metanorma-iso/issues/319 : ordered list rendering */
408
408
 
409
- ol[type="alphabet"] {
409
+ ol[class="alphabet"] {
410
410
  counter-reset: alphabet;
411
411
  }
412
- ol[type="arabic"] {
412
+ ol[class="arabic"] {
413
413
  counter-reset: arabic;
414
414
  }
415
- ol[type="roman"] {
415
+ ol[class="roman"] {
416
416
  counter-reset: roman;
417
417
  }
418
- ol[type="alphabet_upper"] {
418
+ ol[class="alphabet_upper"] {
419
419
  counter-reset: alphabet_upper;
420
420
  }
421
- ol[type="roman_upper"] {
421
+ ol[class="roman_upper"] {
422
422
  counter-reset: roman_upper;
423
423
  }
424
- ol[type="alphabet"] ol[type="alphabet"] {
424
+ ol[class="alphabet"] ol[class="alphabet"] {
425
425
  counter-reset: alphabet2;
426
426
  }
427
- ol[type="arabic"] ol[type="arabic"] {
427
+ ol[class="arabic"] ol[class="arabic"] {
428
428
  counter-reset: arabic2;
429
429
  }
430
- ol[type="roman"] ol[type="roman"] {
430
+ ol[class="roman"] ol[class="roman"] {
431
431
  counter-reset: roman2;
432
432
  }
433
- ol[type="alphabet_upper"] ol[type="alphabet_upper"] {
433
+ ol[class="alphabet_upper"] ol[class="alphabet_upper"] {
434
434
  counter-reset: alphabet_upper2;
435
435
  }
436
- ol[type="roman_upper"] ol[type="roman_upper"] {
436
+ ol[class="roman_upper"] ol[class="roman_upper"] {
437
437
  counter-reset: roman_upper2;
438
438
  }
439
439
  ol {
@@ -448,29 +448,29 @@ ol > li:before {
448
448
  position: absolute;
449
449
  left: -1.4em;
450
450
  }
451
- ol[type="roman"] > li:before {
451
+ ol[class="roman"] > li:before {
452
452
  left: -2.0em;
453
453
  }
454
- ol[type="roman_upper"] > li:before {
454
+ ol[class="roman_upper"] > li:before {
455
455
  left: -2.3em;
456
456
  }
457
- ol[type="alphabet"] > li:before {
457
+ ol[class="alphabet"] > li:before {
458
458
  counter-increment: alphabet;
459
459
  content: counter(alphabet, lower-alpha)") "
460
460
  }
461
- ol[type="arabic"] > li:before {
461
+ ol[class="arabic"] > li:before {
462
462
  counter-increment: arabic;
463
463
  content: counter(arabic, decimal)") "
464
464
  }
465
- ol[type="roman"] > li:before {
465
+ ol[class="roman"] > li:before {
466
466
  counter-increment: roman;
467
467
  content: counter(roman, lower-roman)") "
468
468
  }
469
- ol[type="alphabet_upper"] > li:before {
469
+ ol[class="alphabet_upper"] > li:before {
470
470
  counter-increment: alphabet_upper;
471
471
  content: counter(alphabet_upper, upper-alpha)") "
472
472
  }
473
- ol[type="roman_upper"] > li:before {
473
+ ol[class="roman_upper"] > li:before {
474
474
  counter-increment: roman_upper;
475
475
  content: counter(roman_upper, upper-roman)") "
476
476
  }
@@ -478,23 +478,23 @@ ol > li:before {
478
478
  counter-increment: alphabet;
479
479
  content: counter(alphabet, lower-alpha)") "
480
480
  }
481
- ol[type="alphabet"] ol[type="alphabet"] > li:before {
481
+ ol[class="alphabet"] ol[class="alphabet"] > li:before {
482
482
  counter-increment: alphabet2;
483
483
  content: counter(alphabet2, lower-alpha)") "
484
484
  }
485
- ol[type="arabic"] ol[type="arabic"] > li:before {
485
+ ol[class="arabic"] ol[class="arabic"] > li:before {
486
486
  counter-increment: arabic2;
487
487
  content: counter(arabic2, decimal)") "
488
488
  }
489
- ol[type="roman"] ol[type="roman"] > li:before {
489
+ ol[class="roman"] ol[class="roman"] > li:before {
490
490
  counter-increment: roman2;
491
491
  content: counter(roman2, lower-roman)") "
492
492
  }
493
- ol[type="alphabet_upper"] ol[type="alphabet_upper"] > li:before {
493
+ ol[class="alphabet_upper"] ol[class="alphabet_upper"] > li:before {
494
494
  counter-increment: alphabet_upper2;
495
495
  content: counter(alphabet_upper2, upper-alpha)") "
496
496
  }
497
- ol[type="roman_upper"] ol[type="roman_upper"] > li:before {
497
+ ol[class="roman_upper"] ol[class="roman_upper"] > li:before {
498
498
  counter-increment: roman_upper2;
499
499
  content: counter(roman_upper2, upper-roman)") "
500
500
  }
@@ -535,6 +535,7 @@ pre {
535
535
 
536
536
  @include admonitionBlock();
537
537
  @include recommendationBlock();
538
+ @include listBlock();
538
539
 
539
540
  .FigureTitle,
540
541
  .SourceTitle {
@@ -168,7 +168,7 @@ p.SourceTitle {
168
168
  font-weight: bold; }
169
169
 
170
170
  /* IEC: TABLE-title */
171
- p.TableTitle {
171
+ p.TableTitle, p.ListTitle {
172
172
  mso-style-unhide: no;
173
173
  mso-style-qformat: yes;
174
174
  mso-style-parent: Normal;
@@ -192,7 +192,6 @@ p.TableTitle {
192
192
  /* IEC: NOTE */
193
193
  p.Note, div.Note, li.Note {
194
194
  mso-style-unhide: no;
195
- mso-style-name: "NOTE";
196
195
  mso-style-qformat: yes;
197
196
  mso-style-next: Normal;
198
197
  margin-top: 5.0pt;
@@ -202,13 +201,16 @@ p.Note, div.Note, li.Note {
202
201
  text-align: justify;
203
202
  mso-pagination: widow-orphan;
204
203
  layout-grid-mode: char;
205
- font-size: {{smallerfontsize}};
206
- font-family: {{bodyfont}};
207
204
  mso-fareast-font-family: "Times New Roman";
208
- letter-spacing: .4pt;
209
205
  mso-ansi-language: EN-GB;
210
206
  mso-fareast-language: ZH-CN; }
211
207
 
208
+ p.Note, li.Note {
209
+ mso-style-name: "NOTE";
210
+ font-size: {{smallerfontsize}};
211
+ font-family: {{bodyfont}};
212
+ letter-spacing: .4pt; }
213
+
212
214
  /* IEC: TABFIGfootnote */
213
215
  p.TableFootnote, div.TableFootnote, li.TableFootnote {
214
216
  mso-style-unhide: no;
@@ -543,20 +545,20 @@ p.Quote, li.Quote, div.Quote {
543
545
  line-height: 12.0pt;
544
546
  mso-pagination: widow-orphan;
545
547
  tab-stops: 20.15pt;
546
- font-size: {{normalfontsize}};
547
- font-family: {{bodyfont}};
548
548
  mso-fareast-font-family: {{bodyfont}};
549
549
  mso-bidi-font-family: {{bodyfont}};
550
550
  mso-ansi-language: EN-GB; }
551
551
 
552
+ p.Quote, li.Quote, div.Quote {
553
+ font-size: {{normalfontsize}};
554
+ font-family: {{bodyfont}}; }
555
+
552
556
  p.QuoteAttribution {
553
557
  text-align: right; }
554
558
 
555
559
  p.Admonition, li.Admonition, div.Admonition {
556
560
  mso-style-priority: 99;
557
561
  mso-pagination: widow-orphan;
558
- font-size: {{normalfontsize}};
559
- font-family: {{bodyfont}};
560
562
  mso-ascii-font-family: {{bodyfont}};
561
563
  mso-ascii-theme-font: minor-latin;
562
564
  mso-fareast-font-family: {{bodyfont}};
@@ -569,9 +571,13 @@ p.Admonition, li.Admonition, div.Admonition {
569
571
  border: solid windowtext 1.0pt;
570
572
  mso-border-alt: solid windowtext .5pt;
571
573
  padding: 1.0pt 4.0pt 1.0pt 4.0pt;
572
- font-weight: bold;
573
574
  mso-ansi-language: EN-AU; }
574
575
 
576
+ p.Admonition, li.Admonition {
577
+ font-size: {{normalfontsize}};
578
+ font-family: {{bodyfont}};
579
+ font-weight: bold; }
580
+
575
581
  /* IEC:PARAEQUATION */
576
582
  p.formula, li.formula, div.formula {
577
583
  mso-style-name: Formula;
@@ -820,7 +826,9 @@ div.example {
820
826
  */
821
827
  p.example, li.example, div.example, td.example {
822
828
  mso-pagination: none;
823
- tab-stops: 70.9pt;
829
+ tab-stops: 70.9pt; }
830
+
831
+ p.example, li.example, td.example {
824
832
  font-size: {{normalfontsize}};
825
833
  font-family: {{bodyfont}}; }
826
834
 
@@ -160,7 +160,7 @@ p.SourceTitle
160
160
  mso-fareast-language:ZH-CN;
161
161
  font-weight:bold;}
162
162
  /* IEC: TABLE-title */
163
- p.TableTitle
163
+ p.TableTitle, p.ListTitle
164
164
  {mso-style-unhide:no;
165
165
  mso-style-qformat:yes;
166
166
  mso-style-parent:Normal;
@@ -183,7 +183,6 @@ p.TableTitle
183
183
  /* IEC: NOTE */
184
184
  p.Note, div.Note, li.Note
185
185
  {mso-style-unhide:no;
186
- mso-style-name:"NOTE";
187
186
  mso-style-qformat:yes;
188
187
  mso-style-next:Normal;
189
188
  margin-top:5.0pt;
@@ -193,12 +192,15 @@ p.Note, div.Note, li.Note
193
192
  text-align:justify;
194
193
  mso-pagination:widow-orphan;
195
194
  layout-grid-mode:char;
196
- font-size:$smallerfontsize;
197
- font-family:$bodyfont;
198
195
  mso-fareast-font-family:"Times New Roman";
199
- letter-spacing:.4pt;
200
196
  mso-ansi-language:EN-GB;
201
197
  mso-fareast-language:ZH-CN;}
198
+ p.Note, li.Note {
199
+ mso-style-name:"NOTE";
200
+ font-size:$smallerfontsize;
201
+ font-family:$bodyfont;
202
+ letter-spacing:.4pt;
203
+ }
202
204
  /* IEC: TABFIGfootnote */
203
205
  p.TableFootnote, div.TableFootnote, li.TableFootnote
204
206
  /* may need to be revised */
@@ -520,18 +522,18 @@ p.Quote, li.Quote, div.Quote
520
522
  line-height:12.0pt;
521
523
  mso-pagination:widow-orphan;
522
524
  tab-stops:20.15pt;
523
- font-size:$normalfontsize;
524
- font-family:$bodyfont;
525
525
  mso-fareast-font-family:$bodyfont;
526
526
  mso-bidi-font-family:$bodyfont;
527
527
  mso-ansi-language:EN-GB;}
528
+ p.Quote, li.Quote, div.Quote {
529
+ font-size:$normalfontsize;
530
+ font-family:$bodyfont;
531
+ }
528
532
  p.QuoteAttribution
529
533
  {text-align:right;}
530
534
  p.Admonition, li.Admonition, div.Admonition
531
535
  {mso-style-priority:99;
532
536
  mso-pagination:widow-orphan;
533
- font-size:$normalfontsize;
534
- font-family:$bodyfont;
535
537
  mso-ascii-font-family:$bodyfont;
536
538
  mso-ascii-theme-font:minor-latin;
537
539
  mso-fareast-font-family:$bodyfont;
@@ -544,8 +546,12 @@ p.Admonition, li.Admonition, div.Admonition
544
546
  border:solid windowtext 1.0pt;
545
547
  mso-border-alt:solid windowtext .5pt;
546
548
  padding:1.0pt 4.0pt 1.0pt 4.0pt;
547
- font-weight:bold;
548
549
  mso-ansi-language:EN-AU;}
550
+ p.Admonition, li.Admonition {
551
+ font-size:$normalfontsize;
552
+ font-family:$bodyfont;
553
+ font-weight:bold;
554
+ }
549
555
  /* IEC:PARAEQUATION */
550
556
  p.formula, li.formula, div.formula
551
557
  {mso-style-name:Formula;
@@ -804,8 +810,11 @@ p.example, li.example, div.example, td.example
804
810
  {
805
811
  mso-pagination:none;
806
812
  tab-stops:70.9pt;
807
- font-size:$normalfontsize;
808
- font-family:$bodyfont;}
813
+ }
814
+ p.example, li.example, td.example {
815
+ font-size:$normalfontsize;
816
+ font-family:$bodyfont;
817
+ }
809
818
 
810
819
  td.example p.MsoListParagraph {
811
820
  font-size: $normalfontsize;
@@ -11,7 +11,7 @@ module IsoDoc
11
11
  else
12
12
  YAML.load_file(File.join(File.dirname(__FILE__), "i18n-en.yaml"))
13
13
  end
14
- super.merge(y)
14
+ super.deep_merge(y)
15
15
  end
16
16
  end
17
17
  end