mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
Revert "let's be consistently case-insensitive with respect to the xml tags"
This reverts commit 2eb0c5e11d
.
This commit is contained in:
parent
2eb0c5e11d
commit
8b6e98c633
@ -13,10 +13,10 @@ chomp(@OUT);
|
||||
while(<SRC>) {
|
||||
chomp;
|
||||
if (/^<srcset/) {
|
||||
s/<srcset/<tstset trglang="$language"/i;
|
||||
s/<srcset/<tstset trglang="$language"/;
|
||||
}
|
||||
elsif (/^<\/srcset/) {
|
||||
s/<\/srcset/<\/tstset/i;
|
||||
s/<\/srcset/<\/tstset/;
|
||||
}
|
||||
elsif (/^<doc/i) {
|
||||
s/ *sysid="[^\"]+"//;
|
||||
@ -26,10 +26,10 @@ while(<SRC>) {
|
||||
my $line = shift(@OUT);
|
||||
$line = "" if $line =~ /NO BEST TRANSLATION/;
|
||||
if (/<\/seg>/) {
|
||||
s/(<seg[^>]+> *).*(<\/seg>)/$1$line$2/i;
|
||||
s/(<seg[^>]+> *).*(<\/seg>)/$1$line$2/;
|
||||
}
|
||||
else {
|
||||
s/(<seg[^>]+> *)[^<]*/$1$line/i;
|
||||
s/(<seg[^>]+> *)[^<]*/$1$line/;
|
||||
}
|
||||
}
|
||||
print $_."\n";
|
||||
|
Loading…
Reference in New Issue
Block a user