summaryrefslogtreecommitdiff
path: root/tex/context/base/type-gyr.tex
blob: acc55e97c8b55e15fde26bd530a1297eda3d18f7 (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
%D \module
%D   [       file=type-gyr,
%D        version=2006.06.28,
%D          title=\CONTEXT\ Typescript Macros,
%D       subtitle=TeXGyre Collection,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright=PRAGMA]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

% \usetypescriptfile[type-gyr]
% \definetypeface[pagella][rm][serif][pagella][default][encoding=t5]
% \setupbodyfont[pagella]
% \starttext
% \startlines
% hello world 123
% {hello \Var[sc] world 123}
% {\it hello \Var[sc]world \Var[reset] 123}
% {\bf hello \Var[osf] {\Var[reset] world} 123}
% {\bi hello world \Var[osf]123}
% {\sc hello \Var[sc] world \Var[reset] 123}
% \stoplines
% \showfont[SerifItalicCaps]
% \stoptext

% Beware, because tetex demanded a different map file naming scheme, we ship
% alternatively named files as well, just to make sure that older installations
% still work (where users may load their own instances). In due time we will
% follow that scheme (well, in due time we will drop map files anyway).

\starttypescriptcollection[gyre]

%D First we define the new ones. Watch how we use the systematic name composition.

\definetypescriptprefix [n:pagella] [TeXGyrePagella]
\definetypescriptprefix [n:termes]  [TeXGyreTermes]
\definetypescriptprefix [n:bonum]   [TeXGyreBonum]
\definetypescriptprefix [n:schola]  [TeXGyreSchola]

\definetypescriptprefix [f:pagella] [pl]
\definetypescriptprefix [f:termes]  [tm]
\definetypescriptprefix [f:bonum]   [bk]
\definetypescriptprefix [f:schola]  [cs]

\starttypescript [serif] [pagella,termes,bonum,schola] [ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x]
% \loadmapfile[\typescriptthree-q\typescriptprefix{f:\typescripttwo}.map]
  \loadmapfile[q\typescriptprefix{f:\typescripttwo}-\typescriptthree.map]

  \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Regular]        [\typescriptthree-q\typescriptprefix{f:\typescripttwo}r]     [encoding=\typescriptthree]
  \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Italic]         [\typescriptthree-q\typescriptprefix{f:\typescripttwo}ri]    [encoding=\typescriptthree]
  \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Bold]           [\typescriptthree-q\typescriptprefix{f:\typescripttwo}b]     [encoding=\typescriptthree]
  \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldItalic]     [\typescriptthree-q\typescriptprefix{f:\typescripttwo}bi]    [encoding=\typescriptthree]
  \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Caps]           [\typescriptthree-q\typescriptprefix{f:\typescripttwo}r-sc]  [encoding=\typescriptthree]
  \definefontsynonym [\typescriptprefix{n:\typescripttwo}-ItalicCaps]     [\typescriptthree-q\typescriptprefix{f:\typescripttwo}ri-sc] [encoding=\typescriptthree]
  \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldCaps]       [\typescriptthree-q\typescriptprefix{f:\typescripttwo}b-sc]  [encoding=\typescriptthree]
  \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldItalicCaps] [\typescriptthree-q\typescriptprefix{f:\typescripttwo}bi-sc] [encoding=\typescriptthree]

  \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Slanted]        [\typescriptprefix{n:\typescripttwo}-Italic]
  \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldSlanted]    [\typescriptprefix{n:\typescripttwo}-BoldItalic]
\stoptypescript

\starttypescript [serif] [pagella,termes,bonum,schola] [name]
  \definefontsynonym [Serif]                [\typescriptprefix{n:\typescripttwo}-Regular]
  \definefontsynonym [SerifItalic]          [\typescriptprefix{n:\typescripttwo}-Italic]
  \definefontsynonym [SerifBold]            [\typescriptprefix{n:\typescripttwo}-Bold]
  \definefontsynonym [SerifBoldItalic]      [\typescriptprefix{n:\typescripttwo}-BoldItalic]
  \definefontsynonym [SerifCaps]            [\typescriptprefix{n:\typescripttwo}-Caps]
  \definefontsynonym [SerifSlanted]         [\typescriptprefix{n:\typescripttwo}-Slanted]
  \definefontsynonym [SerifBoldSlanted]     [\typescriptprefix{n:\typescripttwo}-BoldSlanted]

  \definefontvariant [Serif][osf][Caps]
  \definefontvariant [Serif][sc] [Caps]

  \definefontsynonym [SerifRegular]         [\typescriptprefix{n:\typescripttwo}-Regular]
  \definefontsynonym [SerifRegularCaps]     [\typescriptprefix{n:\typescripttwo}-Caps]
  \definefontsynonym [SerifItalicCaps]      [\typescriptprefix{n:\typescripttwo}-ItalicCaps]
  \definefontsynonym [SerifBoldCaps]        [\typescriptprefix{n:\typescripttwo}-BoldCaps]
  \definefontsynonym [SerifBoldItalicCaps]  [\typescriptprefix{n:\typescripttwo}-BoldItalicCaps]
  \definefontsynonym [SerifCapsCaps]        [\typescriptprefix{n:\typescripttwo}-Caps]
  \definefontsynonym [SerifSlantedCaps]     [\typescriptprefix{n:\typescripttwo}-ItalicCaps]
  \definefontsynonym [SerifBoldSlantedCaps] [\typescriptprefix{n:\typescripttwo}-BoldItalicCaps]

\stoptypescript

\starttypescript [map] [pagella,termes,bonum,schola] [ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x]
% \loadmapfile[\typescriptthree-q\typescriptprefix{f:\typescripttwo}.map]
  \loadmapfile[q\typescriptprefix{f:\typescripttwo}-\typescriptthree.map]
\stoptypescript

%D Here we overload the older (URW) fonts.

% TeXGyrePagella
%
% qplr  TeXGyrePagella-Regular
% qplri TeXGyrePagella-Italic
% qplb  TeXGyrePagella-Bold
% qplbi TeXGyrePagella-BoldItalic

\starttypescript [serif] [palatino] [ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x]
% \loadmapfile[\typescriptthree-qpl.map]
  \loadmapfile[qpl-\typescriptthree.map]

  \definefontsynonym [Palatino]             [\typescriptthree-qplr]    [encoding=\typescriptthree]
  \definefontsynonym [Palatino-Italic]      [\typescriptthree-qplri]   [encoding=\typescriptthree]
  \definefontsynonym [Palatino-Bold]        [\typescriptthree-qplb]    [encoding=\typescriptthree]
  \definefontsynonym [Palatino-BoldItalic]  [\typescriptthree-qplbi]   [encoding=\typescriptthree]
  \definefontsynonym [Palatino-Caps]        [\typescriptthree-qplr-sc] [encoding=\typescriptthree]

  \definefontsynonym [Palatino-Slanted]     [Palatino-Italic]
  \definefontsynonym [Palatino-BoldSlanted] [Palatino-BoldItalic]
\stoptypescript

% TeXGyreTermes
%
% qtmr  TeXGyreTermes-Regular
% qtmri TeXGyreTermes-Italic
% qtmb  TeXGyreTermes-Bold
% qtmbi TeXGyreTermes-BoldItalic

\starttypescript [serif] [times] [ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x]
% \loadmapfile[\typescriptthree-qtm.map]
  \loadmapfile[qtm-\typescriptthree.map]

  \definefontsynonym [Times-Roman]       [\typescriptthree-qtmr]    [encoding=\typescriptthree]
  \definefontsynonym [Times-Italic]      [\typescriptthree-qtmri]   [encoding=\typescriptthree]
  \definefontsynonym [Times-Bold]        [\typescriptthree-qtmb]    [encoding=\typescriptthree]
  \definefontsynonym [Times-BoldItalic]  [\typescriptthree-qtmbi]   [encoding=\typescriptthree]
  \definefontsynonym [Times-Caps]        [\typescriptthree-qtmr-sc] [encoding=\typescriptthree]

  \definefontsynonym [Times-Slanted]     [Times-Italic]
  \definefontsynonym [Times-BoldSlanted] [Times-BoldItalic]
\stoptypescript

% TeXGyreBonum
%
% qtmr  TeXGyreBonum-Regular
% qtmri TeXGyreBonum-Italic
% qtmb  TeXGyreBonum-Bold
% qtmbi TeXGyreBonum-BoldItalic

\starttypescript [serif] [bookman] [ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x]
% \loadmapfile[\typescriptthree-qbk.map]
  \loadmapfile[qbk-\typescriptthree.map]

  \definefontsynonym [Bookman-Light]           [\typescriptthree-qbkr]    [encoding=\typescriptthree]
  \definefontsynonym [Bookman-LightItalic]     [\typescriptthree-qbkri]   [encoding=\typescriptthree]
  \definefontsynonym [Bookman-DemiBold]        [\typescriptthree-qbkb]    [encoding=\typescriptthree]
  \definefontsynonym [Bookman-DemiBoldItalic]  [\typescriptthree-qbkbi]   [encoding=\typescriptthree]
  \definefontsynonym [Bookman-Light-Caps]      [\typescriptthree-qbkr-sc] [encoding=\typescriptthree]

  \definefontsynonym [Bookman-LightSlanted]    [Bookman-LightItalic]
  \definefontsynonym [Bookman-DemiBoldSlanted] [Bookman-DemiBoldItalic]
\stoptypescript

% TeXGyreScola
%
% qcsr  TeXGyreSchola-Regular
% qcsri TeXGyreSchola-Italic
% qcsb  TeXGyreSchola-Bold
% qcsbi TeXGyreSchola-BoldItalic

\starttypescript [serif] [schoolbook] [ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x]
% \loadmapfile[\typescriptthree-qcs.map]
  \loadmapfile[qcs-\typescriptthree.map]

  \definefontsynonym [Schoolbook-Roman]       [\typescriptthree-qcsr]    [encoding=\typescriptthree]
  \definefontsynonym [Schoolbook-Italic]      [\typescriptthree-qcsri]   [encoding=\typescriptthree]
  \definefontsynonym [Schoolbook-Bold]        [\typescriptthree-qcsb]    [encoding=\typescriptthree]
  \definefontsynonym [Schoolbook-BoldItalic]  [\typescriptthree-qcsbi]   [encoding=\typescriptthree]
  \definefontsynonym [Schoolbook-Roman-Caps]  [\typescriptthree-qcsr-sc] [encoding=\typescriptthree]

  \definefontsynonym [Schoolbook-Slanted]     [Schoolbook-Italic]
  \definefontsynonym [Schoolbook-BoldSlanted] [Schoolbook-BoldItalic]
\stoptypescript

\stoptypescriptcollection