Skip to content

Commit 10f4d36

Browse files
committed
TT: improved handling of place of death
1 parent 907fd56 commit 10f4d36

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

conf/gedcom

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
child whose first name is unknown
190190
[% END %]
191191
[% ELSE %]
192-
[% spouse.children.size %] children: (
192+
[% spouse.children.size %] children (
193193
[%
194194
children = spouse.children;
195195
size = children.size;
@@ -302,7 +302,16 @@
302302
<sentence9>
303303
<en>
304304
[% IF dateofdeath &amp;&amp; !aod %]
305-
[% name %] died [% dateofdeath %] in [% placeofdeath %]
305+
[% name %] died
306+
[% IF dateofdeath %]
307+
[% IF dateofdeath.match('^\d{1,2}\s') %]
308+
on
309+
[% ELSIF !dateofdeath.match('^abt') %]
310+
during
311+
[% END %]
312+
[% dateofdeath %]
313+
[% END %]
314+
in [% placeofdeath %]
306315
[% IF cremation || burial %]
307316
and
308317
[% END %]

gedcom

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7615,6 +7615,8 @@ sub print_person
76157615
}
76167616
if(defined($place)) {
76177617
$phrase->append($place);
7618+
$place =~ s/^\s*(?:in|at)\s*//;
7619+
$parse_tree->{'placeofdeath'} = $place;
76187620
} else {
76197621
complain({
76207622
person => $person,

0 commit comments

Comments
 (0)