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
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
|
<?xml version="1.0" encoding="UTF-8" ?>
<Report>
<Title><var var="I18N::translate('Individual')" /></Title>
<Description><var var="I18N::translate('A report of an individual’s details.')" /></Description>
<Input name="pid" lookup="INDI" type="text" default=""><var var="I18N::translate('Individual')" /></Input>
<Input name="sources" type="checkbox" default="1"><var var="I18N::translate('Show sources')" /></Input>
<Input name="notes" type="checkbox" default="1"><var var="I18N::translate('Show notes')" /></Input>
<Input name="photos" type="select" default="highlighted" options="none=>I18N::translate('None')|all=>I18N::translate('All')|highlighted=>I18N::translate('Highlighted image')"><var var="I18N::translate('Show photos')"/></Input>
<Input name="pageSize" type="select" options="A4=>I18N::translateContext('paper size','A4')|A3=>I18N::translateContext('paper size', 'A3')|US-Letter=>I18N::translateContext('paper size','Letter')|US-Tabloid=>I18N::translateContext('paper size','Tabloid')"><var var="I18N::translate('Page size')" /></Input>
<Input name="colors" type="checkbox" default="1"><var var="I18N::translate('Use colors')"/></Input>
<SetVar name="fonts" value="dejavusans" />
<!-- Header -->
<Style name="header" font="$fonts" size="18"/>
<!-- Generated by style - required style name by the generator -->
<Style name="genby" font="$fonts" size="8"/>
<!-- Links to sources - required style name by the generator -->
<Style name="footnotenum" font="$fonts" size="6"/>
<!-- Source text - FootnoteTexts - required style name by the generator -->
<Style name="footnote" font="$fonts" size="8"/>
<!-- Section title -->
<Style name="title" font="$fonts" size="9" style="B"/>
<!-- Page numbers text -->
<Style name="pagenum" font="$fonts" size="8"/>
<!-- Page Header text -->
<Style name="pageheader" font="$fonts" size="14"/>
<!-- Standard text -->
<Style name="text" font="$fonts" size="9"/>
<!-- Facts text -->
<Style name="fact" font="$fonts" size="8"/>
<!-- Individual names in text boxes -->
<Style name="name" font="$fonts" size="10"/>
<!-- Date text -->
<Style name="date" font="$fonts" size="8"/>
<SetVar name="ignore" value="CHAN,CHIL,FAMC,FAMS,HUSB,NAME,NOTE,OBJE,RESN,SEX,SOUR,TITL,WIFE,_UID,_WT_OBJE_SORT"/>
<!-- Setup colors -->
<!-- Section title background color -->
<SetVar name="stbgcolor" value="#AAAAAA"/>
<SetVar name="mbgcolor" value=""/>
<SetVar name="fbgcolor" value=""/>
<SetVar name="ugbgcolor" value=""/>
<SetVar name="fbbgcolor" value=""/>
<SetVar name="tcolor" value=""/>
<!-- Use colors -->
<if condition="$colors=='on'">
<!-- Section title background color -->
<SetVar name="stbgcolor" value="#9CA3D4"/>
<!-- Male background color -->
<SetVar name="mbgcolor" value="#D6E0EA"/>
<!-- Female background color -->
<SetVar name="fbgcolor" value="#E9DAF1"/>
<!-- Unknown gender -->
<SetVar name="ugbgcolor" value="#FFFFFF"/>
<!-- Fact boxes -->
<SetVar name="fbbgcolor" value="#D1D9FF"/>
<!-- Text color - black -->
<SetVar name="tcolor" value="#000000"/>
</if>
<!-- New Page controller -->
<SetVar name="newpage" value="0"/>
<!-- New Page for Sources controller if SOUR exist -->
<SetVar name="source_exist" value="0"/>
<!-- set the default widths -->
<SetVar name="dwidth" value="200"/>
<SetVar name="pwidth" value="436"/>
<!-- space height -->
<SetVar name="sheight" value="15"/>
<SetVar name="width" value="433"/>
<SetVar name="width1" value="418"/>
<SetVar name="width2" value="233"/>
<!-- change the widths for no pictures -->
<if condition="$photos=='none'">
<SetVar name="width" value="0"/>
<SetVar name="width1" value="0"/>
<SetVar name="width2" value="0"/>
</if>
<Doc pageSize="$pageSize" >
<Header>
<Cell align="center" newline="1" style="header"><var var="I18N::translate('Individual')" /></Cell>
<Cell align="rightrtl" newline="1" style="pagenum"><var var="I18N::translate('Page')" /> <PageNum /> <var var="I18N::translate('of')" /> <TotalPages /></Cell>
</Header>
<Body>
<!-- set the gedcom context for this individual -->
<Gedcom id="$pid">
<if condition="$newpage==1">
<NewPage/>
</if>
<SetVar name="newpage" value="1"/>
<SetVar name="sex" value="@SEX"/>
<SetVar name="mid" value="@ID"/>
<!-- Individual name -->
<TextBox newline="1">
<Text style="pageheader"><GetPersonName id=""/> </Text>
<if condition="$sources=='on'">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
</TextBox>
<!-- show the persons images -->
<if condition="$photos=='all'">
<!-- This is an image not a text, so don't use text padding
Reset also the last height after all the images has been printed
set pagecheck to 0, the image function check is too
and "trick" the X-position back to the margin with a newline -->
<TextBox left="$pwidth" newline="1" pagecheck="0" padding="0" reseth="1" width="80">
<RepeatTag tag="OBJE">
<Image file="@FILE" width="80" ln="N"/>
</RepeatTag>
</TextBox>
</if>
<!-- show the person's Highlighted Image -->
<if condition="$photos=='highlighted'">
<HighlightedImage left="$pwidth" width="80"/>
</if>
<!-- Print the individuals facts -->
<Cell tcolor="$tcolor" bgcolor="$stbgcolor" border="1" newline="1" style="title" width="$width"><var var="I18N::translate('Facts and events')"/></Cell>
<Facts ignore="$ignore" families="1">
<TextBox bgcolor="$fbbgcolor" border="1" width="$dwidth">
<Text color="$tcolor" style="fact"><var var="@fact"/> </Text>
<Text color="$tcolor" style="text"><GedcomValue tag="@fact:DATE"/> </Text>
<!-- look for fact level 2 sources -->
<if condition="$sources=='on'">
<RepeatTag tag="@fact:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
</TextBox>
<!-- print a different layout for facts with descriptions -->
<if condition="@desc!=''">
<TextBox bgcolor="$fbbgcolor" border="1" newline="1" width="$width2">
<Text color="$tcolor" style="text">
<if condition="@desc=='Y'">
<var var="I18N::translate('yes')" /> <GedcomValue tag="@fact:PLAC"/>
</if>
<if condition="@desc=='N'">
<var var="I18N::translate('no')" /> <GedcomValue tag="@fact:PLAC"/>
</if>
<if condition="@fact!='ASSO' and @desc!='Y' and @desc!='N' and @PLAC!=''">
<GedcomValue tag="@desc"/> <GedcomValue tag="@fact:PLAC"/>
</if>
<if condition="@fact!='ASSO' and @desc!='Y' and @desc!='N' and @PLAC==''">
<GedcomValue tag="@desc"/>
</if>
</Text>
<Gedcom id="@ASSO">
<GetPersonName id=""/>
</Gedcom>
<Gedcom id="@_WTS">
<if condition="@SEX=='M'">
<Text color="$tcolor" style="fact"> <var var="I18N::translate('Husband')"/></Text>
</if>
<if condition="@SEX=='F'">
<Text color="$tcolor" style="fact"> <var var="I18N::translate('Wife')"/></Text>
</if>
<Text color="$tcolor" style="text"> <GetPersonName id=""/></Text>
</Gedcom>
</TextBox>
</if>
<!-- facts without descriptions -->
<if condition="@desc==''">
<TextBox bgcolor="$fbbgcolor" border="1" newline="1" width="$width2">
<Text color="$tcolor" style="text">
<GedcomValue tag="@fact:PLAC"/>
<!-- Print only when exist to reduce some spaces in the text, might avoid a line break -->
<if condition="@TEMP!=''">
; <var var="I18N::translate('Temple')"/>: <GedcomValue tag="@fact:TEMP"/>
</if>
</Text>
<Gedcom id="@_WTS">
<if condition="@SEX=='M'">
<Text color="$tcolor" style="fact"> <var var="I18N::translate('Husband')"/></Text>
</if>
<if condition="@SEX=='F'">
<Text color="$tcolor" style="fact"> <var var="I18N::translate('Wife')"/></Text>
</if>
<Text color="$tcolor" style="text"> <GetPersonName id=""/></Text>
</Gedcom>
</TextBox>
</if>
</Facts>
<!-- print any level 1 notes, but only if exist -->
<if condition="($notes=='on') and (@NOTE!='')">
<TextBox height="$sheight" newline="1" padding="0" width="15"/>
<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><var var="I18N::translate('Notes')"/></Cell>
<RepeatTag tag="NOTE">
<Cell bgcolor="$fbbgcolor" border="1" newline="1" style="text" tcolor="$tcolor" width="$width"><GedcomValue tag="NOTE"/></Cell>
</RepeatTag>
</if>
<!-- print family with parents and siblings -->
<TextBox height="$sheight" newline="1" padding="0" width="15"/>
<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width"><var var="I18N::translate('Family with parents')"/></Cell>
<RepeatTag tag="FAMC">
<Gedcom id="@FAMC">
<!-- father -->
<Gedcom id="@HUSB">
<TextBox bgcolor="$mbgcolor" border="1" newline="1" width="$width">
<Text color="$tcolor" style="text"><var var="I18N::translate('Father')"/> </Text>
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
<if condition="$sources=='on'">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
<Text color="$tcolor" style="text"> (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
</TextBox>
</Gedcom>
<!-- mother -->
<Gedcom id="@WIFE">
<TextBox bgcolor="$fbgcolor" border="1" newline="1" width="$width">
<Text color="$tcolor" style="text"><var var="I18N::translate('Mother')"/> </Text>
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
<if condition="$sources=='on'">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
<Text color="$tcolor" style="text"> (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
</TextBox>
</Gedcom>
<!-- siblings -->
<RepeatTag tag="CHIL">
<if condition="@CHIL!=$mid">
<Gedcom id="@CHIL">
<!-- Brother -->
<if condition="@SEX=='M'">
<TextBox bgcolor="$mbgcolor" border="1" left="15" newline="1" width="$width1">
<Text color="$tcolor" style="text"><var var="I18N::translate('Brother')"/> </Text>
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
<if condition="$sources=='on'">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
<Text color="$tcolor" style="text"> (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
</TextBox>
</if>
<!-- Sister -->
<if condition="@SEX=='F'">
<TextBox bgcolor="$fbgcolor" border="1" left="15" newline="1" width="$width1">
<Text color="$tcolor" style="text"><var var="I18N::translate('Sister')"/> </Text>
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
<if condition="$sources=='on'">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
<Text color="$tcolor" style="text"> (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
</TextBox>
</if>
<!-- Sibling -->
<if condition="@SEX=='U'">
<TextBox bgcolor="$ugbgcolor" border="1" left="15" newline="1" width="$width1">
<Text color="$tcolor" style="text"><var var="I18N::translate('Sex')"/> <var var="I18N::translateContext('unknown sex', 'Unknown')"/> </Text>
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
<if condition="$sources=='on'">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
<Text color="$tcolor" style="text"> (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
</TextBox>
</if>
</Gedcom>
</if>
</RepeatTag>
</Gedcom>
</RepeatTag>
<!-- print family with spouse and children -->
<RepeatTag tag="FAMS">
<Gedcom id="@FAMS">
<!-- find spouse -->
<if condition="@WIFE == $pid">
<SetVar name="spid" value="@HUSB"/>
</if>
<if condition="@HUSB == $pid">
<SetVar name="spid" value="@WIFE"/>
</if>
<if condition="$spid == ''">
<!-- one parent family -->
<SerVar name="spid" value="$pid"/>
</if>
<!-- print information for spouse -->
<Gedcom id="$spid">
<!-- husband -->
<if condition="@SEX=='M'">
<TextBox height="$sheight" newline="1" padding="0" width="15"/>
<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width">
<var var="I18N::translate('Family with husband')"/>
</Cell>
<TextBox bgcolor="$mbgcolor" border="1" newline="1" width="$width">
<Text color="$tcolor" style="text"><var var="I18N::translate('Husband')"/> </Text>
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
<if condition="$sources=='on'">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
<Text color="$tcolor" style="text"> (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
</TextBox>
</if>
<!-- wife -->
<if condition="@SEX=='F'">
<TextBox height="$sheight" newline="1" padding="0" width="15"/>
<Cell bgcolor="$stbgcolor" border="1" newline="1" style="title" tcolor="$tcolor" width="$width">
<var var="I18N::translate('Family with wife')"/>
</Cell>
<TextBox bgcolor="$fbgcolor" border="1" newline="1" width="$width">
<Text color="$tcolor" style="text"><var var="I18N::translate('Wife')"/> </Text>
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
<if condition="$sources=='on'">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
<Text color="$tcolor" style="text"> (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
</TextBox>
</if>
</Gedcom>
<!-- print children with spouse -->
<RepeatTag tag="CHIL">
<if condition="@CHIL!=$mid">
<Gedcom id="@CHIL">
<!-- Son -->
<if condition="@SEX=='M'">
<TextBox bgcolor="$mbgcolor" border="1" left="15" newline="1" width="$width1">
<Text color="$tcolor" style="text"><var var="I18N::translate('Son')"/> </Text>
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
<if condition="$sources=='on'">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
<Text color="$tcolor" style="text"> (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
</TextBox>
</if>
<!-- Daughter -->
<if condition="@SEX=='F'">
<TextBox bgcolor="$fbgcolor" border="1" left="15" newline="1" width="$width1">
<Text color="$tcolor" style="text"><var var="I18N::translate('Daughter')"/> </Text>
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
<if condition="$sources=='on'">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
<Text color="$tcolor" style="text"> (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
</TextBox>
</if>
<!-- Unknown gender for Child -->
<if condition="@SEX=='U'">
<TextBox bgcolor="$ugbgcolor" border="1" left="15" newline="1" width="$width1">
<Text color="$tcolor" style="text"><var var="I18N::translate('Sex')"/> <var var="I18N::translateContext('unknown sex', 'Unknown')"/> </Text>
<Text color="$tcolor" style="name"><GetPersonName id=""/> </Text>
<if condition="$sources=='on'">
<!-- print level 1 sources -->
<RepeatTag tag="SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1"/>
</RepeatTag>
<!-- print level 2 sources attached to NAME -->
<RepeatTag tag="NAME:SOUR">
<Footnote>
<Gedcom id="@SOUR">
<if condition="@AUTH!=''"><GedcomValue tag="AUTH" />, </if>
«<GedcomValue tag="TITL" />»
<if condition="@PUBL!=''"> (<GedcomValue tag="PUBL" />)</if>
</Gedcom>
<if condition="@PAGE!=''">: <GedcomValue tag="SOUR:PAGE" /></if>
<GedcomValue tag="SOUR:DATA:TEXT" />
</Footnote>
<SetVar name="source_exist" value="1" />
</RepeatTag>
</if>
<Text color="$tcolor" style="text"> (<var var="I18N::translate('Birth')"/>: <GedcomValue tag="BIRT:DATE"/> <GedcomValue tag="BIRT:PLAC"/><Gedcom id="DEAT"> - <var var="I18N::translate('Death')"/>: <GedcomValue tag="DEAT:DATE"/> <GedcomValue tag="DEAT:PLAC"/></Gedcom>)</Text>
</TextBox>
</if>
</Gedcom>
</if>
</RepeatTag>
</Gedcom>
</RepeatTag>
</Gedcom>
<!-- if the sources were on, print the source citations as footnotes -->
<if condition="$source_exist==1">
<TextBox newline="1">
<Text style="pageheader">
<br/>
<var var="I18N::translate('Sources')"/>
<br/>
</Text>
<FootnoteTexts/>
</TextBox>
</if>
</Body>
<Footer>
<Cell align="rightrtl" newline="1" style="date"><Now/></Cell>
</Footer>
</Doc>
</Report>
|