warn "Ran out of readings in sequence at $lexeme";
last;
}
- my $curr_rdg_text = $curr_rdg->has_normal_form
- ? $curr_rdg->normal_form : $curr_rdg->text;
+ my $curr_rdg_text = $curr_rdg->normal_form;
if( $unused_rdg_part &&
$unused_rdg_part =~ /^\Q$lexeme\E(\s*)(.*)$/ ) {
# Nth part of curr_rdg
my @lookahead;
my $matched;
while( my $nr = shift @path ) {
- my $nrtext = $nr->has_normal_form ? $nr->normal_form : $nr->text;
+ my $nrtext = $nr->normal_form;
if( $nrtext =~ /^\Q$lexeme\E/ ) {
$curr_rdg = $lookahead[-1] if @lookahead;
$matched = 1;
unless ( $r->join_prior || !$last || $last->join_next ) {
$pathtext .= ' ';
}
- $pathtext .= ( $normalize && $r->has_normal_form )
- ? $r->normal_form : $r->text;
+ $pathtext .= $normalize ? $r->normal_form : $r->text;
$last = $r;
}
return $pathtext;
}
# OK, we can run it then.
# First upgrade to UTF8 for necessary languages.
- my @utf8_supported = qw/ French /;
+ my @utf8_supported = qw/ French Latin Greek /;
my %ttopts = ( 'language' => $lang, 'options' => [ qw/ -token -lemma / ] );
if( grep { $_ eq $lang } @utf8_supported ) {
$ttopts{'use_utf8'} = 1;