diff options
author | Patrick Simianer <p@simianer.de> | 2014-01-27 10:39:36 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-01-27 10:39:36 +0100 |
commit | e12ec2d3599bafd5042841c87b9c5323d587f176 (patch) | |
tree | a89bcb660f668aec30196478615478a5c94fa2ff /corpus/support/fix-eos.pl | |
parent | a1f3f7fb262b6efefb106a7bddaf81d2a3a6df93 (diff) | |
parent | f7e051a05d65ef25c2ada0b84cd82bfb375ef265 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'corpus/support/fix-eos.pl')
-rwxr-xr-x | corpus/support/fix-eos.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/corpus/support/fix-eos.pl b/corpus/support/fix-eos.pl new file mode 100755 index 00000000..584f8b46 --- /dev/null +++ b/corpus/support/fix-eos.pl @@ -0,0 +1,10 @@ +#!/usr/bin/perl -w +use strict; +use utf8; + +binmode(STDIN, ":utf8"); +binmode(STDOUT, ":utf8"); +while(<STDIN>) { + s/(\p{Devanagari}{2}[A-Za-z0-9! ,.\@\p{Devanagari}]+?)\s+(\.)(\s*$|\s+\|\|\|)/$1 \x{0964}$3/s; + print; +} |