metanorma-iso 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/iso/html/wordstyle.css +20 -0
- data/lib/isodoc/iso/html/wordstyle.scss +20 -0
- data/lib/isodoc/iso/i18n-en.yaml +7 -2
- data/lib/isodoc/iso/i18n-fr.yaml +5 -2
- data/lib/isodoc/iso/i18n-ru.yaml +5 -2
- data/lib/isodoc/iso/i18n-zh-Hans.yaml +6 -2
- data/lib/isodoc/iso/init.rb +1 -2
- data/lib/isodoc/iso/iso.amendment.xsl +632 -317
- data/lib/isodoc/iso/iso.international-standard.xsl +632 -317
- data/lib/isodoc/iso/presentation_xml_convert.rb +58 -21
- data/lib/metanorma/iso/cleanup.rb +37 -10
- data/lib/metanorma/iso/processor.rb +14 -7
- data/lib/metanorma/iso/validate.rb +29 -1
- data/lib/metanorma/iso/validate_image.rb +3 -3
- data/lib/metanorma/iso/validate_list.rb +107 -0
- data/lib/metanorma/iso/validate_section.rb +39 -32
- data/lib/metanorma/iso/validate_style.rb +32 -2
- data/lib/metanorma/iso/validate_title.rb +13 -1
- data/lib/metanorma/iso/version.rb +1 -1
- data/spec/isodoc/inline_spec.rb +127 -10
- data/spec/isodoc/postproc_spec.rb +2 -4
- data/spec/isodoc/terms_spec.rb +4 -4
- data/spec/metanorma/base_spec.rb +1 -0
- data/spec/metanorma/cleanup_spec.rb +11 -11
- data/spec/metanorma/refs_spec.rb +332 -61
- data/spec/metanorma/section_spec.rb +15 -20
- data/spec/metanorma/validate_spec.rb +423 -13
- data/spec/spec_helper.rb +6 -4
- data/spec/vcr_cassettes/docrels.yml +393 -0
- data/spec/vcr_cassettes/withdrawn_iso.yml +301 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f140f4856789bed65a390730d55632ca2f620174d21120c83accc65d3e4510e7
|
4
|
+
data.tar.gz: 41cd96ea7bb74776030af95a192063c4236aad23ab01a2756fa1fb7cef11fd07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb2eea8e66a5fa1ae643ed51449c35e56468419920172b3fb4d34a0eaa017ab050828bfb0b00137aa25784a5def33d17be61aded658ae41191805c061ca80fab
|
7
|
+
data.tar.gz: 0b34c98d38635fe1b92d4ccbc9dc97f4fd6f385ac5b06b6c222ab3777d3baf8c047d80c9697dfbc8539dac039465896cc7ec7104105ba7aed46e403cdcff1829
|
@@ -1169,6 +1169,26 @@ p.Tablebody, li.Tablebody, div.Tablebody {
|
|
1169
1169
|
mso-fareast-font-family: "SimSun",serif;
|
1170
1170
|
mso-hansi-font-family: {{bodyfont}}; }
|
1171
1171
|
|
1172
|
+
p.TOCTitle, li.TOCTitle, div.TOCTitle {
|
1173
|
+
mso-style-name: "TOC Title";
|
1174
|
+
mso-style-unhide: no;
|
1175
|
+
margin-top: 0in;
|
1176
|
+
margin-right: 0in;
|
1177
|
+
margin-bottom: {{normalfontsize}};
|
1178
|
+
margin-left: 0in;
|
1179
|
+
text-align: left;
|
1180
|
+
page-break-after: avoid;
|
1181
|
+
mso-pagination: none;
|
1182
|
+
mso-hyphenate: none;
|
1183
|
+
mso-layout-grid-align: none;
|
1184
|
+
font-size: {{normalfontsize}};
|
1185
|
+
mso-bidi-font-size: 10.0pt;
|
1186
|
+
font-weight: bold;
|
1187
|
+
font-family: {{headerfont}};
|
1188
|
+
mso-fareast-font-family: {{headerfont}};
|
1189
|
+
mso-bidi-font-family: {{headerfont}};
|
1190
|
+
mso-fareast-language: EN-US; }
|
1191
|
+
|
1172
1192
|
/* Page Definitions */
|
1173
1193
|
@page {
|
1174
1194
|
mso-mirror-margins: yes;
|
@@ -1102,6 +1102,26 @@ p.Tablebody, li.Tablebody, div.Tablebody
|
|
1102
1102
|
mso-ascii-font-family:$bodyfont;
|
1103
1103
|
mso-fareast-font-family:"SimSun",serif;
|
1104
1104
|
mso-hansi-font-family:$bodyfont;}
|
1105
|
+
p.TOCTitle, li.TOCTitle, div.TOCTitle
|
1106
|
+
{mso-style-name:"TOC Title";
|
1107
|
+
mso-style-unhide:no;
|
1108
|
+
margin-top:0in;
|
1109
|
+
margin-right:0in;
|
1110
|
+
margin-bottom:$normalfontsize;
|
1111
|
+
margin-left:0in;
|
1112
|
+
text-align:left;
|
1113
|
+
page-break-after:avoid;
|
1114
|
+
mso-pagination:none;
|
1115
|
+
mso-hyphenate:none;
|
1116
|
+
mso-layout-grid-align:none;
|
1117
|
+
font-size:$normalfontsize;
|
1118
|
+
mso-bidi-font-size:10.0pt;
|
1119
|
+
font-weight:bold;
|
1120
|
+
font-family:$headerfont;
|
1121
|
+
mso-fareast-font-family:$headerfont;
|
1122
|
+
mso-bidi-font-family:$headerfont;
|
1123
|
+
mso-fareast-language:EN-US;}
|
1124
|
+
|
1105
1125
|
/* Page Definitions */
|
1106
1126
|
@page
|
1107
1127
|
{mso-mirror-margins:yes;
|
data/lib/isodoc/iso/i18n-en.yaml
CHANGED
@@ -4,14 +4,16 @@ term_def_boilerplate: |
|
|
4
4
|
|
5
5
|
<ul>
|
6
6
|
<li> <p>ISO Online browsing platform: available at
|
7
|
-
<link target="http://www.iso.org/obp"
|
7
|
+
<link target="http://www.iso.org/obp"/>.</p></li>
|
8
8
|
<li> <p>IEC Electropedia: available at
|
9
|
-
<link target="http://www.electropedia.org"
|
9
|
+
<link target="http://www.electropedia.org"/>.
|
10
10
|
</p> </li> </ul>
|
11
11
|
all_rights_reserved: All rights reserved
|
12
12
|
reference_number: Reference Number
|
13
13
|
price_based_on: Price based on % pages
|
14
14
|
under_preparation: Under preparation. (Stage at the time of publication %).
|
15
|
+
withdrawn: Withdrawn.
|
16
|
+
cancelled_and_replaced: Cancelled and replaced by %.
|
15
17
|
table_of_contents: Contents
|
16
18
|
date: Date
|
17
19
|
index: Index
|
@@ -19,6 +21,9 @@ see: see
|
|
19
21
|
see_also: see also
|
20
22
|
secretariat: Secretariat
|
21
23
|
edition: edition
|
24
|
+
termsrelated: Terms related to
|
25
|
+
multiple_and: "%1 and %2"
|
26
|
+
multiple_or: "%1 or %2"
|
22
27
|
doctype_dict:
|
23
28
|
international-standard: International Standard
|
24
29
|
technical-specification: Technical Specification
|
data/lib/isodoc/iso/i18n-fr.yaml
CHANGED
@@ -4,20 +4,23 @@ term_def_boilerplate: |
|
|
4
4
|
suivantes:</p>
|
5
5
|
<ul>
|
6
6
|
<li> <p>ISO Online browsing platform: disponible à l'adresse
|
7
|
-
<link target="http://www.iso.org/obp"
|
7
|
+
<link target="http://www.iso.org/obp"/>.</p></li>
|
8
8
|
<li> <p>IEC Electropedia: disponible à l'adresse
|
9
|
-
<link target="http://www.electropedia.org"
|
9
|
+
<link target="http://www.electropedia.org"/>.
|
10
10
|
</p> </li> </ul>
|
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
14
|
under_preparation: En cours d'élaboration. (Stade au moment de la publication %).
|
15
|
+
withdrawn: Retiré.
|
16
|
+
cancelled_and_replaced: Annulé et remplacé par %.
|
15
17
|
date: Date
|
16
18
|
index: Index
|
17
19
|
see: voir
|
18
20
|
see_also: voir aussi
|
19
21
|
secretariat: Secrétariat
|
20
22
|
edition: édition
|
23
|
+
termsrelated: Termes liés
|
21
24
|
doctype_dict:
|
22
25
|
international-standard: Norme internationale
|
23
26
|
technical-specification: Spécification technique
|
data/lib/isodoc/iso/i18n-ru.yaml
CHANGED
@@ -3,14 +3,16 @@ term_def_boilerplate: |
|
|
3
3
|
|
4
4
|
<ul>
|
5
5
|
<li> <p>ИСО, Интернет-онлайн-платформа: доступна на
|
6
|
-
<link target="http://www.iso.org/obp"
|
6
|
+
<link target="http://www.iso.org/obp"/>.</p></li>
|
7
7
|
<li> <p>МЭК Electropedia: доступна на
|
8
|
-
<link target="http://www.electropedia.org"
|
8
|
+
<link target="http://www.electropedia.org"/>.
|
9
9
|
</p> </li> </ul>
|
10
10
|
all_rights_reserved: Все права защищены
|
11
11
|
reference_number: Ссылочный номер
|
12
12
|
price_based_on: Цена рассчитана на % стр.
|
13
13
|
under_preparation: В стадии подготовки. (Стадия на момент публикации %).
|
14
|
+
withdrawn: Отозван.
|
15
|
+
cancelled_and_replaced: Отменено и заменено на %.
|
14
16
|
table_of_contents: Содержание
|
15
17
|
date: Дата
|
16
18
|
index: Алфавитный указатель
|
@@ -19,6 +21,7 @@ see_also: см. также
|
|
19
21
|
secretariat: Секретариат
|
20
22
|
scope: Область применения
|
21
23
|
edition: издание
|
24
|
+
termsrelated: Термины, связанные
|
22
25
|
doctype_dict:
|
23
26
|
international-standard: Международный Стандарт
|
24
27
|
technical-specification: Техническая Спецификация
|
@@ -2,19 +2,23 @@ term_def_boilerplate: |
|
|
2
2
|
<p>ISO和IEC用于标准化的术语数据库地址如下:</p>
|
3
3
|
<ul>
|
4
4
|
<li> <p>ISO在线浏览平台:
|
5
|
-
位于<link target="http://www.iso.org/obp"
|
5
|
+
位于<link target="http://www.iso.org/obp"/>。</p></li>
|
6
6
|
<li> <p>IEC Electropedia:
|
7
|
-
位于<link target="http://www.electropedia.org"
|
7
|
+
位于<link target="http://www.electropedia.org"/>。
|
8
8
|
</p> </li> </ul>
|
9
9
|
all_rights_reserved: 版权所有
|
10
10
|
reference_number: 参考编号
|
11
11
|
price_based_on: 价格基于%页
|
12
12
|
under_preparation: 制定中(出版时最新状态为%)
|
13
|
+
withdrawn: 撤回 .
|
14
|
+
cancelled_and_replaced: 已取消并由%取代。
|
13
15
|
date: 日期
|
14
16
|
index: 索引
|
15
17
|
see: 见
|
16
18
|
see_also: 另见
|
17
19
|
secretariat: 秘书处
|
20
|
+
edition: 版
|
21
|
+
termsrelated: 相关术语
|
18
22
|
doctype_dict:
|
19
23
|
international-standard: 国际标准
|
20
24
|
technical-specification: 技术规格
|
data/lib/isodoc/iso/init.rb
CHANGED
@@ -10,7 +10,7 @@ module IsoDoc
|
|
10
10
|
@meta = Metadata.new(lang, script, i18n)
|
11
11
|
end
|
12
12
|
|
13
|
-
def xref_init(lang, script,
|
13
|
+
def xref_init(lang, script, _klass, i18n, options)
|
14
14
|
html = HtmlConvert.new(language: lang, script: script)
|
15
15
|
@xrefs = Xref.new(lang, script, html, i18n, options)
|
16
16
|
end
|
@@ -30,4 +30,3 @@ module IsoDoc
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
33
|
-
|