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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f2afc72c01018a9f90be17973daf80e9e52897e482f613295fe0c48b4a0c85a
4
- data.tar.gz: 425341234ece59b30474763deb0bc3a854fa3f988e5918459eafd3e2ccdc1085
3
+ metadata.gz: 0e1e9ae0dee1840e2d4825ec6623f720a58f1cefaf7c0603759b5efca9f5620e
4
+ data.tar.gz: 2f66fe7d4c00bae4f465c738a4ad8813d41f4aa3450206d1a51a7a11e1c07745
5
5
  SHA512:
6
- metadata.gz: 6540b1d142ab824d177c51ac56ef98d9f9a9a2a8acf7a8d3eed2805023ac4f39908284bd64eb0039a544016b3c220a2d7b217c7daf909ab0a304fbb089a4c887
7
- data.tar.gz: d6769819cdd1fe2bd2068c0c3fa0b7bd7d58b92c0f28088ae9c7ee61987317446db6f9b371372430c9d3e969b55a2379621b20951174dd7e7ad1f20f901a39c8
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
- super
247
- end
248
-
249
- def initial_boilerplate(xmldoc)
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 id="_x0000_s1026"
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
 
@@ -94,7 +94,7 @@
94
94
  <span class="stage-if-draft">({{ stageabbr }})</span> <br/>
95
95
  {% if stage == 30 %}
96
96
  <div class="coverpage_warning">
97
- {{ patent_request }}
97
+ <div id="boilerplate-legal-destination"/>
98
98
  </div>
99
99
  {% endif %}
100
100
  {% if revdate %}
@@ -76,7 +76,7 @@
76
76
  {% endif %}
77
77
  {% if stage == 30 %}
78
78
  <div class="coverpage_warning">
79
- {{ patent_request }}
79
+ <div id="boilerplate-legal-destination"/>
80
80
  </div>
81
81
  {% endif %}
82
82
  {% endif %}
@@ -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
- <a name=YZBS></a><span
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
@@ -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: 团体标准
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Gb
3
- VERSION = "1.3.13"
3
+ VERSION = "1.3.14"
4
4
  end
5
5
  end
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.13
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-17 00:00:00.000000000 Z
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