diff options
Diffstat (limited to 'language/hyphenation/ruhyphen/reduce-patt')
-rw-r--r-- | language/hyphenation/ruhyphen/reduce-patt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/language/hyphenation/ruhyphen/reduce-patt b/language/hyphenation/ruhyphen/reduce-patt new file mode 100644 index 0000000000..3d146e09c2 --- /dev/null +++ b/language/hyphenation/ruhyphen/reduce-patt @@ -0,0 +1,8 @@ +#!/usr/bin/perl -n + +if (/^\\patterns{/) { $p=1; print; next; } +if (/^}/) { $p=0; print; next; } +if (!$p) { print; next; } + +$p=$_; chomp; y/0-9//d; s/^\./^/; s/\.$/\$/; +print $p if (!system "grep", "-q", "$_", "/tmp/.wl-lc-cyryo"); |