Debian Codegraph @

texmf-dist/source/generic/hyph-utf8/language-data.rb

raw
1 class OldLanguage
2 # "use_new_loader"
3 # => true - create a new file and use that one
4 # => false - use "filename_old_patterns" in language.dat
5 # "filename_old_patterns"
6 # => [string] - the name used in language.dat if "use_new_loader" is false
7 # "eightbitfilename"
8 # => [string] - if set, load another file for 8-bit engines
9 # "code"
10 # => [string] - used in filenames, needs to conform to the standard
11 # "name"
12 # => [string] -
13 # "synonyms" => [],
14 # "hyphenmin" => [],
15 # "encoding" => nil,
16 # "exceptions" => false,
17 # "message" => nil,
18
19 @@language_data = [
20 {
21 "code" => "el-monoton",
22 "type" => "rules",
23 },
24 {
25 "code" => "el-polyton",
26 "type" => "rules",
27 },
28 {
29 "code" => "grc",
30 "type" => "rules",
31 },
32 {
33 "code" => "cop",
34 "type" => "rules",
35 },
36 {
37 "code" => "de-1901",
38 "type" => "dictionary",
39 },
40 {
41 "code" => "de-1996",
42 "type" => "dictionary",
43 },
44 {
45 "code" => "de-ch-1901",
46 "type" => "dictionary",
47 },
48 {
49 "code" => "ru",
50 "type" => "dictionary",
51 },
52 {
53 "code" => "uk",
54 # "type" => "rules", # TODO: it is not really clear
55 },
56 {
57 "code" => "af",
58 "type" => "dictionary",
59 },
60 {
61 "code" => "ca",
62 "type" => "rules", # not only rules, also patgen, but it is a good approximation
63 },
64 {
65 "code" => "cs",
66 "filename_old_patterns_other" => ["czhyphen.tex", "czhyphen.ex"],
67 "type" => "dictionary",
68 # Both Czech and Slovak: \lefthyphenmin=2, \righthyphenmin=3
69 # Typographical rules allow \righthyphenmin=2 when typesetting in a
70 # narrow column (newspapers etc.).
71 # (used to be 2,2)
72
73 # guessing based on CTAN/macros/cstex/base/csplain.tar.gz:
74 # 1998-12-17 (patterns)
75 # 1995-08-23 (exceptions)
76 # but patterns claim 1995
77 },
78 {
79 "code" => "sk",
80 "type" => "dictionary",
81 "filename_old_patterns_other" => ["skhyphen.tex", "skhyphen.ex"],
82 },
83 {
84 "code" => "cy",
85 "type" => "dictionary",
86 },
87 {
88 "code" => "da",
89 "type" => "dictionary",
90 "filename_old_patterns_other" => ["dkcommon.tex", "dkspecial.tex"],
91 },
92 {
93 "code" => "eo",
94 "type" => "rules",
95 },
96 {
97 "code" => "es",
98 "type" => "dictionary",
99 },
100 {
101 "code" => "eu",
102 "type" => "rules",
103 },
104 {
105 "code" => "fr",
106 "type" => "rules",
107 },
108 {
109 "code" => "gl",
110 "type" => "rules",
111 },
112 {
113 "code" => "et",
114 "type" => "dictionary",
115 },
116 {
117 "code" => "fi",
118 "type" => "rules",
119 },
120 {
121 "code" => "hr",
122 "type" => "dictionary",
123 },
124 {
125 "code" => "hu",
126 "type" => "dictionary",
127 "source" => "https://github.com/nagybence/huhyphn/", # FIXME Check and remove from desc below
128 },
129 {
130 "code" => "hy",
131 "type" => "rules",
132 },
133 {
134 "code" => "ia",
135 "type" => "dictionary",
136 },
137 {
138 "code" => "id",
139 "type" => "rules",
140 },
141 {
142 "code" => "is",
143 "type" => "dictionary",
144 # TODO: I'm not sure that the last two names are relevant, I don't find the source of Marteinn Sverrisson
145 "authors" => ["jorgen_pind", "marteinn_sverrisson", "kristinn_gylfason"],
146 },
147 {
148 "code" => "ga",
149 "type" => "dictionary",
150 },
151 {
152 "code" => "it",
153 "type" => "rules", # TODO: we might want to check that, but it seems unlikely that patgen was used
154 },
155 {
156 "code" => "rm",
157 "type" => "rules",
158 },
159 {
160 "code" => "fur",
161 "type" => "rules",
162 },
163 {
164 "code" => "pms",
165 "type" => "rules",
166 },
167 {
168 "code" => "kmr",
169 "type" => "dictionary",
170 },
171 {
172 "code" => "la",
173 "type" => "rules",
174 },
175 {
176 "code" => "la-x-classic",
177 "type" => "rules",
178 },
179 {
180 "code" => "la-x-liturgic",
181 "type" => "rules",
182 "version" => "1.040",
183 "last_modified" => "2016-05-19",
184 },
185 {
186 "code" => "lt",
187 "description_l" => [
188 #......................................................................#
189 "Hyphenation patterns for Lithuanian in L7X and UTF-8 encodings.",
190 # "Designed for \\lefthyphenmin and \\righthyphenmin set to 2.",
191 "\\lefthyphenmin and \\righthyphenmin have to be at least 2.",
192 # "Changing them to 1 according to grammatical rules from 1997",
193 # "would require to review and maybe rebuild the patterns."
194 ],
195 },
196 {
197 "code" => "lv",
198 "type" => "dictionary",
199 },
200 {
201 "code" => "nl",
202 "type" => "dictionary",
203 # quoting Hans Hagen:
204 # patterns generated with 2,2 (so don't go less) but use prefered values 2,3 (educational publishers want 4,5 -)
205 },
206 {
207 "code" => "oc",
208 "type" => "rules",
209 },
210 {
211 "code" => "pl",
212 "type" => "dictionary",
213 #{}"hyphenmin" => [1,1],
214 },
215 {
216 "code" => "pt",
217 "type" => "rules", # TODO: we could create a generating script
218 },
219 {
220 "code" => "zh-latn-pinyin",
221 "type" => "rules", # TODO: we could create a generating script
222 },
223 {
224 "code" => "ro",
225 "type" => "dictionary",
226 },
227 {
228 "code" => "sl",
229 "type" => "dictionary",
230 },
231 {
232 "code" => "hsb",
233 "type" => "dictionary",
234 },
235 {
236 "code" => "sv",
237 "type" => "dictionary",
238 },
239 {
240 "code" => "tk",
241 "type" => "dictionary",
242 },
243 {
244 "code" => "tr",
245 "type" => "rules",
246 },
247 {
248 "code" => "en-gb",
249 "type" => "dictionary",
250 },
251 {
252 "code" => "en-us",
253 },
254 # TODO: FIXME!!!
255 {
256 "code" => "sh-latn",
257 "type" => "dictionary",
258 },
259 {
260 "code" => "sh-cyrl",
261 },
262 {
263 "code" => "mn-cyrl",
264 "type" => "dictionary",
265 "last_modified" => "2010-04-03", # FIXME: ?
266 },
267 {
268 "code" => "sa",
269 "type" => "rules",
270 },
271 {
272 "code" => "nb",
273 "type" => "dictionary",
274 "last_modified" => "2012-05-18", # FIXME: ?
275 },
276 {
277 "code" => "as",
278 # this is true for all Indic patterns
279 "type" => "rules",
280 },
281 # thai
282 {
283 "code" => "th",
284 "type" => "dictionary",
285 "last_modified" => "2015-05-07", # FIXME: ?
286 },
287 # lao
288 #{
289 # "code" => "lo",
290 # "name" => "lao",
291 # "use_new_loader" => true,
292 # "use_old_patterns" => false,
293 # "hyphenmin" => [1,1], # TODO
294 # "encoding" => nil, # no patterns for 8-bit engines
295 # "exceptions" => false,
296 # "message" => "Lao hyphenation patterns",
297 #
298 # "version" => nil,
299 # "last_modified" => "2010-05-19",
300 # "type" => "rules",
301 # "authors" => [ "brian_wilson", "arthur_reutenauer", "mojca_miklavec" ],
302 # "licence" => "other-free",
303 # "description_s" => "Lao hyphenation patterns",
304 # "description_l" => [
305 # #......................................................................#
306 # "Hyphenation patterns for Lao language for Unicode engines.",
307 # "Current version is experimental and gives bad results.",
308 # ],
309 #},
310 {
311 "code" => "ka",
312 "type" => "dictionary",
313 },
314 {
315 "code" => "cu",
316 "type" => "machine learning",
317 },
318 {
319 "code" => "be",
320 "type" => "rules",
321 },
322 {
323 "code" => "pi",
324 "type" => "rules",
325 },
326 ]
327 end