summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/type-imp-malayalam.mkxl
blob: 67a35d472584adaef2413fd8811318ecca1cca2c (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
%D \module
%D   [       file=type-imp-malayam,
%D        version=2022.01.27,
%D          title=\CONTEXT\ Typescript Macros,
%D       subtitle=Demalayalam,
%D         author=śrīrāma (Sreeram),
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D This collection uses rscaling so that the fonts can be used alongside.

\starttypescriptcollection[malayalam]

    \doifunknownfontfeature {malayalam-bold-30} {\definefontfeature[malayalam-bold-30][boldened-30]}

    % Symbolic names for fonts:

    \starttypescript [\s!serif] [rit-rachana]
        \definefontsynonym [RITRachana-Regular]    [\s!name:ritrachanaregular]    [\s!features=malayalam-two]
        \definefontsynonym [RITRachana-Bold]       [\s!name:ritrachanabold]       [\s!features=malayalam-two]
        \definefontsynonym [RITRachana-Italic]     [\s!name:ritrachanaitalic]     [\s!features=malayalam-two]
        \definefontsynonym [RITRachana-BoldItalic] [\s!name:ritrachanabolditalic] [\s!features=malayalam-two]
    \stoptypescript

    \starttypescript [\s!serif] [panmana]
        \definefontsynonym [Panmana-Regular] [\s!name:panmanaregular] [\s!features=malayalam-two]
        \definefontsynonym [Panmana-Bold]    [\s!name:panmanaregular] [\s!features={malayalam-two,malayalam-bold-30}]
    \stoptypescript

    \starttypescript [\s!serif] [rit-sundar]
        \definefontsynonym [RITSundar-Regular] [\s!name:ritsundarbold] [\s!features=malayalam-two]
        \definefontsynonym [RITSundar-Bold]    [\s!name:ritsundarbold] [\s!features={malayalam-two,malayalam-bold-30}]
    \stoptypescript

    \starttypescript [\s!sans] [tn-joy, tn-joy-extrabold]
        \definefontsynonym [TNJoy-Regular]   [\s!name:tnjoyregular]   [\s!features=malayalam-two]
        \definefontsynonym [TNJoy-Bold]      [\s!name:tnjoybold]      [\s!features=malayalam-two]
        \definefontsynonym [TNJoy-Extrabold] [\s!name:tnjoyextrabold] [\s!features=malayalam-two]
    \stoptypescript

    \starttypescript [\s!sans] [ezhuthu]
        \definefontsynonym [Ezhuthu-Regular] [\s!name:ezhuthuregular] [\s!features=malayalam-two]
        \definefontsynonym [Ezhuthu-Bold]    [\s!name:ezhuthuregular] [\s!features={malayalam-two,malayalam-bold-30}]
    \stoptypescript

    \starttypescript [\s!sans] [baloo-chettan,baloo-chettan-extrabold]
        \definefontsynonym [BalooChettan2-Regular]   [\s!name:baloochettan2regular]   [\s!features=malayalam-two]
        \definefontsynonym [BalooChettan2-Medium]    [\s!name:baloochettan2medium]    [\s!features=malayalam-two]
        \definefontsynonym [BalooChettan2-Semibold]  [\s!name:baloochettan2semibold]  [\s!features=malayalam-two]
        \definefontsynonym [BalooChettan2-Bold]      [\s!name:baloochettan2bold]      [\s!features=malayalam-two]
        \definefontsynonym [BalooChettan2-Extrabold] [\s!name:baloochettan2extrabold] [\s!features=malayalam-two]
    \stoptypescript

    \starttypescript [\s!sans] [gayathri, gayathri-thin]
        \definefontsynonym [Gayathri-Regular] [\s!name:gayathriregular] [\s!features=malayalam-two]
        \definefontsynonym [Gayathri-Bold]    [\s!name:gayathribold]    [\s!features=malayalam-two]
        \definefontsynonym [Gayathri-Thin]    [\s!name:gayathrithin]    [\s!features=malayalam-two]
    \stoptypescript

    \starttypescript [\s!sans] [manjari,manjari-thin]
        \definefontsynonym [Manjari-Regular] [\s!name:manjariregular] [\s!features=malayalam-two]
        \definefontsynonym [Manjari-Bold]    [\s!name:manjaribold]    [\s!features=malayalam-two]
        \definefontsynonym [Manjari-Thin]    [\s!name:manjarithin]    [\s!features=malayalam-two]
    \stoptypescript

    \starttypescript [\s!sans] [karumbi]
        \definefontsynonym [Karumbi-Regular] [\s!name:karumbiregular] [\s!features=malayalam-two]
    \stoptypescript

    \starttypescript [\s!sans] [chilanka]
        \definefontsynonym [Chilanka-Regular] [\s!name:chilankaregular] [\s!features=malayalam-two]
    \stoptypescript

    \starttypescript [\s!sans] [anjali-oldlipi]
        \definefontsynonym [Anjali-Oldlipi-Regular] [\s!name:anjalioldlipiregular] [\s!features=malayalam-two]
    \stoptypescript

    \starttypescript [\s!sans] [dyuthi]
        \definefontsynonym [Dyuthi-Regular] [\s!name:dyuthiregular] [\s!features=malayalam-two]
    \stoptypescript

    % Grouping of styles:

    \starttypescript [\s!serif] [rit-rachana] [\s!name]
        \setups[\s!font:\s!fallback:\s!serif]
        \definefontsynonym [\s!Serif]           [RITRachana-Regular]
        \definefontsynonym [\s!SerifBold]       [RITRachana-Bold]
        \definefontsynonym [\s!SerifItalic]     [RITRachana-Italic]
        \definefontsynonym [\s!SerifBoldItalic] [RITRachana-BoldItalic]
    \stoptypescript

    \starttypescript [\s!serif] [panmana] [\s!name]
        \setups[\s!font:\s!fallback:\s!serif]
        \definefontsynonym [\s!Serif]     [Panmana-Regular]
        \definefontsynonym [\s!SerifBold] [Panmana-Bold]
    \stoptypescript

    \starttypescript [\s!serif] [rit-sundar] [\s!name]
        \setups[\s!font:\s!fallback:\s!serif]
        \definefontsynonym [\s!Serif]     [RITSundar-Regular]
        \definefontsynonym [\s!SerifBold] [RITSundar-Bold]
    \stoptypescript

    \starttypescript [\s!sans] [tn-joy] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]     [TNJoy-Regular]
        \definefontsynonym [\s!SansBold] [TNJoy-Bold]
    \stoptypescript

    \starttypescript [\s!sans] [tn-joy-extrabold] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]     [TNJoy-Bold]
        \definefontsynonym [\s!SansBold] [TNJoy-Extrabold]
    \stoptypescript

    \starttypescript [\s!sans] [ezhuthu] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]     [Ezhuthu-Regular]
        \definefontsynonym [\s!SansBold] [Ezhuthu-Bold]
    \stoptypescript

    \starttypescript [\s!sans] [karumbi] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]     [Karumbi-Regular]
        \definefontsynonym [\s!SansBold] [Karumbi-Bold]
    \stoptypescript

    \starttypescript [\s!sans] [chilanka] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans] [Chilanka-Regular]
    \stoptypescript

    \starttypescript [\s!sans] [anjali-oldlipi] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans] [Anjali-Oldlipi-Regular]
    \stoptypescript

    \starttypescript [\s!sans] [dyuthi] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans] [Dyuthi-Regular]
    \stoptypescript

    \starttypescript [\s!sans] [gayathri] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]     [Gayathri-Regular]
        \definefontsynonym [\s!SansBold] [Gayathri-Bold]
    \stoptypescript

    \starttypescript [\s!sans] [gayathri-thin] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]     [Gayathri-Thin]
        \definefontsynonym [\s!SansBold] [Gayathri-Regular]
    \stoptypescript

    \starttypescript [\s!sans] [manjari] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans   ]  [Manjari-Regular]
        \definefontsynonym [\s!SansBold] [Manjari-Bold]
    \stoptypescript

    \starttypescript [\s!sans] [manjari-thin] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]     [Manjari-Thin]
        \definefontsynonym [\s!SansBold] [Manjari-Regular]
    \stoptypescript

    \starttypescript [\s!sans] [baloo-chettan] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]            [BalooChettan2-Regular]
        \definefontsynonym [\s!SansBold]        [BalooChettan2-Bold]
        \definefontsynonym [\s!SansSlanted]     [BalooChettan2-Medium]
        \definefontsynonym [\s!SansBoldSlanted] [BalooChettan2-Semibold]
    \stoptypescript

    \starttypescript [\s!sans] [baloo-chettan-extrabold] [name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]            [BalooChettan2-Medium]
        \definefontsynonym [\s!SansSlanted]     [BalooChettan2-Semibold]
        \definefontsynonym [\s!SansBoldSlanted] [BalooChettan2-Bold]
        \definefontsynonym [\s!SansBold]        [BalooChettan2-Extrabold]
    \stoptypescript

    % Typefaces:

    \starttypescript [rit-rachana,rit-sundar,panmana]
        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [\typescriptone] [\s!default] [\s!rscale=1.25]
        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [dejavu] [\s!default]
        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [dejavu] [\s!default]
        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [dejavu] [\s!default]
    \stoptypescript

    \starttypescript [ezhuthu,karumbi,tn-joy,tn-joy-extrabold]
        \definetypeface [\typescriptone] [\s!ss] [\s!sans] [\typescriptone] [\s!default] [\s!rscale=1.25]
        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [dejavu] [\s!default]
        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [dejavu] [\s!default]
        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [dejavu] [\s!default]
    \stoptypescript

    \starttypescript [chilanka,anjali-oldlipi]
        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [\typescriptone] [\s!default]
        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [dejavu]         [\s!default]
        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [dejavu]         [\s!default]
        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [dejavu]         [\s!default]
    \stoptypescript

    \starttypescript [dyuthi,gayathri,gayathri-thin,manjari,manjari-thin]
        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [\typescriptone] [\s!default] [\s!rscale=1.1]
        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [dejavu]         [\s!default]
        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [dejavu]         [\s!default]
        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [dejavu]         [\s!default]
    \stoptypescript

    \starttypescript [baloo-chettan,baloo-chettan-extrabold]
        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [baloo-chettan] [\s!default]
        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [dejavu]        [\s!default]
        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [dejavu]        [\s!default]
        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [dejavu]        [\s!default]
    \stoptypescript

\stoptypescriptcollection