Reimplemented LogPtoProb (which is just an exp10 call)
[vspell.git] / scripts / testdoc-extract.pl
blob85e45f04b59e56a0c888a9e5ce77b141386fc914
1 #!/usr/bin/perl
4 while (<>) {
5 chop($_);
6 $s = "";
7 %ss = {};
8 while (m/{([^}]*)}/g) {
9 @s = split(/,/,lc($1));
10 $sss = join('',sort(@s));
11 #print "\n>>$sss<<<\n";
12 if (!defined($ss{$sss})) {
13 $s .= " (".join(',',@s).')';
14 $ss{$sss} = "true";
15 #print ">>>>>>>>>>ADD";
18 $_ =~ s/{([^},]*),[^}]*}/\\textbf{\1}/g;
19 print '\noindent '.$_.'\hfill'.$s.'\par'."\n";