isodoc 1.1.3.pre.alpha → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/isodoc.gemspec +1 -1
- data/lib/isodoc-yaml/i18n-en.yaml +4 -1
- data/lib/isodoc-yaml/i18n-fr.yaml +4 -1
- data/lib/isodoc-yaml/i18n-zh-Hans.yaml +4 -1
- data/lib/isodoc.rb +1 -0
- data/lib/isodoc/base_style/all.css +207 -0
- 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 +34 -0
- data/lib/isodoc/base_style/nav.css +0 -0
- data/lib/isodoc/base_style/reset.css +105 -0
- data/lib/isodoc/base_style/typography.css +0 -0
- data/lib/isodoc/common.rb +0 -2
- data/lib/isodoc/convert.rb +49 -44
- data/lib/isodoc/function/blocks.rb +10 -22
- data/lib/isodoc/function/blocks_example_note.rb +14 -15
- data/lib/isodoc/function/cleanup.rb +5 -4
- data/lib/isodoc/function/inline.rb +6 -76
- data/lib/isodoc/function/references.rb +10 -9
- data/lib/isodoc/function/reqt.rb +12 -11
- data/lib/isodoc/function/section.rb +39 -54
- data/lib/isodoc/function/table.rb +1 -6
- data/lib/isodoc/function/terms.rb +13 -6
- data/lib/isodoc/function/to_word_html.rb +1 -0
- data/lib/isodoc/function/utils.rb +4 -3
- data/lib/isodoc/gem_tasks.rb +33 -10
- data/lib/isodoc/html_function/html.rb +0 -1
- data/lib/isodoc/{function/i18n.rb → i18n.rb} +37 -36
- data/lib/isodoc/metadata.rb +4 -3
- data/lib/isodoc/metadata_date.rb +1 -1
- data/lib/isodoc/presentation_function/block.rb +138 -0
- data/lib/isodoc/presentation_function/inline.rb +131 -0
- data/lib/isodoc/presentation_function/section.rb +46 -0
- data/lib/isodoc/presentation_xml_convert.rb +38 -5
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/word_function/body.rb +12 -8
- data/lib/isodoc/word_function/inline.rb +3 -1
- data/lib/isodoc/xref.rb +5 -3
- data/lib/isodoc/xref/xref_sect_gen.rb +3 -3
- data/spec/assets/i18n.yaml +12 -1
- data/spec/isodoc/blocks_spec.rb +1101 -147
- data/spec/isodoc/cleanup_spec.rb +2 -2
- data/spec/isodoc/footnotes_spec.rb +2 -2
- data/spec/isodoc/i18n_spec.rb +679 -110
- data/spec/isodoc/inline_spec.rb +323 -142
- data/spec/isodoc/lists_spec.rb +2 -2
- data/spec/isodoc/postproc_spec.rb +1311 -1333
- data/spec/isodoc/ref_spec.rb +181 -3
- data/spec/isodoc/section_spec.rb +508 -680
- data/spec/isodoc/table_spec.rb +155 -4
- data/spec/isodoc/terms_spec.rb +111 -79
- data/spec/isodoc/xref_spec.rb +1569 -1186
- metadata +19 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d265dd427dc9c2951b63676d191d3dd6ff1c64cc08b78accfdd563ee88092bdf
|
4
|
+
data.tar.gz: 77eed20b4c98ce8e30c0f69d848978543cd507c1ca6cf338dbe8871ad8c7a022
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc72270b9610c9ce3e411e969308bbd47f6c9984afd80ff3dc926dc6eb5ffd9c4d596c93f4ccd0e9c349e8a5c58235c876b6dac8c648ae0be87148b881ac9e42
|
7
|
+
data.tar.gz: a039fada53654ad08f55315b8383224f095a141fc758ce50f70c03ccd4e4963cc2824a5433265fa1c90e1909c1e69569789f5c5ee052db491639bd0532c7a75f
|
data/isodoc.gemspec
CHANGED
@@ -37,8 +37,8 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_dependency "liquid"
|
38
38
|
spec.add_dependency "roman-numerals"
|
39
39
|
spec.add_dependency "metanorma", "~> 1.1.0"
|
40
|
-
spec.add_dependency "rake", "~> 12.0"
|
41
40
|
|
41
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
42
42
|
spec.add_development_dependency "byebug", "~> 9.1"
|
43
43
|
spec.add_development_dependency "sassc", "~> 2.4.0"
|
44
44
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
@@ -1,10 +1,13 @@
|
|
1
1
|
term_def_boilerplate:
|
2
2
|
scope: Scope
|
3
|
-
|
3
|
+
symbolsabbrev: Symbols and abbreviated terms
|
4
|
+
abbrev: Abbreviated terms
|
5
|
+
symbols: Symbols
|
4
6
|
table_of_contents: Table of contents
|
5
7
|
introduction: Introduction
|
6
8
|
foreword: Foreword
|
7
9
|
abstract: Abstract
|
10
|
+
acknowledgements: Acknowledgements
|
8
11
|
termsdef: Terms and definitions
|
9
12
|
termsdefsymbolsabbrev: Terms, definitions, symbols and abbreviated terms
|
10
13
|
termsdefsymbols: Terms, definitions and symbols
|
@@ -1,10 +1,13 @@
|
|
1
1
|
term_def_boilerplate:
|
2
2
|
scope: Domaine d'application
|
3
|
-
|
3
|
+
symbolabbrev: Symboles et termes abrégés
|
4
|
+
abbrev: Termes abrégés
|
5
|
+
symbols: Symboles
|
4
6
|
table_of_contents: Sommaire
|
5
7
|
introduction: Introduction
|
6
8
|
foreword: Avant-propos
|
7
9
|
abstract: Résumé
|
10
|
+
acknowledgements: Remerciements
|
8
11
|
termsdef: Terms et définitions
|
9
12
|
termsdefsymbolsabbrev: Terms, définitions, symboles et termes abrégés
|
10
13
|
termsdefsymbols: Terms, définitions et symboles
|
@@ -1,10 +1,13 @@
|
|
1
1
|
term_def_boilerplate:
|
2
2
|
scope: 范围
|
3
|
-
|
3
|
+
symbolsabbrev: 符号、代号和缩略语
|
4
|
+
abbrev: 代号和缩略语
|
5
|
+
symbols: 符号
|
4
6
|
table_of_contents: 目次
|
5
7
|
introduction: 引言
|
6
8
|
foreword: 前言
|
7
9
|
abstract: 摘要
|
10
|
+
acknowledgements: 致謝
|
8
11
|
termsdef: 术语和定义
|
9
12
|
termsdefsymbolsabbrev: 术语、定义、符号、代号和缩略语
|
10
13
|
termsdefsymbols: 术语、定义、符号和代号
|
data/lib/isodoc.rb
CHANGED
@@ -0,0 +1,207 @@
|
|
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, nav, 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
|
+
article, aside, details, figcaption, figure,
|
72
|
+
footer, header, hgroup, menu, nav, section {
|
73
|
+
display: block; }
|
74
|
+
|
75
|
+
table {
|
76
|
+
border-collapse: collapse;
|
77
|
+
border-spacing: 0; }
|
78
|
+
|
79
|
+
h1, h2, h3, h4, h5, h6 {
|
80
|
+
font-family: {{headerfont}}; }
|
81
|
+
|
82
|
+
blockquote, q {
|
83
|
+
quotes: none; }
|
84
|
+
blockquote:before, blockquote:after, q:before, q:after {
|
85
|
+
content: '';
|
86
|
+
content: none; }
|
87
|
+
|
88
|
+
.h2Annex {
|
89
|
+
font-family: {{headerfont}}; }
|
90
|
+
|
91
|
+
dl {
|
92
|
+
display: grid;
|
93
|
+
grid-template-columns: max-content auto; }
|
94
|
+
dl dt p, dl dd p {
|
95
|
+
margin-top: 0; }
|
96
|
+
dl dt {
|
97
|
+
grid-column-start: 1; }
|
98
|
+
dl dd {
|
99
|
+
grid-column-start: 2; }
|
100
|
+
|
101
|
+
b, strong {
|
102
|
+
font-weight: bold; }
|
103
|
+
|
104
|
+
div.document-stage-band, div.document-type-band {
|
105
|
+
background-color: #333333; }
|
106
|
+
|
107
|
+
#standard-band {
|
108
|
+
background-color: #0AC442; }
|
109
|
+
|
110
|
+
#standard {
|
111
|
+
border-bottom: solid 3px #0AC442; }
|
112
|
+
|
113
|
+
#directive-band {
|
114
|
+
background-color: #540D6E; }
|
115
|
+
|
116
|
+
#directive {
|
117
|
+
border-bottom: solid 3px #540D6E; }
|
118
|
+
|
119
|
+
#guide-band {
|
120
|
+
background-color: #D183C9; }
|
121
|
+
|
122
|
+
#guide {
|
123
|
+
border-bottom: solid 3px #D183C9; }
|
124
|
+
|
125
|
+
#specification-band {
|
126
|
+
background-color: #65AFFF; }
|
127
|
+
|
128
|
+
#specification {
|
129
|
+
border-bottom: solid 3px #65AFFF; }
|
130
|
+
|
131
|
+
#report-band {
|
132
|
+
background-color: #3A405A; }
|
133
|
+
|
134
|
+
#report {
|
135
|
+
border-bottom: solid 3px #3A405A; }
|
136
|
+
|
137
|
+
#amendment-band {
|
138
|
+
background-color: #F26430; }
|
139
|
+
|
140
|
+
#amendment {
|
141
|
+
border-bottom: solid 3px #F26430; }
|
142
|
+
|
143
|
+
#corrigendum-band {
|
144
|
+
background-color: #C84630; }
|
145
|
+
|
146
|
+
#corrigendum {
|
147
|
+
border-bottom: solid 3px #C84630; }
|
148
|
+
|
149
|
+
#administrative-band {
|
150
|
+
background-color: #BFAE48; }
|
151
|
+
|
152
|
+
#administrative {
|
153
|
+
border-bottom: solid 3px #BFAE48; }
|
154
|
+
|
155
|
+
#advisory-band {
|
156
|
+
background-color: #BD9391; }
|
157
|
+
|
158
|
+
#advisory {
|
159
|
+
border-bottom: solid 3px #BD9391; }
|
160
|
+
|
161
|
+
#proposal-band {
|
162
|
+
background-color: #39A0ED; }
|
163
|
+
|
164
|
+
#proposal {
|
165
|
+
border-bottom: solid 3px #39A0ED; }
|
166
|
+
|
167
|
+
#working-draft-band {
|
168
|
+
background-color: #2D7393; }
|
169
|
+
|
170
|
+
#working-draft {
|
171
|
+
border-bottom: solid 3px #2D7393; }
|
172
|
+
|
173
|
+
#committee-draft-band {
|
174
|
+
background-color: #2A6B7C; }
|
175
|
+
|
176
|
+
#committee-draft {
|
177
|
+
border-bottom: solid 3px #2A6B7C; }
|
178
|
+
|
179
|
+
#draft-standard-band {
|
180
|
+
background-color: #1C7F7A; }
|
181
|
+
|
182
|
+
#draft-standard {
|
183
|
+
border-bottom: solid 3px #1C7F7A; }
|
184
|
+
|
185
|
+
#final-draft-band {
|
186
|
+
background-color: #53C170; }
|
187
|
+
|
188
|
+
#final-draft {
|
189
|
+
border-bottom: solid 3px #53C170; }
|
190
|
+
|
191
|
+
#published-band {
|
192
|
+
background-color: #069E2D; }
|
193
|
+
|
194
|
+
#published {
|
195
|
+
border-bottom: solid 3px #069E2D; }
|
196
|
+
|
197
|
+
#withdrawn-band {
|
198
|
+
background-color: #004E64; }
|
199
|
+
|
200
|
+
#withdrawn {
|
201
|
+
border-bottom: solid 3px #004E64; }
|
202
|
+
|
203
|
+
#cancelled-band {
|
204
|
+
background-color: #2E382E; }
|
205
|
+
|
206
|
+
#cancelled {
|
207
|
+
border-bottom: solid 3px #2E382E; }
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,34 @@
|
|
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
|
+
span.stem {
|
20
|
+
font-family: "Cambria Math",serif;
|
21
|
+
mso-ascii-font-family: "Cambria Math";
|
22
|
+
font-style: italic; }
|
23
|
+
|
24
|
+
dt {
|
25
|
+
page-break-inside: avoid;
|
26
|
+
page-break-after: avoid; }
|
27
|
+
|
28
|
+
br.section {
|
29
|
+
page-break-before: always;
|
30
|
+
mso-break-type: section-break; }
|
31
|
+
|
32
|
+
br.pagebreak {
|
33
|
+
page-break-before: always;
|
34
|
+
mso-special-character: line-break; }
|
File without changes
|
@@ -0,0 +1,105 @@
|
|
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, nav, 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
|
+
article, aside, details, figcaption, figure,
|
72
|
+
footer, header, hgroup, menu, nav, section {
|
73
|
+
display: block; }
|
74
|
+
|
75
|
+
table {
|
76
|
+
border-collapse: collapse;
|
77
|
+
border-spacing: 0; }
|
78
|
+
|
79
|
+
h1, h2, h3, h4, h5, h6 {
|
80
|
+
font-family: {{headerfont}}; }
|
81
|
+
|
82
|
+
blockquote, q {
|
83
|
+
quotes: none; }
|
84
|
+
blockquote:before, blockquote:after, q:before, q:after {
|
85
|
+
content: '';
|
86
|
+
content: none; }
|
87
|
+
|
88
|
+
.h2Annex {
|
89
|
+
font-family: {{headerfont}}; }
|
90
|
+
|
91
|
+
dl {
|
92
|
+
display: grid;
|
93
|
+
grid-template-columns: max-content auto; }
|
94
|
+
dl dt p, dl dd p {
|
95
|
+
margin-top: 0; }
|
96
|
+
dl dt {
|
97
|
+
grid-column-start: 1; }
|
98
|
+
dl dd {
|
99
|
+
grid-column-start: 2; }
|
100
|
+
|
101
|
+
b, strong {
|
102
|
+
font-weight: bold; }
|
103
|
+
|
104
|
+
div.document-stage-band, div.document-type-band {
|
105
|
+
background-color: #333333; }
|
File without changes
|
data/lib/isodoc/common.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require_relative "./function/blocks"
|
2
2
|
require_relative "./function/cleanup"
|
3
|
-
require_relative "./function/i18n"
|
4
3
|
require_relative "./function/inline"
|
5
4
|
require_relative "./function/lists"
|
6
5
|
require_relative "./function/references"
|
@@ -16,7 +15,6 @@ module IsoDoc
|
|
16
15
|
class Common
|
17
16
|
include Function::Blocks
|
18
17
|
include Function::Cleanup
|
19
|
-
include Function::I18n
|
20
18
|
include Function::Inline
|
21
19
|
include Function::Lists
|
22
20
|
include Function::References
|