isodoc 2.0.8.2 → 2.1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release.yml +1 -1
  3. data/isodoc.gemspec +5 -3
  4. data/lib/isodoc/convert.rb +1 -1
  5. data/lib/isodoc/function/blocks.rb +0 -39
  6. data/lib/isodoc/function/blocks_example_note.rb +36 -1
  7. data/lib/isodoc/function/inline.rb +4 -0
  8. data/lib/isodoc/function/references.rb +2 -15
  9. data/lib/isodoc/function/section.rb +5 -0
  10. data/lib/isodoc/function/to_word_html.rb +7 -11
  11. data/lib/isodoc/html_function/postprocess.rb +16 -2
  12. data/lib/isodoc/metadata.rb +2 -1
  13. data/lib/isodoc/presentation_function/bibdata.rb +30 -4
  14. data/lib/isodoc/presentation_function/block.rb +13 -1
  15. data/lib/isodoc/presentation_function/section.rb +36 -0
  16. data/lib/isodoc/presentation_xml_convert.rb +7 -2
  17. data/lib/isodoc/version.rb +1 -1
  18. data/lib/isodoc/word_function/postprocess.rb +3 -4
  19. data/lib/isodoc/word_function/postprocess_cover.rb +14 -0
  20. data/lib/isodoc/word_function/table.rb +12 -10
  21. data/lib/isodoc/xref/xref_anchor.rb +1 -1
  22. data/lib/isodoc/xref/xref_counter.rb +4 -1
  23. data/lib/isodoc/xref/xref_gen_seq.rb +3 -3
  24. data/lib/isodoc/xref/xref_sect_gen.rb +34 -36
  25. data/lib/isodoc/xref.rb +19 -8
  26. data/lib/isodoc-yaml/i18n-ar.yaml +9 -0
  27. data/lib/isodoc-yaml/i18n-de.yaml +13 -0
  28. data/lib/isodoc-yaml/i18n-en.yaml +5 -0
  29. data/lib/isodoc-yaml/i18n-es.yaml +11 -0
  30. data/lib/isodoc-yaml/i18n-fr.yaml +12 -1
  31. data/lib/isodoc-yaml/i18n-ru.yaml +13 -0
  32. data/lib/isodoc-yaml/i18n-zh-Hans.yaml +5 -0
  33. data/lib/relaton/render/config.yml +4 -0
  34. data/lib/relaton/render/general.rb +35 -0
  35. data/spec/assets/i18n.yaml +6 -0
  36. data/spec/isodoc/blocks_spec.rb +249 -61
  37. data/spec/isodoc/i18n_spec.rb +266 -197
  38. data/spec/isodoc/inline_spec.rb +80 -106
  39. data/spec/isodoc/metadata_spec.rb +5 -3
  40. data/spec/isodoc/postproc_spec.rb +539 -397
  41. data/spec/isodoc/ref_spec.rb +52 -98
  42. data/spec/isodoc/section_spec.rb +4 -4
  43. data/spec/isodoc/xref_numbering_spec.rb +31 -0
  44. metadata +30 -22
  45. data/lib/isodoc/base_style/all.css +0 -227
  46. data/lib/isodoc/base_style/blocks.css +0 -0
  47. data/lib/isodoc/base_style/coverpage.css +0 -0
  48. data/lib/isodoc/base_style/defaults.css +0 -0
  49. data/lib/isodoc/base_style/metanorma_word.css +0 -47
  50. data/lib/isodoc/base_style/nav.css +0 -0
  51. data/lib/isodoc/base_style/reset.css +0 -125
  52. data/lib/isodoc/base_style/typography.css +0 -0
@@ -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