@@ -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