summaryrefslogtreecommitdiff
path: root/language/typingtex/lehyphen.tex
blob: 7f24b6a42c8846734a07fa3b5313acbf166f69ba (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
 %%%% LEHYPHEN.TEX %% LEtter count hyphenation patterns
   %% for use with word tally.sty
   %% to let \LetterCount<text>\endLetterCount count the letters

 \begingroup
 \catcode`@=11
 
    %%% Globally set high ASCII to 12
  %%
    \count@="80
    \loop
   \global\catcode\the\count@=12
    \ifnum\count@<"FF
   \relax\advance\count@ by 1
    \repeat
 
 %%% Globally set their Cork default lc-uc codes   
  \newcount\Ct@
  \newcount\Ct@@
  \newcount\Ct@@@
  \toks0={% 
  \loop
  \Ct@=\count@\advance\Ct@ by 32 
    %% \count@ is Plain scratch counter \count255
  \global\uccode\the\count@=\the\count@
  \global\lccode\the\count@=\the\Ct@
  \global\uccode\the\Ct@=\the\count@
  \global\lccode\the\Ct@=\the\Ct@
  \ifnum\count@<\Ct@@
  \relax\advance\count@ by 1
  \repeat
  }
 
   \count@="80 \Ct@@="9E \the\toks0 %% segment "80 to "BF
   %% "9F is \S and "BF is pound
   \count@="C0 \Ct@@="DF \the\toks0 %% segment "C0 to "FF
   \lccode"BD=0\uccode"BD=0 %% !!
   \lccode"BD=0\uccode"BD=0 %% ??
 
  %% count figures as letters!?
\lccode`0=`0
\lccode`1=`1
\lccode`2=`2
\lccode`3=`3
\lccode`4=`4
\lccode`5=`5
\lccode`6=`6
\lccode`7=`7
\lccode`8=`8
\lccode`9=`9
\lccode`==`=


 \patterns{%
1^^301
1^^311
1^^321
1^^331
1^^341
1^^351
1^^361
1^^371
1^^381
1^^391
1<1
1=1
1>1
1a1
1b1
1c1
1d1
1e1
1f1
1g1
1h1
1i1
1j1
1k1
1l1
1m1
1n1
1o1
1p1
1q1
1r1
1s1
1t1
1u1
1v1
1w1
1x1
1y1
1z1
 }

 \patterns{%
 %1^^9D1 %% Turkish dot I
 1^^9E1 %% croatian \dj
 %1^^9F1 %% \S
 % 
1^^a01
 1^^a11
 1^^a21
 1^^a31
 1^^a41
 1^^a51
 1^^a61
 1^^a71
 1^^a81
 1^^a91
 1^^aa1
 1^^ab1
 1^^ac1
 1^^ad1
 1^^ae1
 1^^af1
  %
 1^^b01
 1^^b11
 1^^b21
 1^^b31
 1^^b41
 1^^b51
 1^^b61
 1^^b71
 1^^b81
 1^^b91
 1^^ba1
 1^^bb1
 1^^bc1
 %1^^bd1 %% !!
 %1^^be1 %% ??
 %1^^bf1 %% pound
  %
 1^^e01
 1^^e11
 1^^e21
 1^^e31
 1^^e41
 1^^e51
 1^^e61
 1^^e71
 1^^e81
 1^^e91
 1^^ea1
 1^^eb1
 1^^ec1
 1^^ed1
 1^^ee1
 1^^ef1
  %
 1^^f01
 1^^f11
 1^^f21
 1^^f31
 1^^f41
 1^^f51
 1^^f61
 1^^f71
 1^^f81
 1^^f91
 1^^fa1
 1^^fb1
 1^^fc1
 1^^fd1
 1^^fe1
 1^^ff1
 }

 \endgroup