metanorma-nist 1.2.11 → 1.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +3 -0
- data/lib/asciidoctor/nist/basicdoc.rng +5 -3
- data/lib/asciidoctor/nist/boilerplate.rb +2 -2
- data/lib/asciidoctor/nist/cleanup.rb +3 -2
- data/lib/asciidoctor/nist/converter.rb +4 -2
- data/lib/asciidoctor/nist/front.rb +1 -1
- data/lib/asciidoctor/nist/isodoc.rng +3 -0
- data/lib/asciidoctor/nist/nist_intro.xml +9 -9
- data/lib/asciidoctor/nist/nist_intro_cswp.xml +9 -9
- data/lib/isodoc/nist/html/html_nist_titlepage.html +5 -3
- data/lib/isodoc/nist/html/word_nist_titlepage.html +8 -8
- data/lib/isodoc/nist/html/word_nist_titlepage_cswp.html +2 -0
- data/lib/isodoc/nist/html_convert.rb +6 -8
- data/lib/isodoc/nist/nist.csts.xsl +4780 -0
- data/lib/isodoc/nist/nist.cswp.xsl +82 -5
- data/lib/isodoc/nist/nist.sp.xsl +71 -4
- data/lib/isodoc/nist/pdf_convert.rb +5 -1
- data/lib/isodoc/nist/word_convert.rb +2 -4
- data/lib/metanorma/nist/processor.rb +0 -2
- data/lib/metanorma/nist/version.rb +1 -1
- data/metanorma-nist.gemspec +2 -2
- metadata +7 -6
@@ -31,7 +31,17 @@
|
|
31
31
|
</xsl:choose>
|
32
32
|
</xsl:variable>
|
33
33
|
<xsl:variable name="color">rgb(36, 64, 97)</xsl:variable>
|
34
|
-
<xsl:variable name="seriestitle"
|
34
|
+
<xsl:variable name="seriestitle">
|
35
|
+
<xsl:choose>
|
36
|
+
<xsl:when test="normalize-space(/nist:nist-standard/nist:bibdata/nist:series[@type = 'main']/nist:abbreviation) = 'NIST CSTS'">
|
37
|
+
<xsl:value-of select="/nist:nist-standard/nist:bibdata/nist:series[@type = 'secondary']/nist:title"/>
|
38
|
+
</xsl:when>
|
39
|
+
<xsl:otherwise>
|
40
|
+
<xsl:value-of select="/nist:nist-standard/nist:bibdata/nist:series[@type = 'main']/nist:title"/>
|
41
|
+
</xsl:otherwise>
|
42
|
+
</xsl:choose>
|
43
|
+
</xsl:variable>
|
44
|
+
|
35
45
|
<!-- Example:
|
36
46
|
<item level="1" id="Foreword" display="true">Foreword</item>
|
37
47
|
<item id="term-script" display="false">3.2</item>
|
@@ -1410,6 +1420,7 @@
|
|
1410
1420
|
|
1411
1421
|
|
1412
1422
|
|
1423
|
+
|
1413
1424
|
</xsl:attribute-set><xsl:attribute-set name="quote-source-style">
|
1414
1425
|
|
1415
1426
|
|
@@ -1536,7 +1547,7 @@
|
|
1536
1547
|
</xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
|
1537
1548
|
<!-- <xsl:call-template name="add-zero-spaces"/> -->
|
1538
1549
|
<xsl:call-template name="add-zero-spaces-java"/>
|
1539
|
-
</xsl:template><xsl:template match="*[local-name()='table']">
|
1550
|
+
</xsl:template><xsl:template match="*[local-name()='table']" name="table">
|
1540
1551
|
|
1541
1552
|
<xsl:variable name="simple-table">
|
1542
1553
|
<xsl:call-template name="getSimpleTable"/>
|
@@ -2822,6 +2833,7 @@
|
|
2822
2833
|
|
2823
2834
|
|
2824
2835
|
|
2836
|
+
|
2825
2837
|
|
2826
2838
|
</xsl:variable>
|
2827
2839
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
@@ -3419,7 +3431,7 @@
|
|
3419
3431
|
</xsl:if> -->
|
3420
3432
|
</fo:inline>
|
3421
3433
|
</xsl:if>
|
3422
|
-
</xsl:template><xsl:template match="*[local-name() = 'figure']">
|
3434
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure']" name="figure">
|
3423
3435
|
<fo:block-container id="{@id}">
|
3424
3436
|
|
3425
3437
|
<fo:block>
|
@@ -3630,6 +3642,12 @@
|
|
3630
3642
|
<!-- <xsl:text> </xsl:text> -->
|
3631
3643
|
</xsl:template><xsl:template name="getSection">
|
3632
3644
|
<xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
3645
|
+
<!--
|
3646
|
+
<xsl:for-each select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()">
|
3647
|
+
<xsl:value-of select="."/>
|
3648
|
+
</xsl:for-each>
|
3649
|
+
-->
|
3650
|
+
|
3633
3651
|
</xsl:template><xsl:template name="getName">
|
3634
3652
|
<xsl:choose>
|
3635
3653
|
<xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
|
@@ -3682,6 +3700,10 @@
|
|
3682
3700
|
<xsl:copy>
|
3683
3701
|
<xsl:apply-templates mode="contents_item"/>
|
3684
3702
|
</xsl:copy>
|
3703
|
+
</xsl:template><xsl:template match="*[local-name() = 'em']" mode="contents_item">
|
3704
|
+
<xsl:copy>
|
3705
|
+
<xsl:apply-templates mode="contents_item"/>
|
3706
|
+
</xsl:copy>
|
3685
3707
|
</xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
|
3686
3708
|
<xsl:text> </xsl:text>
|
3687
3709
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
|
@@ -3707,6 +3729,7 @@
|
|
3707
3729
|
|
3708
3730
|
|
3709
3731
|
|
3732
|
+
|
3710
3733
|
|
3711
3734
|
|
3712
3735
|
10
|
@@ -4236,6 +4259,7 @@
|
|
4236
4259
|
|
4237
4260
|
|
4238
4261
|
|
4262
|
+
|
4239
4263
|
|
4240
4264
|
|
4241
4265
|
|
@@ -4251,7 +4275,7 @@
|
|
4251
4275
|
</xsl:if>
|
4252
4276
|
|
4253
4277
|
|
4254
|
-
</xsl:template><xsl:template match="
|
4278
|
+
</xsl:template><xsl:template match="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*" priority="2"> <!-- /*/*[local-name() = 'preface']/* -->
|
4255
4279
|
<fo:block break-after="page"/>
|
4256
4280
|
<fo:block>
|
4257
4281
|
<xsl:call-template name="setId"/>
|
@@ -4259,7 +4283,8 @@
|
|
4259
4283
|
</fo:block>
|
4260
4284
|
</xsl:template><xsl:template match="*[local-name() = 'clause']">
|
4261
4285
|
<fo:block>
|
4262
|
-
<xsl:call-template name="setId"/>
|
4286
|
+
<xsl:call-template name="setId"/>
|
4287
|
+
|
4263
4288
|
|
4264
4289
|
<xsl:apply-templates/>
|
4265
4290
|
</fo:block>
|
@@ -4435,6 +4460,57 @@
|
|
4435
4460
|
</xsl:variable>
|
4436
4461
|
<xsl:variable name="result">
|
4437
4462
|
<xsl:choose>
|
4463
|
+
<xsl:when test="$format = 'ddMMyyyy'">
|
4464
|
+
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
4465
|
+
<xsl:text> </xsl:text>
|
4466
|
+
<xsl:value-of select="normalize-space(concat($monthStr, ' ' , $year))"/>
|
4467
|
+
</xsl:when>
|
4468
|
+
<xsl:when test="$format = 'ddMM'">
|
4469
|
+
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
4470
|
+
<xsl:text> </xsl:text><xsl:value-of select="$monthStr"/>
|
4471
|
+
</xsl:when>
|
4472
|
+
<xsl:when test="$format = 'short' or $day = ''">
|
4473
|
+
<xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
|
4474
|
+
</xsl:when>
|
4475
|
+
<xsl:otherwise>
|
4476
|
+
<xsl:value-of select="normalize-space(concat($monthStr, ' ', $day, ', ' , $year))"/>
|
4477
|
+
</xsl:otherwise>
|
4478
|
+
</xsl:choose>
|
4479
|
+
</xsl:variable>
|
4480
|
+
<xsl:value-of select="$result"/>
|
4481
|
+
</xsl:template><xsl:template name="convertDateLocalized">
|
4482
|
+
<xsl:param name="date"/>
|
4483
|
+
<xsl:param name="format" select="'short'"/>
|
4484
|
+
<xsl:variable name="year" select="substring($date, 1, 4)"/>
|
4485
|
+
<xsl:variable name="month" select="substring($date, 6, 2)"/>
|
4486
|
+
<xsl:variable name="day" select="substring($date, 9, 2)"/>
|
4487
|
+
<xsl:variable name="monthStr">
|
4488
|
+
<xsl:choose>
|
4489
|
+
<xsl:when test="$month = '01'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_january</xsl:with-param></xsl:call-template></xsl:when>
|
4490
|
+
<xsl:when test="$month = '02'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_february</xsl:with-param></xsl:call-template></xsl:when>
|
4491
|
+
<xsl:when test="$month = '03'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_march</xsl:with-param></xsl:call-template></xsl:when>
|
4492
|
+
<xsl:when test="$month = '04'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_april</xsl:with-param></xsl:call-template></xsl:when>
|
4493
|
+
<xsl:when test="$month = '05'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_may</xsl:with-param></xsl:call-template></xsl:when>
|
4494
|
+
<xsl:when test="$month = '06'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_june</xsl:with-param></xsl:call-template></xsl:when>
|
4495
|
+
<xsl:when test="$month = '07'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_july</xsl:with-param></xsl:call-template></xsl:when>
|
4496
|
+
<xsl:when test="$month = '08'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_august</xsl:with-param></xsl:call-template></xsl:when>
|
4497
|
+
<xsl:when test="$month = '09'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_september</xsl:with-param></xsl:call-template></xsl:when>
|
4498
|
+
<xsl:when test="$month = '10'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_october</xsl:with-param></xsl:call-template></xsl:when>
|
4499
|
+
<xsl:when test="$month = '11'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_november</xsl:with-param></xsl:call-template></xsl:when>
|
4500
|
+
<xsl:when test="$month = '12'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_december</xsl:with-param></xsl:call-template></xsl:when>
|
4501
|
+
</xsl:choose>
|
4502
|
+
</xsl:variable>
|
4503
|
+
<xsl:variable name="result">
|
4504
|
+
<xsl:choose>
|
4505
|
+
<xsl:when test="$format = 'ddMMyyyy'">
|
4506
|
+
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
4507
|
+
<xsl:text> </xsl:text>
|
4508
|
+
<xsl:value-of select="normalize-space(concat($monthStr, ' ' , $year))"/>
|
4509
|
+
</xsl:when>
|
4510
|
+
<xsl:when test="$format = 'ddMM'">
|
4511
|
+
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
4512
|
+
<xsl:text> </xsl:text><xsl:value-of select="$monthStr"/>
|
4513
|
+
</xsl:when>
|
4438
4514
|
<xsl:when test="$format = 'short' or $day = ''">
|
4439
4515
|
<xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
|
4440
4516
|
</xsl:when>
|
@@ -4634,6 +4710,7 @@
|
|
4634
4710
|
|
4635
4711
|
|
4636
4712
|
|
4713
|
+
|
4637
4714
|
</xsl:variable>
|
4638
4715
|
<xsl:if test="$documentNS != $XSLNS">
|
4639
4716
|
<xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
|
data/lib/isodoc/nist/nist.sp.xsl
CHANGED
@@ -2457,6 +2457,7 @@
|
|
2457
2457
|
|
2458
2458
|
|
2459
2459
|
|
2460
|
+
|
2460
2461
|
</xsl:attribute-set><xsl:attribute-set name="quote-source-style">
|
2461
2462
|
|
2462
2463
|
|
@@ -2584,7 +2585,7 @@
|
|
2584
2585
|
</xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
|
2585
2586
|
<!-- <xsl:call-template name="add-zero-spaces"/> -->
|
2586
2587
|
<xsl:call-template name="add-zero-spaces-java"/>
|
2587
|
-
</xsl:template><xsl:template match="*[local-name()='table']">
|
2588
|
+
</xsl:template><xsl:template match="*[local-name()='table']" name="table">
|
2588
2589
|
|
2589
2590
|
<xsl:variable name="simple-table">
|
2590
2591
|
<xsl:call-template name="getSimpleTable"/>
|
@@ -3870,6 +3871,7 @@
|
|
3870
3871
|
|
3871
3872
|
|
3872
3873
|
|
3874
|
+
|
3873
3875
|
|
3874
3876
|
</xsl:variable>
|
3875
3877
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
@@ -4467,7 +4469,7 @@
|
|
4467
4469
|
</xsl:if> -->
|
4468
4470
|
</fo:inline>
|
4469
4471
|
</xsl:if>
|
4470
|
-
</xsl:template><xsl:template match="*[local-name() = 'figure']">
|
4472
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure']" name="figure">
|
4471
4473
|
<fo:block-container id="{@id}">
|
4472
4474
|
|
4473
4475
|
<fo:block>
|
@@ -4705,6 +4707,12 @@
|
|
4705
4707
|
<!-- <xsl:text> </xsl:text> -->
|
4706
4708
|
</xsl:template><xsl:template name="getSection">
|
4707
4709
|
<xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
4710
|
+
<!--
|
4711
|
+
<xsl:for-each select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()">
|
4712
|
+
<xsl:value-of select="."/>
|
4713
|
+
</xsl:for-each>
|
4714
|
+
-->
|
4715
|
+
|
4708
4716
|
</xsl:template><xsl:template name="getName">
|
4709
4717
|
<xsl:choose>
|
4710
4718
|
<xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
|
@@ -4757,6 +4765,10 @@
|
|
4757
4765
|
<xsl:copy>
|
4758
4766
|
<xsl:apply-templates mode="contents_item"/>
|
4759
4767
|
</xsl:copy>
|
4768
|
+
</xsl:template><xsl:template match="*[local-name() = 'em']" mode="contents_item">
|
4769
|
+
<xsl:copy>
|
4770
|
+
<xsl:apply-templates mode="contents_item"/>
|
4771
|
+
</xsl:copy>
|
4760
4772
|
</xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
|
4761
4773
|
<xsl:text> </xsl:text>
|
4762
4774
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
|
@@ -4782,6 +4794,7 @@
|
|
4782
4794
|
|
4783
4795
|
|
4784
4796
|
|
4797
|
+
|
4785
4798
|
|
4786
4799
|
|
4787
4800
|
10
|
@@ -5309,6 +5322,7 @@
|
|
5309
5322
|
|
5310
5323
|
|
5311
5324
|
|
5325
|
+
|
5312
5326
|
|
5313
5327
|
|
5314
5328
|
|
@@ -5324,7 +5338,7 @@
|
|
5324
5338
|
</xsl:if>
|
5325
5339
|
|
5326
5340
|
|
5327
|
-
</xsl:template><xsl:template match="
|
5341
|
+
</xsl:template><xsl:template match="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*" priority="2"> <!-- /*/*[local-name() = 'preface']/* -->
|
5328
5342
|
<fo:block break-after="page"/>
|
5329
5343
|
<fo:block>
|
5330
5344
|
<xsl:call-template name="setId"/>
|
@@ -5332,7 +5346,8 @@
|
|
5332
5346
|
</fo:block>
|
5333
5347
|
</xsl:template><xsl:template match="*[local-name() = 'clause']">
|
5334
5348
|
<fo:block>
|
5335
|
-
<xsl:call-template name="setId"/>
|
5349
|
+
<xsl:call-template name="setId"/>
|
5350
|
+
|
5336
5351
|
|
5337
5352
|
<xsl:apply-templates/>
|
5338
5353
|
</fo:block>
|
@@ -5508,6 +5523,57 @@
|
|
5508
5523
|
</xsl:variable>
|
5509
5524
|
<xsl:variable name="result">
|
5510
5525
|
<xsl:choose>
|
5526
|
+
<xsl:when test="$format = 'ddMMyyyy'">
|
5527
|
+
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
5528
|
+
<xsl:text> </xsl:text>
|
5529
|
+
<xsl:value-of select="normalize-space(concat($monthStr, ' ' , $year))"/>
|
5530
|
+
</xsl:when>
|
5531
|
+
<xsl:when test="$format = 'ddMM'">
|
5532
|
+
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
5533
|
+
<xsl:text> </xsl:text><xsl:value-of select="$monthStr"/>
|
5534
|
+
</xsl:when>
|
5535
|
+
<xsl:when test="$format = 'short' or $day = ''">
|
5536
|
+
<xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
|
5537
|
+
</xsl:when>
|
5538
|
+
<xsl:otherwise>
|
5539
|
+
<xsl:value-of select="normalize-space(concat($monthStr, ' ', $day, ', ' , $year))"/>
|
5540
|
+
</xsl:otherwise>
|
5541
|
+
</xsl:choose>
|
5542
|
+
</xsl:variable>
|
5543
|
+
<xsl:value-of select="$result"/>
|
5544
|
+
</xsl:template><xsl:template name="convertDateLocalized">
|
5545
|
+
<xsl:param name="date"/>
|
5546
|
+
<xsl:param name="format" select="'short'"/>
|
5547
|
+
<xsl:variable name="year" select="substring($date, 1, 4)"/>
|
5548
|
+
<xsl:variable name="month" select="substring($date, 6, 2)"/>
|
5549
|
+
<xsl:variable name="day" select="substring($date, 9, 2)"/>
|
5550
|
+
<xsl:variable name="monthStr">
|
5551
|
+
<xsl:choose>
|
5552
|
+
<xsl:when test="$month = '01'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_january</xsl:with-param></xsl:call-template></xsl:when>
|
5553
|
+
<xsl:when test="$month = '02'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_february</xsl:with-param></xsl:call-template></xsl:when>
|
5554
|
+
<xsl:when test="$month = '03'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_march</xsl:with-param></xsl:call-template></xsl:when>
|
5555
|
+
<xsl:when test="$month = '04'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_april</xsl:with-param></xsl:call-template></xsl:when>
|
5556
|
+
<xsl:when test="$month = '05'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_may</xsl:with-param></xsl:call-template></xsl:when>
|
5557
|
+
<xsl:when test="$month = '06'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_june</xsl:with-param></xsl:call-template></xsl:when>
|
5558
|
+
<xsl:when test="$month = '07'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_july</xsl:with-param></xsl:call-template></xsl:when>
|
5559
|
+
<xsl:when test="$month = '08'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_august</xsl:with-param></xsl:call-template></xsl:when>
|
5560
|
+
<xsl:when test="$month = '09'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_september</xsl:with-param></xsl:call-template></xsl:when>
|
5561
|
+
<xsl:when test="$month = '10'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_october</xsl:with-param></xsl:call-template></xsl:when>
|
5562
|
+
<xsl:when test="$month = '11'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_november</xsl:with-param></xsl:call-template></xsl:when>
|
5563
|
+
<xsl:when test="$month = '12'"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">month_december</xsl:with-param></xsl:call-template></xsl:when>
|
5564
|
+
</xsl:choose>
|
5565
|
+
</xsl:variable>
|
5566
|
+
<xsl:variable name="result">
|
5567
|
+
<xsl:choose>
|
5568
|
+
<xsl:when test="$format = 'ddMMyyyy'">
|
5569
|
+
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
5570
|
+
<xsl:text> </xsl:text>
|
5571
|
+
<xsl:value-of select="normalize-space(concat($monthStr, ' ' , $year))"/>
|
5572
|
+
</xsl:when>
|
5573
|
+
<xsl:when test="$format = 'ddMM'">
|
5574
|
+
<xsl:if test="$day != ''"><xsl:value-of select="number($day)"/></xsl:if>
|
5575
|
+
<xsl:text> </xsl:text><xsl:value-of select="$monthStr"/>
|
5576
|
+
</xsl:when>
|
5511
5577
|
<xsl:when test="$format = 'short' or $day = ''">
|
5512
5578
|
<xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
|
5513
5579
|
</xsl:when>
|
@@ -5707,6 +5773,7 @@
|
|
5707
5773
|
|
5708
5774
|
|
5709
5775
|
|
5776
|
+
|
5710
5777
|
</xsl:variable>
|
5711
5778
|
<xsl:if test="$documentNS != $XSLNS">
|
5712
5779
|
<xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
|
@@ -14,7 +14,11 @@ module IsoDoc
|
|
14
14
|
|
15
15
|
def pdf_stylesheet(docxml)
|
16
16
|
series = docxml&.at(ns("//bibdata/series/abbreviation"))&.text
|
17
|
-
series
|
17
|
+
case series
|
18
|
+
when "NIST CSWP" then "nist.cswp.xsl"
|
19
|
+
when "NIST CSTS" then "nist.csts.xsl"
|
20
|
+
else "nist.sp.xsl"
|
21
|
+
end
|
18
22
|
end
|
19
23
|
end
|
20
24
|
end
|
@@ -37,10 +37,8 @@ module IsoDoc
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def default_fonts(options)
|
40
|
-
{ bodyfont:
|
41
|
-
|
42
|
-
headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' :
|
43
|
-
'"Arial",sans-serif'),
|
40
|
+
{ bodyfont: '"Times New Roman",serif',
|
41
|
+
headerfont: '"Arial",sans-serif',
|
44
42
|
monospacefont: '"Courier New",monospace',
|
45
43
|
normalfontsize: "12.0pt",
|
46
44
|
footnotefontsize: "10.0pt",
|
data/metanorma-nist.gemspec
CHANGED
@@ -30,8 +30,8 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency "iso-639"
|
31
31
|
spec.add_dependency "tzinfo-data" # we need this for windows only
|
32
32
|
|
33
|
-
spec.add_dependency "metanorma-standoc", "~> 1.
|
34
|
-
spec.add_dependency "isodoc", "~> 1.
|
33
|
+
spec.add_dependency "metanorma-standoc", "~> 1.8.2"
|
34
|
+
spec.add_dependency "isodoc", "~> 1.5.0"
|
35
35
|
#spec.add_dependency "relaton-nist", "~> 0.3.0"
|
36
36
|
|
37
37
|
spec.add_development_dependency "byebug", "~> 9.1"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-nist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -86,28 +86,28 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.
|
89
|
+
version: 1.8.2
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.
|
96
|
+
version: 1.8.2
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: isodoc
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: 1.5.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
110
|
+
version: 1.5.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: byebug
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -317,6 +317,7 @@ files:
|
|
317
317
|
- lib/isodoc/nist/init.rb
|
318
318
|
- lib/isodoc/nist/metadata.rb
|
319
319
|
- lib/isodoc/nist/metadata_id.rb
|
320
|
+
- lib/isodoc/nist/nist.csts.xsl
|
320
321
|
- lib/isodoc/nist/nist.cswp.xsl
|
321
322
|
- lib/isodoc/nist/nist.sp.xsl
|
322
323
|
- lib/isodoc/nist/pdf_convert.rb
|