]> git.donarmstrong.com Git - deb_pkgs/scowl.git/blobdiff - src/add-other-forms
Include hunspell .bdic files for qtwebengine and maybe others
[deb_pkgs/scowl.git] / src / add-other-forms
index 2b50a9d5b31fb9685480370f2333e15cf6be8862..86388317940f6267e08ae0c41df14611d59dacbf 100755 (executable)
@@ -5,13 +5,14 @@ open F, "r/alt12dicts/2of12id.txt" or die;
 while (<F>) {
   s/\r?\n$// or die;
   # (uncommon flag, base word, part of speach, inflected forms)
-  ($d,$w,$p,$a) = /^([-@]?)(\w+) (.).*: ?(.*?)$/ or die;
+  ($d,$w,$p,$a) = /^([-@\+!]*)(\w+) (.).*: ?(.*?)$/ or die;
+  $d =~ tr/+//d;
   next if $d; #
   @a0 = split /  /, $a;
   splice @a0, -1, 0, "'" if $p eq 'V' && @a0 >= 3; # insert placeholder
   @a = ();
   foreach (@a0) {
-    s/ {.+?}//g; s/ \(.+?\)//g; 
+    s/ \{.+?\}//g; s/ \(.+?\)//g; 
     s/ \| / /g; s/ \/ / /g;
     push @a, (split / /, $_);
   }