-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path65-fonts-syriac.conf
329 lines (307 loc) · 9.07 KB
/
65-fonts-syriac.conf
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
328
329
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
Syriac has three different script styles which correspond to three different
font representations in the form of Estrangelo, Serto, and East Syriac.
It is difficult to put these fonts in any order as different speakers will
gravitate towards a familiar script style.
The OpenType Meltho fonts (http://bethmardutho.org/meltho/) provide complete
coverage for Syriac. Please use the font names to substitute your default in
place of preferred_syriac_font.
-->
<fontconfig>
<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
<its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
</its:rules>
<description>Syriac-specific font configuration</description>
<!-- Default font -->
<match>
<test compare="contains" name="lang">
<string>syr</string>
</test>
<edit mode="prepend" name="family">
<string>preferred_syriac_font</string>
</edit>
</match>
<alias>
<family>serif</family>
<prefer>
<family>preferred_syriac_font</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>preferred_syriac_font</family>
</prefer>
</alias>
<!-- Font sizing -->
<!--
Syriac letters have a smaller body relative to the diacritics above and
below them, as such the most common elements are smaller to others.
Because the height of the fonts needs to fit within the body size,
Syriac looks smaller than latin at the same point size.
Default is 28 pixels / 21 points
-->
<match target="font">
<test name="lang" compare="contains">
<string>syr</string>
</test>
<test qual="any" name="pixelsize" compare="less">
<double>28</double>
</test>
<edit name="pixelsize" mode="assign">
<double>28</double>
</edit>
<!--
<edit name="pixelsize" mode="assign">
<times>
<name>pixelsize</name>
<double>2.0</double>
</times>
</edit>
-->
</match>
<!-- syriac_east class -->
<!--
- East Syriac Adiabene
- East Syriac Ctesiphon
-->
<alias binding="same">
<family>East Syriac Adiabene</family>
<accept><family>syriac_east</family></accept>
</alias>
<alias binding="same">
<family>East Syriac Ctesiphon</family>
<accept><family>syriac_east</family></accept>
</alias>
<!-- syriac_serto class -->
<!--
- Serto Batnan
- Serto Jerusalem
- Serto Kharput
- Serto Malankara
- Serto Mardin
- Serto Urhoy
-->
<alias binding="same">
<family>Serto Batnan</family>
<accept><family>syriac_serto</family></accept>
</alias>
<alias binding="same">
<family>Serto Jerusalem</family>
<accept><family>syriac_serto</family></accept>
</alias>
<alias binding="same">
<family>Serto Kharput</family>
<accept><family>syriac_serto</family></accept>
</alias>
<alias binding="same">
<family>Serto Malankara</family>
<accept><family>syriac_serto</family></accept>
</alias>
<alias binding="same">
<family>Serto Mardin</family>
<accept><family>syriac_serto</family></accept>
</alias>
<alias binding="same">
<family>Serto Urhoy</family>
<accept><family>syriac_serto</family></accept>
</alias>
<!-- syriac_estrangelo -->
<!--
- Estrangelo Antioch
- Estrangelo Edessa
- Estrangelo Midyat
- Estrangelo Nisibin
- Estrangelo QenNeshrin
- Estrangelo Talada
- Estrangelo TurAbdin
-->
<alias binding="same">
<family>Estrangelo Antioch</family>
<accept><family>syriac_estrangelo</family></accept>
</alias>
<alias binding="same">
<family>Estrangelo Edessa</family>
<accept><family>syriac_estrangelo</family></accept>
</alias>
<alias binding="same">
<family>Estrangelo Midyat</family>
<accept><family>syriac_estrangelo</family></accept>
</alias>
<alias binding="same">
<family>Estrangelo Nisibin</family>
<accept><family>syriac_estrangelo</family></accept>
</alias>
<alias binding="same">
<family>Estrangelo QenNeshrin</family>
<accept><family>syriac_estrangelo</family></accept>
</alias>
<alias binding="same">
<family>Estrangelo Talada</family>
<accept><family>syriac_estrangelo</family></accept>
</alias>
<alias binding="same">
<family>Estrangelo TurAbdin</family>
<accept><family>syriac_estrangelo</family></accept>
</alias>
<!-- Font ordering per class -->
<!-- East Syriac -->
<alias binding="same">
<family>syriac_east</family>
<accept>
<family>East Syriac Adiabene</family>
<family>East Syriac Ctesiphon</family>
</accept>
</alias>
<!-- Serto -->
<alias binding="same">
<family>syriac_serto</family>
<accept>
<family>Serto Batnan</family>
<family>Serto Urhoy</family>
<family>Serto Jerusalem</family>
<family>Serto Kharput</family>
<family>Serto Mardin</family>
<family>Serto Malankara</family>
</accept>
</alias>
<!-- Estrangelo -->
<alias binding="same">
<family>syriac_estrangelo</family>
<accept>
<family>Estrangelo Edessa</family>
<family>Estrangelo Nisibin</family>
<family>Estrangelo Talada</family>
<family>Estrangelo TurAbdin</family>
<family>Estrangelo QenNeshrin</family>
<family>Estrangelo Antioch</family>
<family>Estrangelo Midyat</family>
</accept>
</alias>
<!-- Register the fonts -->
<!-- East Syriac -->
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>East Syriac Adiabene</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>East Syriac Ctesiphon</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
<!-- Serto -->
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>Serto Batnan</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>Serto Urhoy</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>Serto Jerusalem</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>Serto Kharput</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>Serto Mardin</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>Serto Malankara</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
<!-- Estrangelo -->
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>Estrangelo Edessa</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>Estrangelo Nisibin</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>Estrangelo Talada</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>Estrangelo QenNeshrin</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>Estrangelo TurAbdin</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>Estrangelo Antioch</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
<match target="scan">
<test name="family" compare="eq" ignore-blanks="true">
<string>Estrangelo Midyat</string>
</test>
<edit name="foundry">
<string>meltho</string>
</edit>
</match>
</fontconfig>