Skip to content

Commit f53e0fa

Browse files
committed
More TT
1 parent 8bbe674 commit f53e0fa

File tree

2 files changed

+63
-40
lines changed

2 files changed

+63
-40
lines changed

conf/gedcom

Lines changed: 45 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,50 @@
22
<gedcom>
33
<sentence1>
44
<en>
5-
[% name %]
6-
[% IF aka %]
7-
(also known as [% aka %])
8-
[% END %]
9-
[% IF relationship %]
10-
[% IF aob || aod %]
11-
, your [% relationship %],
12-
[% ELSE %]
13-
[% IF is_alive %]
5+
[% IF aob || aod %]
6+
[% name %]
7+
[% IF aka %]
8+
(also known as [% aka %])
9+
[% END %]
10+
[% IF relationship %]
11+
[% IF aob || aod %]
12+
, your [% relationship %],
13+
[% ELSE %]
14+
[% IF is_alive %]
15+
is
16+
[% ELSE %]
17+
was
18+
[% END %]
19+
your [% relationship %]
20+
[% END %]
21+
[% ELSIF spouserelationship %]
22+
[% IF aob || aod %]
23+
, the
24+
[% ELSIF is_alive %]
1425
is
1526
[% ELSE %]
1627
was
1728
[% END %]
18-
your [% relationship %]
19-
[% END %]
20-
[% ELSIF spouserelationship %]
21-
[% IF aob || aod %]
22-
, the
23-
[% ELSIF is_alive %]
24-
is
25-
[% ELSE %]
26-
was
27-
[% END %]
28-
[% IF sex == 'M' %]
29-
husband
30-
[% ELSE %]
31-
wife
32-
[% END %]
33-
of [% spousefullname %] (your [% spouserelationship %]),
34-
[% END %]
35-
[% IF aob %]
36-
was born [% aob %] years today
37-
[% IF addressofbirth %]
38-
[% addressofbirth.en %]
39-
[% END %]
40-
[% IF aod %]
41-
TODO: born and died on the same day
29+
[% IF sex == 'M' %]
30+
husband
31+
[% ELSE %]
32+
wife
33+
[% END %]
34+
of [% spousefullname %] (your [% spouserelationship %]),
4235
[% END %]
43-
[% ELSIF aod %]
44-
died [% aod %] years today
45-
[% IF addressofdeath %]
46-
[% addressofdeath.en %]
36+
[% IF aob %]
37+
was born [% aob %] years today
38+
[% IF addressofbirth %]
39+
[% addressofbirth.en %]
40+
[% END %]
41+
[% IF aod %]
42+
TODO: born and died on the same day
43+
[% END %]
44+
[% ELSIF aod %]
45+
died [% aod %] years today
46+
[% IF addressofdeath %]
47+
[% addressofdeath.en %]
48+
[% END %]
4749
[% END %]
4850
[% END %]
4951
</en>
@@ -299,7 +301,7 @@
299301
<en>
300302
[% IF dateofdeath &amp;&amp;!aod %]
301303
[% name %] died [% dateofdeath %]
302-
[% IF cremation %]
304+
[% IF cremation || burial %]
303305
and
304306
[% END %]
305307
[% ELSIF cremation %]
@@ -310,6 +312,11 @@
310312
[% IF cremation.weather %]
311313
([% cremation.weather %])
312314
[% END %]
315+
[% ELSIF burial %]
316+
was buried [% IF burial.there %] there at [% END %] [% burial.address %] [% burial.place.en %] [% burial.date %]
317+
[% IF burial.weather %]
318+
([% burial.weather %])
319+
[% END %]
313320
[% END %]
314321
</en>
315322
</sentence9>

gedcom

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7398,9 +7398,12 @@ sub print_person
73987398
} else {
73997399
$phrase->append(" at $address");
74007400
}
7401+
$parse_tree->{'burial'}->{'address'} = $address;
74017402
}
7403+
$parse_tree->{'burial'}->{'there'} = 1;
74027404
} else {
74037405
$phrase->append(place($opts));
7406+
$parse_tree->{'burial'}->{'place'} = place($opts);
74047407
}
74057408
}
74067409
my $must_postdate;
@@ -7427,9 +7430,11 @@ sub print_person
74277430
complain({ person => $person, warning => "Removing trailing fullstop from date of burial '$dateofburial'" });
74287431
$dateofburial =~ s/\.+$//;
74297432
}
7433+
$parse_tree->{'burial'}->{'date'} = year(record => $dateofburial);
74307434
$phrase->append(' ' . year({ person => $person, date => $dateofburial, must_postdate => $must_postdate }));
74317435
if($burial && $placeofburial && (my $weather = weather({ person => $person, record => $burial, meteo => $meteo }))) {
74327436
$phrase->append(" ($weather)");
7437+
$parse_tree->{'burial'}->{'weather'} = $weather;
74337438
}
74347439
if($funeral && (datecmp($dateofburial, $funeral->date()) == 0) && (my $place = place({ person => $person, record => $funeral }))) {
74357440
$phrase->append(' following ' .
@@ -7450,6 +7455,8 @@ sub print_person
74507455
} else {
74517456
$phrase->set('is buried there at ' . $burial->address());
74527457
}
7458+
$parse_tree->{'burial'}->{'there'} = 1;
7459+
$parse_tree->{'burial'}->{'place'} = $burial->address();
74537460
} elsif(my $b = place($opts)) {
74547461
if($diedathome) {
74557462
$phrase->append("$pronoun ");
@@ -7469,11 +7476,14 @@ sub print_person
74697476
$phrase->append(i18n(' at '))->append($b);
74707477
}
74717478
$phrase->append(' ');
7479+
$parse_tree->{'burial'}->{'there'} = 1;
74727480
} else {
74737481
$phrase->append("$b ");
74747482
}
7483+
$parse_tree->{'burial'}->{'place'} = $b;
74757484
if($dateofburial) {
74767485
$phrase->append(year({ person => $person, date => $dateofburial }));
7486+
$parse_tree->{'burial'}->{'date'} = year({ person => $person, date => $dateofburial });
74777487
}
74787488
$weather = weather({ person => $person, record => $burial, meteo => $meteo });
74797489
} else {
@@ -7483,6 +7493,7 @@ sub print_person
74837493
$phrase->append(i18n(' at '))->append($b);
74847494
}
74857495
$phrase->append(' ');
7496+
$parse_tree->{'cremation'}->{'there'} = 1;
74867497
} else {
74877498
$phrase->append("$b ");
74887499
}
@@ -7494,7 +7505,7 @@ sub print_person
74947505
$weather = weather({ person => $person, record => $cremation, meteo => $meteo });
74957506
}
74967507
if(defined($weather)) {
7497-
$parse_tree->{'creamation'}->{'weather'} = $weather;
7508+
$parse_tree->{$type}->{'weather'} = $weather;
74987509
$phrase->append(" ($weather)");
74997510
}
75007511
}
@@ -8111,10 +8122,15 @@ sub print_person
81118122
$rc =~ s/\s([,:\)])/$1/g;
81128123
$rc =~ s/\(\s+/(/g;
81138124
$rc =~ s/\s+$//g;
8125+
$rc =~ s/^\s+//g;
81148126
if(length($rc)) {
81158127
$parse_tree->{"sentence$i"} = 1;
81168128
# $bio->append("sentence$i: $rc.\n");
8117-
# print "sentence$i: $rc.\n";
8129+
# if($opts{'B'}) {
8130+
# pdfprint(string => "sentence$i: $rc", text => $text, pdfpage => $pdfpage);
8131+
# } else {
8132+
# print "sentence$i: $rc.\n";
8133+
# }
81188134
}
81198135
}
81208136
}

0 commit comments

Comments
 (0)