type-imp-malayalam.mkxl /size: 10 Kb    last modification: 2024-01-16 10:22
1%D \module
2%D   [       file=type-imp-malayam,
3%D        version=2022.01.27,
4%D          title=\CONTEXT\ Typescript Macros,
5%D       subtitle=Demalayalam,
6%D         author=śrīrāma (Sreeram),
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14%D This collection uses rscaling so that the fonts can be used alongside.
15
16\starttypescriptcollection[malayalam]
17
18    \doifunknownfontfeature {malayalam-bold-30} {\definefontfeature[malayalam-bold-30][boldened-30]}
19
20    % Symbolic names for fonts:
21
22    \starttypescript [\s!serif] [rit-rachana]
23        \definefontsynonym [RITRachana-Regular]    [\s!name:ritrachanaregular]    [\s!features=malayalam-two]
24        \definefontsynonym [RITRachana-Bold]       [\s!name:ritrachanabold]       [\s!features=malayalam-two]
25        \definefontsynonym [RITRachana-Italic]     [\s!name:ritrachanaitalic]     [\s!features=malayalam-two]
26        \definefontsynonym [RITRachana-BoldItalic] [\s!name:ritrachanabolditalic] [\s!features=malayalam-two]
27    \stoptypescript
28
29    \starttypescript [\s!serif] [panmana]
30        \definefontsynonym [Panmana-Regular] [\s!name:panmanaregular] [\s!features=malayalam-two]
31        \definefontsynonym [Panmana-Bold]    [\s!name:panmanaregular] [\s!features={malayalam-two,malayalam-bold-30}]
32    \stoptypescript
33
34    \starttypescript [\s!serif] [rit-sundar]
35        \definefontsynonym [RITSundar-Regular] [\s!name:ritsundarbold] [\s!features=malayalam-two]
36        \definefontsynonym [RITSundar-Bold]    [\s!name:ritsundarbold] [\s!features={malayalam-two,malayalam-bold-30}]
37    \stoptypescript
38
39    \starttypescript [\s!sans] [tn-joy, tn-joy-extrabold]
40        \definefontsynonym [TNJoy-Regular]   [\s!name:tnjoyregular]   [\s!features=malayalam-two]
41        \definefontsynonym [TNJoy-Bold]      [\s!name:tnjoybold]      [\s!features=malayalam-two]
42        \definefontsynonym [TNJoy-Extrabold] [\s!name:tnjoyextrabold] [\s!features=malayalam-two]
43    \stoptypescript
44
45    \starttypescript [\s!sans] [ezhuthu]
46        \definefontsynonym [Ezhuthu-Regular] [\s!name:ezhuthuregular] [\s!features=malayalam-two]
47        \definefontsynonym [Ezhuthu-Bold]    [\s!name:ezhuthuregular] [\s!features={malayalam-two,malayalam-bold-30}]
48    \stoptypescript
49
50    \starttypescript [\s!sans] [baloo-chettan,baloo-chettan-extrabold]
51        \definefontsynonym [BalooChettan2-Regular]   [\s!name:baloochettan2regular]   [\s!features=malayalam-two]
52        \definefontsynonym [BalooChettan2-Medium]    [\s!name:baloochettan2medium]    [\s!features=malayalam-two]
53        \definefontsynonym [BalooChettan2-Semibold]  [\s!name:baloochettan2semibold]  [\s!features=malayalam-two]
54        \definefontsynonym [BalooChettan2-Bold]      [\s!name:baloochettan2bold]      [\s!features=malayalam-two]
55        \definefontsynonym [BalooChettan2-Extrabold] [\s!name:baloochettan2extrabold] [\s!features=malayalam-two]
56    \stoptypescript
57
58    \starttypescript [\s!sans] [gayathri, gayathri-thin]
59        \definefontsynonym [Gayathri-Regular] [\s!name:gayathriregular] [\s!features=malayalam-two]
60        \definefontsynonym [Gayathri-Bold]    [\s!name:gayathribold]    [\s!features=malayalam-two]
61        \definefontsynonym [Gayathri-Thin]    [\s!name:gayathrithin]    [\s!features=malayalam-two]
62    \stoptypescript
63
64    \starttypescript [\s!sans] [manjari,manjari-thin]
65        \definefontsynonym [Manjari-Regular] [\s!name:manjariregular] [\s!features=malayalam-two]
66        \definefontsynonym [Manjari-Bold]    [\s!name:manjaribold]    [\s!features=malayalam-two]
67        \definefontsynonym [Manjari-Thin]    [\s!name:manjarithin]    [\s!features=malayalam-two]
68    \stoptypescript
69
70    \starttypescript [\s!sans] [karumbi]
71        \definefontsynonym [Karumbi-Regular] [\s!name:karumbiregular] [\s!features=malayalam-two]
72    \stoptypescript
73
74    \starttypescript [\s!sans] [chilanka]
75        \definefontsynonym [Chilanka-Regular] [\s!name:chilankaregular] [\s!features=malayalam-two]
76    \stoptypescript
77
78    \starttypescript [\s!sans] [anjali-oldlipi]
79        \definefontsynonym [Anjali-Oldlipi-Regular] [\s!name:anjalioldlipiregular] [\s!features=malayalam-two]
80    \stoptypescript
81
82    \starttypescript [\s!sans] [dyuthi]
83        \definefontsynonym [Dyuthi-Regular] [\s!name:dyuthiregular] [\s!features=malayalam-two]
84    \stoptypescript
85
86    % Grouping of styles:
87
88    \starttypescript [\s!serif] [rit-rachana] [\s!name]
89        \setups[\s!font:\s!fallback:\s!serif]
90        \definefontsynonym [\s!Serif]           [RITRachana-Regular]
91        \definefontsynonym [\s!SerifBold]       [RITRachana-Bold]
92        \definefontsynonym [\s!SerifItalic]     [RITRachana-Italic]
93        \definefontsynonym [\s!SerifBoldItalic] [RITRachana-BoldItalic]
94    \stoptypescript
95
96    \starttypescript [\s!serif] [panmana] [\s!name]
97        \setups[\s!font:\s!fallback:\s!serif]
98        \definefontsynonym [\s!Serif]     [Panmana-Regular]
99        \definefontsynonym [\s!SerifBold] [Panmana-Bold]
100    \stoptypescript
101
102    \starttypescript [\s!serif] [rit-sundar] [\s!name]
103        \setups[\s!font:\s!fallback:\s!serif]
104        \definefontsynonym [\s!Serif]     [RITSundar-Regular]
105        \definefontsynonym [\s!SerifBold] [RITSundar-Bold]
106    \stoptypescript
107
108    \starttypescript [\s!sans] [tn-joy] [\s!name]
109        \setups[\s!font:\s!fallback:\s!sans]
110        \definefontsynonym [\s!Sans]     [TNJoy-Regular]
111        \definefontsynonym [\s!SansBold] [TNJoy-Bold]
112    \stoptypescript
113
114    \starttypescript [\s!sans] [tn-joy-extrabold] [\s!name]
115        \setups[\s!font:\s!fallback:\s!sans]
116        \definefontsynonym [\s!Sans]     [TNJoy-Bold]
117        \definefontsynonym [\s!SansBold] [TNJoy-Extrabold]
118    \stoptypescript
119
120    \starttypescript [\s!sans] [ezhuthu] [\s!name]
121        \setups[\s!font:\s!fallback:\s!sans]
122        \definefontsynonym [\s!Sans]     [Ezhuthu-Regular]
123        \definefontsynonym [\s!SansBold] [Ezhuthu-Bold]
124    \stoptypescript
125
126    \starttypescript [\s!sans] [karumbi] [\s!name]
127        \setups[\s!font:\s!fallback:\s!sans]
128        \definefontsynonym [\s!Sans]     [Karumbi-Regular]
129        \definefontsynonym [\s!SansBold] [Karumbi-Bold]
130    \stoptypescript
131
132    \starttypescript [\s!sans] [chilanka] [\s!name]
133        \setups[\s!font:\s!fallback:\s!sans]
134        \definefontsynonym [\s!Sans] [Chilanka-Regular]
135    \stoptypescript
136
137    \starttypescript [\s!sans] [anjali-oldlipi] [\s!name]
138        \setups[\s!font:\s!fallback:\s!sans]
139        \definefontsynonym [\s!Sans] [Anjali-Oldlipi-Regular]
140    \stoptypescript
141
142    \starttypescript [\s!sans] [dyuthi] [\s!name]
143        \setups[\s!font:\s!fallback:\s!sans]
144        \definefontsynonym [\s!Sans] [Dyuthi-Regular]
145    \stoptypescript
146
147    \starttypescript [\s!sans] [gayathri] [\s!name]
148        \setups[\s!font:\s!fallback:\s!sans]
149        \definefontsynonym [\s!Sans]     [Gayathri-Regular]
150        \definefontsynonym [\s!SansBold] [Gayathri-Bold]
151    \stoptypescript
152
153    \starttypescript [\s!sans] [gayathri-thin] [\s!name]
154        \setups[\s!font:\s!fallback:\s!sans]
155        \definefontsynonym [\s!Sans]     [Gayathri-Thin]
156        \definefontsynonym [\s!SansBold] [Gayathri-Regular]
157    \stoptypescript
158
159    \starttypescript [\s!sans] [manjari] [\s!name]
160        \setups[\s!font:\s!fallback:\s!sans]
161        \definefontsynonym [\s!Sans   ]  [Manjari-Regular]
162        \definefontsynonym [\s!SansBold] [Manjari-Bold]
163    \stoptypescript
164
165    \starttypescript [\s!sans] [manjari-thin] [\s!name]
166        \setups[\s!font:\s!fallback:\s!sans]
167        \definefontsynonym [\s!Sans]     [Manjari-Thin]
168        \definefontsynonym [\s!SansBold] [Manjari-Regular]
169    \stoptypescript
170
171    \starttypescript [\s!sans] [baloo-chettan] [\s!name]
172        \setups[\s!font:\s!fallback:\s!sans]
173        \definefontsynonym [\s!Sans]            [BalooChettan2-Regular]
174        \definefontsynonym [\s!SansBold]        [BalooChettan2-Bold]
175        \definefontsynonym [\s!SansSlanted]     [BalooChettan2-Medium]
176        \definefontsynonym [\s!SansBoldSlanted] [BalooChettan2-Semibold]
177    \stoptypescript
178
179    \starttypescript [\s!sans] [baloo-chettan-extrabold] [name]
180        \setups[\s!font:\s!fallback:\s!sans]
181        \definefontsynonym [\s!Sans]            [BalooChettan2-Medium]
182        \definefontsynonym [\s!SansSlanted]     [BalooChettan2-Semibold]
183        \definefontsynonym [\s!SansBoldSlanted] [BalooChettan2-Bold]
184        \definefontsynonym [\s!SansBold]        [BalooChettan2-Extrabold]
185    \stoptypescript
186
187    % Typefaces:
188
189    \starttypescript [rit-rachana,rit-sundar,panmana]
190        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [\typescriptone] [\s!default] [\s!rscale=1.25]
191        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [dejavu] [\s!default]
192        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [dejavu] [\s!default]
193        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [dejavu] [\s!default]
194    \stoptypescript
195
196    \starttypescript [ezhuthu,karumbi,tn-joy,tn-joy-extrabold]
197        \definetypeface [\typescriptone] [\s!ss] [\s!sans] [\typescriptone] [\s!default] [\s!rscale=1.25]
198        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [dejavu] [\s!default]
199        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [dejavu] [\s!default]
200        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [dejavu] [\s!default]
201    \stoptypescript
202
203    \starttypescript [chilanka,anjali-oldlipi]
204        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [\typescriptone] [\s!default]
205        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [dejavu]         [\s!default]
206        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [dejavu]         [\s!default]
207        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [dejavu]         [\s!default]
208    \stoptypescript
209
210    \starttypescript [dyuthi,gayathri,gayathri-thin,manjari,manjari-thin]
211        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [\typescriptone] [\s!default] [\s!rscale=1.1]
212        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [dejavu]         [\s!default]
213        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [dejavu]         [\s!default]
214        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [dejavu]         [\s!default]
215    \stoptypescript
216
217    \starttypescript [baloo-chettan,baloo-chettan-extrabold]
218        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [baloo-chettan] [\s!default]
219        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [dejavu]        [\s!default]
220        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [dejavu]        [\s!default]
221        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [dejavu]        [\s!default]
222    \stoptypescript
223
224\stoptypescriptcollection
225