From 05788925812f0d3265e355565cbb1701a0ad7510 Mon Sep 17 00:00:00 2001 From: alvations Date: Wed, 4 Sep 2019 14:16:41 +0800 Subject: The dot before an acronym should be optional. --- scripts/ems/support/split-sentences.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ems/support/split-sentences.perl b/scripts/ems/support/split-sentences.perl index a1cfb0d37..d4e0161bf 100755 --- a/scripts/ems/support/split-sentences.perl +++ b/scripts/ems/support/split-sentences.perl @@ -191,7 +191,7 @@ sub preprocess { my $starting_punct = $2; if ($prefix && $NONBREAKING_PREFIX{$prefix} && $NONBREAKING_PREFIX{$prefix} == 1 && !$starting_punct) { # Not breaking; - } elsif ($words[$i] =~ /(\.)[\p{IsUpper}\-]+(\.+)$/) { + } elsif ($words[$i] =~ /(\.?)[\p{IsUpper}\-]+(\.+)$/) { # Not breaking - upper case acronym } elsif($words[$i+1] =~ /^([ ]*[\'\"\(\[\¿\¡\p{IsPi}]*[ ]*[\p{IsUpper}0-9])/) { # The next word has a bunch of initial quotes, maybe a -- cgit v1.2.3