metanorma-ieee 1.2.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/ieee/html/wp_image001_icr.emz +0 -0
- data/lib/isodoc/ieee/html/wp_image003_icr.emz +0 -0
- data/lib/isodoc/ieee/html/wp_image008_icr.emz +0 -0
- data/lib/isodoc/ieee/ieee.amendment.xsl +103 -16
- data/lib/isodoc/ieee/ieee.standard.xsl +103 -16
- data/lib/isodoc/ieee/init.rb +1 -1
- data/lib/isodoc/ieee/presentation_bibdata.rb +9 -4
- data/lib/isodoc/ieee/presentation_ref.rb +3 -4
- data/lib/isodoc/ieee/word_cleanup.rb +2 -0
- data/lib/metanorma/ieee/basicdoc.rng +3 -0
- data/lib/metanorma/ieee/boilerplate.adoc +1 -1
- data/lib/metanorma/ieee/cleanup.rb +9 -5
- data/lib/metanorma/ieee/front.rb +74 -5
- data/lib/metanorma/ieee/isodoc.rng +4 -1
- data/lib/metanorma/ieee/version.rb +1 -1
- data/metanorma-ieee.gemspec +2 -2
- metadata +21 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7f574040d82c858fbb3b98fc96b1e02878cd228cfeaca8f9f911f39e6109896
|
4
|
+
data.tar.gz: 7246caedc4a16824404480f881c24b6197079874bc676e872bd86f0bae639a1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0b6d672c80a2f0d3847e572e26c738ce506e4918eeccbe521d99e1a65d4fe4095296000eb9d5e4ac286c4618cf13d77cdf9f103b92987fbd05152c151125ebb
|
7
|
+
data.tar.gz: 0f851f69bb307f2ba91825b31e6dd40113d25d1f07263c895ac4569547630d1f40732661e898a15d51f7c3503e285381e8d51ec0b55f4411ff7706426a1b1d68
|
Binary file
|
Binary file
|
Binary file
|
@@ -4327,6 +4327,10 @@
|
|
4327
4327
|
|
4328
4328
|
</xsl:attribute-set>
|
4329
4329
|
|
4330
|
+
<xsl:template name="refine_termexample-style">
|
4331
|
+
|
4332
|
+
</xsl:template>
|
4333
|
+
|
4330
4334
|
<xsl:attribute-set name="example-style">
|
4331
4335
|
|
4332
4336
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
@@ -5496,6 +5500,36 @@
|
|
5496
5500
|
</xsl:for-each>
|
5497
5501
|
</xsl:template>
|
5498
5502
|
|
5503
|
+
<xsl:template name="processMainSectionsDefault_flatxml">
|
5504
|
+
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
5505
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
5506
|
+
<xsl:variable name="flatxml">
|
5507
|
+
<xsl:apply-templates select="." mode="flatxml"/>
|
5508
|
+
</xsl:variable>
|
5509
|
+
<!-- debug_flatxml='<xsl:copy-of select="$flatxml"/>' -->
|
5510
|
+
<xsl:apply-templates select="xalan:nodeset($flatxml)/*"/>
|
5511
|
+
|
5512
|
+
</xsl:for-each>
|
5513
|
+
|
5514
|
+
<xsl:for-each select="/*/*[local-name()='annex']">
|
5515
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
5516
|
+
<xsl:variable name="flatxml">
|
5517
|
+
<xsl:apply-templates select="." mode="flatxml"/>
|
5518
|
+
</xsl:variable>
|
5519
|
+
<!-- debug_flatxml='<xsl:copy-of select="$flatxml"/>' -->
|
5520
|
+
<xsl:apply-templates select="xalan:nodeset($flatxml)/*"/>
|
5521
|
+
</xsl:for-each>
|
5522
|
+
|
5523
|
+
<xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
|
5524
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
5525
|
+
<xsl:variable name="flatxml">
|
5526
|
+
<xsl:apply-templates select="." mode="flatxml"/>
|
5527
|
+
</xsl:variable>
|
5528
|
+
<!-- debug_flatxml='<xsl:copy-of select="$flatxml"/>' -->
|
5529
|
+
<xsl:apply-templates select="xalan:nodeset($flatxml)/*"/>
|
5530
|
+
</xsl:for-each>
|
5531
|
+
</xsl:template>
|
5532
|
+
|
5499
5533
|
<xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
|
5500
5534
|
<xsl:variable name="tag_fo_inline_keep-together_within-line_open">###fo:inline keep-together_within-line###</xsl:variable>
|
5501
5535
|
<xsl:variable name="tag_fo_inline_keep-together_within-line_close">###/fo:inline keep-together_within-line###</xsl:variable>
|
@@ -5622,7 +5656,9 @@
|
|
5622
5656
|
</xsl:template> <!-- license-statement/p -->
|
5623
5657
|
|
5624
5658
|
<xsl:template match="*[local-name()='legal-statement']">
|
5659
|
+
<xsl:param name="isLegacy">false</xsl:param>
|
5625
5660
|
<fo:block xsl:use-attribute-sets="legal-statement-style">
|
5661
|
+
|
5626
5662
|
<xsl:apply-templates/>
|
5627
5663
|
</fo:block>
|
5628
5664
|
</xsl:template> <!-- legal-statement -->
|
@@ -7600,13 +7636,13 @@
|
|
7600
7636
|
<tr>
|
7601
7637
|
<td>
|
7602
7638
|
<xsl:attribute name="id">
|
7603
|
-
<xsl:value-of select="concat($id,'
|
7639
|
+
<xsl:value-of select="concat($id,'@',$row_number,'_1')"/>
|
7604
7640
|
</xsl:attribute>
|
7605
7641
|
<xsl:apply-templates/>
|
7606
7642
|
</td>
|
7607
7643
|
<td>
|
7608
7644
|
<xsl:attribute name="id">
|
7609
|
-
<xsl:value-of select="concat($id,'
|
7645
|
+
<xsl:value-of select="concat($id,'@',$row_number,'_2')"/>
|
7610
7646
|
</xsl:attribute>
|
7611
7647
|
|
7612
7648
|
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
|
@@ -7915,13 +7951,14 @@
|
|
7915
7951
|
<!-- ================= -->
|
7916
7952
|
<!-- Added,deleted text -->
|
7917
7953
|
<!-- ================= -->
|
7918
|
-
<xsl:template match="*[local-name()='add']" name="tag_add">
|
7954
|
+
<xsl:template match="*[local-name()='add'] | *[local-name() = 'change-open-tag'] | *[local-name() = 'change-close-tag']" name="tag_add">
|
7919
7955
|
<xsl:param name="skip">true</xsl:param>
|
7920
7956
|
<xsl:param name="block">false</xsl:param>
|
7921
7957
|
<xsl:param name="type"/>
|
7922
7958
|
<xsl:param name="text-align"/>
|
7923
7959
|
<xsl:choose>
|
7924
|
-
<xsl:when test="starts-with(., $ace_tag)"> <!-- examples: ace-tag_A1_start, ace-tag_A2_end, C1_start, AC_start
|
7960
|
+
<xsl:when test="starts-with(., $ace_tag) or local-name() = 'change-open-tag' or local-name() = 'change-close-tag'"> <!-- examples: ace-tag_A1_start, ace-tag_A2_end, C1_start, AC_start, or
|
7961
|
+
<change-open-tag>A<sub>1</sub></change-open-tag>, <change-close-tag>A<sub>1</sub></change-close-tag> -->
|
7925
7962
|
<xsl:choose>
|
7926
7963
|
<xsl:when test="$skip = 'true' and ((local-name(../..) = 'note' and not(preceding-sibling::node())) or (local-name(..) = 'title' and preceding-sibling::node()[1][local-name() = 'tab']) or local-name(..) = 'formattedref' and not(preceding-sibling::node())) and ../node()[last()][local-name() = 'add'][starts-with(text(), $ace_tag)]"><!-- start tag displayed in template name="note" and title --></xsl:when>
|
7927
7964
|
<xsl:otherwise>
|
@@ -7929,12 +7966,32 @@
|
|
7929
7966
|
<xsl:call-template name="insertTag">
|
7930
7967
|
<xsl:with-param name="type">
|
7931
7968
|
<xsl:choose>
|
7969
|
+
<xsl:when test="local-name() = 'change-open-tag'">start</xsl:when>
|
7970
|
+
<xsl:when test="local-name() = 'change-close-tag'">end</xsl:when>
|
7932
7971
|
<xsl:when test="$type = ''"><xsl:value-of select="substring-after(substring-after(., $ace_tag), '_')"/> <!-- start or end --></xsl:when>
|
7933
7972
|
<xsl:otherwise><xsl:value-of select="$type"/></xsl:otherwise>
|
7934
7973
|
</xsl:choose>
|
7935
7974
|
</xsl:with-param>
|
7936
|
-
<xsl:with-param name="kind"
|
7937
|
-
|
7975
|
+
<xsl:with-param name="kind">
|
7976
|
+
<xsl:choose>
|
7977
|
+
<xsl:when test="local-name() = 'change-open-tag' or local-name() = 'change-close-tag'">
|
7978
|
+
<xsl:value-of select="text()"/>
|
7979
|
+
</xsl:when>
|
7980
|
+
<xsl:otherwise>
|
7981
|
+
<xsl:value-of select="substring(substring-before(substring-after(., $ace_tag), '_'), 1, 1)"/> <!-- A or C -->
|
7982
|
+
</xsl:otherwise>
|
7983
|
+
</xsl:choose>
|
7984
|
+
</xsl:with-param>
|
7985
|
+
<xsl:with-param name="value">
|
7986
|
+
<xsl:choose>
|
7987
|
+
<xsl:when test="local-name() = 'change-open-tag' or local-name() = 'change-close-tag'">
|
7988
|
+
<xsl:value-of select="*[local-name() = 'sub']"/>
|
7989
|
+
</xsl:when>
|
7990
|
+
<xsl:otherwise>
|
7991
|
+
<xsl:value-of select="substring(substring-before(substring-after(., $ace_tag), '_'), 2)"/> <!-- 1, 2, C -->
|
7992
|
+
</xsl:otherwise>
|
7993
|
+
</xsl:choose>
|
7994
|
+
</xsl:with-param>
|
7938
7995
|
</xsl:call-template>
|
7939
7996
|
</xsl:variable>
|
7940
7997
|
<xsl:choose>
|
@@ -8194,6 +8251,10 @@
|
|
8194
8251
|
<fo:inline keep-with-next.within-line="always"><xsl:value-of select="."/></fo:inline>
|
8195
8252
|
</xsl:template>
|
8196
8253
|
|
8254
|
+
<xsl:template match="*[local-name() = 'span'][contains(@style, 'text-transform:none')]//text()" priority="5">
|
8255
|
+
<xsl:value-of select="."/>
|
8256
|
+
</xsl:template>
|
8257
|
+
|
8197
8258
|
<!-- ========================= -->
|
8198
8259
|
<!-- END Rich text formatting -->
|
8199
8260
|
<!-- ========================= -->
|
@@ -8824,7 +8885,7 @@
|
|
8824
8885
|
</xsl:choose>
|
8825
8886
|
</xsl:variable>
|
8826
8887
|
<xsl:attribute name="id">
|
8827
|
-
<xsl:value-of select="concat($id,'
|
8888
|
+
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_',$divide)"/>
|
8828
8889
|
</xsl:attribute>
|
8829
8890
|
|
8830
8891
|
<xsl:for-each select="*[local-name() = 'p']">
|
@@ -8832,7 +8893,7 @@
|
|
8832
8893
|
<xsl:copy-of select="@*"/>
|
8833
8894
|
<xsl:variable name="p_num" select="count(preceding-sibling::*[local-name() = 'p']) + 1"/>
|
8834
8895
|
<xsl:attribute name="id">
|
8835
|
-
<xsl:value-of select="concat($id,'
|
8896
|
+
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
|
8836
8897
|
</xsl:attribute>
|
8837
8898
|
|
8838
8899
|
<!-- <xsl:copy-of select="node()" /> -->
|
@@ -8896,7 +8957,7 @@
|
|
8896
8957
|
<xsl:variable name="num" select="count(preceding-sibling::word) + 1"/>
|
8897
8958
|
<xsl:copy>
|
8898
8959
|
<xsl:attribute name="id">
|
8899
|
-
<xsl:value-of select="concat($id,'
|
8960
|
+
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
|
8900
8961
|
</xsl:attribute>
|
8901
8962
|
<xsl:copy-of select="node()"/>
|
8902
8963
|
</xsl:copy>
|
@@ -10144,11 +10205,17 @@
|
|
10144
10205
|
</xsl:when>
|
10145
10206
|
<xsl:otherwise>
|
10146
10207
|
|
10208
|
+
<xsl:variable name="image_class" select="ancestor::*[local-name() = 'image']/@class"/>
|
10209
|
+
<xsl:variable name="ancestor_table_cell" select="normalize-space(ancestor::*[local-name() = 'td'] or ancestor::*[local-name() = 'th'])"/>
|
10210
|
+
|
10147
10211
|
<xsl:variable name="element">
|
10148
10212
|
<xsl:choose>
|
10149
10213
|
<xsl:when test="ancestor::*[local-name() = 'tr'] and $isGenerateTableIF = 'true'">
|
10150
10214
|
<fo:inline xsl:use-attribute-sets="image-style" text-align="left"/>
|
10151
10215
|
</xsl:when>
|
10216
|
+
<xsl:when test="not(ancestor::*[local-name() = 'figure'])">
|
10217
|
+
<fo:inline xsl:use-attribute-sets="image-style" text-align="left"/>
|
10218
|
+
</xsl:when>
|
10152
10219
|
<xsl:otherwise>
|
10153
10220
|
<fo:block xsl:use-attribute-sets="image-style">
|
10154
10221
|
<xsl:if test="ancestor::*[local-name() = 'dt']">
|
@@ -10164,10 +10231,24 @@
|
|
10164
10231
|
<xsl:copy-of select="@*"/>
|
10165
10232
|
<!-- <fo:block xsl:use-attribute-sets="image-style"> -->
|
10166
10233
|
<fo:instream-foreign-object fox:alt-text="{$alt-text}">
|
10167
|
-
|
10168
|
-
|
10169
|
-
|
10170
|
-
|
10234
|
+
|
10235
|
+
<xsl:choose>
|
10236
|
+
<xsl:when test="$image_class = 'corrigenda-tag'">
|
10237
|
+
<xsl:attribute name="fox:alt-text">CorrigendaTag</xsl:attribute>
|
10238
|
+
<xsl:attribute name="baseline-shift">-10%</xsl:attribute>
|
10239
|
+
<xsl:if test="$ancestor_table_cell = 'true'">
|
10240
|
+
<xsl:attribute name="baseline-shift">-25%</xsl:attribute>
|
10241
|
+
</xsl:if>
|
10242
|
+
<xsl:attribute name="height">3.5mm</xsl:attribute>
|
10243
|
+
</xsl:when>
|
10244
|
+
<xsl:otherwise>
|
10245
|
+
<xsl:if test="$isGenerateTableIF = 'false'">
|
10246
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
10247
|
+
</xsl:if>
|
10248
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
10249
|
+
</xsl:otherwise>
|
10250
|
+
</xsl:choose>
|
10251
|
+
|
10171
10252
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
10172
10253
|
<xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
|
10173
10254
|
<xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
|
@@ -11681,7 +11762,7 @@
|
|
11681
11762
|
<!-- ====== -->
|
11682
11763
|
<xsl:template match="*[local-name() = 'termexample']">
|
11683
11764
|
<fo:block id="{@id}" xsl:use-attribute-sets="termexample-style">
|
11684
|
-
|
11765
|
+
<xsl:call-template name="refine_termexample-style"/>
|
11685
11766
|
<xsl:call-template name="setBlockSpanAll"/>
|
11686
11767
|
|
11687
11768
|
<xsl:apply-templates select="*[local-name()='name']"/>
|
@@ -12364,13 +12445,19 @@
|
|
12364
12445
|
<fo:block id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
|
12365
12446
|
</xsl:when>
|
12366
12447
|
<!-- if there isn't element with id 'from', then create 'bookmark' here -->
|
12367
|
-
<xsl:when test="not(ancestor::*[contains(local-name(), '-standard')]//*[@id = $id_from])">
|
12448
|
+
<xsl:when test="ancestor::*[contains(local-name(), '-standard')] and not(ancestor::*[contains(local-name(), '-standard')]//*[@id = $id_from])">
|
12449
|
+
<fo:block id="{@from}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
|
12450
|
+
</xsl:when>
|
12451
|
+
<xsl:when test="not(//*[@id = $id_from]) and not(preceding-sibling::*[@id = $id_from])">
|
12368
12452
|
<fo:block id="{@from}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
|
12369
12453
|
</xsl:when>
|
12370
12454
|
</xsl:choose>
|
12371
12455
|
|
12372
12456
|
</xsl:template>
|
12373
12457
|
|
12458
|
+
<!-- https://github.com/metanorma/mn-samples-bsi/issues/312 -->
|
12459
|
+
<xsl:template match="*[local-name() = 'review'][@type = 'other']"/>
|
12460
|
+
|
12374
12461
|
<xsl:template match="*[local-name() = 'name']/text()">
|
12375
12462
|
<!-- 0xA0 to space replacement -->
|
12376
12463
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
@@ -14137,7 +14224,7 @@
|
|
14137
14224
|
|
14138
14225
|
<xsl:template name="printEdition">
|
14139
14226
|
<xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
|
14140
|
-
|
14227
|
+
|
14141
14228
|
<xsl:choose>
|
14142
14229
|
<xsl:when test="$edition_i18n != ''">
|
14143
14230
|
<!-- Example: <edition language="fr">deuxième édition</edition> -->
|
@@ -4327,6 +4327,10 @@
|
|
4327
4327
|
|
4328
4328
|
</xsl:attribute-set>
|
4329
4329
|
|
4330
|
+
<xsl:template name="refine_termexample-style">
|
4331
|
+
|
4332
|
+
</xsl:template>
|
4333
|
+
|
4330
4334
|
<xsl:attribute-set name="example-style">
|
4331
4335
|
|
4332
4336
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
@@ -5496,6 +5500,36 @@
|
|
5496
5500
|
</xsl:for-each>
|
5497
5501
|
</xsl:template>
|
5498
5502
|
|
5503
|
+
<xsl:template name="processMainSectionsDefault_flatxml">
|
5504
|
+
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
5505
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
5506
|
+
<xsl:variable name="flatxml">
|
5507
|
+
<xsl:apply-templates select="." mode="flatxml"/>
|
5508
|
+
</xsl:variable>
|
5509
|
+
<!-- debug_flatxml='<xsl:copy-of select="$flatxml"/>' -->
|
5510
|
+
<xsl:apply-templates select="xalan:nodeset($flatxml)/*"/>
|
5511
|
+
|
5512
|
+
</xsl:for-each>
|
5513
|
+
|
5514
|
+
<xsl:for-each select="/*/*[local-name()='annex']">
|
5515
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
5516
|
+
<xsl:variable name="flatxml">
|
5517
|
+
<xsl:apply-templates select="." mode="flatxml"/>
|
5518
|
+
</xsl:variable>
|
5519
|
+
<!-- debug_flatxml='<xsl:copy-of select="$flatxml"/>' -->
|
5520
|
+
<xsl:apply-templates select="xalan:nodeset($flatxml)/*"/>
|
5521
|
+
</xsl:for-each>
|
5522
|
+
|
5523
|
+
<xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
|
5524
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
5525
|
+
<xsl:variable name="flatxml">
|
5526
|
+
<xsl:apply-templates select="." mode="flatxml"/>
|
5527
|
+
</xsl:variable>
|
5528
|
+
<!-- debug_flatxml='<xsl:copy-of select="$flatxml"/>' -->
|
5529
|
+
<xsl:apply-templates select="xalan:nodeset($flatxml)/*"/>
|
5530
|
+
</xsl:for-each>
|
5531
|
+
</xsl:template>
|
5532
|
+
|
5499
5533
|
<xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
|
5500
5534
|
<xsl:variable name="tag_fo_inline_keep-together_within-line_open">###fo:inline keep-together_within-line###</xsl:variable>
|
5501
5535
|
<xsl:variable name="tag_fo_inline_keep-together_within-line_close">###/fo:inline keep-together_within-line###</xsl:variable>
|
@@ -5622,7 +5656,9 @@
|
|
5622
5656
|
</xsl:template> <!-- license-statement/p -->
|
5623
5657
|
|
5624
5658
|
<xsl:template match="*[local-name()='legal-statement']">
|
5659
|
+
<xsl:param name="isLegacy">false</xsl:param>
|
5625
5660
|
<fo:block xsl:use-attribute-sets="legal-statement-style">
|
5661
|
+
|
5626
5662
|
<xsl:apply-templates/>
|
5627
5663
|
</fo:block>
|
5628
5664
|
</xsl:template> <!-- legal-statement -->
|
@@ -7600,13 +7636,13 @@
|
|
7600
7636
|
<tr>
|
7601
7637
|
<td>
|
7602
7638
|
<xsl:attribute name="id">
|
7603
|
-
<xsl:value-of select="concat($id,'
|
7639
|
+
<xsl:value-of select="concat($id,'@',$row_number,'_1')"/>
|
7604
7640
|
</xsl:attribute>
|
7605
7641
|
<xsl:apply-templates/>
|
7606
7642
|
</td>
|
7607
7643
|
<td>
|
7608
7644
|
<xsl:attribute name="id">
|
7609
|
-
<xsl:value-of select="concat($id,'
|
7645
|
+
<xsl:value-of select="concat($id,'@',$row_number,'_2')"/>
|
7610
7646
|
</xsl:attribute>
|
7611
7647
|
|
7612
7648
|
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
|
@@ -7915,13 +7951,14 @@
|
|
7915
7951
|
<!-- ================= -->
|
7916
7952
|
<!-- Added,deleted text -->
|
7917
7953
|
<!-- ================= -->
|
7918
|
-
<xsl:template match="*[local-name()='add']" name="tag_add">
|
7954
|
+
<xsl:template match="*[local-name()='add'] | *[local-name() = 'change-open-tag'] | *[local-name() = 'change-close-tag']" name="tag_add">
|
7919
7955
|
<xsl:param name="skip">true</xsl:param>
|
7920
7956
|
<xsl:param name="block">false</xsl:param>
|
7921
7957
|
<xsl:param name="type"/>
|
7922
7958
|
<xsl:param name="text-align"/>
|
7923
7959
|
<xsl:choose>
|
7924
|
-
<xsl:when test="starts-with(., $ace_tag)"> <!-- examples: ace-tag_A1_start, ace-tag_A2_end, C1_start, AC_start
|
7960
|
+
<xsl:when test="starts-with(., $ace_tag) or local-name() = 'change-open-tag' or local-name() = 'change-close-tag'"> <!-- examples: ace-tag_A1_start, ace-tag_A2_end, C1_start, AC_start, or
|
7961
|
+
<change-open-tag>A<sub>1</sub></change-open-tag>, <change-close-tag>A<sub>1</sub></change-close-tag> -->
|
7925
7962
|
<xsl:choose>
|
7926
7963
|
<xsl:when test="$skip = 'true' and ((local-name(../..) = 'note' and not(preceding-sibling::node())) or (local-name(..) = 'title' and preceding-sibling::node()[1][local-name() = 'tab']) or local-name(..) = 'formattedref' and not(preceding-sibling::node())) and ../node()[last()][local-name() = 'add'][starts-with(text(), $ace_tag)]"><!-- start tag displayed in template name="note" and title --></xsl:when>
|
7927
7964
|
<xsl:otherwise>
|
@@ -7929,12 +7966,32 @@
|
|
7929
7966
|
<xsl:call-template name="insertTag">
|
7930
7967
|
<xsl:with-param name="type">
|
7931
7968
|
<xsl:choose>
|
7969
|
+
<xsl:when test="local-name() = 'change-open-tag'">start</xsl:when>
|
7970
|
+
<xsl:when test="local-name() = 'change-close-tag'">end</xsl:when>
|
7932
7971
|
<xsl:when test="$type = ''"><xsl:value-of select="substring-after(substring-after(., $ace_tag), '_')"/> <!-- start or end --></xsl:when>
|
7933
7972
|
<xsl:otherwise><xsl:value-of select="$type"/></xsl:otherwise>
|
7934
7973
|
</xsl:choose>
|
7935
7974
|
</xsl:with-param>
|
7936
|
-
<xsl:with-param name="kind"
|
7937
|
-
|
7975
|
+
<xsl:with-param name="kind">
|
7976
|
+
<xsl:choose>
|
7977
|
+
<xsl:when test="local-name() = 'change-open-tag' or local-name() = 'change-close-tag'">
|
7978
|
+
<xsl:value-of select="text()"/>
|
7979
|
+
</xsl:when>
|
7980
|
+
<xsl:otherwise>
|
7981
|
+
<xsl:value-of select="substring(substring-before(substring-after(., $ace_tag), '_'), 1, 1)"/> <!-- A or C -->
|
7982
|
+
</xsl:otherwise>
|
7983
|
+
</xsl:choose>
|
7984
|
+
</xsl:with-param>
|
7985
|
+
<xsl:with-param name="value">
|
7986
|
+
<xsl:choose>
|
7987
|
+
<xsl:when test="local-name() = 'change-open-tag' or local-name() = 'change-close-tag'">
|
7988
|
+
<xsl:value-of select="*[local-name() = 'sub']"/>
|
7989
|
+
</xsl:when>
|
7990
|
+
<xsl:otherwise>
|
7991
|
+
<xsl:value-of select="substring(substring-before(substring-after(., $ace_tag), '_'), 2)"/> <!-- 1, 2, C -->
|
7992
|
+
</xsl:otherwise>
|
7993
|
+
</xsl:choose>
|
7994
|
+
</xsl:with-param>
|
7938
7995
|
</xsl:call-template>
|
7939
7996
|
</xsl:variable>
|
7940
7997
|
<xsl:choose>
|
@@ -8194,6 +8251,10 @@
|
|
8194
8251
|
<fo:inline keep-with-next.within-line="always"><xsl:value-of select="."/></fo:inline>
|
8195
8252
|
</xsl:template>
|
8196
8253
|
|
8254
|
+
<xsl:template match="*[local-name() = 'span'][contains(@style, 'text-transform:none')]//text()" priority="5">
|
8255
|
+
<xsl:value-of select="."/>
|
8256
|
+
</xsl:template>
|
8257
|
+
|
8197
8258
|
<!-- ========================= -->
|
8198
8259
|
<!-- END Rich text formatting -->
|
8199
8260
|
<!-- ========================= -->
|
@@ -8824,7 +8885,7 @@
|
|
8824
8885
|
</xsl:choose>
|
8825
8886
|
</xsl:variable>
|
8826
8887
|
<xsl:attribute name="id">
|
8827
|
-
<xsl:value-of select="concat($id,'
|
8888
|
+
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_',$divide)"/>
|
8828
8889
|
</xsl:attribute>
|
8829
8890
|
|
8830
8891
|
<xsl:for-each select="*[local-name() = 'p']">
|
@@ -8832,7 +8893,7 @@
|
|
8832
8893
|
<xsl:copy-of select="@*"/>
|
8833
8894
|
<xsl:variable name="p_num" select="count(preceding-sibling::*[local-name() = 'p']) + 1"/>
|
8834
8895
|
<xsl:attribute name="id">
|
8835
|
-
<xsl:value-of select="concat($id,'
|
8896
|
+
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
|
8836
8897
|
</xsl:attribute>
|
8837
8898
|
|
8838
8899
|
<!-- <xsl:copy-of select="node()" /> -->
|
@@ -8896,7 +8957,7 @@
|
|
8896
8957
|
<xsl:variable name="num" select="count(preceding-sibling::word) + 1"/>
|
8897
8958
|
<xsl:copy>
|
8898
8959
|
<xsl:attribute name="id">
|
8899
|
-
<xsl:value-of select="concat($id,'
|
8960
|
+
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
|
8900
8961
|
</xsl:attribute>
|
8901
8962
|
<xsl:copy-of select="node()"/>
|
8902
8963
|
</xsl:copy>
|
@@ -10144,11 +10205,17 @@
|
|
10144
10205
|
</xsl:when>
|
10145
10206
|
<xsl:otherwise>
|
10146
10207
|
|
10208
|
+
<xsl:variable name="image_class" select="ancestor::*[local-name() = 'image']/@class"/>
|
10209
|
+
<xsl:variable name="ancestor_table_cell" select="normalize-space(ancestor::*[local-name() = 'td'] or ancestor::*[local-name() = 'th'])"/>
|
10210
|
+
|
10147
10211
|
<xsl:variable name="element">
|
10148
10212
|
<xsl:choose>
|
10149
10213
|
<xsl:when test="ancestor::*[local-name() = 'tr'] and $isGenerateTableIF = 'true'">
|
10150
10214
|
<fo:inline xsl:use-attribute-sets="image-style" text-align="left"/>
|
10151
10215
|
</xsl:when>
|
10216
|
+
<xsl:when test="not(ancestor::*[local-name() = 'figure'])">
|
10217
|
+
<fo:inline xsl:use-attribute-sets="image-style" text-align="left"/>
|
10218
|
+
</xsl:when>
|
10152
10219
|
<xsl:otherwise>
|
10153
10220
|
<fo:block xsl:use-attribute-sets="image-style">
|
10154
10221
|
<xsl:if test="ancestor::*[local-name() = 'dt']">
|
@@ -10164,10 +10231,24 @@
|
|
10164
10231
|
<xsl:copy-of select="@*"/>
|
10165
10232
|
<!-- <fo:block xsl:use-attribute-sets="image-style"> -->
|
10166
10233
|
<fo:instream-foreign-object fox:alt-text="{$alt-text}">
|
10167
|
-
|
10168
|
-
|
10169
|
-
|
10170
|
-
|
10234
|
+
|
10235
|
+
<xsl:choose>
|
10236
|
+
<xsl:when test="$image_class = 'corrigenda-tag'">
|
10237
|
+
<xsl:attribute name="fox:alt-text">CorrigendaTag</xsl:attribute>
|
10238
|
+
<xsl:attribute name="baseline-shift">-10%</xsl:attribute>
|
10239
|
+
<xsl:if test="$ancestor_table_cell = 'true'">
|
10240
|
+
<xsl:attribute name="baseline-shift">-25%</xsl:attribute>
|
10241
|
+
</xsl:if>
|
10242
|
+
<xsl:attribute name="height">3.5mm</xsl:attribute>
|
10243
|
+
</xsl:when>
|
10244
|
+
<xsl:otherwise>
|
10245
|
+
<xsl:if test="$isGenerateTableIF = 'false'">
|
10246
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
10247
|
+
</xsl:if>
|
10248
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
10249
|
+
</xsl:otherwise>
|
10250
|
+
</xsl:choose>
|
10251
|
+
|
10171
10252
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
10172
10253
|
<xsl:variable name="svg_width" select="xalan:nodeset($svg_content)/*/@width"/>
|
10173
10254
|
<xsl:variable name="svg_height" select="xalan:nodeset($svg_content)/*/@height"/>
|
@@ -11681,7 +11762,7 @@
|
|
11681
11762
|
<!-- ====== -->
|
11682
11763
|
<xsl:template match="*[local-name() = 'termexample']">
|
11683
11764
|
<fo:block id="{@id}" xsl:use-attribute-sets="termexample-style">
|
11684
|
-
|
11765
|
+
<xsl:call-template name="refine_termexample-style"/>
|
11685
11766
|
<xsl:call-template name="setBlockSpanAll"/>
|
11686
11767
|
|
11687
11768
|
<xsl:apply-templates select="*[local-name()='name']"/>
|
@@ -12364,13 +12445,19 @@
|
|
12364
12445
|
<fo:block id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
|
12365
12446
|
</xsl:when>
|
12366
12447
|
<!-- if there isn't element with id 'from', then create 'bookmark' here -->
|
12367
|
-
<xsl:when test="not(ancestor::*[contains(local-name(), '-standard')]//*[@id = $id_from])">
|
12448
|
+
<xsl:when test="ancestor::*[contains(local-name(), '-standard')] and not(ancestor::*[contains(local-name(), '-standard')]//*[@id = $id_from])">
|
12449
|
+
<fo:block id="{@from}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
|
12450
|
+
</xsl:when>
|
12451
|
+
<xsl:when test="not(//*[@id = $id_from]) and not(preceding-sibling::*[@id = $id_from])">
|
12368
12452
|
<fo:block id="{@from}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
|
12369
12453
|
</xsl:when>
|
12370
12454
|
</xsl:choose>
|
12371
12455
|
|
12372
12456
|
</xsl:template>
|
12373
12457
|
|
12458
|
+
<!-- https://github.com/metanorma/mn-samples-bsi/issues/312 -->
|
12459
|
+
<xsl:template match="*[local-name() = 'review'][@type = 'other']"/>
|
12460
|
+
|
12374
12461
|
<xsl:template match="*[local-name() = 'name']/text()">
|
12375
12462
|
<!-- 0xA0 to space replacement -->
|
12376
12463
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
@@ -14137,7 +14224,7 @@
|
|
14137
14224
|
|
14138
14225
|
<xsl:template name="printEdition">
|
14139
14226
|
<xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
|
14140
|
-
|
14227
|
+
|
14141
14228
|
<xsl:choose>
|
14142
14229
|
<xsl:when test="$edition_i18n != ''">
|
14143
14230
|
<!-- Example: <edition language="fr">deuxième édition</edition> -->
|
data/lib/isodoc/ieee/init.rb
CHANGED
@@ -17,8 +17,7 @@ module IsoDoc
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def ddMMMyyyy(isodate)
|
20
|
-
|
21
|
-
|
20
|
+
isodate.nil? and return nil
|
22
21
|
arr = isodate.split("-")
|
23
22
|
if arr.size == 1 && (/^\d+$/.match isodate)
|
24
23
|
Date.new(*arr.map(&:to_i)).strftime("%Y")
|
@@ -62,11 +61,17 @@ module IsoDoc
|
|
62
61
|
key = ""
|
63
62
|
map = list.xpath(ns(".//dt | .//dd")).each_with_object({}) do |dtd, m|
|
64
63
|
(dtd.name == "dt" and key = dtd.text) or
|
65
|
-
m[key] =
|
64
|
+
m[key] = text_from_paras(dtd)
|
65
|
+
.gsub(/\*/, "<span class='cite_fn'>*</span>")
|
66
66
|
end
|
67
67
|
list.replace(participant_para(map, idx))
|
68
68
|
end
|
69
69
|
|
70
|
+
def text_from_paras(node)
|
71
|
+
r = node.at(ns("./p")) and node = r
|
72
|
+
node.children.to_xml.strip
|
73
|
+
end
|
74
|
+
|
70
75
|
def participant_para(map, idx)
|
71
76
|
name = participant_name(map)
|
72
77
|
if map["role"]&.casecmp("member")&.zero?
|
@@ -89,7 +94,7 @@ module IsoDoc
|
|
89
94
|
name = "<strong>#{name}</strong>" if idx.zero?
|
90
95
|
br = map["role"].size > 30 ? "<br/>" : ""
|
91
96
|
"<p type='officeholder' align='center'>#{name}, #{br}" \
|
92
|
-
"<em>#{map['role']}</em></p>"
|
97
|
+
"<em><span class='au_role'>#{map['role']}</span></em></p>"
|
93
98
|
end
|
94
99
|
|
95
100
|
def participant_name(map)
|
@@ -66,12 +66,11 @@ module IsoDoc
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def bibliography_bibitem_number1(bibitem, idx)
|
69
|
-
|
70
|
-
|
71
|
-
|
69
|
+
bibitem.xpath(ns(".//docidentifier[@type = 'metanorma' or " \
|
70
|
+
"@type = 'metanorma-ordinal']")).each do |mn|
|
71
|
+
/^\[?B?\d\]?$/.match?(mn&.text) and mn.remove
|
72
72
|
end
|
73
73
|
unless bibliography_bibitem_number_skip(bibitem)
|
74
|
-
|
75
74
|
idx += 1
|
76
75
|
bibitem.at(ns(".//docidentifier")).previous =
|
77
76
|
"<docidentifier type='metanorma-ordinal'>[B#{idx}]</docidentifier>"
|
@@ -190,14 +190,13 @@ module Metanorma
|
|
190
190
|
|
191
191
|
def populate_participants2(list)
|
192
192
|
curr = list
|
193
|
-
p = curr.at("./p") and curr = p
|
193
|
+
p = curr.at("./p[text() != '']") and curr = p
|
194
194
|
if dl = curr.at("./dl")
|
195
195
|
ret = extract_participants(dl)
|
196
196
|
dl.children = ret.keys.map do |k|
|
197
197
|
"<dt>#{k}</dt><dd><p>#{ret[k]}</p></dd>"
|
198
198
|
end.join
|
199
|
-
else
|
200
|
-
list.children = "<dl><dt>name</dt><dd><p>#{curr.children.to_xml}" \
|
199
|
+
else list.children = "<dl><dt>name</dt><dd><p>#{curr.children.to_xml}" \
|
201
200
|
"</p></dd><dt>role</dt><dd><p>member</p></dd></dl>"
|
202
201
|
end
|
203
202
|
end
|
@@ -206,13 +205,18 @@ module Metanorma
|
|
206
205
|
key = ""
|
207
206
|
map = dlist.xpath("./dt | ./dd").each_with_object({}) do |dtd, m|
|
208
207
|
(dtd.name == "dt" and key = dtd.text.sub(/:+$/, "")) or
|
209
|
-
m[key.strip.downcase] =
|
210
|
-
@c.encode(@c.decode(dtd.text.strip), :hexadecimal)
|
208
|
+
m[key.strip.downcase] = text_from_paras(dtd)
|
211
209
|
end
|
210
|
+
map["company"] &&= "<span class='organization'>#{map['company']}</span>"
|
212
211
|
map["role"] ||= "member"
|
213
212
|
map
|
214
213
|
end
|
215
214
|
|
215
|
+
def text_from_paras(node)
|
216
|
+
r = node.at("./p") and node = r
|
217
|
+
node.children.to_xml.strip
|
218
|
+
end
|
219
|
+
|
216
220
|
def bibdata_cleanup(xmldoc)
|
217
221
|
super
|
218
222
|
provenance_title(xmldoc)
|
data/lib/metanorma/ieee/front.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require "isoics"
|
2
|
+
require "pubid-ieee"
|
2
3
|
|
3
4
|
module Metanorma
|
4
5
|
module IEEE
|
@@ -16,7 +17,8 @@ module Metanorma
|
|
16
17
|
def metadata_committee_prep(node)
|
17
18
|
node.attr("doctype") == "whitepaper" &&
|
18
19
|
node.attr("docsubtype") == "industry-connection-report" and
|
19
|
-
node.set_attr("working-group",
|
20
|
+
node.set_attr("working-group",
|
21
|
+
"IEEE SA Industry Connections activity")
|
20
22
|
node.attr("committee") || node.attr("society") ||
|
21
23
|
node.attr("working-group") or return
|
22
24
|
node.attr("balloting-group") && !node.attr("balloting-group-type") and
|
@@ -29,16 +31,81 @@ module Metanorma
|
|
29
31
|
xml.docidentifier a, type: "ISBN", scope: "PDF"
|
30
32
|
a = node.attr("isbn-print") and
|
31
33
|
xml.docidentifier a, type: "ISBN", scope: "print"
|
34
|
+
xml.docnumber node.attr("docnumber")
|
32
35
|
end
|
33
36
|
|
34
37
|
def metadata_id(node, xml)
|
35
|
-
id = node.attr("
|
36
|
-
|
38
|
+
if id = node.attr("docidentifier")
|
39
|
+
xml.docidentifier id, **attr_code(type: "IEEE")
|
40
|
+
else ieee_id(node, xml)
|
41
|
+
end
|
37
42
|
id = node.attr("stdid-pdf") and
|
38
43
|
xml.docidentifier id, type: "IEEE", scope: "PDF"
|
39
44
|
id = node.attr("stdid-print") and
|
40
45
|
xml.docidentifier id, type: "IEEE", scope: "print"
|
41
|
-
|
46
|
+
end
|
47
|
+
|
48
|
+
def ieee_id(node, xml)
|
49
|
+
params = ieee_id_params(node)
|
50
|
+
params[:number] or return
|
51
|
+
ieee_id_out(xml, params)
|
52
|
+
end
|
53
|
+
|
54
|
+
def ieee_id_params(node)
|
55
|
+
core = ieee_id_params_core(node)
|
56
|
+
amd = ieee_id_params_amd(node, core) || {}
|
57
|
+
core.merge(amd)
|
58
|
+
end
|
59
|
+
|
60
|
+
def compact_blank(hash)
|
61
|
+
hash.compact.reject { |_, v| v.is_a?(String) && v.empty? }
|
62
|
+
end
|
63
|
+
|
64
|
+
def ieee_id_params_core(node)
|
65
|
+
pub = ieee_id_pub(node)
|
66
|
+
ret = { number: node.attr("docnumber"),
|
67
|
+
part: node.attr("partnumber"),
|
68
|
+
year: ieee_id_year(node, initial: true),
|
69
|
+
redline: @doctype == "redline",
|
70
|
+
publisher: pub[0],
|
71
|
+
copublisher: pub[1..-1] }
|
72
|
+
ret[:copublisher].empty? and ret.delete(:copublisher)
|
73
|
+
compact_blank(ret)
|
74
|
+
end
|
75
|
+
|
76
|
+
def ieee_id_params_amd(node, core)
|
77
|
+
if a = node.attr("corrigendum-number")
|
78
|
+
{ corrigendum: { version: a,
|
79
|
+
year: ieee_id_year(node, initial: false) } }
|
80
|
+
elsif node.attr("amendment-number")
|
81
|
+
{ amendment: pubid_select(core).create(**core) }
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
def ieee_id_pub(node)
|
86
|
+
(node.attr("publisher") || default_publisher).split(/[;,]/)
|
87
|
+
.map(&:strip).map { |x| org_abbrev[x] || x }
|
88
|
+
end
|
89
|
+
|
90
|
+
def ieee_id_year(node, initial: false)
|
91
|
+
unless initial
|
92
|
+
y = node.attr("copyright-year") || node.attr("updated-date")
|
93
|
+
end
|
94
|
+
y ||= node.attr("published-date") || node.attr("copyright-year")
|
95
|
+
y&.sub(/-.*$/, "") || Date.today.year
|
96
|
+
end
|
97
|
+
|
98
|
+
def ieee_id_out(xml, params)
|
99
|
+
id = pubid_select(params).create(**params)
|
100
|
+
xml.docidentifier id.to_s, type: "IEEE"
|
101
|
+
end
|
102
|
+
|
103
|
+
def pubid_select(_params)
|
104
|
+
base_pubid
|
105
|
+
end
|
106
|
+
|
107
|
+
def base_pubid
|
108
|
+
Pubid::Ieee::Identifier
|
42
109
|
end
|
43
110
|
|
44
111
|
def default_publisher
|
@@ -63,7 +130,9 @@ module Metanorma
|
|
63
130
|
end
|
64
131
|
|
65
132
|
def org_abbrev
|
66
|
-
{ "Institute of Electrical and Electronic Engineers" => "IEEE"
|
133
|
+
{ "Institute of Electrical and Electronic Engineers" => "IEEE",
|
134
|
+
"International Organization for Standardization" => "ISO",
|
135
|
+
"International Electrotechnical Commission" => "IEC" }
|
67
136
|
end
|
68
137
|
|
69
138
|
def relaton_relations
|
@@ -17,7 +17,7 @@
|
|
17
17
|
these elements; we just want one namespace for any child grammars
|
18
18
|
of this.
|
19
19
|
-->
|
20
|
-
<!-- VERSION v1.
|
20
|
+
<!-- VERSION v1.3.0 -->
|
21
21
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
22
22
|
<include href="reqt.rng"/>
|
23
23
|
<include href="basicdoc.rng">
|
@@ -146,6 +146,9 @@
|
|
146
146
|
<data type="boolean"/>
|
147
147
|
</attribute>
|
148
148
|
</optional>
|
149
|
+
<optional>
|
150
|
+
<attribute name="style"/>
|
151
|
+
</optional>
|
149
152
|
<oneOrMore>
|
150
153
|
<ref name="PureTextElement"/>
|
151
154
|
</oneOrMore>
|
data/metanorma-ieee.gemspec
CHANGED
@@ -25,9 +25,9 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.require_paths = ["lib"]
|
26
26
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
27
27
|
|
28
|
-
spec.add_dependency "metanorma-standoc", "~> 2.8.
|
28
|
+
spec.add_dependency "metanorma-standoc", "~> 2.8.2"
|
29
29
|
spec.add_dependency "mnconvert", "~> 1.20"
|
30
|
-
|
30
|
+
spec.add_dependency "pubid-ieee"
|
31
31
|
#spec.add_dependency "pubid-iso", "~> 0.5.3"
|
32
32
|
#spec.add_dependency "relaton-iso", "~> 1.15.4"
|
33
33
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ieee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.8.
|
19
|
+
version: 2.8.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.8.
|
26
|
+
version: 2.8.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mnconvert
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.20'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pubid-ieee
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: debug
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -252,11 +266,14 @@ files:
|
|
252
266
|
- lib/isodoc/ieee/html/wordstyle_wp.scss
|
253
267
|
- lib/isodoc/ieee/html/wp_image001.emz
|
254
268
|
- lib/isodoc/ieee/html/wp_image001_icap.emz
|
269
|
+
- lib/isodoc/ieee/html/wp_image001_icr.emz
|
255
270
|
- lib/isodoc/ieee/html/wp_image003.emz
|
256
271
|
- lib/isodoc/ieee/html/wp_image003_icap.emz
|
272
|
+
- lib/isodoc/ieee/html/wp_image003_icr.emz
|
257
273
|
- lib/isodoc/ieee/html/wp_image007_icr.emz
|
258
274
|
- lib/isodoc/ieee/html/wp_image008.emz
|
259
275
|
- lib/isodoc/ieee/html/wp_image008_icap.emz
|
276
|
+
- lib/isodoc/ieee/html/wp_image008_icr.emz
|
260
277
|
- lib/isodoc/ieee/html_convert.rb
|
261
278
|
- lib/isodoc/ieee/i18n-en.yaml
|
262
279
|
- lib/isodoc/ieee/i18n.rb
|