summaryrefslogtreecommitdiff
path: root/language/hyph-utf8/source/generic/hyph-utf8/language-data.rb
blob: d4f387c072508843c9363f96347361dad17667bd (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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
class OldLanguage
# "use_new_loader"
# => true - create a new file and use that one
# => false - use "filename_old_patterns" in language.dat
# "filename_old_patterns"
# => [string] - the name used in language.dat if "use_new_loader" is false
# "eightbitfilename"
# => [string] - if set, load another file for 8-bit engines
# "code"
# => [string] - used in filenames, needs to conform to the standard
# "name"
# => [string] -
# "synonyms" => [],
# "hyphenmin" => [],
# "encoding" => nil,
# "exceptions" => false,
# "message" => nil,

	@@language_data = [
{
	"code" => "el-monoton",
	"type"          => "rules",
},
{
	"code" => "el-polyton",
	"type"          => "rules",
},
{
	"code" => "grc",
	"type"          => "rules",
},
{
	"code" => "cop",
	"type"          => "rules",
},
{
	"code" => "de-1901",
        "type"          => "dictionary",
},
{
	"code" => "de-1996",
	"type"          => "dictionary",
},
{
	"code" => "de-ch-1901",
        "type"          => "dictionary",
},
{
	"code" => "ru",
        "type"          => "dictionary",
},
{
	"code" => "uk",
	# "type"          => "rules", # TODO: it is not really clear
},
{
	"code" => "af",
        "type"          => "dictionary",
},
{
	"code" => "ca",
        "type"          => "rules", # not only rules, also patgen, but it is a good approximation
},
{
	"code" => "cs",
	"filename_old_patterns_other" => ["czhyphen.tex","czhyphen.ex"],
	"type"          => "dictionary",
	# Both Czech and Slovak: \lefthyphenmin=2, \righthyphenmin=3
	# Typographical rules allow \righthyphenmin=2 when typesetting in a
	# narrow column (newspapers etc.).
	# (used to be 2,2)

	# guessing based on CTAN/macros/cstex/base/csplain.tar.gz:
	# 1998-12-17 (patterns)
	# 1995-08-23 (exceptions)
	# but patterns claim 1995
},
{
	"code" => "sk",
	"type"          => "dictionary",
	"filename_old_patterns_other" => ["skhyphen.tex","skhyphen.ex"],
},
{
	"code" => "cy",
        "type"          => "dictionary",
},
{
	"code" => "da",
	"type"          => "dictionary",
        "filename_old_patterns_other" => ["dkcommon.tex", "dkspecial.tex"],
},
{
	"code" => "eo",
        "type"          => "rules",
},
{
	"code" => "es",
        "type"          => "dictionary",
},
{
	"code" => "eu",
        "type"          => "rules",
},
{
	"code" => "fr",
        "type"          => "rules",
},
{
	"code" => "gl",
	"type"          => "rules",
},
{
	"code" => "et",
        "type"          => "dictionary",
},
{
	"code" => "fi",
        "type"          => "rules",
},
{
	"code" => "hr",
        "type"          => "dictionary",
},
{
	"code" => "hu",
        "type"          => "dictionary",
        "source" => "https://github.com/nagybence/huhyphn/", # FIXME Check and remove from desc below
},
{
	"code" => "hy",
        "type"          => "rules",
},
{
	"code" => "ia",
        "type"          => "dictionary",
},
{
	"code" => "id",
        "type"          => "rules",
},
{
	"code" => "is",
        "type"          => "dictionary",
	# TODO: I'm not sure that the last two names are relevant, I don't find the source of Marteinn Sverrisson
	"authors"       => ["jorgen_pind", "marteinn_sverrisson", "kristinn_gylfason"],
},
{
	"code" => "ga",
        "type"          => "dictionary",
},
{
	"code" => "it",
	"type"          => "rules", # TODO: we might want to check that, but it seems unlikely that patgen was used
},
{
	"code" => "rm",
        "type"          => "rules",
},
{
	"code" => "fur",
        "type"          => "rules",
},
{
	"code" => "pms",
        "type"          => "rules",
},
{
	"code" => "kmr",
        "type"          => "dictionary",
},
{
	"code" => "la",
        "type"          => "rules",
},
{
	"code" => "la-x-classic",
        "type"          => "rules",
},
{
	"code" => "la-x-liturgic",
	"version"       => "1.040",
	"last_modified" => "2016-05-19",
	"type"          => "rules",
},
{
	"code" => "lt",
	"description_l" => [
		#......................................................................#
		"Hyphenation patterns for Lithuanian in L7X and UTF-8 encodings.",
		# "Designed for \\lefthyphenmin and \\righthyphenmin set to 2.",
		"\\lefthyphenmin and \\righthyphenmin have to be at least 2.",
		# "Changing them to 1 according to grammatical rules from 1997",
		# "would require to review and maybe rebuild the patterns."
	],
},
{
	"code" => "lv",
        "type"          => "dictionary",
},
{
	"code" => "nl",
        "type"          => "dictionary",
        # quoting Hans Hagen:
        # patterns generated with 2,2 (so don't go less) but use prefered values 2,3 (educational publishers want 4,5 -)
},
{
	"code" => "oc",
        "type"          => "rules",
},
{
	"code" => "pl",
        "type"          => "dictionary",
        #{}"hyphenmin" => [1,1],
},
{
	"code" => "pt",
        "type"          => "rules", # TODO: we could create a generating script
},
{
	"code" => "zh-latn-pinyin",
        "type"          => "rules", # TODO: we could create a generating script
},
{
	"code" => "ro",
        "type"          => "dictionary",
},
{
	"code" => "sl",
	"type"          => "dictionary",
},
{
	"code" => "hsb",
        "type"          => "dictionary",
},
{
	"code" => "sv",
	"type"          => "dictionary",
},
{
	"code" => "tk",
        "type"          => "dictionary",
},
{
	"code" => "tr",
        "type"          => "rules",
},
{
	"code" => "en-gb",
        "type"          => "dictionary",
},
{
	"code" => "en-us",
},
# TODO: FIXME!!!
{
	"code" => "sh-latn",
        "type"          => "dictionary",
},
{
	"code" => "sh-cyrl",
},
{
	"code" => "mn-cyrl",
        "type"          => "dictionary",
	"last_modified" => "2010-04-03", # FIXME: ?
},
{
	"code" => "sa",
        "type"          => "rules",
},
{
	"code" => "nb",
        "type"          => "dictionary",
        "last_modified" => "2012-05-18", # FIXME: ?
},
{
	"code" => "as",
	# this is true for all Indic patterns
	"type"          => "rules",
},
# thai
{
	"code" => "th",
        "type"          => "dictionary",
        "last_modified" => "2015-05-07", # FIXME: ?
},
# lao
#{
#	"code" => "lo",
#	"name" => "lao",
#	"use_new_loader" => true,
#	"use_old_patterns" => false,
#	"hyphenmin" => [1,1], # TODO
#	"encoding" => nil, # no patterns for 8-bit engines
#	"exceptions" => false,
#	"message" => "Lao hyphenation patterns",
#
#	"version"       => nil,
#	"last_modified" => "2010-05-19",
#	"type"          => "rules",
#	"authors"       => [ "brian_wilson", "arthur_reutenauer", "mojca_miklavec" ],
#	"licence"       => "other-free",
#	"description_s" => "Lao hyphenation patterns",
#	"description_l" => [
#		#......................................................................#
#		"Hyphenation patterns for Lao language for Unicode engines.",
#		"Current version is experimental and gives bad results.",
#	],
#},
{
	"code" => "ka",
        "type"          => "dictionary",
},
{
	"code" => "cu",
        "type" => "machine learning",
},
{
	"code" => "be",
        "type"          => "rules",
},
{
	"code" => "pi",
	"type" => "rules",
},
	]
end