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
|
<?xml version="1.0" encoding="UTF-8"?>
<PGVReport>
<!-- $Id$ -->
<PGVRTitle><PGVRvar var="i18n::translate('Ahnentafel Report')" /></PGVRTitle>
<PGVRDescription>Prints an Ahnentafel report for the selected individual</PGVRDescription>
<PGVRInput name="pid" lookup="INDI" type="text"><PGVRvar var="i18n::translate('Enter Individual ID')" /></PGVRInput>
<PGVRInput name="maxgen" type="select" options="3,4,5,6,7,8,9,*"><PGVRvar var="i18n::translate('Generations')" /></PGVRInput>
<PGVRInput name="sources" type="checkbox" default="1"><PGVRvar var="i18n::translate('Show sources?')" /></PGVRInput>
<PGVRInput name="notes" type="checkbox" default="1"><PGVRvar var="i18n::translate('Show notes?')" /></PGVRInput>
<PGVRInput name="pageSize" type="select" default="A4" options="letter,A3,A4,legal"><PGVRvar var="i18n::translate('Page size')" /></PGVRInput>
<PGVRInput name="fonts" type="select" default="dejavusans" options="arialunicid0,dejavusans,helvetica"><PGVRvar var="i18n::translate('Font')"/></PGVRInput>
<!-- Header -->
<PGVRStyle name="header" font="$fonts" size="14" style="b" />
<!-- Page numbers text -->
<PGVRStyle name="pagenum" font="$fonts" size="8"/>
<!-- Standard text -->
<PGVRStyle name="text" font="$fonts" size="10"/>
<!-- Links to sources - required style name by the generator -->
<PGVRStyle name="footnotenum" font="$fonts" size="7"/>
<!-- Source text - PGVRFootnoteTexts - required style name by the generator -->
<PGVRStyle name="footnote" font="$fonts" size="8"/>
<!-- Generated by style - required style name by the generator -->
<PGVRStyle name="genby" font="$fonts" size="8" />
<!-- Date Text-->
<PGVRStyle name="date" font="$fonts" size="8"/>
<!-- Note Text -->
<PGVRStyle name="note" font="$fonts" size="9"/>
<!-- Individual name -->
<PGVRStyle name="name" font="$fonts" size="10" style="b" />
<PGVRStyle name="subheader" font="$fonts" size="12" style="b" />
<PGVRSetVar name="num" value="1" />
<PGVRSetVar name="generation" value="0" />
<PGVRSetVar name="empty_name" value="f" />
<PGVRSetVar name="empty_start_value" value="0" />
<!-- New Page for Sources controller if SOUR exist -->
<PGVRSetVar name="source_exist" value="0" />
<PGVRDoc pageSize="$pageSize">
<PGVRHeader>
<PGVRCell align="center" height="30" newline="1" style="header"><PGVRvar var="i18n::translate('Ahnentafel Report for ')" /><PGVRGetPersonName id="$pid" /></PGVRCell>
<PGVRCell align="rightrtl" newline="1" style="pagenum"><PGVRvar var="i18n::translate('Page')" /> <PGVRPageNum /> <PGVRvar var="i18n::translate('of')" /> <PGVRTotalPages /></PGVRCell>
</PGVRHeader>
<PGVRBody>
<PGVRRelatives id="$pid" group="direct-ancestors" sortby="none" maxgen="$maxgen" showempty="true">
<PGVRSetVar name="gender" value="m" />
<PGVRSetVar name="pronoun" value="i18n::translate('He ')" />
<PGVRif condition="@SEX=='F'">
<PGVRSetVar name="pronoun" value="i18n::translate('She ')" />
<PGVRSetVar name="gender" value="f" />
</PGVRif>
<PGVRSetVar name="printPronoun" value=" " />
<PGVRif condition="$generation!=@generation">
<PGVRif condition="$empty_name=='t'" >
<PGVRTextBox width="50" height="20">
<PGVRSetVar name="empty_end_value" value="$num-1" />
<PGVRText style="text"><PGVRvar var="empty_start_value" />-<PGVRvar var="empty_end_value" />.</PGVRText>
</PGVRTextBox>
<PGVRTextBox width="475" height="12" newline="1" >
<PGVRText style="text"><br /></PGVRText>
</PGVRTextBox>
<PGVRTextBox width="25" height="20" newline="1">
<PGVRText style="text"><br /></PGVRText>
</PGVRTextBox>
<PGVRSetVar name="empty_start_value" value="$num" />
</PGVRif>
<PGVRCell align="center" height="30" newline="1" style="subheader"><PGVRvar var="i18n::translate('Generation ')" /><PGVRGeneration /></PGVRCell>
<PGVRSetVar name="generation" value="@generation" />
</PGVRif>
<PGVRSetVar name="indiname" value="@NAME" />
<PGVRif condition="$indiname==''">
<PGVRif condition="$empty_name=='f'">
<PGVRSetVar name="empty_name" value="t" />
<PGVRSetVar name="empty_start_value" value="$num" />
</PGVRif>
</PGVRif>
<PGVRif condition="$indiname!=''">
<PGVRif condition="$empty_name=='t'" >
<PGVRTextBox width="50" height="20">
<PGVRSetVar name="empty_end_value" value="$num-1" />
<PGVRText style="text"><PGVRvar var="empty_start_value" />-<PGVRvar var="empty_end_value" />.</PGVRText>
</PGVRTextBox>
<PGVRTextBox width="475" height="12" newline="1">
<PGVRText style="text"><br /></PGVRText>
</PGVRTextBox>
<PGVRTextBox width="25" height="20" newline="1">
<PGVRText style="text"><br /></PGVRText>
</PGVRTextBox>
<PGVRSetVar name="empty_name" value="f" />
</PGVRif>
<!-- Generation counter -->
<PGVRTextBox width="25" height="30">
<PGVRText style="text"><PGVRvar var="num" />.</PGVRText>
</PGVRTextBox>
<!-- Sentence 1
Individual, name... -->
<PGVRTextBox height="12" newline="1">
<PGVRText style="name"><PGVRGetPersonName id="" /> </PGVRText>
<PGVRif condition="$sources==1">
<!-- Level 1 Sourcees -->
<PGVRRepeatTag tag="SOUR">
<PGVRFootnote>
<PGVRGedcom id="@SOUR">
<PGVRGedcomValue tag="TITL" />
</PGVRGedcom>
<PGVRif condition="@PAGE!=''">: </PGVRif>
<PGVRGedcomValue tag="SOUR:PAGE"/> <PGVRGedcomValue tag="SOUR:DATA:TEXT"/>
</PGVRFootnote>
<PGVRSetVar name="source_exist" value="1"/>
</PGVRRepeatTag>
</PGVRif>
<!-- Individual, birth... -->
<PGVRGedcom id="BIRT">
<PGVRText style="text"><PGVRvar var="printPronoun" />
<PGVRif condition="$gender=='m'">
<PGVRvar var="i18n::translate_c('MALE', 'was born')" />
</PGVRif>
<PGVRif condition="$gender=='f'">
<PGVRvar var="i18n::translate_c('FEMALE', 'was born')" />
</PGVRif>
</PGVRText>
<PGVRif condition="$sources==1">
<PGVRRepeatTag tag="BIRT:SOUR">
<PGVRFootnote>
<PGVRGedcom id="@SOUR">
<PGVRGedcomValue tag="TITL" />
</PGVRGedcom>
<PGVRif condition="@PAGE!=''">: </PGVRif>
<PGVRGedcomValue tag="PAGE" level="3"/> <PGVRGedcomValue tag="DATA:TEXT" level="3"/>
</PGVRFootnote>
<PGVRSetVar name="source_exist" value="1"/>
</PGVRRepeatTag>
</PGVRif>
<PGVRif condition="@DATE!=''">
<PGVRText style="text"><PGVRvar var=" " /> <PGVRGedcomValue tag="DATE" level="2" /></PGVRText>
</PGVRif>
<PGVRif condition="@PLAC!=''">
<PGVRText style="text"><PGVRvar var="i18n::translate(' in ')" /> <PGVRGedcomValue tag="PLAC" level="2" /></PGVRText>
</PGVRif>
<PGVRif condition="(@desc=='Y') or (@DATE=='' and @PLAC=='')">
<PGVRText style="text"><PGVRvar var="i18n::translate(' but the details are unknown')" /></PGVRText>
</PGVRif>
<PGVRText style="text">.</PGVRText>
<PGVRSetVar name="printPronoun" value="$pronoun" />
</PGVRGedcom>
<!-- Sentence 2
Individual, christened... -->
<PGVRGedcom id="CHR">
<PGVRText style="text"> <PGVRvar var="printPronoun" />
<PGVRif condition="$gender=='m'">
<PGVRvar var="i18n::translate_c('MALE', 'was christened')" />
</PGVRif>
<PGVRif condition="$gender=='f'">
<PGVRvar var="i18n::translate_c('FEMALE', 'was christened')" />
</PGVRif>
</PGVRText>
<PGVRif condition="$sources==1">
<PGVRRepeatTag tag="CHR:SOUR">
<PGVRFootnote>
<PGVRGedcom id="@SOUR">
<PGVRGedcomValue tag="TITL" />
</PGVRGedcom>
<PGVRif condition="@PAGE!=''">: </PGVRif>
<PGVRGedcomValue tag="PAGE" level="3"/> <PGVRGedcomValue tag="DATA:TEXT" level="3"/>
</PGVRFootnote>
<PGVRSetVar name="source_exist" value="1"/>
</PGVRRepeatTag>
</PGVRif>
<PGVRif condition="@DATE!=''">
<PGVRText style="text"><PGVRvar var=" " /> <PGVRGedcomValue tag="DATE" level="2" /></PGVRText>
</PGVRif>
<PGVRif condition="@PLAC!=''">
<PGVRText style="text"><PGVRvar var="i18n::translate(' in ')" /> <PGVRGedcomValue tag="PLAC" level="2" /></PGVRText>
</PGVRif>
<PGVRif condition="(@desc=='Y') or (@DATE=='' and @PLAC=='')">
<PGVRText style="text"><PGVRvar var="i18n::translate(' but the details are unknown')" /></PGVRText>
</PGVRif>
<PGVRText style="text">.</PGVRText>
<PGVRSetVar name="printPronoun" value="$pronoun" />
</PGVRGedcom>
<PGVRSetVar name="cpid" value="@ID" />
<PGVRif condition="$cpid!=$spid">
<PGVRGedcom id="@FAMS">
<PGVRif condition="$cpid==@HUSB">
<PGVRSetVar name="spid" value="@WIFE" />
</PGVRif>
<PGVRif condition="$cpid==@WIFE">
<PGVRSetVar name="spid" value="@HUSB" />
</PGVRif>
<PGVRGedcom id="MARR">
<PGVRif condition="$spid!='' and @DATE!='' and @PLAC!=''">
<PGVRText style="text"><br /><PGVRvar var="printPronoun" />
<PGVRif condition="$gender=='m'">
<PGVRvar var="i18n::translate_c('MALE', 'married')" />
</PGVRif>
<PGVRif condition="$gender=='f'">
<PGVRvar var="i18n::translate_c('FEMALE', 'married')" />
</PGVRif>
</PGVRText>
<PGVRif condition="$sources==1">
<PGVRRepeatTag tag="MARR:SOUR">
<PGVRFootnote>
<PGVRGedcom id="@SOUR">
<PGVRGedcomValue tag="TITL" />
</PGVRGedcom>
<PGVRif condition="@PAGE!=''">: </PGVRif>
<PGVRGedcomValue tag="PAGE" level="3"/> <PGVRGedcomValue tag="DATA:TEXT" level="3"/>
</PGVRFootnote>
<PGVRSetVar name="source_exist" value="1"/>
</PGVRRepeatTag>
</PGVRif>
<PGVRif condition="$spid!=''">
<PGVRText style="text"> <PGVRGetPersonName id="$spid" /></PGVRText>
</PGVRif>
<PGVRText style="text"> <PGVRvar var=" " /></PGVRText>
<PGVRif condition="@DATE!=''">
<PGVRText style="text"><PGVRvar var=" " /> <PGVRGedcomValue tag="DATE" level="2" /><PGVRif condition="@PLAC==''"> </PGVRif></PGVRText>
</PGVRif>
<PGVRif condition="@PLAC!=''">
<PGVRText style="text"><PGVRvar var="i18n::translate(' in ')" /> <PGVRGedcomValue tag="PLAC" level="2" /></PGVRText>
</PGVRif>
<PGVRif condition="((@desc=='Y') or (@DATE=='' and @PLAC=='')) and ($spid=='')">
<PGVRText style="text"><PGVRvar var="i18n::translate(' but the details are unknown')" /></PGVRText>
</PGVRif>
<PGVRText style="text">.</PGVRText>
<PGVRSetVar name="printPronoun" value="$pronoun" />
</PGVRif>
</PGVRGedcom>
</PGVRGedcom>
</PGVRif>
<PGVRGedcom id="DEAT">
<PGVRText style="text"><br /><PGVRvar var="printPronoun" />
<PGVRif condition="$gender=='m'">
<PGVRvar var="i18n::translate_c('MALE', 'died')" />
</PGVRif>
<PGVRif condition="$gender=='f'">
<PGVRvar var="i18n::translate_c('FEMALE', 'died')" />
</PGVRif>
</PGVRText>
<PGVRif condition="$sources==1">
<PGVRRepeatTag tag="DEAT:SOUR">
<PGVRFootnote>
<PGVRGedcom id="@SOUR">
<PGVRGedcomValue tag="TITL" />
</PGVRGedcom>
<PGVRif condition="@PAGE!=''">: </PGVRif>
<PGVRGedcomValue tag="PAGE" level="3"/> <PGVRGedcomValue tag="DATA:TEXT" level="3"/>
</PGVRFootnote>
<PGVRSetVar name="source_exist" value="1"/>
</PGVRRepeatTag>
</PGVRif>
<PGVRif condition="@DATE!=''">
<PGVRText style="text"><PGVRvar var=" " /> <PGVRGedcomValue tag="DATE" level="2" /></PGVRText>
</PGVRif>
<PGVRif condition="@PLAC!=''">
<PGVRText style="text"><PGVRvar var="i18n::translate(' in ')" /> <PGVRGedcomValue tag="PLAC" level="2" /></PGVRText>
</PGVRif>
<PGVRif condition="(@desc=='Y') or (@DATE=='' and @PLAC=='')">
<PGVRText style="text"> <PGVRvar var="i18n::translate(' but the details are unknown')" /></PGVRText>
</PGVRif>
<PGVRText style="text">. </PGVRText>
<PGVRSetVar name="printPronoun" value="$pronoun" />
</PGVRGedcom>
<PGVRGedcom id="BURI">
<PGVRText style="text"><PGVRvar var="printPronoun" />
<PGVRif condition="$gender=='m'">
<PGVRvar var="i18n::translate_c('MALE', 'was buried')" />
</PGVRif>
<PGVRif condition="$gender=='f'">
<PGVRvar var="i18n::translate_c('FEMALE', 'was buried')" />
</PGVRif>
</PGVRText>
<PGVRif condition="$sources==1">
<PGVRRepeatTag tag="BURI:SOUR">
<PGVRFootnote>
<PGVRGedcom id="@SOUR">
<PGVRGedcomValue tag="TITL" />
</PGVRGedcom>
<PGVRif condition="@PAGE!=''">: </PGVRif>
<PGVRGedcomValue tag="PAGE" level="3"/> <PGVRGedcomValue tag="DATA:TEXT" level="3"/>
</PGVRFootnote>
<PGVRSetVar name="source_exist" value="1"/>
</PGVRRepeatTag>
</PGVRif>
<PGVRif condition="@DATE!=''">
<PGVRText style="text"><PGVRvar var=" " /> <PGVRGedcomValue tag="DATE" level="2" /></PGVRText>
</PGVRif>
<PGVRif condition="@PLAC!=''">
<PGVRText style="text"><PGVRvar var="i18n::translate(' in ')" /> <PGVRGedcomValue tag="PLAC" level="2" /></PGVRText>
</PGVRif>
<PGVRif condition="(@desc=='Y') or (@DATE=='' and @PLAC=='')">
<PGVRText style="text"><PGVRvar var="i18n::translate(' but the details are unknown')" /></PGVRText>
</PGVRif>
<PGVRText style="text">.</PGVRText>
<PGVRSetVar name="printPronoun" value="$pronoun" />
</PGVRGedcom>
</PGVRTextBox>
<PGVRif condition="$notes==1">
<PGVRRepeatTag tag="NOTE">
<PGVRTextBox height="3" newline="1" padding="0"/>
<PGVRCell height="12" left="30" newline="1" style="note"><PGVRGedcomValue tag="NOTE"/></PGVRCell>
</PGVRRepeatTag>
</PGVRif>
<PGVRTextBox height="10" newline="1" padding="0"/>
</PGVRif>
<PGVRSetVar name="num" value="$num+1" />
</PGVRRelatives>
<!-- if the sources were on, print the source citations as footnotes -->
<PGVRif condition="($sources==1) and ($source_exist==1)">
<PGVRNewPage/>
<PGVRTextBox width="$width" height="20" newline="1">
<PGVRText style="subheader"><PGVRvar var="i18n::translate('Sources')" /><br /><br /></PGVRText>
<PGVRFootnoteTexts />
</PGVRTextBox>
</PGVRif>
</PGVRBody>
<PGVRFooter>
<PGVRCell align="rightrtl" style="date"><PGVRNow /></PGVRCell>
</PGVRFooter>
</PGVRDoc>
</PGVReport>
|