metanorma-iso 2.4.7 → 2.5.0

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: 2442e19642be700d61abb7ebcf13f9f4769104b50ed5cdf3ed311e04774cefe7
4
- data.tar.gz: 33bce8cd62b0612e30a6379a874b3900adc665e64efde522b7abc4eb6d0a6193
3
+ metadata.gz: b68e0ac152a02770b1ca677908a34d243a66ba8da955a98aac66391a6e1a73ae
4
+ data.tar.gz: 4122f534ef647b210a829dc1645240b79bc240a0059dec141ca3eec0f1c64efc
5
5
  SHA512:
6
- metadata.gz: 30376e197fc7d1d0b216e5fdc3d3034736362d271c67f9a21b52de1358bf63e641f8ecc3c7811e0ea3cc4398d7c7dc36928c6be34a03e82d8d3c78a05006730b
7
- data.tar.gz: 0171fc4f212e7413c0218e58d42fa08b9a6352bf3e927540aea7273d9069d3ea49e79aff37d5f079ced4e93a169fdd909ee0c307d619c6cd2818a22fbc5ac06e
6
+ metadata.gz: bb2d619b3e439f33ac96fd63691a288730daed7aa3ed8d478898caca5f755d3aea436469499afd81aa318519be87f5f12e5d8b632d17f40cff1b67e2c20851ad
7
+ data.tar.gz: 2e37056accf0f22aa7a13702ff79c928c359c0188126a10e165e8c448a9a7f110acf743b29fed45b5b972c54d77f7a8a7610a6da889f8ef9ca43d3b77bbfa501
@@ -130,22 +130,13 @@ module IsoDoc
130
130
  end
131
131
  end
132
132
 
133
- def middle(isoxml, out)
134
- middle_title(isoxml, out)
135
- middle_admonitions(isoxml, out)
136
- i = scope isoxml, out, 0
137
- i = norm_ref isoxml, out, i
138
- clause_etc isoxml, out, i
139
- annex isoxml, out
140
- bibliography isoxml, out
141
- end
142
-
143
- def clause_etc(isoxml, out, num)
144
- isoxml.xpath(ns("//sections/clause[not(@type = 'scope')] | " \
145
- "//sections/terms | //sections/definitions"))
146
- .each do |f|
147
- clause_etc1(f, out, num)
148
- end
133
+ def top_element_render(elem, out)
134
+ if %w(clause terms definitions).include?(elem.name) &&
135
+ elem.parent.name == "sections" &&
136
+ elem["type"] != "scope"
137
+ clause_etc1(elem, out, 0)
138
+ else super
139
+ end
149
140
  end
150
141
 
151
142
  def clause_etc1(clause, out, num)
@@ -161,12 +152,6 @@ module IsoDoc
161
152
  end
162
153
  end
163
154
 
164
- def indexsect(isoxml, out)
165
- isoxml.xpath(ns("//indexsect")).each do |i|
166
- clause_parse(i, out)
167
- end
168
- end
169
-
170
155
  def ol_attrs(node)
171
156
  super.merge(start: node["start"]).compact
172
157
  end
@@ -97,7 +97,7 @@ h1, h2, h3, h4, h5, h6 {
97
97
 
98
98
  blockquote, q {
99
99
  quotes: none; }
100
- blockquote:before, blockquote:after, q:before, q:after {
100
+ blockquote::before, blockquote::after, q::before, q::after {
101
101
  content: '';
102
102
  content: none; }
103
103
 
@@ -120,14 +120,18 @@ b, strong {
120
120
  div.document-stage-band, div.document-type-band {
121
121
  background-color: #333333; }
122
122
 
123
- a.FootnoteRef + a.FootnoteRef:before {
123
+ a.FootnoteRef + a.FootnoteRef::before {
124
124
  content: ", ";
125
125
  vertical-align: super; }
126
126
 
127
- a.TableFootnoteRef + a.TableFootnoteRef:before {
127
+ a.TableFootnoteRef + a.TableFootnoteRef::before {
128
128
  content: ", ";
129
129
  vertical-align: super; }
130
130
 
131
+ a.TableFootnoteRef, span.TableFootnoteRef,
132
+ a.FootnoteRef, span.FootnoteRef {
133
+ vertical-align: super; }
134
+
131
135
  .addition {
132
136
  color: blue; }
133
137
 
@@ -297,10 +301,10 @@ blockquote,
297
301
  q {
298
302
  quotes: none; }
299
303
 
300
- blockquote:before,
301
- blockquote:after,
302
- q:before,
303
- q:after {
304
+ blockquote::before,
305
+ blockquote::after,
306
+ q::before,
307
+ q::after {
304
308
  content: '';
305
309
  content: none; }
306
310
 
@@ -454,7 +458,7 @@ h2 p, .h2 p {
454
458
  ul > li {
455
459
  list-style: none; }
456
460
 
457
- ul > li > p:first-child:before {
461
+ ul > li > p:first-child::before {
458
462
  content: "\2014";
459
463
  display: inline-block;
460
464
  width: 1em;
@@ -466,7 +470,7 @@ li p {
466
470
  margin-bottom: 0.6em;
467
471
  line-height: 1.2; }
468
472
 
469
- #toc li:before {
473
+ #toc li::before {
470
474
  content: " ";
471
475
  display: none; }
472
476
 
@@ -517,7 +521,7 @@ p.Terms {
517
521
  #toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
518
522
  padding: 0 1.5em;
519
523
  overflow: visible; } }
520
- #toc li:before, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:before {
524
+ #toc li::before, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li::before {
521
525
  content: " ";
522
526
  display: none; }
523
527
 
@@ -1026,7 +1030,7 @@ ol.footnotes-list p,
1026
1030
  aside.footnote {
1027
1031
  display: inline; }
1028
1032
 
1029
- ol > li > p:before {
1033
+ ol > li > p::before {
1030
1034
  content: "";
1031
1035
  display: none; }
1032
1036
 
@@ -38,10 +38,10 @@ q {
38
38
  quotes: none;
39
39
  }
40
40
 
41
- blockquote:before,
42
- blockquote:after,
43
- q:before,
44
- q:after {
41
+ blockquote::before,
42
+ blockquote::after,
43
+ q::before,
44
+ q::after {
45
45
  content: '';
46
46
  content: none;
47
47
  }
@@ -232,7 +232,7 @@ ul>li {
232
232
  list-style: none;
233
233
  }
234
234
 
235
- ul>li>p:first-child:before {
235
+ ul>li>p:first-child::before {
236
236
  content: "\2014";
237
237
  display: inline-block;
238
238
  width: 1em;
@@ -246,7 +246,7 @@ li p {
246
246
  line-height: 1.2;
247
247
  }
248
248
 
249
- #toc li:before {
249
+ #toc li::before {
250
250
  content: " ";
251
251
  display: none;
252
252
  }
@@ -271,7 +271,7 @@ p.Terms {
271
271
  // box-shadow: inset -5px 0px 10px -5px #1d1d1d !important;
272
272
  // }
273
273
 
274
- li:before {
274
+ li::before {
275
275
  content: " ";
276
276
  display: none;
277
277
  }
@@ -694,7 +694,7 @@ aside.footnote {
694
694
  display: inline;
695
695
  }
696
696
 
697
- ol>li>p:before {
697
+ ol>li>p::before {
698
698
  content: "";
699
699
  display: none;
700
700
  }
@@ -97,7 +97,7 @@ h1, h2, h3, h4, h5, h6 {
97
97
 
98
98
  blockquote, q {
99
99
  quotes: none; }
100
- blockquote:before, blockquote:after, q:before, q:after {
100
+ blockquote::before, blockquote::after, q::before, q::after {
101
101
  content: '';
102
102
  content: none; }
103
103
 
@@ -120,14 +120,18 @@ b, strong {
120
120
  div.document-stage-band, div.document-type-band {
121
121
  background-color: #333333; }
122
122
 
123
- a.FootnoteRef + a.FootnoteRef:before {
123
+ a.FootnoteRef + a.FootnoteRef::before {
124
124
  content: ", ";
125
125
  vertical-align: super; }
126
126
 
127
- a.TableFootnoteRef + a.TableFootnoteRef:before {
127
+ a.TableFootnoteRef + a.TableFootnoteRef::before {
128
128
  content: ", ";
129
129
  vertical-align: super; }
130
130
 
131
+ a.TableFootnoteRef, span.TableFootnoteRef,
132
+ a.FootnoteRef, span.FootnoteRef {
133
+ vertical-align: super; }
134
+
131
135
  .addition {
132
136
  color: blue; }
133
137
 
@@ -291,8 +295,8 @@ body {
291
295
  blockquote, q {
292
296
  quotes: none; }
293
297
 
294
- blockquote:before, blockquote:after,
295
- q:before, q:after {
298
+ blockquote::before, blockquote::after,
299
+ q::before, q::after {
296
300
  content: '';
297
301
  content: none; }
298
302
 
@@ -406,7 +410,7 @@ h2 p, .h2 p {
406
410
  ul > li {
407
411
  list-style: none; }
408
412
 
409
- ul > li > p:first-child:before {
413
+ ul > li > p:first-child::before {
410
414
  content: "\2014";
411
415
  display: inline-block;
412
416
  width: 1em;
@@ -469,7 +473,7 @@ p.Terms {
469
473
  #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
470
474
  box-shadow: 0px 1px 0px 0px black !important;
471
475
  background: none; }
472
- #toc li:before, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:before {
476
+ #toc li::before, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li::before {
473
477
  content: " ";
474
478
  display: none; }
475
479
 
@@ -789,57 +793,57 @@ ol > li {
789
793
  list-style: none;
790
794
  position: relative; }
791
795
 
792
- ol > li:before {
796
+ ol > li::before {
793
797
  position: absolute;
794
798
  left: -1.4em; }
795
799
 
796
- ol[class="roman"] > li:before {
800
+ ol[class="roman"] > li::before {
797
801
  left: -2.0em; }
798
802
 
799
- ol[class="roman_upper"] > li:before {
803
+ ol[class="roman_upper"] > li::before {
800
804
  left: -2.3em; }
801
805
 
802
- ol[class="alphabet"] > li:before {
806
+ ol[class="alphabet"] > li::before {
803
807
  counter-increment: alphabet;
804
808
  content: counter(alphabet, lower-alpha) ") "; }
805
809
 
806
- ol[class="arabic"] > li:before {
810
+ ol[class="arabic"] > li::before {
807
811
  counter-increment: arabic;
808
812
  content: counter(arabic, decimal) ") "; }
809
813
 
810
- ol[class="roman"] > li:before {
814
+ ol[class="roman"] > li::before {
811
815
  counter-increment: roman;
812
816
  content: counter(roman, lower-roman) ") "; }
813
817
 
814
- ol[class="alphabet_upper"] > li:before {
818
+ ol[class="alphabet_upper"] > li::before {
815
819
  counter-increment: alphabet_upper;
816
820
  content: counter(alphabet_upper, upper-alpha) ") "; }
817
821
 
818
- ol[class="roman_upper"] > li:before {
822
+ ol[class="roman_upper"] > li::before {
819
823
  counter-increment: roman_upper;
820
824
  content: counter(roman_upper, upper-roman) ") "; }
821
825
 
822
- ol > li:before {
826
+ ol > li::before {
823
827
  counter-increment: alphabet;
824
828
  content: counter(alphabet, lower-alpha) ") "; }
825
829
 
826
- ol[class="alphabet"] ol[class="alphabet"] > li:before {
830
+ ol[class="alphabet"] ol[class="alphabet"] > li::before {
827
831
  counter-increment: alphabet2;
828
832
  content: counter(alphabet2, lower-alpha) ") "; }
829
833
 
830
- ol[class="arabic"] ol[class="arabic"] > li:before {
834
+ ol[class="arabic"] ol[class="arabic"] > li::before {
831
835
  counter-increment: arabic2;
832
836
  content: counter(arabic2, decimal) ") "; }
833
837
 
834
- ol[class="roman"] ol[class="roman"] > li:before {
838
+ ol[class="roman"] ol[class="roman"] > li::before {
835
839
  counter-increment: roman2;
836
840
  content: counter(roman2, lower-roman) ") "; }
837
841
 
838
- ol[class="alphabet_upper"] ol[class="alphabet_upper"] > li:before {
842
+ ol[class="alphabet_upper"] ol[class="alphabet_upper"] > li::before {
839
843
  counter-increment: alphabet_upper2;
840
844
  content: counter(alphabet_upper2, upper-alpha) ") "; }
841
845
 
842
- ol[class="roman_upper"] ol[class="roman_upper"] > li:before {
846
+ ol[class="roman_upper"] ol[class="roman_upper"] > li::before {
843
847
  counter-increment: roman_upper2;
844
848
  content: counter(roman_upper2, upper-roman) ") "; }
845
849
 
@@ -1063,7 +1067,7 @@ ol.footnotes-list:first-child {
1063
1067
  ol.footnotes-list p, aside.footnote p {
1064
1068
  display: inline; }
1065
1069
 
1066
- ol > li > p:before {
1070
+ ol > li > p::before {
1067
1071
  content: "";
1068
1072
  display: none; }
1069
1073
 
@@ -27,8 +27,8 @@ body {
27
27
  blockquote, q {
28
28
  quotes: none;
29
29
  }
30
- blockquote:before, blockquote:after,
31
- q:before, q:after {
30
+ blockquote::before, blockquote::after,
31
+ q::before, q::after {
32
32
  content: '';
33
33
  content: none;
34
34
  }
@@ -177,7 +177,7 @@ ul > li {
177
177
  list-style: none;
178
178
  }
179
179
 
180
- ul > li > p:first-child:before {
180
+ ul > li > p:first-child::before {
181
181
  content: "\2014";
182
182
  display: inline-block;
183
183
  width: 1em;
@@ -210,7 +210,7 @@ p.Terms {
210
210
  background: none;
211
211
  }
212
212
 
213
- li:before {
213
+ li::before {
214
214
  content: " ";
215
215
  display: none;
216
216
  }
@@ -458,57 +458,57 @@ ol > li {
458
458
  list-style: none;
459
459
  position: relative;
460
460
  }
461
- ol > li:before {
461
+ ol > li::before {
462
462
  position: absolute;
463
463
  left: -1.4em;
464
464
  }
465
- ol[class="roman"] > li:before {
465
+ ol[class="roman"] > li::before {
466
466
  left: -2.0em;
467
467
  }
468
- ol[class="roman_upper"] > li:before {
468
+ ol[class="roman_upper"] > li::before {
469
469
  left: -2.3em;
470
470
  }
471
- ol[class="alphabet"] > li:before {
471
+ ol[class="alphabet"] > li::before {
472
472
  counter-increment: alphabet;
473
473
  content: counter(alphabet, lower-alpha)") "
474
474
  }
475
- ol[class="arabic"] > li:before {
475
+ ol[class="arabic"] > li::before {
476
476
  counter-increment: arabic;
477
477
  content: counter(arabic, decimal)") "
478
478
  }
479
- ol[class="roman"] > li:before {
479
+ ol[class="roman"] > li::before {
480
480
  counter-increment: roman;
481
481
  content: counter(roman, lower-roman)") "
482
482
  }
483
- ol[class="alphabet_upper"] > li:before {
483
+ ol[class="alphabet_upper"] > li::before {
484
484
  counter-increment: alphabet_upper;
485
485
  content: counter(alphabet_upper, upper-alpha)") "
486
486
  }
487
- ol[class="roman_upper"] > li:before {
487
+ ol[class="roman_upper"] > li::before {
488
488
  counter-increment: roman_upper;
489
489
  content: counter(roman_upper, upper-roman)") "
490
490
  }
491
- ol > li:before {
491
+ ol > li::before {
492
492
  counter-increment: alphabet;
493
493
  content: counter(alphabet, lower-alpha)") "
494
494
  }
495
- ol[class="alphabet"] ol[class="alphabet"] > li:before {
495
+ ol[class="alphabet"] ol[class="alphabet"] > li::before {
496
496
  counter-increment: alphabet2;
497
497
  content: counter(alphabet2, lower-alpha)") "
498
498
  }
499
- ol[class="arabic"] ol[class="arabic"] > li:before {
499
+ ol[class="arabic"] ol[class="arabic"] > li::before {
500
500
  counter-increment: arabic2;
501
501
  content: counter(arabic2, decimal)") "
502
502
  }
503
- ol[class="roman"] ol[class="roman"] > li:before {
503
+ ol[class="roman"] ol[class="roman"] > li::before {
504
504
  counter-increment: roman2;
505
505
  content: counter(roman2, lower-roman)") "
506
506
  }
507
- ol[class="alphabet_upper"] ol[class="alphabet_upper"] > li:before {
507
+ ol[class="alphabet_upper"] ol[class="alphabet_upper"] > li::before {
508
508
  counter-increment: alphabet_upper2;
509
509
  content: counter(alphabet_upper2, upper-alpha)") "
510
510
  }
511
- ol[class="roman_upper"] ol[class="roman_upper"] > li:before {
511
+ ol[class="roman_upper"] ol[class="roman_upper"] > li::before {
512
512
  counter-increment: roman_upper2;
513
513
  content: counter(roman_upper2, upper-roman)") "
514
514
  }
@@ -723,7 +723,7 @@ ol.footnotes-list p, aside.footnote p {
723
723
  display: inline;
724
724
  }
725
725
 
726
- ol > li > p:before {
726
+ ol > li > p::before {
727
727
  content: "";
728
728
  display: none;
729
729
  }
@@ -81,18 +81,6 @@ module IsoDoc
81
81
  docxml
82
82
  end
83
83
 
84
- def middle(isoxml, out)
85
- middle_title(isoxml, out)
86
- middle_admonitions(isoxml, out)
87
- scope isoxml, out, 0
88
- norm_ref isoxml, out, 0
89
- clause_etc isoxml, out, 0
90
- annex isoxml, out
91
- bibliography isoxml, out
92
- indexsect isoxml, out
93
- end
94
-
95
-
96
84
  def html_toc1(ulist)
97
85
  u2 = nil
98
86
  ulist.xpath("./li").each do |l|
@@ -11,6 +11,7 @@ term_def_boilerplate: |
11
11
  all_rights_reserved: All rights reserved
12
12
  reference_number: Reference number
13
13
  price_based_on: Price based on % pages
14
+ descriptor: Descriptor
14
15
  under_preparation: Under preparation. (Stage at the time of publication %).
15
16
  withdrawn: Withdrawn.
16
17
  cancelled_and_replaced: Cancelled and replaced by %.
@@ -23,6 +24,8 @@ secretariat: Secretariat
23
24
  edition: edition
24
25
  termsrelated: Terms related to
25
26
  availablefrom: Available from
27
+ voting_begins_on: Voting begins on
28
+ voting_terminates_on: Voting terminates on
26
29
  multiple_and: "%1 and %2"
27
30
  multiple_or: "%1 or %2"
28
31
  doctype_dict:
@@ -85,3 +88,6 @@ inflection:
85
88
  Statement:
86
89
  sg: Statement
87
90
  pl: Statements
91
+ Descriptor:
92
+ sg: Descriptor
93
+ pl: Descriptors
@@ -11,6 +11,7 @@ term_def_boilerplate: |
11
11
  all_rights_reserved: Tous droits réservés
12
12
  reference_number: Numéro de référence
13
13
  price_based_on: Prix basé sur % pages
14
+ descriptor: Descripteur
14
15
  under_preparation: En cours d'élaboration. (Stade au moment de la publication %).
15
16
  withdrawn: Retiré.
16
17
  cancelled_and_replaced: Annulé et remplacé par %.
@@ -22,6 +23,8 @@ secretariat: Secrétariat
22
23
  edition: édition
23
24
  termsrelated: Termes liés
24
25
  availablefrom: Disponible sur
26
+ voting_begins_on: Le vote commence le
27
+ voting_terminates_on: Le vote se termine le
25
28
  doctype_dict:
26
29
  international-standard: Norme internationale
27
30
  technical-specification: Spécification technique
@@ -79,3 +82,6 @@ inflection:
79
82
  Déclaration:
80
83
  sg: Déclaration
81
84
  pl: Déclarations
85
+ Descripteur:
86
+ sg: Descripteur
87
+ pl: Descripteurs
@@ -1,3 +1,4 @@
1
+ descriptor: 記述子
1
2
  stage_dict:
2
3
  "00": Preliminary work item
3
4
  "10": New work item proposal
@@ -9,6 +9,7 @@ term_def_boilerplate: |
9
9
  </p> </li> </ul>
10
10
  all_rights_reserved: Все права защищены
11
11
  reference_number: Ссылочный номер
12
+ descriptor: Дескриптор
12
13
  price_based_on: Цена рассчитана на % стр.
13
14
  under_preparation: В стадии подготовки. (Стадия на момент публикации %).
14
15
  withdrawn: Отозван.
@@ -23,6 +24,8 @@ scope: Область применения
23
24
  edition: издание
24
25
  termsrelated: Термины, связанные
25
26
  availablefrom: Доступна с
27
+ voting_begins_on: Голосование начинается в
28
+ voting_terminates_on: Голосование заканчивается в
26
29
  doctype_dict:
27
30
  international-standard: Международный Стандарт
28
31
  technical-specification: Техническая Спецификация
@@ -83,3 +86,6 @@ inflection:
83
86
  Утверждение:
84
87
  sg: Утверждение
85
88
  pl: Утверждения
89
+ Дескриптор:
90
+ sg: Дескриптор
91
+ pl: Дескрипторы
@@ -9,6 +9,7 @@ term_def_boilerplate: |
9
9
  all_rights_reserved: 版权所有
10
10
  reference_number: 参考编号
11
11
  price_based_on: 价格基于%页
12
+ descriptor: 描述符
12
13
  under_preparation: 制定中(出版时最新状态为%)
13
14
  withdrawn: 撤回 .
14
15
  cancelled_and_replaced: 已取消并由%取代。
@@ -20,6 +21,8 @@ secretariat: 秘书处
20
21
  edition: 版
21
22
  termsrelated: 相关术语
22
23
  availablefrom: 可从
24
+ voting_begins_on: 投票开始于
25
+ voting_terminates_on: 投票终止于
23
26
  doctype_dict:
24
27
  international-standard: 国际标准
25
28
  technical-specification: 技术规格