metanorma-plateau 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4834c2ee47e184721abe8ad6bac4d72ee1e1d80eebd1edd5bf67fdf8f640be6
4
- data.tar.gz: cccbce71fa3b654e5183b814114f33490d56b9f738b9cf9db6d66eb9dc9f8881
3
+ metadata.gz: 994c9fb200d2e1cffe7ea418f5c6129233ae0319898f161e0b4387cda7b62606
4
+ data.tar.gz: 1cf4aa824bda63e7905f0a77fc1c5a684791232453f82da45aadbb0eee061094
5
5
  SHA512:
6
- metadata.gz: 5c6185e00e3629e97e8aaace04150b1f44971c66b29e31addb05cffb81669d26c7fd880bb09e395c9317a471b9ab1c190dcb4a978c3838405a1df65ea733d12c
7
- data.tar.gz: a9fd04e142af38ff37848b710098e507652c0311bd6dc6d41392839ea1cb4c0ba4a4de583e977f2eca7542385e3d6a182a853e94eb2b424af112aae1e2f7e6ec
6
+ metadata.gz: 6cf30287643b8d49fd4c1412b7a4b0381d81bb5f6210875916f6fcccd2a7edfc2fb3764f26eb374d5d8d1bd8a64d7f5fc2bb3735308b0242cc3a9ecccb93eae4
7
+ data.tar.gz: 7d5fe6507a675e5cf1fd8cc9d4c36cbd767e407d28b3fc0840963dbdf9198581df95bf2c0903d7115f1233c98a99aa6eef67e9e5e9106ed50790ff95708fd92f
@@ -6,7 +6,7 @@
6
6
 
7
7
  <xsl:variable name="debug">false</xsl:variable>
8
8
 
9
- <xsl:variable name="isIgnoreComplexScripts">true</xsl:variable>
9
+ <!-- <xsl:variable name="isIgnoreComplexScripts">true</xsl:variable> -->
10
10
 
11
11
  <xsl:variable name="doctype" select="//plateau:plateau-standard[1]/plateau:bibdata/plateau:ext/plateau:doctype[@language = '' or not(@language)]"/>
12
12
 
@@ -14,6 +14,8 @@
14
14
  <xsl:variable name="i18n_doctype_dict_technical_report"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">doctype_dict.technical-report</xsl:with-param></xsl:call-template></xsl:variable>
15
15
  <xsl:variable name="i18n_table_of_contents"><xsl:call-template name="getLocalizedString"><xsl:with-param name="key">table_of_contents</xsl:with-param></xsl:call-template></xsl:variable>
16
16
 
17
+ <xsl:variable name="vertical_layout" select="normalize-space(/*/plateau:metanorma-extension/plateau:presentation-metadata/plateau:vertical-layout)"/>
18
+
17
19
  <xsl:variable name="page_header">
18
20
  <xsl:value-of select="/*/plateau:metanorma-extension/plateau:presentation-metadata/plateau:use-case"/>
19
21
  <xsl:text>_</xsl:text>
@@ -90,7 +92,15 @@
90
92
  </fo:simple-page-master>
91
93
 
92
94
  <fo:simple-page-master master-name="document_preface" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
93
- <fo:region-body margin-top="50mm" margin-bottom="35mm" margin-left="26mm" margin-right="34mm"/>
95
+ <xsl:if test="$vertical_layout = 'true'">
96
+ <xsl:attribute name="page-width"><xsl:value-of select="$pageHeight"/>mm</xsl:attribute>
97
+ <xsl:attribute name="page-height"><xsl:value-of select="$pageWidth"/>mm</xsl:attribute>
98
+ </xsl:if>
99
+ <fo:region-body margin-top="50mm" margin-bottom="35mm" margin-left="26mm" margin-right="34mm">
100
+ <xsl:if test="$vertical_layout = 'true'">
101
+ <xsl:attribute name="writing-mode">tb-rl</xsl:attribute>
102
+ </xsl:if>
103
+ </fo:region-body>
94
104
  <fo:region-before region-name="header" extent="50mm"/>
95
105
  <fo:region-after region-name="footer" extent="35mm"/>
96
106
  <fo:region-start region-name="left-region" extent="26mm"/>
@@ -98,7 +108,15 @@
98
108
  </fo:simple-page-master>
99
109
 
100
110
  <fo:simple-page-master master-name="document_toc" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
101
- <fo:region-body margin-top="16.5mm" margin-bottom="22mm" margin-left="14.5mm" margin-right="22.3mm"/>
111
+ <xsl:if test="$vertical_layout = 'true'">
112
+ <xsl:attribute name="page-width"><xsl:value-of select="$pageHeight"/>mm</xsl:attribute>
113
+ <xsl:attribute name="page-height"><xsl:value-of select="$pageWidth"/>mm</xsl:attribute>
114
+ </xsl:if>
115
+ <fo:region-body margin-top="16.5mm" margin-bottom="22mm" margin-left="14.5mm" margin-right="22.3mm">
116
+ <xsl:if test="$vertical_layout = 'true'">
117
+ <xsl:attribute name="writing-mode">tb-rl</xsl:attribute>
118
+ </xsl:if>
119
+ </fo:region-body>
102
120
  <fo:region-before region-name="header" extent="16.5mm"/>
103
121
  <fo:region-after region-name="footer" extent="22mm"/>
104
122
  <fo:region-start region-name="left-region" extent="14.5mm"/>
@@ -106,7 +124,15 @@
106
124
  </fo:simple-page-master>
107
125
 
108
126
  <fo:simple-page-master master-name="document" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
109
- <fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
127
+ <xsl:if test="$vertical_layout = 'true'">
128
+ <xsl:attribute name="page-width"><xsl:value-of select="$pageHeight"/>mm</xsl:attribute>
129
+ <xsl:attribute name="page-height"><xsl:value-of select="$pageWidth"/>mm</xsl:attribute>
130
+ </xsl:if>
131
+ <fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm">
132
+ <xsl:if test="$vertical_layout = 'true'">
133
+ <xsl:attribute name="writing-mode">tb-rl</xsl:attribute>
134
+ </xsl:if>
135
+ </fo:region-body>
110
136
  <fo:region-before region-name="header" extent="{$marginTop}mm"/>
111
137
  <fo:region-after region-name="footer" extent="{$marginBottom}mm"/>
112
138
  <fo:region-start region-name="left-region" extent="{$marginLeftRight1}mm"/>
@@ -235,6 +261,11 @@
235
261
  <fo:static-content flow-name="header" role="artifact" id="__internal_layout__preface_header_{generate-id()}">
236
262
  <!-- grey background -->
237
263
  <fo:block-container absolute-position="fixed" left="24.2mm" top="40mm" height="231.4mm" width="161mm" background-color="rgb(242,242,242)" id="__internal_layout__preface_header_{$num}_{generate-id()}">
264
+ <xsl:if test="$vertical_layout = 'true'">
265
+ <xsl:attribute name="top">24.2mm</xsl:attribute>
266
+ <xsl:attribute name="left">40mm</xsl:attribute>
267
+ <xsl:attribute name="writing-mode">tb-rl</xsl:attribute>
268
+ </xsl:if>
238
269
  <fo:block> </fo:block>
239
270
  </fo:block-container>
240
271
  </fo:static-content>
@@ -13362,6 +13393,39 @@
13362
13393
  </pdf:catalog>
13363
13394
  <x:xmpmeta xmlns:x="adobe:ns:meta/">
13364
13395
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
13396
+ <rdf:Description xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/" xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#" xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#" rdf:about="">
13397
+ <pdfaExtension:schemas>
13398
+ <rdf:Bag>
13399
+ <rdf:li rdf:parseType="Resource">
13400
+ <pdfaSchema:namespaceURI>http://www.aiim.org/pdfua/ns/id/</pdfaSchema:namespaceURI>
13401
+ <pdfaSchema:prefix>pdfuaid</pdfaSchema:prefix>
13402
+ <pdfaSchema:schema>PDF/UA identification schema</pdfaSchema:schema>
13403
+ <pdfaSchema:property>
13404
+ <rdf:Seq>
13405
+ <rdf:li rdf:parseType="Resource">
13406
+ <pdfaProperty:category>internal</pdfaProperty:category>
13407
+ <pdfaProperty:description>PDF/UA version identifier</pdfaProperty:description>
13408
+ <pdfaProperty:name>part</pdfaProperty:name>
13409
+ <pdfaProperty:valueType>Integer</pdfaProperty:valueType>
13410
+ </rdf:li>
13411
+ <rdf:li rdf:parseType="Resource">
13412
+ <pdfaProperty:category>internal</pdfaProperty:category>
13413
+ <pdfaProperty:description>PDF/UA amendment identifier</pdfaProperty:description>
13414
+ <pdfaProperty:name>amd</pdfaProperty:name>
13415
+ <pdfaProperty:valueType>Text</pdfaProperty:valueType>
13416
+ </rdf:li>
13417
+ <rdf:li rdf:parseType="Resource">
13418
+ <pdfaProperty:category>internal</pdfaProperty:category>
13419
+ <pdfaProperty:description>PDF/UA corrigenda identifier</pdfaProperty:description>
13420
+ <pdfaProperty:name>corr</pdfaProperty:name>
13421
+ <pdfaProperty:valueType>Text</pdfaProperty:valueType>
13422
+ </rdf:li>
13423
+ </rdf:Seq>
13424
+ </pdfaSchema:property>
13425
+ </rdf:li>
13426
+ </rdf:Bag>
13427
+ </pdfaExtension:schemas>
13428
+ </rdf:Description>
13365
13429
  <rdf:Description xmlns:pdf="http://ns.adobe.com/pdf/1.3/" xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:about="">
13366
13430
  <!-- Dublin Core properties go here -->
13367
13431
  <dc:title>
@@ -13372,33 +13436,57 @@
13372
13436
 
13373
13437
  </xsl:for-each>
13374
13438
  </xsl:variable>
13375
- <xsl:choose>
13376
- <xsl:when test="normalize-space($title) != ''">
13377
- <xsl:value-of select="$title"/>
13378
- </xsl:when>
13379
- <xsl:otherwise>
13380
- <xsl:text> </xsl:text>
13381
- </xsl:otherwise>
13382
- </xsl:choose>
13439
+ <rdf:Alt>
13440
+ <rdf:li xml:lang="x-default">
13441
+ <xsl:choose>
13442
+ <xsl:when test="normalize-space($title) != ''">
13443
+ <xsl:value-of select="$title"/>
13444
+ </xsl:when>
13445
+ <xsl:otherwise>
13446
+ <xsl:text> </xsl:text>
13447
+ </xsl:otherwise>
13448
+ </xsl:choose>
13449
+ </rdf:li>
13450
+ </rdf:Alt>
13383
13451
  </dc:title>
13384
- <dc:creator>
13452
+ <xsl:variable name="dc_creator">
13385
13453
  <xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
13386
13454
 
13387
- <xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
13388
- <xsl:value-of select="*[local-name() = 'organization']/*[local-name() = 'name']"/>
13389
- <xsl:if test="position() != last()">; </xsl:if>
13390
- </xsl:for-each>
13455
+ <rdf:Seq>
13456
+ <xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
13457
+ <rdf:li>
13458
+ <xsl:value-of select="*[local-name() = 'organization']/*[local-name() = 'name']"/>
13459
+ </rdf:li>
13460
+ <!-- <xsl:if test="position() != last()">; </xsl:if> -->
13461
+ </xsl:for-each>
13462
+ </rdf:Seq>
13391
13463
 
13392
13464
  </xsl:for-each>
13393
- </dc:creator>
13394
- <dc:description>
13465
+ </xsl:variable>
13466
+ <xsl:if test="normalize-space($dc_creator) != ''">
13467
+ <dc:creator>
13468
+ <xsl:copy-of select="$dc_creator"/>
13469
+ </dc:creator>
13470
+ </xsl:if>
13471
+
13472
+ <xsl:variable name="dc_description">
13395
13473
  <xsl:variable name="abstract">
13396
13474
 
13397
13475
  <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()[not(ancestor::*[local-name() = 'title'])]"/>
13398
13476
 
13399
13477
  </xsl:variable>
13400
- <xsl:value-of select="normalize-space($abstract)"/>
13401
- </dc:description>
13478
+ <rdf:Alt>
13479
+ <rdf:li xml:lang="x-default">
13480
+ <xsl:value-of select="normalize-space($abstract)"/>
13481
+ </rdf:li>
13482
+ </rdf:Alt>
13483
+ </xsl:variable>
13484
+ <xsl:if test="normalize-space($dc_description)">
13485
+ <dc:description>
13486
+ <xsl:copy-of select="$dc_description"/>
13487
+ </dc:description>
13488
+ </xsl:if>
13489
+
13402
13490
  <pdf:Keywords>
13403
13491
  <xsl:call-template name="insertKeywords">
13404
13492
  <xsl:with-param name="meta">true</xsl:with-param>