]> git.donarmstrong.com Git - deb_pkgs/scowl.git/blobdiff - src/proc-alt12dicts
fix numbering of variants to be 1 and 2 (closes: #867586)
[deb_pkgs/scowl.git] / src / proc-alt12dicts
index 2232ac4c72544109fe7d905caf139c9f64299f84..3b728d9e2f6f22b1c53428ecfddf81f33fd0f895 100755 (executable)
@@ -22,7 +22,8 @@ while (<IN>) {
     s/\r?\n$// or die;
     ($w, $f, $s) = /^(.+):?\t(.)([!?]?)$/ or die "Bad Line: $_";
     next unless $w =~ /^[A-Za-z\']+$/;
-    $already_variant{$w} = 1;
+   #print "$w -- $f -- $s\n";
+   $already_variant{$w} = 1;
     if ($s eq '!' || $s eq '') {
        print OYES $w, "\n" if $f eq '#';
        print BYES $w, "\n" if $f eq '&';
@@ -50,8 +51,8 @@ open NV, ">not-variant.lst";
 while (<IN>)
 {
     s/\r?\n$// or die;
-    ($total, $not_variant, $variant, $non_american, $word, $abrv_mark) 
-       = /^(..): (..) (..)\# (..)\&   (.+?)([:.]?)$/ or die "Bad Line:$_";
+    ($total, $not_variant, $variant, $non_american, $second_class, $word, $abrv_mark) 
+       = /^(..): (..) (..)\# (..)\& (..)\=   (.+?)([:.]?)$/ or die "Bad Line:$_";
     $_ = $word;
     $not_variant  = 0 if $not_variant  eq ' -';
     $variant      = 0 if $variant      eq ' -';
@@ -86,10 +87,3 @@ close O11;
 close O05;
 close O02;
 close IN;
-
-
-
-
-
-
-