metanorma-gb 1.3.13 → 1.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/asciidoctor/gb/boilerplate.xml +13 -0
- data/lib/asciidoctor/gb/converter.rb +12 -7
- data/lib/isodoc/gb/gbwordconvert.rb +9 -1
- data/lib/isodoc/gb/html/html_compliant_gb_titlepage.html +1 -1
- data/lib/isodoc/gb/html/html_gb_titlepage.html +1 -1
- data/lib/isodoc/gb/html/word_gb_titlepage.html +1 -4
- data/lib/isodoc/gb/html/wordstyle.scss +71 -2
- data/lib/isodoc/gb/i18n-en.yaml +1 -2
- data/lib/isodoc/gb/i18n-zh-Hans.yaml +1 -2
- data/lib/isodoc/gb/metadata.rb +4 -4
- data/lib/metanorma/gb/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e1e9ae0dee1840e2d4825ec6623f720a58f1cefaf7c0603759b5efca9f5620e
|
|
4
|
+
data.tar.gz: 2f66fe7d4c00bae4f465c738a4ad8813d41f4aa3450206d1a51a7a11e1c07745
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 92b7df3a9e1fafe9a01d735ee2e1975cc207a41cb06ece5d10c98de33fd27af61c7e311db8bab6c74be3cfdf8ced1e831e0edd69f6e5372a7853f8976f3792ac
|
|
7
|
+
data.tar.gz: 6dd14b6d35925f34195e98f752dceb549a0f4fa96f68daf2c36483710b41c3d0fcfafe3060b68edde4cbe04ff03aa7ceb66dbc4383f3f0b737838a478e7d7af8
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<boilerplate>
|
|
2
|
+
{% if stage == 30 %}
|
|
3
|
+
<legal-statement>
|
|
4
|
+
<clause>
|
|
5
|
+
{% if language == "en" %}
|
|
6
|
+
<p>When submitting feedback, please attach any relevant patents that you are aware of, together with supporting documents.</p>
|
|
7
|
+
{% else %}
|
|
8
|
+
<p>在提交反馈意见时,请将您知道的相关专利连同支持文件一并附上。</p>
|
|
9
|
+
{% endif %}
|
|
10
|
+
</clause>
|
|
11
|
+
</legal-statement>
|
|
12
|
+
{% endif %}
|
|
13
|
+
</boilerplate>
|
|
@@ -161,16 +161,16 @@ module Asciidoctor
|
|
|
161
161
|
"YD|YS|YY|YZ|ZY|GB|GBZ|GJB|GBn|GHZB|GWKB|GWPB|JJF|JJG|Q|T)(/Z|/T)?)"
|
|
162
162
|
|
|
163
163
|
ISO_REF = %r{^<ref\sid="(?<anchor>[^"]+)">
|
|
164
|
-
\[(?<code>(ISO|IEC|#{GBCODE})[^0-9]*\s[0-9-]+?)
|
|
164
|
+
\[(?<usrlbl>\([^)]+\))?(?<code>(ISO|IEC|#{GBCODE})[^0-9]*\s[0-9-]+?)
|
|
165
165
|
([:-](?<year>(19|20)[0-9][0-9]))?\]</ref>,?\s
|
|
166
166
|
(?<text>.*)$}xm
|
|
167
167
|
|
|
168
168
|
ISO_REF_NO_YEAR = %r{^<ref\sid="(?<anchor>[^"]+)">
|
|
169
|
-
\[(?<code>(ISO|IEC|#{GBCODE})[^0-9]*\s[0-9-]+):--\]</ref>,?\s?
|
|
169
|
+
\[(?<usrlbl>\([^)]+\))?(?<code>(ISO|IEC|#{GBCODE})[^0-9]*\s[0-9-]+):--\]</ref>,?\s?
|
|
170
170
|
<fn[^>]*>\s*<p>(?<fn>[^\]]+)</p>\s*</fn>,?\s?(?<text>.*)$}xm
|
|
171
171
|
|
|
172
172
|
ISO_REF_ALL_PARTS = %r{^<ref\sid="(?<anchor>[^"]+)">
|
|
173
|
-
\[(?<code>(ISO|IEC|#{GBCODE})[^0-9]*\s[0-9]+)\s
|
|
173
|
+
\[(?<usrlbl>\([^)]+\))?(?<code>(ISO|IEC|#{GBCODE})[^0-9]*\s[0-9]+)\s
|
|
174
174
|
\(all\sparts\)\]</ref>(<p>)?,?\s?
|
|
175
175
|
(?<text>.*)(</p>)?$}xm
|
|
176
176
|
|
|
@@ -242,11 +242,16 @@ module Asciidoctor
|
|
|
242
242
|
end
|
|
243
243
|
|
|
244
244
|
def boilerplate_cleanup(xmldoc)
|
|
245
|
+
isodoc = boilerplate_isodoc(xmldoc)
|
|
246
|
+
initial_boilerplate(xmldoc, isodoc)
|
|
245
247
|
return if @keepboilerplate
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
248
|
+
f = xmldoc.at(self.class::TERM_CLAUSE) and
|
|
249
|
+
term_defs_boilerplate(f.at("./title"),
|
|
250
|
+
xmldoc.xpath(".//termdocsource"),
|
|
251
|
+
f.at(".//term"), f.at(".//p"), isodoc)
|
|
252
|
+
f = xmldoc.at(self.class::NORM_REF) and
|
|
253
|
+
norm_ref_preface(f)
|
|
254
|
+
initial_boilerplate(xmldoc, isodoc)
|
|
250
255
|
end
|
|
251
256
|
end
|
|
252
257
|
end
|
|
@@ -40,7 +40,7 @@ module IsoDoc
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
ENDLINE = <<~END.freeze
|
|
43
|
-
<v:line
|
|
43
|
+
<v:line
|
|
44
44
|
alt="" style='position:absolute;left:0;text-align:left;z-index:251662848;
|
|
45
45
|
mso-wrap-edited:f;mso-width-percent:0;mso-height-percent:0;
|
|
46
46
|
mso-width-percent:0;mso-height-percent:0'
|
|
@@ -56,6 +56,14 @@ module IsoDoc
|
|
|
56
56
|
word_preface(docxml)
|
|
57
57
|
word_annex_cleanup(docxml)
|
|
58
58
|
@cleanup.title_cleanup(docxml.at('//div[@class="WordSection2"]'))
|
|
59
|
+
word_table_align(docxml)
|
|
60
|
+
word_table_separator(docxml)
|
|
61
|
+
word_admonition_images(docxml)
|
|
62
|
+
word_list_continuations(docxml)
|
|
63
|
+
word_example_cleanup(docxml)
|
|
64
|
+
word_pseudocode_cleanup(docxml)
|
|
65
|
+
word_image_caption(docxml)
|
|
66
|
+
authority_cleanup(docxml)
|
|
59
67
|
docxml
|
|
60
68
|
end
|
|
61
69
|
|
|
@@ -219,10 +219,7 @@ width:263494459px;height:28675px'>
|
|
|
219
219
|
lang=ZH-CN>({{ stageabbr }})</span></p>
|
|
220
220
|
<p class=draft_type>
|
|
221
221
|
{% if stage == 30 %}
|
|
222
|
-
|
|
223
|
-
style='mso-bookmark:YZBS'><span lang=ZH-CN style='mso-no-proof:yes'>{{ patent_request }}</span><span
|
|
224
|
-
lang=EN-US></span></span><span
|
|
225
|
-
style='mso-bookmark:YZBS'></span>
|
|
222
|
+
<div id="boilerplate-legal-destination"/>
|
|
226
223
|
{% endif %}
|
|
227
224
|
</p>
|
|
228
225
|
<p class=draft_editorial><span lang=EN-US>
|
|
@@ -108,6 +108,28 @@ div.WordSection1
|
|
|
108
108
|
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
|
|
109
109
|
mso-paper-source:0;
|
|
110
110
|
layout-grid:15.6pt;}
|
|
111
|
+
@page WordSection2L
|
|
112
|
+
{size:841.9pt 595.3pt;
|
|
113
|
+
margin:2.50cm 2.0cm 2.0cm 2.50cm;
|
|
114
|
+
mso-header-margin:2.50cm;
|
|
115
|
+
mso-footer-margin:1.50cm;
|
|
116
|
+
mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
|
|
117
|
+
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
|
|
118
|
+
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2;
|
|
119
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
|
|
120
|
+
mso-paper-source:0;
|
|
121
|
+
layout-grid:15.6pt;}
|
|
122
|
+
@page WordSection2P
|
|
123
|
+
{size:595.3pt 841.9pt;
|
|
124
|
+
margin:2.50cm 2.0cm 2.0cm 2.50cm;
|
|
125
|
+
mso-header-margin:2.50cm;
|
|
126
|
+
mso-footer-margin:1.50cm;
|
|
127
|
+
mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
|
|
128
|
+
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
|
|
129
|
+
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2;
|
|
130
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
|
|
131
|
+
mso-paper-source:0;
|
|
132
|
+
layout-grid:15.6pt;}
|
|
111
133
|
div.WordSection2
|
|
112
134
|
{page:WordSection2;}
|
|
113
135
|
@page WordSection3
|
|
@@ -122,6 +144,28 @@ div.WordSection2
|
|
|
122
144
|
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
|
123
145
|
mso-paper-source:0;
|
|
124
146
|
layout-grid:15.6pt;}
|
|
147
|
+
@page WordSection3L
|
|
148
|
+
{size:841.9pt 595.3pt;
|
|
149
|
+
margin:2.50cm 2.0cm 2.0cm 2.50cm;
|
|
150
|
+
mso-header-margin:2.50cm;
|
|
151
|
+
mso-footer-margin:1.50cm;
|
|
152
|
+
mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
|
|
153
|
+
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
|
|
154
|
+
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3;
|
|
155
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
|
156
|
+
mso-paper-source:0;
|
|
157
|
+
layout-grid:15.6pt;}
|
|
158
|
+
@page WordSection3P
|
|
159
|
+
{size:595.3pt 841.9pt;
|
|
160
|
+
margin:2.50cm 2.0cm 2.0cm 2.50cm;
|
|
161
|
+
mso-header-margin:2.50cm;
|
|
162
|
+
mso-footer-margin:1.50cm;
|
|
163
|
+
mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
|
|
164
|
+
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
|
|
165
|
+
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3;
|
|
166
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
|
167
|
+
mso-paper-source:0;
|
|
168
|
+
layout-grid:15.6pt;}
|
|
125
169
|
div.WordSection3
|
|
126
170
|
{page:WordSection3;}
|
|
127
171
|
/* Style Definitions */
|
|
@@ -594,7 +638,6 @@ p.IntroTitle, li.IntroTitle, div.IntroTitle, h1.IntroTitle
|
|
|
594
638
|
margin-left:0cm;
|
|
595
639
|
text-align:center;
|
|
596
640
|
line-height:15.5pt;
|
|
597
|
-
page-break-before:always;
|
|
598
641
|
mso-pagination:widow-orphan;
|
|
599
642
|
page-break-after:avoid;
|
|
600
643
|
mso-outline-level:1;
|
|
@@ -607,7 +650,34 @@ p.IntroTitle, li.IntroTitle, div.IntroTitle, h1.IntroTitle
|
|
|
607
650
|
mso-bidi-font-family:$headerfont;
|
|
608
651
|
mso-ansi-language:EN-GB;
|
|
609
652
|
mso-fareast-language:ZH-CN;
|
|
653
|
+
page-break-before:always;
|
|
610
654
|
mso-bidi-font-weight:normal;}
|
|
655
|
+
p.TitlePageSubhead, li.TitlePageSubhead, div.TitlePageSubhead {
|
|
656
|
+
mso-style-noshow:yes;
|
|
657
|
+
mso-style-unhide:no;
|
|
658
|
+
margin-top:0.7cm;
|
|
659
|
+
mso-element:frame;
|
|
660
|
+
mso-element-wrap:no-wrap-beside;
|
|
661
|
+
mso-element-anchor-vertical:paragraph;
|
|
662
|
+
mso-element-left:center;
|
|
663
|
+
margin-right:0cm;
|
|
664
|
+
margin-bottom:0.9cm;
|
|
665
|
+
margin-left:0cm;
|
|
666
|
+
text-align:center;
|
|
667
|
+
line-height:15.5pt;
|
|
668
|
+
mso-pagination:widow-orphan;
|
|
669
|
+
page-break-after:avoid;
|
|
670
|
+
mso-hyphenate:none;
|
|
671
|
+
tab-stops:20.15pt;
|
|
672
|
+
font-size:16.0pt;
|
|
673
|
+
mso-bidi-font-size:11.0pt;
|
|
674
|
+
font-family:$headerfont;
|
|
675
|
+
mso-fareast-font-family:$headerfont;
|
|
676
|
+
mso-bidi-font-family:$headerfont;
|
|
677
|
+
mso-ansi-language:EN-GB;
|
|
678
|
+
mso-fareast-language:ZH-CN;
|
|
679
|
+
mso-bidi-font-weight:normal;
|
|
680
|
+
}
|
|
611
681
|
.h2Annex
|
|
612
682
|
{mso-style-priority:2;
|
|
613
683
|
mso-style-unhide:no;
|
|
@@ -1696,7 +1766,6 @@ ol li li li, ol li li li p, ol li li li div, ol li li li .MsoNormal
|
|
|
1696
1766
|
mso-endnote-separator:url("file:///C:/Doc/FILENAME_files/header.html") es;
|
|
1697
1767
|
mso-endnote-continuation-separator:url("file:///C:/Doc/FILENAME_files/header.html") ecs;
|
|
1698
1768
|
mso-facing-pages:yes;
|
|
1699
|
-
mso-page-orientation: portrait;
|
|
1700
1769
|
}
|
|
1701
1770
|
/* List Definitions */
|
|
1702
1771
|
@list l0
|
data/lib/isodoc/gb/i18n-en.yaml
CHANGED
|
@@ -2,11 +2,10 @@ publicationdate_lbl: Issuance Date
|
|
|
2
2
|
implementationdate_lbl: Implementation Date
|
|
3
3
|
supercedes_lbl: Supercedes
|
|
4
4
|
partly_supercedes_lbl: Partly Supercedes
|
|
5
|
-
patent_request: When submitting feedback, please attach any relevant patents that you are aware of, together with supporting documents.
|
|
6
5
|
completion_date: 'Completion date for this manuscript: '
|
|
7
6
|
PRC: "People's Republic of China "
|
|
8
7
|
industry_standard: " Industry Standard"
|
|
9
8
|
local_standard: " Local Standard"
|
|
10
9
|
local_issuer: " Quality and Technical Inspection Bureau"
|
|
11
10
|
enterprise_standard: " Enterprise Standard"
|
|
12
|
-
social_standard: Social Standard
|
|
11
|
+
social_standard: Social Standard
|
|
@@ -2,11 +2,10 @@ publicationdate_lbl: 发布
|
|
|
2
2
|
implementationdate_lbl: 实施
|
|
3
3
|
supercedes_lbl: 代替
|
|
4
4
|
partly_supercedes_lbl: 部分代替
|
|
5
|
-
patent_request: 在提交反馈意见时,请将您知道的相关专利连同支持文件一并附上。
|
|
6
5
|
completion_date: 本稿完成日期:
|
|
7
6
|
PRC: 中华人民共和国
|
|
8
7
|
industry_standard: 行业标准
|
|
9
8
|
local_standard: 地方标准
|
|
10
9
|
local_issuer: 质量技术检测局
|
|
11
10
|
enterprise_standard: 企业标准
|
|
12
|
-
social_standard: 团体标准
|
|
11
|
+
social_standard: 团体标准
|
data/lib/isodoc/gb/metadata.rb
CHANGED
|
@@ -220,14 +220,14 @@ module IsoDoc
|
|
|
220
220
|
m = get
|
|
221
221
|
if @lang == "zh"
|
|
222
222
|
set(:labelled_publisheddate, m[:publisheddate] + " " +
|
|
223
|
-
@labels["publicationdate_lbl"])
|
|
223
|
+
(@labels["publicationdate_lbl"] || ""))
|
|
224
224
|
set(:labelled_implementeddate, m[:implementeddate] + " " +
|
|
225
|
-
@labels["implementationdate_lbl"])
|
|
225
|
+
(@labels["implementationdate_lbl"] || ""))
|
|
226
226
|
else
|
|
227
|
-
set(:labelled_publisheddate, @labels["publicationdate_lbl"] +
|
|
227
|
+
set(:labelled_publisheddate, (@labels["publicationdate_lbl"] || "") +
|
|
228
228
|
": " + m[:publisheddate])
|
|
229
229
|
set(:labelled_implementeddate,
|
|
230
|
-
@labels["implementationdate_lbl"] + ": " +
|
|
230
|
+
(@labels["implementationdate_lbl"] || "") + ": " +
|
|
231
231
|
m[:implementeddate])
|
|
232
232
|
end
|
|
233
233
|
end
|
data/lib/metanorma/gb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-gb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-01-
|
|
11
|
+
date: 2020-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-iso
|
|
@@ -252,6 +252,7 @@ files:
|
|
|
252
252
|
- lib/asciidoctor/gb.rb
|
|
253
253
|
- lib/asciidoctor/gb/basicdoc.rng
|
|
254
254
|
- lib/asciidoctor/gb/biblio.rng
|
|
255
|
+
- lib/asciidoctor/gb/boilerplate.xml
|
|
255
256
|
- lib/asciidoctor/gb/converter.rb
|
|
256
257
|
- lib/asciidoctor/gb/front.rb
|
|
257
258
|
- lib/asciidoctor/gb/gbstandard.rng
|