summaryrefslogtreecommitdiff
path: root/language/hyphenation/ruhyphen/sorthyph
diff options
context:
space:
mode:
Diffstat (limited to 'language/hyphenation/ruhyphen/sorthyph')
-rw-r--r--language/hyphenation/ruhyphen/sorthyph9
1 files changed, 9 insertions, 0 deletions
diff --git a/language/hyphenation/ruhyphen/sorthyph b/language/hyphenation/ruhyphen/sorthyph
new file mode 100644
index 0000000000..13680ee593
--- /dev/null
+++ b/language/hyphenation/ruhyphen/sorthyph
@@ -0,0 +1,9 @@
+#!/usr/bin/perl
+# sort a hyphenation file
+$| = 1;
+while (<>) { print; last if /^\\patterns{/ }
+open (SORT, "| sh sortkoi8 | awk '{print \$2}'");
+while (<>) { last if /^}/; chomp; $temp=$_; s/[0-9.]//g; print SORT "$_\t$temp\n" }
+close (SORT);
+print;
+while (<>) { print }