metanorma-iso 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/isodoc/iso/html/html_iso_titlepage.html +1 -1
- data/lib/isodoc/iso/html/word_iso_titlepage.html +1 -1
- data/lib/isodoc/iso/i18n-en.yaml +22 -0
- data/lib/isodoc/iso/i18n-fr.yaml +22 -1
- data/lib/isodoc/iso/i18n-ru.yaml +42 -0
- data/lib/isodoc/iso/i18n-zh-Hans.yaml +21 -1
- data/lib/isodoc/iso/i18n.rb +1 -0
- data/lib/isodoc/iso/iso.amendment.xsl +510 -297
- data/lib/isodoc/iso/iso.international-standard.xsl +510 -297
- data/lib/isodoc/iso/metadata.rb +12 -2
- data/lib/metanorma/iso/boilerplate-fr.xml +3 -3
- data/lib/metanorma/iso/boilerplate-ru.xml +39 -0
- data/lib/metanorma/iso/boilerplate.xml +3 -3
- data/lib/metanorma/iso/cleanup.rb +5 -1
- data/lib/metanorma/iso/front.rb +1 -1
- data/lib/metanorma/iso/front_id.rb +1 -0
- data/lib/metanorma/iso/isodoc.rng +73 -3
- data/lib/metanorma/iso/validate.rb +1 -1
- data/lib/metanorma/iso/version.rb +1 -1
- data/spec/isodoc/amd_spec.rb +10 -5
- data/spec/isodoc/i18n_spec.rb +350 -9
- data/spec/isodoc/metadata_spec.rb +153 -3
- data/spec/isodoc/postproc_spec.rb +1 -0
- data/spec/isodoc/section_spec.rb +1 -0
- data/spec/metanorma/base_spec.rb +434 -326
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f550f6f6de1d0b367b35a21f5857f5616d8ab01e392c348988f8432bda72f050
|
4
|
+
data.tar.gz: a0b04ee7c488547e054bbcfe76847d90bc4cbdb711e8143730034f9e4cec4ef5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cc09a796e8fb7da929c6bd8ec30ae82394ddc697f0b512f37f117b6d91bda68b25fc8c773587c6d834ce82486607a990e799e6b77aa23ee536f3b4ae085475c
|
7
|
+
data.tar.gz: a912d817e08a2b77d574076bd94ecfe127ce26274e92791e72d943aa87c410c60760d886bcb5de257c599e947b674c230be779094821ea7f997fdcd9ed23e99b
|
data/Gemfile
CHANGED
@@ -4,7 +4,7 @@ Encoding.default_internal = Encoding::UTF_8
|
|
4
4
|
source "https://rubygems.org"
|
5
5
|
git_source(:github) { |repo| "https://github.com/#{repo}" }
|
6
6
|
|
7
|
-
gem "relaton", git: "https://github.com/relaton/relaton"
|
7
|
+
#gem "relaton", git: "https://github.com/relaton/relaton"
|
8
8
|
|
9
9
|
gemspec
|
10
10
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<p class="coverpage_techcommittee">{{ agency }}/{{ editorialgroup | join: "/" }}</p>
|
19
19
|
|
20
20
|
<p class="coverpage_techcommittee"><a
|
21
|
-
name="CVP_Secretariat_Loca">
|
21
|
+
name="CVP_Secretariat_Loca">{{ labels["secretariat"] }}</a>: {{ secretariat }}</p>
|
22
22
|
|
23
23
|
<div class="doctitle-en"><div><span class="title">{{ doctitleintro }}{% if doctitleintro and doctitlemain %} — {% endif %}</span><span class="subtitle">{{ doctitlemain }}{% if doctitlemain and doctitlepart %} —{% endif %}</span>
|
24
24
|
{% if doctitlepart %}
|
@@ -29,7 +29,7 @@ style='mso-bidi-font-weight:normal'><span lang="EN-GB" style='font-size:14.0pt'>
|
|
29
29
|
<p class="MsoNormal" align="right" style='text-align:right'><span lang="EN-GB"
|
30
30
|
style='mso-no-proof:yes'>{{ agency }}/{{ editorialgroup | join: "/" }}</span></p>
|
31
31
|
|
32
|
-
<p class="MsoNormal" align="right" style='margin-bottom:100.0pt;text-align:right'><span lang="EN-GB">
|
32
|
+
<p class="MsoNormal" align="right" style='margin-bottom:100.0pt;text-align:right'><span lang="EN-GB">{{ labels["secretariat"] }}: <span style='mso-no-proof:yes'>{{ secretariat }}</span></span></p>
|
33
33
|
|
34
34
|
<p class="MsoNormal" align="left" style='text-align:left;line-height:18.0pt;margin-bottom:0.0pt;font-size:16.0pt'>
|
35
35
|
<span class="title"><b>{{ doctitleintro }}{% if doctitleintro and doctitlemain %} — {% endif %}</b></span><b><span class="subtitle">{{ doctitlemain }}{% if doctitlemain and doctitlepart %} —{% endif %}</b></span>
|
data/lib/isodoc/iso/i18n-en.yaml
CHANGED
@@ -17,4 +17,26 @@ date: Date
|
|
17
17
|
index: Index
|
18
18
|
see: see
|
19
19
|
see_also: see also
|
20
|
+
secretariat: Secretariat
|
21
|
+
edition: edition
|
22
|
+
doctype_dict:
|
23
|
+
international-standard: International Standard
|
24
|
+
technical-specification: Technical Specification
|
25
|
+
technical-report: Technical Report
|
26
|
+
publicly-available-specification: Publicly Available Specification
|
27
|
+
international-workshop-agreement: International Workshop Agreement
|
28
|
+
guide: Guide
|
29
|
+
amendment: Amendment
|
30
|
+
technical-corrigendum: Technical Corrigendum
|
31
|
+
directive: Directive
|
32
|
+
stage_dict:
|
33
|
+
"00": Preliminary work item
|
34
|
+
"10": New work item proposal
|
35
|
+
"20": Working draft
|
36
|
+
"30": Committee draft
|
37
|
+
"40": Draft
|
38
|
+
"50": Final draft
|
39
|
+
"60": International standard
|
40
|
+
"90": Review
|
41
|
+
"95": Withdrawal
|
20
42
|
|
data/lib/isodoc/iso/i18n-fr.yaml
CHANGED
@@ -16,4 +16,25 @@ date: Date
|
|
16
16
|
index: Index
|
17
17
|
see: voir
|
18
18
|
see_also: voir aussi
|
19
|
-
|
19
|
+
secretariat: Secrétariat
|
20
|
+
edition: édition
|
21
|
+
doctype_dict:
|
22
|
+
international-standard: Norme internationale
|
23
|
+
technical-specification: Spécification technique
|
24
|
+
technical-report: Rapport technique
|
25
|
+
publicly-available-specification: Spécification disponible publiquement
|
26
|
+
international-workshop-agreement: Accord internationale d’atelier
|
27
|
+
guide: Guide
|
28
|
+
amendment: Amendement
|
29
|
+
technical-corrigendum: Rectificatif technique
|
30
|
+
directive: Directive
|
31
|
+
stage_dict:
|
32
|
+
"00": Élément de travail préliminaire
|
33
|
+
"10": Nouvelle proposition d'élément de travail
|
34
|
+
"20": Brouillon de travail
|
35
|
+
"30": Projet de comité
|
36
|
+
"40": Brouillon
|
37
|
+
"50": Version finale
|
38
|
+
"60": Norme internationale
|
39
|
+
"90": Révision
|
40
|
+
"95": Retrait
|
@@ -0,0 +1,42 @@
|
|
1
|
+
term_def_boilerplate: |
|
2
|
+
<p>ИСО и МЭК поддерживают терминологические базы данных для использования в стандартизации по следующим адресам:</p>
|
3
|
+
|
4
|
+
<ul>
|
5
|
+
<li> <p>ИСО, Интернет-онлайн-платформа: доступна на
|
6
|
+
<link target="http://www.iso.org/obp"/></p> </li>
|
7
|
+
<li> <p>МЭК Electropedia: доступна на
|
8
|
+
<link target="http://www.electropedia.org"/>
|
9
|
+
</p> </li> </ul>
|
10
|
+
all_rights_reserved: Все права защищены
|
11
|
+
reference_number: Ссылочный номер
|
12
|
+
price_based_on: Цена рассчитана на % стр.
|
13
|
+
under_preparation: В стадии подготовки. (Стадия на момент публикации %).
|
14
|
+
table_of_contents: Содержание
|
15
|
+
date: Дата
|
16
|
+
index: Алфавитный указатель
|
17
|
+
see: см.
|
18
|
+
see_also: см. также
|
19
|
+
secretariat: Секретариат
|
20
|
+
scope: Область применения
|
21
|
+
edition: издание
|
22
|
+
doctype_dict:
|
23
|
+
international-standard: Международный Стандарт
|
24
|
+
technical-specification: Техническая Спецификация
|
25
|
+
technical-report: Технический Отчет
|
26
|
+
publicly-available-specification: Общедоступная Спецификация
|
27
|
+
international-workshop-agreement: Соглашение Международного Семинара
|
28
|
+
guide: Руководство
|
29
|
+
amendment: Поправка
|
30
|
+
technical-corrigendum: Техническое Исправление
|
31
|
+
directive: Директива
|
32
|
+
stage_dict:
|
33
|
+
"00": Предварительный рабочий элемент
|
34
|
+
"10": Предложение нового рабочего элемента
|
35
|
+
"20": Рабочий проект
|
36
|
+
"30": Проект комитета
|
37
|
+
"40": Проект Международного стандарта
|
38
|
+
"50": Окончательный проект Международного стандарта
|
39
|
+
"60": Международный стандарт
|
40
|
+
"90": Пересмотр
|
41
|
+
"95": Отмена
|
42
|
+
|
@@ -14,4 +14,24 @@ date: 日期
|
|
14
14
|
index: 索引
|
15
15
|
see: 见
|
16
16
|
see_also: 另见
|
17
|
-
|
17
|
+
secretariat: 秘书处
|
18
|
+
doctype_dict:
|
19
|
+
international-standard: 国际标准
|
20
|
+
technical-specification: 技术规格
|
21
|
+
technical-report: 技术报告
|
22
|
+
publicly-available-specification: 公开可用的规范
|
23
|
+
international-workshop-agreement: 国际研讨会协议
|
24
|
+
guide: 指南
|
25
|
+
amendment: 修正
|
26
|
+
technical-corrigendum: 技术勘误
|
27
|
+
directive: 指令
|
28
|
+
stage_dict:
|
29
|
+
"00": 初步工作项
|
30
|
+
"10": 新工作项提案
|
31
|
+
"20": 工作草案
|
32
|
+
"30": 委员会草案
|
33
|
+
"40": 草稿
|
34
|
+
"50": 最终草案
|
35
|
+
"60": 国际标准
|
36
|
+
"90": 回顾
|
37
|
+
"95": 提款
|
data/lib/isodoc/iso/i18n.rb
CHANGED
@@ -8,6 +8,7 @@ module IsoDoc
|
|
8
8
|
def load_yaml1(lang, script)
|
9
9
|
y = if lang == "en" then load_file("i18n-en.yaml")
|
10
10
|
elsif lang == "fr" then load_file("i18n-fr.yaml")
|
11
|
+
elsif lang == "ru" then load_file("i18n-ru.yaml")
|
11
12
|
elsif lang == "zh" && script == "Hans"
|
12
13
|
load_file("i18n-zh-Hans.yaml")
|
13
14
|
else load_file("i18n-en.yaml")
|