blob: 483b20d37954f3db06d673e7a90d8b9d1804ee03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
hyphendir = $(texmfdir)/tex/generic/$(PACKAGE)
hyphen_DATA = loadhyph-th.tex hyph-th.tex hyph-th-utf8.tex
TDICT_SRC = \
$(srcdir)/tdict-common.txt \
$(srcdir)/tdict-collection.txt \
$(srcdir)/tdict-district.txt \
$(srcdir)/tdict-city.txt \
$(srcdir)/tdict-country.txt \
$(srcdir)/tdict-geo.txt \
$(srcdir)/tdict-history.txt \
$(srcdir)/tdict-ict.txt \
$(srcdir)/tdict-lang-ethnic.txt \
$(srcdir)/tdict-proper.txt \
$(srcdir)/tdict-science.txt \
$(srcdir)/tdict-spell.txt \
$(srcdir)/tdict-std.txt \
$(srcdir)/tdict-std-compound.txt
EXTRA_DIST = \
README \
loadhyph-th.tex \
hyph-th.tex.in \
hyph-th-utf8.tex.in \
thai.tra \
thai-exc.pat \
conv-utf8-hex.sed \
test-hyphen.sh \
diff-dicts.sh \
$(TDICT_SRC)
PATGEN_ANS = \
1 5 \n\
2 5 \n\
1 2 10 \n\
1 6 \n\
2 1 8 \n\
3 8 \n\
1 4 5 \n\
3 10 \n\
3 2 1 \n\
4 11 \n\
1 10 1 \n\
y
thai.dic: $(TDICT_SRC)
cat $(TDICT_SRC) | LC_ALL=C sort -u > $@
thai.out: thai.dic thai.tra
rm -f thai.pat
touch thai.pat
printf "$(PATGEN_ANS)" \
| $(PATGEN) thai.dic thai.pat thai.out $(srcdir)/thai.tra
thai-comb.pat: thai.out thai-exc.pat
cat thai.out $(srcdir)/thai-exc.pat > $@
hyph-th-utf8.tex: thai-comb.pat hyph-th-utf8.tex.in
$(AWK) "BEGIN {show=1} /@PATTERNS@/ {show=0} {if(show) print}" \
$(srcdir)/hyph-th-utf8.tex.in > $@
cat thai-comb.pat >> $@
$(AWK) "BEGIN {show=0;pat=0} /@PATTERNS@/ {pat=1} {if(show) print; if(pat) show=1}" \
$(srcdir)/hyph-th-utf8.tex.in >> $@
hyph-th.tex: thai-comb.pat conv-utf8-hex.sed hyph-th.tex.in
$(AWK) "BEGIN {show=1} /@PATTERNS@/ {show=0} {if(show) print}" \
$(srcdir)/hyph-th.tex.in > $@
$(SED) -f $(srcdir)/conv-utf8-hex.sed thai-comb.pat >> $@
$(AWK) "BEGIN {show=0;pat=0} /@PATTERNS@/ {pat=1} {if(show) print; if(pat) show=1}" \
$(srcdir)/hyph-th.tex.in >> $@
CLEANFILES = \
thai.dic thai.pat pattmp.* thai.out thai-comb.pat \
hyph-th.tex hyph-th-utf8.tex
|