metanorma-taste 1.0.6 → 1.0.8
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/Gemfile +0 -1
- data/data/csa/csa.standard.xsl +41 -1
- data/data/pdfa/htmlstylesheet-override.scss +4 -0
- data/data/pdfa/pdfa.xsl +194 -8
- data/lib/metanorma/taste/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 240f08306925627c4cdc5c0de6057fde9ef236b12e0bfec46f376f3353928fd7
|
|
4
|
+
data.tar.gz: 1858c0ae0d5ae4e817459d54332f0626705d4e3c755aec7709c52e2eec5aff2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67d1ea5a1771bf2cd23183b63c8e617fa6ab11a335e86f0463a63744862e4df40408ea5ecd145da907d99716c0f19f271b185ea1a33926629822ccfd5db4e515
|
|
7
|
+
data.tar.gz: 0b4014d1cde35af01834234539c4691668706d74a054f52a4d2bf82eef047467dfdb475dde59ae8a06b05f4e7bd82946b2576f90824dcc0ac1127913dea43df4
|
data/Gemfile
CHANGED
data/data/csa/csa.standard.xsl
CHANGED
|
@@ -1765,6 +1765,14 @@
|
|
|
1765
1765
|
|
|
1766
1766
|
<xsl:template match="@semx-id | @anchor" mode="update_xml_step1"/>
|
|
1767
1767
|
|
|
1768
|
+
<xsl:template match="mn:pagebreak" mode="update_xml_step1">
|
|
1769
|
+
<xsl:copy>
|
|
1770
|
+
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
|
1771
|
+
<xsl:attribute name="from_source_xml">true</xsl:attribute>
|
|
1772
|
+
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
|
1773
|
+
</xsl:copy>
|
|
1774
|
+
</xsl:template>
|
|
1775
|
+
|
|
1768
1776
|
<!-- END: update new Presentation XML -->
|
|
1769
1777
|
|
|
1770
1778
|
<!-- =========================================================================== -->
|
|
@@ -1802,6 +1810,7 @@
|
|
|
1802
1810
|
<xsl:for-each select="ancestor-or-self::*[ancestor::mn:preface or ancestor::mn:sections or ancestor-or-self::mn:annex]">
|
|
1803
1811
|
<xsl:if test="following-sibling::*">false</xsl:if>
|
|
1804
1812
|
</xsl:for-each>
|
|
1813
|
+
<xsl:if test="@from_source_xml = 'true'">false</xsl:if>
|
|
1805
1814
|
</xsl:variable>
|
|
1806
1815
|
|
|
1807
1816
|
<xsl:if test="contains($isLast, 'false')">
|
|
@@ -2700,6 +2709,7 @@
|
|
|
2700
2709
|
</xsl:attribute-set> <!-- sourcecode-style -->
|
|
2701
2710
|
|
|
2702
2711
|
<xsl:template name="refine_sourcecode-style">
|
|
2712
|
+
<xsl:call-template name="setKeepAttributes"/>
|
|
2703
2713
|
</xsl:template> <!-- refine_sourcecode-style -->
|
|
2704
2714
|
|
|
2705
2715
|
<xsl:attribute-set name="sourcecode-number-style">
|
|
@@ -3438,10 +3448,38 @@
|
|
|
3438
3448
|
<xsl:template name="refine_strike-style">
|
|
3439
3449
|
</xsl:template>
|
|
3440
3450
|
|
|
3451
|
+
<xsl:attribute-set name="hr-block-style">
|
|
3452
|
+
<xsl:attribute name="font-size">1pt</xsl:attribute>
|
|
3453
|
+
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
|
3454
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
3455
|
+
<xsl:attribute name="padding-top">-2pt</xsl:attribute>
|
|
3456
|
+
<xsl:attribute name="space-after">4pt</xsl:attribute>
|
|
3457
|
+
</xsl:attribute-set>
|
|
3458
|
+
|
|
3459
|
+
<xsl:template name="refine_hr-block-style">
|
|
3460
|
+
</xsl:template>
|
|
3461
|
+
|
|
3462
|
+
<xsl:attribute-set name="hr-style">
|
|
3463
|
+
<xsl:attribute name="leader-pattern">rule</xsl:attribute>
|
|
3464
|
+
<xsl:attribute name="leader-length">100%</xsl:attribute>
|
|
3465
|
+
</xsl:attribute-set>
|
|
3466
|
+
|
|
3467
|
+
<xsl:template name="refine_hr-style">
|
|
3468
|
+
</xsl:template>
|
|
3469
|
+
|
|
3441
3470
|
<xsl:template match="mn:br">
|
|
3442
3471
|
<xsl:value-of select="$linebreak"/>
|
|
3443
3472
|
</xsl:template>
|
|
3444
3473
|
|
|
3474
|
+
<xsl:template match="mn:hr">
|
|
3475
|
+
<fo:block xsl:use-attribute-sets="hr-block-style">
|
|
3476
|
+
<xsl:call-template name="refine_hr-block-style"/>
|
|
3477
|
+
<fo:leader xsl:use-attribute-sets="hr-style">
|
|
3478
|
+
<xsl:call-template name="refine_hr-style"/>
|
|
3479
|
+
</fo:leader>
|
|
3480
|
+
</fo:block>
|
|
3481
|
+
</xsl:template>
|
|
3482
|
+
|
|
3445
3483
|
<xsl:template match="mn:em">
|
|
3446
3484
|
<fo:inline xsl:use-attribute-sets="em-style">
|
|
3447
3485
|
<xsl:call-template name="refine_em_style"/>
|
|
@@ -4675,6 +4713,7 @@
|
|
|
4675
4713
|
text line 1
|
|
4676
4714
|
text line 2
|
|
4677
4715
|
-->
|
|
4716
|
+
<xsl:variable name="example_display_in"><!-- don't change here, only for override xsl --></xsl:variable> <!-- block or inline -->
|
|
4678
4717
|
<xsl:template match="mn:example" name="example">
|
|
4679
4718
|
<xsl:call-template name="setNamedDestination"/>
|
|
4680
4719
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
|
|
@@ -4684,7 +4723,8 @@
|
|
|
4684
4723
|
<xsl:call-template name="refine_example-style"/>
|
|
4685
4724
|
|
|
4686
4725
|
<xsl:variable name="fo_element">
|
|
4687
|
-
<xsl:if test=".//mn:table or .//mn:dl or *[not(self::mn:fmt-name)][1][self::mn:sourcecode]">block</xsl:if>
|
|
4726
|
+
<xsl:if test=".//mn:table or .//mn:dl or *[not(self::mn:fmt-name)][1][self::mn:sourcecode]">block</xsl:if>
|
|
4727
|
+
<xsl:if test="normalize-space($example_display_in) != ''"><xsl:value-of select="$example_display_in"/></xsl:if>block
|
|
4688
4728
|
</xsl:variable>
|
|
4689
4729
|
|
|
4690
4730
|
<fo:block-container margin-left="0mm" role="SKIP">
|
data/data/pdfa/pdfa.xsl
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<xsl:variable name="pageWidth">210</xsl:variable>
|
|
4
4
|
<xsl:variable name="pageHeight">297</xsl:variable>
|
|
5
|
+
<xsl:variable name="marginTop">24</xsl:variable>
|
|
5
6
|
|
|
6
7
|
<xsl:attribute-set name="root-style"><?extend?>
|
|
7
8
|
<xsl:attribute name="font-family">Source Sans 3, STIX Two Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
|
|
@@ -22,12 +23,58 @@
|
|
|
22
23
|
</fo:simple-page-master>
|
|
23
24
|
|
|
24
25
|
<fo:simple-page-master master-name="first" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
|
25
|
-
<fo:region-body margin-top="
|
|
26
|
-
<fo:region-before region-name="header
|
|
26
|
+
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
|
|
27
|
+
<fo:region-before region-name="header" extent="{$marginTop}mm"/>
|
|
27
28
|
<fo:region-after region-name="footer-even" extent="12.5mm"/>
|
|
28
29
|
<fo:region-start region-name="left-region" extent="13mm"/>
|
|
29
30
|
<fo:region-end region-name="right-region" extent="12mm"/>
|
|
30
31
|
</fo:simple-page-master>
|
|
32
|
+
|
|
33
|
+
<fo:simple-page-master master-name="page-odd" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
|
34
|
+
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
|
|
35
|
+
<fo:region-before region-name="header" extent="{$marginTop}mm"/>
|
|
36
|
+
<fo:region-after region-name="footer-odd" extent="{$extent_footer}"/>
|
|
37
|
+
<fo:region-start region-name="left-region" extent="{$extent_left}"/>
|
|
38
|
+
<fo:region-end region-name="right-region" extent="{$extent_right}"/>
|
|
39
|
+
</fo:simple-page-master>
|
|
40
|
+
<fo:simple-page-master master-name="page-even" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
|
41
|
+
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
|
|
42
|
+
<fo:region-before region-name="header" extent="{$marginTop}mm"/>
|
|
43
|
+
<fo:region-after region-name="footer-even" extent="{$extent_footer}"/>
|
|
44
|
+
<fo:region-start region-name="left-region" extent="{$extent_left}"/>
|
|
45
|
+
<fo:region-end region-name="right-region" extent="{$extent_right}"/>
|
|
46
|
+
</fo:simple-page-master>
|
|
47
|
+
|
|
48
|
+
<fo:page-sequence-master master-name="document">
|
|
49
|
+
<fo:single-page-master-reference master-reference="first"/>
|
|
50
|
+
<fo:repeatable-page-master-alternatives>
|
|
51
|
+
<fo:conditional-page-master-reference master-reference="page-odd" odd-or-even="odd"/>
|
|
52
|
+
<fo:conditional-page-master-reference master-reference="page-even" odd-or-even="even"/>
|
|
53
|
+
</fo:repeatable-page-master-alternatives>
|
|
54
|
+
</fo:page-sequence-master>
|
|
55
|
+
|
|
56
|
+
<fo:simple-page-master master-name="page-odd-landscape" page-width="{$pageHeight}mm" page-height="{$pageWidth}mm">
|
|
57
|
+
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
|
|
58
|
+
<fo:region-before region-name="header" extent="{$marginTop}mm"/>
|
|
59
|
+
<fo:region-after region-name="footer-odd" extent="{$extent_footer}"/>
|
|
60
|
+
<fo:region-start region-name="left-region" extent="{$extent_left}"/>
|
|
61
|
+
<fo:region-end region-name="right-region" extent="{$extent_right}"/>
|
|
62
|
+
</fo:simple-page-master>
|
|
63
|
+
<fo:simple-page-master master-name="page-even-landscape" page-width="{$pageHeight}mm" page-height="{$pageWidth}mm">
|
|
64
|
+
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
|
|
65
|
+
<fo:region-before region-name="header" extent="{$marginTop}mm"/>
|
|
66
|
+
<fo:region-after region-name="footer-even" extent="{$extent_footer}"/>
|
|
67
|
+
<fo:region-start region-name="left-region" extent="{$extent_left}"/>
|
|
68
|
+
<fo:region-end region-name="right-region" extent="{$extent_right}"/>
|
|
69
|
+
</fo:simple-page-master>
|
|
70
|
+
|
|
71
|
+
<fo:page-sequence-master master-name="document-landscape">
|
|
72
|
+
<fo:repeatable-page-master-alternatives>
|
|
73
|
+
<fo:conditional-page-master-reference master-reference="page-odd-landscape" odd-or-even="odd"/>
|
|
74
|
+
<fo:conditional-page-master-reference master-reference="page-even-landscape" odd-or-even="even"/>
|
|
75
|
+
</fo:repeatable-page-master-alternatives>
|
|
76
|
+
</fo:page-sequence-master>
|
|
77
|
+
|
|
31
78
|
</fo:layout-master-set>
|
|
32
79
|
</xsl:template>
|
|
33
80
|
|
|
@@ -106,7 +153,7 @@
|
|
|
106
153
|
<fo:table-cell><fo:block> </fo:block></fo:table-cell>
|
|
107
154
|
<fo:table-cell text-align="right" display-align="after" xsl:use-attribute-sets="cover_page_box"> <!-- padding-left="5mm" padding-right="5mm" -->
|
|
108
155
|
<fo:block-container width="100%" height="{$cover_page_color_box_height}" border="{$cover_page_color_box_border_width} solid {$cover_page_color_box1}">
|
|
109
|
-
<fo:block margin-left="5mm" margin-right="5mm">
|
|
156
|
+
<fo:block font-size="18pt" margin-left="5mm" margin-right="5mm">
|
|
110
157
|
<fo:block>
|
|
111
158
|
<!-- Status / Version.
|
|
112
159
|
e.g. "Draft Release Candidate 1.2", or just a version -->
|
|
@@ -138,6 +185,9 @@
|
|
|
138
185
|
<fo:block margin-bottom="2mm">
|
|
139
186
|
<xsl:value-of select="substring(/mn:metanorma/mn:bibdata/mn:version/mn:revision-date, 1, 7)"/>
|
|
140
187
|
</fo:block>
|
|
188
|
+
<fo:block margin-bottom="2mm" font-size="9pt">
|
|
189
|
+
<xsl:value-of select="/mn:metanorma/mn:bibdata/mn:docidentifier"/>
|
|
190
|
+
</fo:block>
|
|
141
191
|
</fo:block>
|
|
142
192
|
</fo:block-container>
|
|
143
193
|
</fo:table-cell>
|
|
@@ -260,6 +310,23 @@
|
|
|
260
310
|
</svg>
|
|
261
311
|
</xsl:variable>
|
|
262
312
|
|
|
313
|
+
<xsl:attribute-set name="toc-style"><?extend?>
|
|
314
|
+
<xsl:attribute name="margin-left">-6mm</xsl:attribute>
|
|
315
|
+
</xsl:attribute-set>
|
|
316
|
+
|
|
317
|
+
<xsl:template name="toc_and_boilerplate">
|
|
318
|
+
<xsl:param name="num"/>
|
|
319
|
+
<fo:block margin-bottom="12pt" role="SKIP"><fo:wrapper role="artifact"> </fo:wrapper></fo:block>
|
|
320
|
+
<fo:block-container height="{$pageHeight - $marginTop - $marginBottom - 20}mm" display-align="after">
|
|
321
|
+
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/*"/>
|
|
322
|
+
</fo:block-container>
|
|
323
|
+
<fo:block break-after="page"/>
|
|
324
|
+
|
|
325
|
+
<xsl:apply-templates select="/mn:metanorma/mn:preface/mn:clause[@type = 'toc']">
|
|
326
|
+
<xsl:with-param name="num" select="$num"/>
|
|
327
|
+
</xsl:apply-templates>
|
|
328
|
+
</xsl:template>
|
|
329
|
+
|
|
263
330
|
<!-- empty back-page to omit back cover -->
|
|
264
331
|
<xsl:template name="back-page">
|
|
265
332
|
<!-- put the back page layout -->
|
|
@@ -269,24 +336,55 @@
|
|
|
269
336
|
<xsl:apply-templates />
|
|
270
337
|
</xsl:template>
|
|
271
338
|
|
|
272
|
-
|
|
273
339
|
<xsl:attribute-set name="link-style">
|
|
274
340
|
<xsl:attribute name="color">rgb(208,63,78)</xsl:attribute><!-- #d03f4e PDFa logo red -->
|
|
275
341
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
276
342
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
|
277
343
|
</xsl:attribute-set>
|
|
278
344
|
|
|
279
|
-
<xsl:template name="refine_link-style"
|
|
345
|
+
<xsl:template name="refine_link-style">
|
|
280
346
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
281
347
|
</xsl:template>
|
|
282
348
|
|
|
349
|
+
<xsl:variable name="variables_pdfa_">
|
|
350
|
+
<xsl:for-each select="//mn:metanorma">
|
|
351
|
+
<xsl:variable name="num"><xsl:number level="any" count="mn:metanorma"/></xsl:variable>
|
|
352
|
+
|
|
353
|
+
<xsl:variable name="current_document">
|
|
354
|
+
<xsl:copy-of select="."/>
|
|
355
|
+
</xsl:variable>
|
|
356
|
+
|
|
357
|
+
<xsl:for-each select="xalan:nodeset($current_document)">
|
|
358
|
+
<mnx:doc num="{$num}">
|
|
359
|
+
<title><xsl:apply-templates select="mn:metanorma/mn:bibdata/mn:title[@type = 'main'][last()]/node()"/></title>
|
|
360
|
+
</mnx:doc>
|
|
361
|
+
</xsl:for-each>
|
|
362
|
+
</xsl:for-each>
|
|
363
|
+
</xsl:variable>
|
|
364
|
+
<xsl:variable name="variables_pdfa" select="xalan:nodeset($variables_pdfa_)"/>
|
|
365
|
+
|
|
283
366
|
<xsl:template name="insertHeaderFooter">
|
|
284
367
|
<xsl:param name="num"/>
|
|
368
|
+
<xsl:param name="section"/>
|
|
369
|
+
<xsl:call-template name="insertHeader">
|
|
370
|
+
<xsl:with-param name="num" select="$num"/>
|
|
371
|
+
<xsl:with-param name="section" select="$section"/>
|
|
372
|
+
</xsl:call-template>
|
|
285
373
|
<xsl:call-template name="insertFooter">
|
|
286
374
|
<xsl:with-param name="num" select="$num"/>
|
|
287
375
|
</xsl:call-template>
|
|
288
376
|
</xsl:template>
|
|
289
377
|
|
|
378
|
+
<xsl:template name="insertHeader">
|
|
379
|
+
<xsl:param name="num"/>
|
|
380
|
+
<xsl:param name="section"/>
|
|
381
|
+
<fo:static-content flow-name="header" role="artifact">
|
|
382
|
+
<fo:block-container margin-top="10mm" border-bottom="0.5pt solid black" text-align="center" font-size="8pt">
|
|
383
|
+
<fo:block><xsl:copy-of select="$variables_pdfa/mnx:doc[@num = $num]/title/node()"/></fo:block>
|
|
384
|
+
</fo:block-container>
|
|
385
|
+
</fo:static-content>
|
|
386
|
+
</xsl:template>
|
|
387
|
+
|
|
290
388
|
<xsl:template name="insertFooter">
|
|
291
389
|
<xsl:param name="num"/>
|
|
292
390
|
<!-- <xsl:param name="invert"/> -->
|
|
@@ -330,6 +428,64 @@
|
|
|
330
428
|
|
|
331
429
|
<xsl:template name="refine_title-style"><?extend?>
|
|
332
430
|
<xsl:attribute name="color"><xsl:value-of select="$color_secondary"/></xsl:attribute>
|
|
431
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
432
|
+
</xsl:template>
|
|
433
|
+
|
|
434
|
+
<xsl:template match="mn:fmt-title" name="title">
|
|
435
|
+
|
|
436
|
+
<xsl:variable name="level">
|
|
437
|
+
<xsl:call-template name="getLevel"/>
|
|
438
|
+
</xsl:variable>
|
|
439
|
+
|
|
440
|
+
<xsl:variable name="element-name">
|
|
441
|
+
<xsl:choose>
|
|
442
|
+
<xsl:when test="../@inline-header = 'true'">fo:inline</xsl:when>
|
|
443
|
+
<xsl:otherwise>fo:block</xsl:otherwise>
|
|
444
|
+
</xsl:choose>
|
|
445
|
+
</xsl:variable>
|
|
446
|
+
|
|
447
|
+
<xsl:variable name="title_styles">
|
|
448
|
+
<styles xsl:use-attribute-sets="title-style"><xsl:call-template name="refine_title-style"/></styles>
|
|
449
|
+
</xsl:variable>
|
|
450
|
+
|
|
451
|
+
<xsl:element name="{$element-name}">
|
|
452
|
+
<xsl:copy-of select="xalan:nodeset($title_styles)/styles/@*"/>
|
|
453
|
+
|
|
454
|
+
<!-- <xsl:choose>
|
|
455
|
+
<xsl:when test="$level = 1"> -->
|
|
456
|
+
<fo:block-container margin-left="-15mm" role="SKIP">
|
|
457
|
+
<fo:block-container xsl:use-attribute-sets="reset-margins-style">
|
|
458
|
+
<fo:table width="100%" table-layout="fixed" role="SKIP">
|
|
459
|
+
<fo:table-column column-width="15mm"/>
|
|
460
|
+
<fo:table-column column-width="150mm"/>
|
|
461
|
+
<fo:table-body role="SKIP">
|
|
462
|
+
<fo:table-row role="SKIP">
|
|
463
|
+
<fo:table-cell text-align="left" role="SKIP">
|
|
464
|
+
<fo:block role="SKIP">
|
|
465
|
+
<xsl:call-template name="setIDforNamedDestinationInline"/>
|
|
466
|
+
<xsl:call-template name="extractSection"/><!-- section number 1 2 3 ... -->
|
|
467
|
+
</fo:block>
|
|
468
|
+
</fo:table-cell>
|
|
469
|
+
<fo:table-cell role="SKIP">
|
|
470
|
+
<fo:block role="SKIP">
|
|
471
|
+
<xsl:call-template name="extractTitle"/> <!-- section title -->
|
|
472
|
+
<xsl:apply-templates select="following-sibling::*[1][self::mn:variant-title][@type = 'sub']" mode="subtitle"/>
|
|
473
|
+
</fo:block>
|
|
474
|
+
</fo:table-cell>
|
|
475
|
+
</fo:table-row>
|
|
476
|
+
</fo:table-body>
|
|
477
|
+
</fo:table>
|
|
478
|
+
</fo:block-container>
|
|
479
|
+
</fo:block-container>
|
|
480
|
+
<!-- </xsl:when>
|
|
481
|
+
<xsl:otherwise>
|
|
482
|
+
<xsl:call-template name="setIDforNamedDestinationInline"/>
|
|
483
|
+
<xsl:apply-templates />
|
|
484
|
+
<xsl:apply-templates select="following-sibling::*[1][self::mn:variant-title][@type = 'sub']" mode="subtitle"/>
|
|
485
|
+
</xsl:otherwise>
|
|
486
|
+
</xsl:choose> -->
|
|
487
|
+
|
|
488
|
+
</xsl:element>
|
|
333
489
|
</xsl:template>
|
|
334
490
|
|
|
335
491
|
<xsl:template name="refine_list-item-label-style"><?extend?>
|
|
@@ -341,14 +497,14 @@
|
|
|
341
497
|
<xsl:template name="refine_sourcecode-style"><?extend?>
|
|
342
498
|
<xsl:attribute name="font-size">85%</xsl:attribute>
|
|
343
499
|
</xsl:template>
|
|
344
|
-
|
|
500
|
+
|
|
345
501
|
<xsl:template match="mn:ul/mn:li/mn:fmt-name[normalize-space() = 'o']" priority="3" mode="update_xml_step1">
|
|
346
502
|
<xsl:attribute name="label">■</xsl:attribute>
|
|
347
503
|
</xsl:template>
|
|
348
504
|
|
|
349
505
|
<xsl:attribute-set name="note-style"><?extend?>
|
|
350
506
|
<xsl:attribute name="background-color">rgb(245,235,206)</xsl:attribute> <!-- PDF Association "logo yellow" converted to HSL and lightened to 88% (L) -->
|
|
351
|
-
<xsl:attribute name="margin-left">
|
|
507
|
+
<xsl:attribute name="margin-left">8.5mm</xsl:attribute>
|
|
352
508
|
<xsl:attribute name="margin-right">0.5mm</xsl:attribute>
|
|
353
509
|
<xsl:attribute name="padding">1mm</xsl:attribute>
|
|
354
510
|
<xsl:attribute name="padding-left">1.5mm</xsl:attribute>
|
|
@@ -356,6 +512,16 @@
|
|
|
356
512
|
<xsl:attribute name="font-size">88%</xsl:attribute>
|
|
357
513
|
</xsl:attribute-set>
|
|
358
514
|
|
|
515
|
+
<xsl:template name="refine_note-style"><?extend?>
|
|
516
|
+
<xsl:if test="ancestor::mn:bibitem">
|
|
517
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
|
518
|
+
<xsl:attribute name="margin-bottom">10pt</xsl:attribute>
|
|
519
|
+
<xsl:if test="not(following-sibling::*[1][self::mn:note])">
|
|
520
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
521
|
+
</xsl:if>
|
|
522
|
+
</xsl:if>
|
|
523
|
+
</xsl:template>
|
|
524
|
+
|
|
359
525
|
<xsl:attribute-set name="note-name-style"><?extend?>
|
|
360
526
|
<xsl:attribute name="padding-right">3mm</xsl:attribute>
|
|
361
527
|
</xsl:attribute-set>
|
|
@@ -373,8 +539,10 @@
|
|
|
373
539
|
<xsl:attribute-set name="list-name-style"><?extend?>
|
|
374
540
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
375
541
|
</xsl:attribute-set>
|
|
376
|
-
<xsl:attribute-set name="sourcecode-name-style"
|
|
542
|
+
<xsl:attribute-set name="sourcecode-name-style">
|
|
543
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
377
544
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
545
|
+
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
|
378
546
|
</xsl:attribute-set>
|
|
379
547
|
<xsl:attribute-set name="table-name-style"><?extend?>
|
|
380
548
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
@@ -382,4 +550,22 @@
|
|
|
382
550
|
<xsl:attribute-set name="term-kind-style"><?extend?>
|
|
383
551
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
384
552
|
</xsl:attribute-set>
|
|
553
|
+
|
|
554
|
+
<xsl:template name="display_term_kind">
|
|
555
|
+
<xsl:if test="not(self::mn:fmt-preferred)">
|
|
556
|
+
<xsl:call-template name="term_kind"/>
|
|
557
|
+
</xsl:if>
|
|
558
|
+
</xsl:template>
|
|
559
|
+
|
|
560
|
+
<xsl:attribute-set name="example-body-style">
|
|
561
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
|
562
|
+
<xsl:attribute name="margin-right">7mm</xsl:attribute>
|
|
563
|
+
</xsl:attribute-set>
|
|
564
|
+
|
|
565
|
+
<xsl:variable name="example_display_in">block</xsl:variable>
|
|
566
|
+
|
|
567
|
+
<xsl:attribute-set name="fn-body-style"><?extend?>
|
|
568
|
+
<xsl:attribute name="color">black</xsl:attribute>
|
|
569
|
+
</xsl:attribute-set>
|
|
570
|
+
|
|
385
571
|
</xsl:stylesheet>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-taste
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|