-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
layout.xml
166 lines (151 loc) · 5.57 KB
/
layout.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<Layout
xmlns="urn:speedata.de:2009/publisher/en"
xmlns:sd="urn:speedata:2009/publisher/functions/en">
<Options ignoreeol="yes" startpage="129"/>
<Pageformat width="148mm" height="210mm"/>
<SetGrid width="2mm" height="9pt"/>
<SetVariable variable="rulewd" select="'0.3pt'"/>
<LoadFontfile name="ILShakeFest" filename="ILShakeFest.ttf" />
<LoadFontfile name="UglyQua-Italic" filename="UglyQua-Italic.ttf" />
<LoadFontfile name="UglyQua" filename="UglyQua.ttf" />
<DefineFontfamily name="text" fontsize="7.5" leading="9">
<Regular fontface="UglyQua"/>
<Italic fontface="UglyQua-Italic"/>
</DefineFontfamily>
<DefineFontfamily name="title" fontsize="11" leading="13">
<Regular fontface="UglyQua-Italic"/>
</DefineFontfamily>
<DefineFontfamily name="initial" fontsize="27" leading="27">
<Regular fontface="UglyQua"/>
</DefineFontfamily>
<DefineTextformat name="center" alignment="centered" widow="yes" orphan="yes"/>
<DefineTextformat name="indent" indentation="3mm" alignment="leftaligned" widow="yes" orphan="yes"/>
<Pagetype name="main" test="true()">
<Margin left="2mm" right="2mm" top="2mm" bottom="12mm"/>
<PositioningArea name="text">
<PositioningFrame column="2" row="3" height="59" width="33"/>
<PositioningFrame column="39" row="3" height="59" width="33"/>
</PositioningArea>
<AtPageCreation>
<!-- the first row for the vertical rule between the two columns. 3 is the default -->
<SetVariable variable="firstrow" select="3"/>
<!-- the background frame -->
<PlaceObject allocate="no">
<Frame framecolor="black" rulewidth="{$rulewd}">
<Box width="{sd:number-of-columns()}" height="{sd:number-of-rows()}" backgroundcolor="-" />
</Frame>
</PlaceObject>
<!-- page number -->
<PlaceObject column="2" row="2">
<Table width="{sd:number-of-columns() - 3}" stretch="max">
<Tr>
<Td padding-bottom="3pt" padding-right="10pt" align="right">
<Paragraph>
<Value select="sd:current-page()"/>
</Paragraph>
</Td>
</Tr>
<Tablerule rulewidth="{$rulewd}" />
</Table>
</PlaceObject>
</AtPageCreation>
<AtPageShipout>
<!-- the vertical rule between the two columns -->
<PlaceObject row="{$firstrow + 1}" column="37" allocate="no">
<Rule length="{sd:number-of-rows() - $firstrow - 1}" direction="vertical" rulewidth="{$rulewd}"/>
</PlaceObject>
</AtPageShipout>
</Pagetype>
<!-- Processing starts here, as data is the root element in the data.xml file -->
<Record element="data">
<!-- The title image and the head -->
<PlaceObject column="1">
<Table stretch="max" padding="5pt">
<Tr>
<Td align="center">
<Image file="jc-title-flourish.pdf" width="{sd:number-of-columns() - 10}" />
</Td>
</Tr>
<Tablerule rulewidth="{$rulewd}" />
<Tr>
<Td align="center">
<Paragraph fontfamily="title"><Value select="head"/></Paragraph>
</Td>
</Tr>
<Tablerule rulewidth="{$rulewd}" />
<Tablerule rulewidth="9pt" color="white" />
</Table>
</PlaceObject>
<!-- The vertical rule should start here, right after the head. It gets drawn in
the page master "main" -->
<SetVariable variable="firstrow" select="sd:current-row() - 1"/>
<ProcessNode select="*"/>
</Record>
<!-- centered text for describing the stage -->
<Record element="stage">
<Switch>
<Case test="position() > 1">
<NextRow rows="1" area="text"/>
</Case>
</Switch>
<PlaceObject column="1" area="text">
<Textblock>
<Paragraph textformat="center" fontfamily="text">
<I><Value select="."/></I>
</Paragraph>
</Textblock>
</PlaceObject>
<NextRow area="text" rows="1"/>
</Record>
<Record element="speaker">
<!-- when center = true, we also display an initial -->
<Switch>
<Case test="@center='true'">
<PlaceObject column="1" area="text">
<Textblock>
<Paragraph textformat="center"><I><Value select="@name"/></I></Paragraph>
</Textblock>
</PlaceObject>
<!-- we need to remember the current row as it is used in the Output below
so the text can wrap around the initial
-->
<Output area="text">
<Text>
<Paragraph textformat="indent" html="off">
<Initial fontfamily="initial">
<Value select="@capital"/>
</Initial>
<ForAll select="part">
<Value select="."/>
<Br />
</ForAll>
</Paragraph>
</Text>
</Output>
</Case>
<Otherwise>
<Output area="text">
<Text>
<Paragraph textformat="indent" fontfamily="text" html="off">
<I><Value select="@name"/><Value> </Value></I>
<ForAll select="part">
<Switch>
<Case test="@type='italic'">
<I><Value select="."/></I>
</Case>
<Case test="@type='stage'">
<Value> </Value><HSpace/><I><Value select="."/><Br /></I>
</Case>
<Otherwise>
<Value select="."/><Br />
</Otherwise>
</Switch>
</ForAll>
</Paragraph>
</Text>
</Output>
</Otherwise>
</Switch>
</Record>
</Layout>