X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fscowl.git;a=blobdiff_plain;f=src%2Fadd-other-forms;fp=src%2Fadd-other-forms;h=86388317940f6267e08ae0c41df14611d59dacbf;hp=921033910350ccd68f290e0010c728615a21a08d;hb=5e79485dcf69fadc3289eada31337eebb429ad2e;hpb=c5fa98569c5019da62f04159428be3c91bb1897e diff --git a/src/add-other-forms b/src/add-other-forms index 9210339..8638831 100755 --- a/src/add-other-forms +++ b/src/add-other-forms @@ -5,14 +5,14 @@ open F, "r/alt12dicts/2of12id.txt" or die; while () { 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 / /, $_); }