From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- language/hyphenation/ruhyphen/reduce-patt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 language/hyphenation/ruhyphen/reduce-patt (limited to 'language/hyphenation/ruhyphen/reduce-patt') 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"); -- cgit v1.2.3