summaryrefslogtreecommitdiff
path: root/language/hyphenation/ruhyphen/reduce-patt
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /language/hyphenation/ruhyphen/reduce-patt
Initial commit
Diffstat (limited to 'language/hyphenation/ruhyphen/reduce-patt')
-rw-r--r--language/hyphenation/ruhyphen/reduce-patt8
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");