-
Notifications
You must be signed in to change notification settings - Fork 11
/
start-pdf.xsl
456 lines (431 loc) · 20.2 KB
/
start-pdf.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
<!-- $Id$ --><xsl:stylesheet xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:t="http://www.tei-c.org/ns/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="t" version="2.0">
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:include href="global-varsandparams.xsl"/>
<!-- html related stylesheets, these may import tei{element} stylesheets if relevant eg. htm-teigap and teigap -->
<xsl:include href="fo-teiab.xsl"/>
<xsl:include href="fo-teiaddanddel.xsl"/>
<xsl:include href="fo-teiapp.xsl"/>
<xsl:include href="fo-teidiv.xsl"/>
<xsl:include href="fo-teidivedition.xsl"/>
<xsl:include href="fo-teidivapparatus.xsl"/>
<xsl:include href="fo-teiforeign.xsl"/>
<xsl:include href="fo-teifigure.xsl"/>
<xsl:include href="fo-teig.xsl"/>
<xsl:include href="fo-teigap.xsl"/>
<xsl:include href="fo-teihead.xsl"/>
<xsl:include href="fo-teihi.xsl"/>
<xsl:include href="fo-teilb.xsl"/>
<xsl:include href="fo-teilgandl.xsl"/>
<xsl:include href="fo-teilistanditem.xsl"/>
<xsl:include href="fo-teilistbiblandbibl.xsl"/>
<xsl:include href="fo-teimilestone.xsl"/>
<xsl:include href="fo-teibibl.xsl"/>
<xsl:include href="fo-teinote.xsl"/>
<xsl:include href="fo-teinum.xsl"/>
<xsl:include href="fo-teip.xsl"/>
<xsl:include href="fo-teiseg.xsl"/>
<xsl:include href="fo-teispace.xsl"/>
<xsl:include href="fo-teisupplied.xsl"/>
<xsl:include href="fo-teiterm.xsl"/>
<xsl:include href="fo-teiref.xsl"/>
<!-- html related stylesheets for named templates -->
<xsl:include href="fo-tpl-sqbrackets.xsl"/>
<xsl:include href="fo-tpl-apparatus.xsl"/>
<xsl:include href="fo-tpl-lang.xsl"/>
<!-- html related stylesheets for named templates -->
<xsl:include href="fo-tpl-struct-creta.xsl"/>
<!-- tei stylesheets that are also used by start-txt -->
<xsl:include href="teiabbrandexpan.xsl"/>
<xsl:include href="teicertainty.xsl"/>
<xsl:include href="teichoice.xsl"/>
<xsl:include href="teihandshift.xsl"/>
<xsl:include href="teiheader.xsl"/>
<xsl:include href="teimilestone.xsl"/>
<xsl:include href="teiorig.xsl"/>
<xsl:include href="teiorigandreg.xsl"/>
<xsl:include href="teiq.xsl"/>
<xsl:include href="teisicandcorr.xsl"/>
<xsl:include href="teispace.xsl"/>
<xsl:include href="teisupplied.xsl"/>
<xsl:include href="teisurplus.xsl"/>
<xsl:include href="teiunclear.xsl"/>
<!-- global named templates with no html, also used by start-txt -->
<xsl:include href="tpl-certlow.xsl"/>
<xsl:include href="functions.xsl"/>
<!-- <xsl:include href="tpl-text.xsl"/>-->
<!-- <xsl:include href="tpl-reasonlost.xsl"/>-->
<!-- HTML FILE -->
<xsl:template match="/">
<fo:root
language="en"
hyphenate="true"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:page-sequence-master
master-name="EpiDoc-master">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="blank"
blank-or-not-blank="blank"/>
<fo:conditional-page-master-reference
page-position="first"
odd-or-even="odd"
master-reference="EpiDoc-chapter-first-odd"/>
<fo:conditional-page-master-reference
page-position="first"
odd-or-even="even"
master-reference="EpiDoc-chapter-first-even"/>
<fo:conditional-page-master-reference
page-position="rest"
odd-or-even="odd"
master-reference="EpiDoc-chapter-rest-odd"/>
<fo:conditional-page-master-reference
page-position="rest"
odd-or-even="even"
master-reference="EpiDoc-chapter-rest-even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<fo:page-sequence-master master-name="EpiDoc-Indexes">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="indexes-blank"
blank-or-not-blank="blank"/>
<fo:conditional-page-master-reference
page-position="first"
odd-or-even="odd"
master-reference="EpiDoc-Indexes-first-odd"/>
<fo:conditional-page-master-reference
page-position="first"
odd-or-even="even"
master-reference="EpiDoc-Indexes-first-even"/>
<fo:conditional-page-master-reference
page-position="rest"
odd-or-even="odd"
master-reference="EpiDoc-Indexes-rest-odd"/>
<fo:conditional-page-master-reference
page-position="rest"
odd-or-even="even"
master-reference="EpiDoc-Indexes-rest-even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<fo:simple-page-master
page-height="297mm"
page-width="210mm"
master-name="blank"
margin-top="45mm"
margin-bottom="53mm"
margin-left="45mm"
margin-right="45mm">
<fo:region-body
margin-top="37.5pt"
margin-bottom="37.5pt" />
</fo:simple-page-master>
<fo:simple-page-master
page-height="297mm"
page-width="210mm"
master-name="indexes-blank"
margin-top="45mm"
margin-bottom="53mm"
margin-left="45mm"
margin-right="45mm">
<fo:region-body
margin-top="37.5pt"
margin-bottom="37.5pt" />
</fo:simple-page-master>
<fo:simple-page-master
page-height="297mm"
page-width="210mm"
master-name="EpiDoc-Indexes-rest-odd"
margin-top="45mm"
margin-bottom="53mm"
margin-left="45mm"
margin-right="45mm">
<fo:region-body
margin-top="37.5pt"
margin-bottom="37.5pt"
column-count="2" column-gap="10mm" />
<fo:region-before
region-name="rest-region-before-odd"
extent="25pt"/>
<fo:region-after
region-name="rest-region-after-odd"
extent="12.5pt"/>
</fo:simple-page-master>
<fo:simple-page-master
page-height="297mm"
page-width="210mm"
master-name="EpiDoc-Indexes-rest-even"
margin-top="45mm"
margin-bottom="53mm"
margin-left="45mm"
margin-right="45mm">
<fo:region-body
margin-top="37.5pt"
margin-bottom="37.5pt"
column-count="2" column-gap="10mm" />
<fo:region-before
region-name="rest-region-before-even"
extent="25pt"/>
<fo:region-after
region-name="rest-region-after-even"
extent="12.5pt"/>
</fo:simple-page-master>
<fo:simple-page-master
page-height="297mm"
page-width="210mm"
master-name="EpiDoc-Indexes-first-even"
margin-top="45mm"
margin-bottom="53mm"
margin-left="45mm"
margin-right="45mm">
<fo:region-body
margin-top="37.5pt"
margin-bottom="37.5pt"
column-count="2" column-gap="10mm" />
<fo:region-after
extent="25pt"/>
</fo:simple-page-master>
<fo:simple-page-master
page-height="297mm"
page-width="210mm"
master-name="EpiDoc-Indexes-first-odd"
margin-top="45mm"
margin-bottom="53mm"
margin-left="45mm"
margin-right="45mm">
<fo:region-body
margin-top="37.5pt"
margin-bottom="37.5pt"
column-count="2" column-gap="10mm" />
<fo:region-before
region-name="rest-region-before-first"
extent="25pt"/>
<fo:region-after
region-name="rest-region-after-first"
extent="12.5pt"/>
</fo:simple-page-master>
<fo:simple-page-master
page-height="297mm"
page-width="210mm"
master-name="EpiDoc-chapter-first-odd"
margin-top="45mm"
margin-bottom="53mm"
margin-left="45mm"
margin-right="45mm">
<fo:region-body
margin-top="37.5pt"
margin-bottom="37.5pt"/>
<fo:region-before
region-name="rest-region-before-first"
extent="25pt"/>
<fo:region-after
region-name="rest-region-after-first"
extent="12.5pt"/>
</fo:simple-page-master>
<fo:simple-page-master
page-height="297mm"
page-width="210mm"
master-name="EpiDoc-chapter-first-even"
margin-top="45mm"
margin-bottom="53mm"
margin-left="45mm"
margin-right="45mm">
<fo:region-body
margin-top="37.5pt"
margin-bottom="37.5pt"/>
<fo:region-after
extent="25pt"/>
</fo:simple-page-master>
<fo:simple-page-master
page-height="297mm"
page-width="210mm"
master-name="EpiDoc-chapter-rest-odd"
margin-top="45mm"
margin-bottom="53mm"
margin-left="45mm"
margin-right="45mm">
<fo:region-body
margin-top="37.5pt"
margin-bottom="37.5pt"/>
<fo:region-before
region-name="rest-region-before-odd"
extent="25pt"/>
<fo:region-after
region-name="rest-region-after-odd"
extent="12.5pt"/>
</fo:simple-page-master>
<fo:simple-page-master
page-height="297mm"
page-width="210mm"
master-name="EpiDoc-chapter-rest-even"
margin-top="45mm"
margin-bottom="53mm"
margin-left="45mm"
margin-right="45mm">
<fo:region-body
margin-top="37.5pt"
margin-bottom="37.5pt"/>
<fo:region-before
region-name="rest-region-before-even"
extent="25pt"/>
<fo:region-after
region-name="rest-region-after-even"
extent="12.5pt"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence
master-reference="EpiDoc-master">
<fo:static-content
flow-name="rest-region-before-odd">
<fo:block-container
height="100%"
display-align="center">
<fo:block
font-family="Cardo"
font-size="9px"
text-align="center"
>Iscrizioni</fo:block>
</fo:block-container>
</fo:static-content>
<fo:static-content
flow-name="rest-region-before-even">
<fo:block-container
height="100%"
display-align="center">
<fo:block
font-family="Cardo"
font-size="9px"
text-align="center"
>Iscrizioni</fo:block>
</fo:block-container>
</fo:static-content>
<fo:static-content
flow-name="rest-region-after-first">
<fo:table>
<fo:table-column
column-width="30%"/>
<fo:table-column
column-width="40%"/>
<fo:table-column
column-width="30%"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell><fo:block
font-size="9pt"
font-family="Cardo"
text-align="left"></fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block
text-align="center"
font-size="9pt"
font-family="Cardo"></fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block
text-align="right"
font-size="9pt"
font-family="Cardo">
<!--titoletto in cima alla pagina-->
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:static-content>
<fo:static-content
flow-name="rest-region-after-odd">
<fo:table>
<fo:table-column
column-width="30%"/>
<fo:table-column
column-width="40%"/>
<fo:table-column
column-width="30%"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block
text-align="right"></fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block
text-align="center"
font-size="9pt"
font-family="Cardo"><fo:page-number/></fo:block>
</fo:table-cell>
<fo:table-cell><fo:block
font-size="9pt"
font-family="Cardo"
text-align="right">
<!--titoletto in cima alla pagina-->
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:static-content>
<fo:static-content
flow-name="rest-region-after-even">
<fo:table>
<fo:table-column
column-width="30%"/>
<fo:table-column
column-width="40%"/>
<fo:table-column
column-width="30%"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block
font-size="9pt"
font-family="Cardo"
text-align="left">
<!--titoletto in cima alla pagina-->
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block
font-size="9pt"
font-family="Cardo"
text-align="center"><fo:page-number/></fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block
text-align="left">
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:static-content>
<fo:static-content
flow-name="xsl-footnote-separator">
<fo:block space-before="5mm" space-after="5mm">
<fo:leader leader-length="30%" rule-thickness="0pt"/>
</fo:block>
</fo:static-content>
<fo:flow
flow-name="xsl-region-body"
font-size="10.5pt"
line-height="12.5pt"
font-family="Ludolfus"
text-align="justify"
hyphenate="true">
<fo:block-container>
<xsl:call-template name="creta-structure">
<xsl:with-param name="parm-internal-app-style" select="$internal-app-style" tunnel="yes"/>
<xsl:with-param name="parm-external-app-style" select="$external-app-style" tunnel="yes"/>
<xsl:with-param name="parm-edn-structure" select="$edn-structure" tunnel="yes"/>
<xsl:with-param name="parm-edition-type" select="$edition-type" tunnel="yes"/>
<xsl:with-param name="parm-hgv-gloss" select="$hgv-gloss" tunnel="yes"/>
<xsl:with-param name="parm-leiden-style" select="$leiden-style" tunnel="yes"/>
<xsl:with-param name="parm-line-inc" select="$line-inc" tunnel="yes" as="xs:double"/>
<xsl:with-param name="parm-verse-lines" select="$verse-lines" tunnel="yes"/>
<xsl:with-param name="parm-css-loc" select="$css-loc" tunnel="yes"/>
<xsl:with-param name="parm-glyph-variant" select="$glyph-variant" tunnel="yes"/>
</xsl:call-template>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>