isodoc 2.2.1 → 2.2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/isodoc.gemspec +4 -3
- data/lib/isodoc/convert.rb +8 -6
- data/lib/isodoc/function/table.rb +1 -1
- data/lib/isodoc/i18n.rb +3 -18
- data/lib/isodoc/pdf_convert.rb +0 -1
- data/lib/isodoc/presentation_function/refs.rb +13 -6
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/xref/xref_gen_seq.rb +2 -2
- data/lib/isodoc/xref.rb +1 -1
- data/lib/isodoc/xslfo_convert.rb +0 -2
- data/lib/isodoc-yaml/i18n-ar.yaml +0 -10
- data/lib/isodoc-yaml/i18n-de.yaml +0 -10
- data/lib/isodoc-yaml/i18n-en.yaml +0 -2
- data/lib/isodoc-yaml/i18n-es.yaml +0 -10
- data/lib/isodoc-yaml/i18n-fr.yaml +0 -10
- data/lib/isodoc-yaml/i18n-ru.yaml +0 -10
- data/lib/isodoc-yaml/i18n-zh-Hans.yaml +0 -10
- data/lib/relaton/render/general.rb +5 -19
- metadata +38 -32
- data/lib/isodoc/base_style/all.css +0 -227
- data/lib/isodoc/base_style/blocks.css +0 -0
- data/lib/isodoc/base_style/coverpage.css +0 -0
- data/lib/isodoc/base_style/defaults.css +0 -0
- data/lib/isodoc/base_style/metanorma_word.css +0 -47
- data/lib/isodoc/base_style/nav.css +0 -0
- data/lib/isodoc/base_style/reset.css +0 -125
- data/lib/isodoc/base_style/typography.css +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0aabb80b1f5ef79e1898ee6304efa075760c5bed1ef1241a78e8b481f7e291e2
|
4
|
+
data.tar.gz: 67f4dc2ddb0e3ac6a0702eac75478b450a65e5cfcab009fbac55cb1728bef0f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f66cff989b8e7ea39834fe1b200a95af35aa6c4b3c80fb8b6623369f501bddd7e656c8d6ca112ffd68f903a5ef9e5daa0e40d90fae6f05f94eaaa4fb98000c73
|
7
|
+
data.tar.gz: dbc8d4969a5554f8ed8b60e440a80679890da6704915021da9740c9a2644d8fc2c7c6317eec7eeab1ddab949b95aaed3afa6efce91c0042f5211e2e14ea3bb16
|
data/isodoc.gemspec
CHANGED
@@ -34,12 +34,14 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.add_dependency "asciimath"
|
35
35
|
spec.add_dependency "html2doc", "~> 1.4.1"
|
36
36
|
spec.add_dependency "htmlentities", "~> 4.3.4"
|
37
|
-
spec.add_dependency "isodoc-i18n", "~> 1.0.
|
37
|
+
spec.add_dependency "isodoc-i18n", "~> 1.0.7"
|
38
38
|
spec.add_dependency "liquid", "~> 4"
|
39
39
|
# spec.add_dependency "metanorma", ">= 1.2.0"
|
40
40
|
spec.add_dependency "emf2svg"
|
41
41
|
spec.add_dependency "mathml2asciimath"
|
42
|
-
spec.add_dependency "
|
42
|
+
spec.add_dependency "metanorma-utils", "~> 1.4.0"
|
43
|
+
spec.add_dependency "mn2pdf"
|
44
|
+
spec.add_dependency "mn-requirements", "~> 0.1.3"
|
43
45
|
spec.add_dependency "relaton-cli"
|
44
46
|
spec.add_dependency "relaton-render", "~> 0.4.0"
|
45
47
|
spec.add_dependency "roman-numerals"
|
@@ -51,7 +53,6 @@ Gem::Specification.new do |spec|
|
|
51
53
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
52
54
|
spec.add_development_dependency "guard", "~> 2.14"
|
53
55
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
54
|
-
spec.add_development_dependency "metanorma-iso"
|
55
56
|
spec.add_development_dependency "rake", "~> 13.0"
|
56
57
|
spec.add_development_dependency "rexml"
|
57
58
|
spec.add_development_dependency "rspec", "~> 3.6"
|
data/lib/isodoc/convert.rb
CHANGED
@@ -11,7 +11,7 @@ require "mn-requirements"
|
|
11
11
|
|
12
12
|
module IsoDoc
|
13
13
|
class Convert < ::IsoDoc::Common
|
14
|
-
attr_accessor :options, :i18n, :meta, :xrefs, :reqt_models
|
14
|
+
attr_accessor :options, :i18n, :meta, :xrefs, :reqt_models, :requirements_processor
|
15
15
|
|
16
16
|
# htmlstylesheet: Generic stylesheet for HTML
|
17
17
|
# htmlstylesheet_override: Override stylesheet for HTML
|
@@ -172,6 +172,10 @@ module IsoDoc
|
|
172
172
|
nil
|
173
173
|
end
|
174
174
|
|
175
|
+
def requirements_processor
|
176
|
+
Metanorma::Requirements
|
177
|
+
end
|
178
|
+
|
175
179
|
def convert1(docxml, filename, dir)
|
176
180
|
@xrefs.parse docxml
|
177
181
|
bibitem_lookup(docxml)
|
@@ -207,11 +211,9 @@ module IsoDoc
|
|
207
211
|
lang = docxml&.at(ns("//bibdata/language"))&.text and @lang = lang
|
208
212
|
script = docxml&.at(ns("//bibdata/script"))&.text and @script = script
|
209
213
|
i18n_init(@lang, @script)
|
210
|
-
@reqt_models =
|
211
|
-
.new({
|
212
|
-
|
213
|
-
labels: @i18n.get
|
214
|
-
})
|
214
|
+
@reqt_models = requirements_processor
|
215
|
+
.new({ default: "default", lang: lang, script: script,
|
216
|
+
labels: @i18n.get })
|
215
217
|
end
|
216
218
|
|
217
219
|
def convert(input_filename, file = nil, debug = false,
|
@@ -43,7 +43,7 @@ module IsoDoc
|
|
43
43
|
width = node["width"] ? "width:#{node['width']};" : nil
|
44
44
|
attr_code(
|
45
45
|
id: node["id"],
|
46
|
-
class: "MsoISOTable",
|
46
|
+
class: node["class"] || "MsoISOTable",
|
47
47
|
style: "border-width:1px;border-spacing:0;"\
|
48
48
|
"#{width}#{keep_style(node)}",
|
49
49
|
title: node["alt"],
|
data/lib/isodoc/i18n.rb
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
require "yaml"
|
2
2
|
require "isodoc-i18n"
|
3
3
|
require_relative "function/utils"
|
4
|
+
require "metanorma-utils"
|
4
5
|
|
5
6
|
module IsoDoc
|
6
7
|
class I18n
|
8
|
+
Hash.include Metanorma::Utils::Hash
|
9
|
+
|
7
10
|
def load_yaml1(lang, script)
|
8
11
|
case lang
|
9
12
|
when "en", "fr", "ru", "de", "es", "ar"
|
@@ -24,21 +27,3 @@ module IsoDoc
|
|
24
27
|
end
|
25
28
|
end
|
26
29
|
|
27
|
-
class ::Hash
|
28
|
-
def deep_merge(second)
|
29
|
-
merger = proc { |_, v1, v2|
|
30
|
-
if Hash === v1 && Hash === v2
|
31
|
-
v1.merge(v2, &merger)
|
32
|
-
elsif Array === v1 && Array === v2
|
33
|
-
v1 | v2
|
34
|
-
elsif [:undefined, nil,
|
35
|
-
:nil].include?(v2)
|
36
|
-
v1
|
37
|
-
else
|
38
|
-
v2
|
39
|
-
end
|
40
|
-
}
|
41
|
-
merge(second.to_h, &merger)
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
data/lib/isodoc/pdf_convert.rb
CHANGED
@@ -81,19 +81,26 @@ module IsoDoc
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def bibliography_bibitem_number1(bibitem, idx)
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
84
|
+
ins = bibliography_bibitem_number_insert_pt(bibitem)
|
85
|
+
mn = bibitem.at(ns(".//docidentifier[@type = 'metanorma']")) and
|
86
|
+
/^\[?\d+\]?$/.match?(mn.text) and
|
87
|
+
mn.remove # ignore numbers already inserted
|
88
88
|
unless bibliography_bibitem_number_skip(bibitem)
|
89
|
-
|
90
89
|
idx += 1
|
91
|
-
|
90
|
+
ins.next =
|
92
91
|
"<docidentifier type='metanorma-ordinal'>[#{idx}]</docidentifier>"
|
93
92
|
end
|
94
93
|
idx
|
95
94
|
end
|
96
95
|
|
96
|
+
def bibliography_bibitem_number_insert_pt(bibitem)
|
97
|
+
unless ins = bibitem.at(ns(".//docidentifier")).previous_element
|
98
|
+
bibitem.at(ns(".//docidentifier")).previous = " "
|
99
|
+
ins = bibitem.at(ns(".//docidentifier")).previous
|
100
|
+
end
|
101
|
+
ins
|
102
|
+
end
|
103
|
+
|
97
104
|
def docid_prefixes(docxml)
|
98
105
|
docxml.xpath(ns("//references/bibitem/docidentifier")).each do |i|
|
99
106
|
i.children = @xrefs.klass.docid_prefix(i["type"], i.text)
|
data/lib/isodoc/version.rb
CHANGED
@@ -111,7 +111,7 @@ module IsoDoc
|
|
111
111
|
def reqt2class_label(block, model)
|
112
112
|
model.req_class_paths.each do |n|
|
113
113
|
v1 = ns("/#{n[:xpath]}").sub(%r{^/}, "")
|
114
|
-
block.at("./self::#{v1}") and return [n[:klass],
|
114
|
+
block.at("./self::#{v1}") and return [n[:klass], n[:label]]
|
115
115
|
end
|
116
116
|
[nil, nil]
|
117
117
|
end
|
@@ -119,7 +119,7 @@ module IsoDoc
|
|
119
119
|
def reqt2class_nested_label(block, model)
|
120
120
|
model.req_nested_class_paths.each do |n|
|
121
121
|
v1 = ns("/#{n[:xpath]}").sub(%r{^/}, "")
|
122
|
-
block.at("./self::#{v1}") and return [n[:klass],
|
122
|
+
block.at("./self::#{v1}") and return [n[:klass], n[:label]]
|
123
123
|
end
|
124
124
|
[nil, nil]
|
125
125
|
end
|
data/lib/isodoc/xref.rb
CHANGED
data/lib/isodoc/xslfo_convert.rb
CHANGED
@@ -54,14 +54,6 @@ table: جدول
|
|
54
54
|
requirement: مطلب
|
55
55
|
recommendation: توصية
|
56
56
|
permission: إذن
|
57
|
-
recommendationtest: اختبار التوصية
|
58
|
-
requirementtest: اختبار المتطلبات
|
59
|
-
permissiontest: اختبار الإذن
|
60
|
-
recommendationclass: فئة التوصيات
|
61
|
-
requirementclass: فئة المتطلبات
|
62
|
-
permissionclass: فئة الأذونات
|
63
|
-
abstracttest: اختبار تجريدي
|
64
|
-
conformanceclass: فئة المطابقة
|
65
57
|
key: مفتاح
|
66
58
|
example: مثال
|
67
59
|
example_xref: مثال
|
@@ -94,8 +86,6 @@ month_october: أكتوبر
|
|
94
86
|
month_november: نوفمبر
|
95
87
|
month_december: ديسمبر
|
96
88
|
obligation: التزام
|
97
|
-
subject: موضوع
|
98
|
-
inherits: يرث
|
99
89
|
admonition:
|
100
90
|
danger: خطر
|
101
91
|
warning: تحذير
|
@@ -60,14 +60,6 @@ table: Tabelle
|
|
60
60
|
requirement: Anforderung
|
61
61
|
recommendation: Empfehlung
|
62
62
|
permission: Erlaubnis
|
63
|
-
recommendationtest: Empfehlungstest
|
64
|
-
requirementtest: Anforderungstest
|
65
|
-
permissiontest: Berechtigungstest
|
66
|
-
recommendationclass: Empfehlungsklasse
|
67
|
-
requirementclass: Anforderungsklasse
|
68
|
-
permissionclass: Berechtigungsklasse
|
69
|
-
abstracttest: Abstrakter Test
|
70
|
-
conformanceclass: Konformitätsklasse
|
71
63
|
key: Taste
|
72
64
|
example: BEISPIEL
|
73
65
|
example_xref: Beispiel
|
@@ -100,8 +92,6 @@ month_october: Oktober
|
|
100
92
|
month_november: November
|
101
93
|
month_december: Dezember
|
102
94
|
obligation: Verbindlichkeit
|
103
|
-
subject: Thema
|
104
|
-
inherits: Erbt
|
105
95
|
admonition: {
|
106
96
|
danger: Gefahr,
|
107
97
|
warning: Warnung,
|
@@ -60,14 +60,6 @@ table: Tabla
|
|
60
60
|
requirement: Requerimiento
|
61
61
|
recommendation: Recomendación
|
62
62
|
permission: Permiso
|
63
|
-
recommendationtest: Prueba de recomendación
|
64
|
-
requirementtest: Prueba de requerimiento
|
65
|
-
permissiontest: Prueba de permiso
|
66
|
-
recommendationclass: Clase de recomendaciones
|
67
|
-
requirementclass: Clase de requerimientos
|
68
|
-
permissionclass: Clase de permisos
|
69
|
-
abstracttest: Prueba abstracta
|
70
|
-
conformanceclass: Clase de conformidad
|
71
63
|
key: Clave
|
72
64
|
example: EJEMPLO
|
73
65
|
example_xref: Ejemplo
|
@@ -100,8 +92,6 @@ month_october: Octubre
|
|
100
92
|
month_november: Noviembre
|
101
93
|
month_december: Diciembre
|
102
94
|
obligation: Obligación
|
103
|
-
subject: Tema
|
104
|
-
inherits: Hereda
|
105
95
|
admonition: {
|
106
96
|
danger: Peligro,
|
107
97
|
warning: Advertencia,
|
@@ -57,14 +57,6 @@ table: Tableau
|
|
57
57
|
requirement: Exigence
|
58
58
|
recommendation: Recommandation
|
59
59
|
permission: Autorisation
|
60
|
-
recommendationtest: Test de recommendation
|
61
|
-
requirementtest: Test d’exigence
|
62
|
-
permissiontest: Test d’autorisation
|
63
|
-
recommendationclass: Classe de recommendations
|
64
|
-
requirementclass: Classe d’exigences
|
65
|
-
permissionclass: Classe d’autorisations
|
66
|
-
abstracttest: Test abstrait
|
67
|
-
conformanceclass: Classe de confirmité
|
68
60
|
key: Légende
|
69
61
|
example: EXEMPLE
|
70
62
|
example_xref: Exemple
|
@@ -98,8 +90,6 @@ month_october: Octobre
|
|
98
90
|
month_november: Novembre
|
99
91
|
month_december: Décembre
|
100
92
|
obligation: Obligation
|
101
|
-
subject: Sujet
|
102
|
-
inherits: Hérite
|
103
93
|
admonition: {
|
104
94
|
danger: Danger,
|
105
95
|
warning: Avertissement,
|
@@ -65,14 +65,6 @@ table: Таблица
|
|
65
65
|
requirement: Требование
|
66
66
|
recommendation: Рекомендация
|
67
67
|
permission: Разрешение
|
68
|
-
recommendationtest: Проверка рекомендации
|
69
|
-
requirementtest: Проверка требований
|
70
|
-
permissiontest: Проверка разрешения
|
71
|
-
recommendationclass: Класс рекомендаций
|
72
|
-
requirementclass: Класс требований
|
73
|
-
permissionclass: Класс разрешений
|
74
|
-
abstracttest: Абстрактная проверка
|
75
|
-
conformanceclass: Класс соответствия
|
76
68
|
key: Условные обозначения
|
77
69
|
example: ПРИМЕР
|
78
70
|
example_xref: Пример
|
@@ -105,8 +97,6 @@ month_october: Октябрь
|
|
105
97
|
month_november: Ноябрь
|
106
98
|
month_december: Декабрь
|
107
99
|
obligation: Обязательство
|
108
|
-
subject: Тема
|
109
|
-
inherits: Наследует
|
110
100
|
admonition: {
|
111
101
|
danger: Опасность,
|
112
102
|
warning: Предупреждение,
|
@@ -55,14 +55,6 @@ table: 表
|
|
55
55
|
requirement: 要求
|
56
56
|
recommendation: 建议
|
57
57
|
permission: 容許
|
58
|
-
recommendationtest: 推荐测试
|
59
|
-
requirementtest: 需求测试
|
60
|
-
permissiontest: 权限测试
|
61
|
-
recommendationclass: 推荐类
|
62
|
-
requirementclass: 需求类
|
63
|
-
permissionclass: 权限类
|
64
|
-
abstracttest: 抽象测试
|
65
|
-
conformanceclass: 一致性等级
|
66
58
|
key: 说明
|
67
59
|
example: 示例
|
68
60
|
example_xref: 示例
|
@@ -95,8 +87,6 @@ month_october: 十月
|
|
95
87
|
month_november: 十一月
|
96
88
|
month_december: 十二月
|
97
89
|
obligation: 义务
|
98
|
-
subject: 主体
|
99
|
-
inherits: 继承自
|
100
90
|
admonition: {
|
101
91
|
danger: 危险,
|
102
92
|
warning: 警告,
|
@@ -1,11 +1,15 @@
|
|
1
1
|
require "relaton-render"
|
2
|
+
require "metanorma-utils"
|
2
3
|
|
3
4
|
module Relaton
|
4
5
|
module Render
|
5
6
|
module IsoDoc
|
6
7
|
class General < ::Relaton::Render::General
|
8
|
+
Hash.include Metanorma::Utils::Hash
|
9
|
+
|
7
10
|
def config_loc
|
8
|
-
YAML.load_file(File.join(File.dirname(__FILE__),
|
11
|
+
YAML.load_file(File.join(File.dirname(__FILE__),
|
12
|
+
"config.yml"))
|
9
13
|
end
|
10
14
|
|
11
15
|
def read_config
|
@@ -15,21 +19,3 @@ module Relaton
|
|
15
19
|
end
|
16
20
|
end
|
17
21
|
end
|
18
|
-
|
19
|
-
class ::Hash
|
20
|
-
def deep_merge(second)
|
21
|
-
merger = proc { |_, v1, v2|
|
22
|
-
if Hash === v1 && Hash === v2
|
23
|
-
v1.merge(v2, &merger)
|
24
|
-
elsif Array === v1 && Array === v2
|
25
|
-
v1 | v2
|
26
|
-
elsif [:undefined, nil,
|
27
|
-
:nil].include?(v2)
|
28
|
-
v1
|
29
|
-
else
|
30
|
-
v2
|
31
|
-
end
|
32
|
-
}
|
33
|
-
merge(second.to_h, &merger)
|
34
|
-
end
|
35
|
-
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isodoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.1
|
4
|
+
version: 2.2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.0.
|
61
|
+
version: 1.0.7
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.0.
|
68
|
+
version: 1.0.7
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: liquid
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,20 +108,48 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: metanorma-utils
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.4.0
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 1.4.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: mn2pdf
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
111
139
|
- !ruby/object:Gem::Dependency
|
112
140
|
name: mn-requirements
|
113
141
|
requirement: !ruby/object:Gem::Requirement
|
114
142
|
requirements:
|
115
143
|
- - "~>"
|
116
144
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
145
|
+
version: 0.1.3
|
118
146
|
type: :runtime
|
119
147
|
prerelease: false
|
120
148
|
version_requirements: !ruby/object:Gem::Requirement
|
121
149
|
requirements:
|
122
150
|
- - "~>"
|
123
151
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
152
|
+
version: 0.1.3
|
125
153
|
- !ruby/object:Gem::Dependency
|
126
154
|
name: relaton-cli
|
127
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -262,20 +290,6 @@ dependencies:
|
|
262
290
|
- - "~>"
|
263
291
|
- !ruby/object:Gem::Version
|
264
292
|
version: '4.7'
|
265
|
-
- !ruby/object:Gem::Dependency
|
266
|
-
name: metanorma-iso
|
267
|
-
requirement: !ruby/object:Gem::Requirement
|
268
|
-
requirements:
|
269
|
-
- - ">="
|
270
|
-
- !ruby/object:Gem::Version
|
271
|
-
version: '0'
|
272
|
-
type: :development
|
273
|
-
prerelease: false
|
274
|
-
version_requirements: !ruby/object:Gem::Requirement
|
275
|
-
requirements:
|
276
|
-
- - ">="
|
277
|
-
- !ruby/object:Gem::Version
|
278
|
-
version: '0'
|
279
293
|
- !ruby/object:Gem::Dependency
|
280
294
|
name: rake
|
281
295
|
requirement: !ruby/object:Gem::Requirement
|
@@ -398,23 +412,15 @@ files:
|
|
398
412
|
- lib/isodoc-yaml/i18n-ru.yaml
|
399
413
|
- lib/isodoc-yaml/i18n-zh-Hans.yaml
|
400
414
|
- lib/isodoc.rb
|
401
|
-
- lib/isodoc/base_style/all.css
|
402
415
|
- lib/isodoc/base_style/all.scss
|
403
416
|
- lib/isodoc/base_style/bands.scss
|
404
|
-
- lib/isodoc/base_style/blocks.css
|
405
417
|
- lib/isodoc/base_style/blocks.scss
|
406
|
-
- lib/isodoc/base_style/coverpage.css
|
407
418
|
- lib/isodoc/base_style/coverpage.scss
|
408
|
-
- lib/isodoc/base_style/defaults.css
|
409
419
|
- lib/isodoc/base_style/defaults.scss
|
410
|
-
- lib/isodoc/base_style/metanorma_word.css
|
411
420
|
- lib/isodoc/base_style/metanorma_word.scss
|
412
|
-
- lib/isodoc/base_style/nav.css
|
413
421
|
- lib/isodoc/base_style/nav.scss
|
414
|
-
- lib/isodoc/base_style/reset.css
|
415
422
|
- lib/isodoc/base_style/reset.scss
|
416
423
|
- lib/isodoc/base_style/scripts.html
|
417
|
-
- lib/isodoc/base_style/typography.css
|
418
424
|
- lib/isodoc/base_style/typography.scss
|
419
425
|
- lib/isodoc/class_utils.rb
|
420
426
|
- lib/isodoc/common.rb
|
@@ -491,7 +497,7 @@ homepage: https://github.com/metanorma/isodoc
|
|
491
497
|
licenses:
|
492
498
|
- BSD-2-Clause
|
493
499
|
metadata: {}
|
494
|
-
post_install_message:
|
500
|
+
post_install_message:
|
495
501
|
rdoc_options: []
|
496
502
|
require_paths:
|
497
503
|
- lib
|
@@ -506,8 +512,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
506
512
|
- !ruby/object:Gem::Version
|
507
513
|
version: '0'
|
508
514
|
requirements: []
|
509
|
-
rubygems_version: 3.
|
510
|
-
signing_key:
|
515
|
+
rubygems_version: 3.1.6
|
516
|
+
signing_key:
|
511
517
|
specification_version: 4
|
512
518
|
summary: Convert documents in IsoDoc into Word and HTML in AsciiDoc.
|
513
519
|
test_files: []
|
@@ -1,227 +0,0 @@
|
|
1
|
-
html, body, div, span, applet, object, iframe,
|
2
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
3
|
-
a, abbr, acronym, address, big, cite, code,
|
4
|
-
del, dfn, em, img, ins, kbd, q, s, samp,
|
5
|
-
small, strike, strong, sub, sup, tt, var,
|
6
|
-
b, u, i, center,
|
7
|
-
ol, ul, li,
|
8
|
-
fieldset, form, label, legend,
|
9
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
10
|
-
article, aside, canvas, details, embed,
|
11
|
-
figure, figcaption, footer, header, hgroup,
|
12
|
-
menu, output, ruby, section, summary,
|
13
|
-
time, mark, audio, video {
|
14
|
-
margin: 0;
|
15
|
-
padding: 0; }
|
16
|
-
|
17
|
-
html, body, div, span, applet, object, iframe,
|
18
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
19
|
-
a, abbr, acronym, address, big, cite, code,
|
20
|
-
del, dfn, em, img, ins, kbd, q, s, samp,
|
21
|
-
small, strike, strong, sub, sup, tt, var,
|
22
|
-
b, u, i, center,
|
23
|
-
dl, dt, dd, ol, ul, li,
|
24
|
-
fieldset, form, label, legend,
|
25
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
26
|
-
article, aside, canvas, details, embed,
|
27
|
-
figure, figcaption, footer, header, hgroup,
|
28
|
-
menu, nav, output, ruby, section, summary,
|
29
|
-
time, mark, audio, video {
|
30
|
-
border: 0;
|
31
|
-
font-size: 100%; }
|
32
|
-
|
33
|
-
html, body, div, span, applet, object, iframe,
|
34
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
35
|
-
a, abbr, acronym, address, big, cite, code,
|
36
|
-
del, dfn, em, img, ins, kbd, q, s, samp,
|
37
|
-
small, strike, strong, tt, var,
|
38
|
-
b, u, i, center,
|
39
|
-
dl, dd, ol, ul, li,
|
40
|
-
fieldset, form, label, legend,
|
41
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
42
|
-
article, aside, canvas, details, embed,
|
43
|
-
figure, figcaption, footer, header, hgroup,
|
44
|
-
menu, nav, output, ruby, section, summary,
|
45
|
-
time, mark, audio, video {
|
46
|
-
vertical-align: baseline; }
|
47
|
-
|
48
|
-
html, body, div, span, applet, object, iframe,
|
49
|
-
p, blockquote,
|
50
|
-
a, abbr, acronym, address, big, cite,
|
51
|
-
del, dfn, em, img, ins, q, s,
|
52
|
-
small, strike, strong, sub, sup, var,
|
53
|
-
b, u, i, center,
|
54
|
-
dl, dt, dd, ol, ul, li,
|
55
|
-
fieldset, form, label, legend,
|
56
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
57
|
-
article, aside, canvas, details, embed,
|
58
|
-
figure, figcaption, footer, header, hgroup,
|
59
|
-
menu, nav, output, ruby, section, summary,
|
60
|
-
time, mark, audio, video {
|
61
|
-
font-family: {{bodyfont}}; }
|
62
|
-
|
63
|
-
code, pre, tt, kbd, samp {
|
64
|
-
font-family: {{monospacefont}};
|
65
|
-
font-variant-ligatures: none; }
|
66
|
-
|
67
|
-
code *, pre *, tt *, kbd *, samp * {
|
68
|
-
font-family: {{monospacefont}} !important;
|
69
|
-
font-variant-ligatures: none; }
|
70
|
-
|
71
|
-
p code, dt code, li code, label code, legend code, caption code, th code, td code,
|
72
|
-
p tt, dt tt, li tt, label tt, legend tt, caption tt, th tt, td tt,
|
73
|
-
p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
|
74
|
-
p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
|
75
|
-
font-size: {{monospacefontsize}}; }
|
76
|
-
|
77
|
-
article, aside, details, figcaption, figure,
|
78
|
-
footer, header, hgroup, menu, nav, section {
|
79
|
-
display: block; }
|
80
|
-
|
81
|
-
table {
|
82
|
-
border-collapse: collapse;
|
83
|
-
border-spacing: 0; }
|
84
|
-
|
85
|
-
h1, h2, h3, h4, h5, h6 {
|
86
|
-
font-family: {{headerfont}}; }
|
87
|
-
|
88
|
-
.h1, .h2, .h3, .h4, .h5, .h6 {
|
89
|
-
font-family: {{headerfont}}; }
|
90
|
-
|
91
|
-
blockquote, q {
|
92
|
-
quotes: none; }
|
93
|
-
blockquote:before, blockquote:after, q:before, q:after {
|
94
|
-
content: '';
|
95
|
-
content: none; }
|
96
|
-
|
97
|
-
.h2Annex {
|
98
|
-
font-family: {{headerfont}}; }
|
99
|
-
|
100
|
-
dl {
|
101
|
-
display: grid;
|
102
|
-
grid-template-columns: max-content auto; }
|
103
|
-
dl dt p, dl dd p {
|
104
|
-
margin-top: 0; }
|
105
|
-
dl dt {
|
106
|
-
grid-column-start: 1; }
|
107
|
-
dl dd {
|
108
|
-
grid-column-start: 2; }
|
109
|
-
|
110
|
-
b, strong {
|
111
|
-
font-weight: bold; }
|
112
|
-
|
113
|
-
div.document-stage-band, div.document-type-band {
|
114
|
-
background-color: #333333; }
|
115
|
-
|
116
|
-
a.FootnoteRef + a.FootnoteRef:before {
|
117
|
-
content: ", ";
|
118
|
-
vertical-align: super; }
|
119
|
-
|
120
|
-
.addition {
|
121
|
-
color: blue; }
|
122
|
-
|
123
|
-
.deletion {
|
124
|
-
color: red;
|
125
|
-
text-decoration: line-through; }
|
126
|
-
|
127
|
-
#standard-band {
|
128
|
-
background-color: #0AC442; }
|
129
|
-
|
130
|
-
#standard {
|
131
|
-
border-bottom: solid 3px #0AC442; }
|
132
|
-
|
133
|
-
#directive-band {
|
134
|
-
background-color: #540D6E; }
|
135
|
-
|
136
|
-
#directive {
|
137
|
-
border-bottom: solid 3px #540D6E; }
|
138
|
-
|
139
|
-
#guide-band {
|
140
|
-
background-color: #D183C9; }
|
141
|
-
|
142
|
-
#guide {
|
143
|
-
border-bottom: solid 3px #D183C9; }
|
144
|
-
|
145
|
-
#specification-band {
|
146
|
-
background-color: #65AFFF; }
|
147
|
-
|
148
|
-
#specification {
|
149
|
-
border-bottom: solid 3px #65AFFF; }
|
150
|
-
|
151
|
-
#report-band {
|
152
|
-
background-color: #3A405A; }
|
153
|
-
|
154
|
-
#report {
|
155
|
-
border-bottom: solid 3px #3A405A; }
|
156
|
-
|
157
|
-
#amendment-band {
|
158
|
-
background-color: #F26430; }
|
159
|
-
|
160
|
-
#amendment {
|
161
|
-
border-bottom: solid 3px #F26430; }
|
162
|
-
|
163
|
-
#corrigendum-band {
|
164
|
-
background-color: #C84630; }
|
165
|
-
|
166
|
-
#corrigendum {
|
167
|
-
border-bottom: solid 3px #C84630; }
|
168
|
-
|
169
|
-
#administrative-band {
|
170
|
-
background-color: #BFAE48; }
|
171
|
-
|
172
|
-
#administrative {
|
173
|
-
border-bottom: solid 3px #BFAE48; }
|
174
|
-
|
175
|
-
#advisory-band {
|
176
|
-
background-color: #BD9391; }
|
177
|
-
|
178
|
-
#advisory {
|
179
|
-
border-bottom: solid 3px #BD9391; }
|
180
|
-
|
181
|
-
#proposal-band {
|
182
|
-
background-color: #39A0ED; }
|
183
|
-
|
184
|
-
#proposal {
|
185
|
-
border-bottom: solid 3px #39A0ED; }
|
186
|
-
|
187
|
-
#working-draft-band {
|
188
|
-
background-color: #2D7393; }
|
189
|
-
|
190
|
-
#working-draft {
|
191
|
-
border-bottom: solid 3px #2D7393; }
|
192
|
-
|
193
|
-
#committee-draft-band {
|
194
|
-
background-color: #2A6B7C; }
|
195
|
-
|
196
|
-
#committee-draft {
|
197
|
-
border-bottom: solid 3px #2A6B7C; }
|
198
|
-
|
199
|
-
#draft-standard-band {
|
200
|
-
background-color: #1C7F7A; }
|
201
|
-
|
202
|
-
#draft-standard {
|
203
|
-
border-bottom: solid 3px #1C7F7A; }
|
204
|
-
|
205
|
-
#final-draft-band {
|
206
|
-
background-color: #53C170; }
|
207
|
-
|
208
|
-
#final-draft {
|
209
|
-
border-bottom: solid 3px #53C170; }
|
210
|
-
|
211
|
-
#published-band {
|
212
|
-
background-color: #069E2D; }
|
213
|
-
|
214
|
-
#published {
|
215
|
-
border-bottom: solid 3px #069E2D; }
|
216
|
-
|
217
|
-
#withdrawn-band {
|
218
|
-
background-color: #004E64; }
|
219
|
-
|
220
|
-
#withdrawn {
|
221
|
-
border-bottom: solid 3px #004E64; }
|
222
|
-
|
223
|
-
#cancelled-band {
|
224
|
-
background-color: #2E382E; }
|
225
|
-
|
226
|
-
#cancelled {
|
227
|
-
border-bottom: solid 3px #2E382E; }
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,47 +0,0 @@
|
|
1
|
-
div.table_container {
|
2
|
-
margin-bottom: 14pt; }
|
3
|
-
|
4
|
-
ol {
|
5
|
-
margin-bottom: 0cm; }
|
6
|
-
|
7
|
-
ul {
|
8
|
-
margin-bottom: 0cm; }
|
9
|
-
|
10
|
-
table.MsoISOTable tr {
|
11
|
-
page-break-inside: avoid; }
|
12
|
-
|
13
|
-
td {
|
14
|
-
page-break-inside: avoid; }
|
15
|
-
|
16
|
-
tr {
|
17
|
-
page-break-after: avoid; }
|
18
|
-
|
19
|
-
table.MsoISOTableBig tr {
|
20
|
-
page-break-inside: auto; }
|
21
|
-
|
22
|
-
table.MsoISOTableBig td {
|
23
|
-
page-break-inside: auto; }
|
24
|
-
|
25
|
-
span.stem {
|
26
|
-
font-family: "Cambria Math",serif;
|
27
|
-
mso-ascii-font-family: "Cambria Math";
|
28
|
-
font-style: italic; }
|
29
|
-
|
30
|
-
dt {
|
31
|
-
page-break-inside: avoid;
|
32
|
-
page-break-after: avoid; }
|
33
|
-
|
34
|
-
br.section {
|
35
|
-
page-break-before: always;
|
36
|
-
mso-break-type: section-break; }
|
37
|
-
|
38
|
-
br.pagebreak {
|
39
|
-
page-break-before: always;
|
40
|
-
mso-special-character: line-break; }
|
41
|
-
|
42
|
-
span.addition {
|
43
|
-
color: blue; }
|
44
|
-
|
45
|
-
span.deletion {
|
46
|
-
color: red;
|
47
|
-
text-decoration: line-through; }
|
File without changes
|
@@ -1,125 +0,0 @@
|
|
1
|
-
html, body, div, span, applet, object, iframe,
|
2
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
3
|
-
a, abbr, acronym, address, big, cite, code,
|
4
|
-
del, dfn, em, img, ins, kbd, q, s, samp,
|
5
|
-
small, strike, strong, sub, sup, tt, var,
|
6
|
-
b, u, i, center,
|
7
|
-
ol, ul, li,
|
8
|
-
fieldset, form, label, legend,
|
9
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
10
|
-
article, aside, canvas, details, embed,
|
11
|
-
figure, figcaption, footer, header, hgroup,
|
12
|
-
menu, output, ruby, section, summary,
|
13
|
-
time, mark, audio, video {
|
14
|
-
margin: 0;
|
15
|
-
padding: 0; }
|
16
|
-
|
17
|
-
html, body, div, span, applet, object, iframe,
|
18
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
19
|
-
a, abbr, acronym, address, big, cite, code,
|
20
|
-
del, dfn, em, img, ins, kbd, q, s, samp,
|
21
|
-
small, strike, strong, sub, sup, tt, var,
|
22
|
-
b, u, i, center,
|
23
|
-
dl, dt, dd, ol, ul, li,
|
24
|
-
fieldset, form, label, legend,
|
25
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
26
|
-
article, aside, canvas, details, embed,
|
27
|
-
figure, figcaption, footer, header, hgroup,
|
28
|
-
menu, nav, output, ruby, section, summary,
|
29
|
-
time, mark, audio, video {
|
30
|
-
border: 0;
|
31
|
-
font-size: 100%; }
|
32
|
-
|
33
|
-
html, body, div, span, applet, object, iframe,
|
34
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
35
|
-
a, abbr, acronym, address, big, cite, code,
|
36
|
-
del, dfn, em, img, ins, kbd, q, s, samp,
|
37
|
-
small, strike, strong, tt, var,
|
38
|
-
b, u, i, center,
|
39
|
-
dl, dd, ol, ul, li,
|
40
|
-
fieldset, form, label, legend,
|
41
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
42
|
-
article, aside, canvas, details, embed,
|
43
|
-
figure, figcaption, footer, header, hgroup,
|
44
|
-
menu, nav, output, ruby, section, summary,
|
45
|
-
time, mark, audio, video {
|
46
|
-
vertical-align: baseline; }
|
47
|
-
|
48
|
-
html, body, div, span, applet, object, iframe,
|
49
|
-
p, blockquote,
|
50
|
-
a, abbr, acronym, address, big, cite,
|
51
|
-
del, dfn, em, img, ins, q, s,
|
52
|
-
small, strike, strong, sub, sup, var,
|
53
|
-
b, u, i, center,
|
54
|
-
dl, dt, dd, ol, ul, li,
|
55
|
-
fieldset, form, label, legend,
|
56
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
57
|
-
article, aside, canvas, details, embed,
|
58
|
-
figure, figcaption, footer, header, hgroup,
|
59
|
-
menu, nav, output, ruby, section, summary,
|
60
|
-
time, mark, audio, video {
|
61
|
-
font-family: {{bodyfont}}; }
|
62
|
-
|
63
|
-
code, pre, tt, kbd, samp {
|
64
|
-
font-family: {{monospacefont}};
|
65
|
-
font-variant-ligatures: none; }
|
66
|
-
|
67
|
-
code *, pre *, tt *, kbd *, samp * {
|
68
|
-
font-family: {{monospacefont}} !important;
|
69
|
-
font-variant-ligatures: none; }
|
70
|
-
|
71
|
-
p code, dt code, li code, label code, legend code, caption code, th code, td code,
|
72
|
-
p tt, dt tt, li tt, label tt, legend tt, caption tt, th tt, td tt,
|
73
|
-
p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
|
74
|
-
p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
|
75
|
-
font-size: {{monospacefontsize}}; }
|
76
|
-
|
77
|
-
article, aside, details, figcaption, figure,
|
78
|
-
footer, header, hgroup, menu, nav, section {
|
79
|
-
display: block; }
|
80
|
-
|
81
|
-
table {
|
82
|
-
border-collapse: collapse;
|
83
|
-
border-spacing: 0; }
|
84
|
-
|
85
|
-
h1, h2, h3, h4, h5, h6 {
|
86
|
-
font-family: {{headerfont}}; }
|
87
|
-
|
88
|
-
.h1, .h2, .h3, .h4, .h5, .h6 {
|
89
|
-
font-family: {{headerfont}}; }
|
90
|
-
|
91
|
-
blockquote, q {
|
92
|
-
quotes: none; }
|
93
|
-
blockquote:before, blockquote:after, q:before, q:after {
|
94
|
-
content: '';
|
95
|
-
content: none; }
|
96
|
-
|
97
|
-
.h2Annex {
|
98
|
-
font-family: {{headerfont}}; }
|
99
|
-
|
100
|
-
dl {
|
101
|
-
display: grid;
|
102
|
-
grid-template-columns: max-content auto; }
|
103
|
-
dl dt p, dl dd p {
|
104
|
-
margin-top: 0; }
|
105
|
-
dl dt {
|
106
|
-
grid-column-start: 1; }
|
107
|
-
dl dd {
|
108
|
-
grid-column-start: 2; }
|
109
|
-
|
110
|
-
b, strong {
|
111
|
-
font-weight: bold; }
|
112
|
-
|
113
|
-
div.document-stage-band, div.document-type-band {
|
114
|
-
background-color: #333333; }
|
115
|
-
|
116
|
-
a.FootnoteRef + a.FootnoteRef:before {
|
117
|
-
content: ", ";
|
118
|
-
vertical-align: super; }
|
119
|
-
|
120
|
-
.addition {
|
121
|
-
color: blue; }
|
122
|
-
|
123
|
-
.deletion {
|
124
|
-
color: red;
|
125
|
-
text-decoration: line-through; }
|
File without changes
|