type-imp-telugu.mkxl /size: 3659 b    last modification: 2024-01-16 10:22
1%D \module
2%D   [       file=type-imp-telugu,
3%D        version=2022.01.27,
4%D          title=\CONTEXT\ Typescript Macros,
5%D       subtitle=Telugu,
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\starttypescriptcollection[telugu]
15
16    \doifunknownfontfeature {telugu-bold-30} {\definefontfeature[telugu-bold-30][boldened-30]}
17    \doifunknownfontfeature {telugu-slant}   {\definefontfeature[telugu-slant][slant=0.25]}
18
19    % Symbolic names for fonts:
20
21    \starttypescript [\s!serif] [murty-telugu]
22        \definefontsynonym [MurtyTelugu-Regular] [\s!name:murtyteluguregular] [\s!features=telugu-two]
23        \definefontsynonym [MurtyTelugu-Bold]    [\s!name:murtyteluguregular] [\s!features={telugu-two,telugu-bold-30}]
24    \stoptypescript
25
26    \starttypescript [\s!sans] [baloo-tammudu, baloo-tammudu-extrabold]
27        \definefontsynonym [BalooTammudu2-Regular]          [\s!name:balootammudu2regular]   [\s!features=telugu-two]
28        \definefontsynonym [BalooTammudu2-Medium]           [\s!name:balootammudu2medium]    [\s!features=telugu-two]
29        \definefontsynonym [BalooTammudu2-Semibold]         [\s!name:balootammudu2semibold]  [\s!features=telugu-two]
30        \definefontsynonym [BalooTammudu2-Bold]             [\s!name:balootammudu2bold]      [\s!features=telugu-two]
31        \definefontsynonym [BalooTammudu2-Extrabold]        [\s!name:balootammudu2extrabold] [\s!features=telugu-two]
32    \stoptypescript
33
34    % Grouping of styles:
35
36    \starttypescript [\s!sans] [baloo-tammudu] [\s!name]
37        \setups[\s!font:\s!fallback:\s!serif]
38        \definefontsynonym [\s!Sans]            [BalooTammudu2-Regular]
39        \definefontsynonym [\s!SansSlanted]     [BalooTammudu2-Medium]
40        \definefontsynonym [\s!SansBold]        [BalooTammudu2-Bold]
41        \definefontsynonym [\s!SansBoldSlanted] [BalooTammudu2-Semibold]
42    \stoptypescript
43
44    \starttypescript [\s!sans] [baloo-tammudu-extrabold] [\s!name]
45        \setups[\s!font:\s!fallback:\s!serif]
46        \definefontsynonym [\s!Sans]            [BalooTammudu2-Medium]
47        \definefontsynonym [\s!SansSlanted]     [BalooTammudu2-Semibold]
48        \definefontsynonym [\s!SansBold]        [BalooTammudu2-Extrabold]
49        \definefontsynonym [\s!SansBoldSlanted] [BalooTammudu2-Bold]
50    \stoptypescript
51
52    \starttypescript [\s!serif] [murty-telugu] [\s!name]
53        \setups[\s!font:\s!fallback:\s!serif]
54        \definefontsynonym [\s!Serif]     [MurtyTelugu-Regular]
55        \definefontsynonym [\s!SerifBold] [MurtyTelugu-Bold]
56    \stoptypescript
57
58    % Typefaces:
59
60    \starttypescript [baloo-tammudu, baloo-tammudu-extrabold]
61        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [\typescriptone] [\s!default]
62        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [dejavu]         [\s!default]
63        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [dejavu]         [\s!default]
64        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [dejavu]         [\s!default]
65    \stoptypescript
66
67    \starttypescript [murty-telugu]
68        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [murty-telugu]   [\s!default]
69        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [dejavu]         [\s!default]
70        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [dejavu]         [\s!default]
71        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [dejavu]         [\s!default]
72    \stoptypescript
73
74\stoptypescriptcollection
75