]> git.donarmstrong.com Git - deb_pkgs/scowl.git/blob - 7.1/src/make-abbreviations.lst.pre
[svn-upgrade] Tagging scowl (7.1)
[deb_pkgs/scowl.git] / 7.1 / src / make-abbreviations.lst.pre
1 #!/bin/bash
2
3 cat r/special/roman-numerals | tr 'a-z' 'A-Z' \
4   | cat - r/special/roman-numerals            \
5   | sort | uniq                               \
6   > working/roman-numerals.tmp
7
8 cat working/all.lst-unfiltered | grep "\." | cat - l/abbreviations/* \
9   | src/filter                                                       \
10   | sort | uniq                                                      \
11   | comm -23 - working/roman-numerals.tmp                            \
12   > working/abbreviations.lst.tmp
13
14 cat working/all.lst                                \
15   | grep -E "^[A-Z]{2,}'?s?$"                      \
16   > working/acronyms.lst.tmp
17
18 cat l/not-abbreviations/* working/known-upper.lst  \
19   | src/filter                                     \
20   | src/add-affixes no-possessive                  \
21   | sort | uniq                                    \
22   > working/not-abbreviations.tmp
23
24 cat working/abbreviations.lst.tmp            \
25   | sort | uniq                              \
26   | comm -23 - working/not-abbreviations.tmp \
27   | cat - working/acronyms.lst.tmp           \
28   | sort | uniq                              \
29   | comm -23 - r/special/never-abbreviations \
30   > working/abbreviations.lst.pre
31
32 rm working/{abbreviations.lst,acronyms.lst,roman-numerals,not-abbreviations}.tmp
33
34
35
36
37
38
39