summaryrefslogtreecommitdiff
path: root/tex/context/base/type-omg.tex
blob: 606b8449b65ce78125e9a9d29762210a9130064f (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
%D \module
%D   [       file=type-omg,
%D        version=2002.05.15,
%D          title=\CONTEXT\ Typescript Macros,
%D       subtitle=Basic \OMEGA\ Gamma Definitions,
%D         author={Idris Samawi Hamid, Hans Hagen},
%D           date=\currentdate,
%D      copyright={PRAGMA-ADE, Idris Samawi Hamid}]
%
%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 I need to document this module a bit. See \type {m-gamma}
%D for more information.

\definestyle [normalvariant] [\nv] [] % so we can get ucvtt (Unicode Variable Typewriter)

%D omarab:

\starttypescriptcollection[omega]

\starttypescript [naskh] [omega] [name]

  \definefontsynonym [OmegaArabic]       [omarab]
  \definefontsynonym [OmegaArabic-Bold]  [omarabb]

  \definefontsynonym [Naskh]             [OmegaArabic]
  \definefontsynonym [NaskhBold]         [OmegaArabic-Bold]

\stoptypescript

\starttypescript [naskh] [omega] [size]

  \definebodyfont
    [20.7pt,17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt]
    [rm]
    [tf=Naskh sa 1,
     bf=NaskhBold sa 1,
     it=Naskh sa 1,
     sl=Naskh sa 1,
     bi=NaskhBold sa 1,
     bs=NaskhBold sa 1,
     sc=Naskh sa 1]

\usetypescript [math] [computer-modern] [size]

\stoptypescript

\starttypescript [OmegaArab]

  \definebodyfontenvironment
    [omarb]
    [default]
    [interlinespace=3ex]

  \definetypeface [omarb] [rm] [naskh] [omega] [omega]

\stoptypescript

%D omlgc:

\starttypescript [serif] [omega] [name]

  \definefontsynonym [OmegaSerif]            [omlgc]
  \definefontsynonym [OmegaSerif-Bold]       [omlgcb]
  \definefontsynonym [OmegaSerif-Italic]     [omlgci]
  \definefontsynonym [OmegaSerif-Slanted]    [omlgci]
  \definefontsynonym [OmegaSerif-BoldItalic] [omlgcbi]
  \definefontsynonym [OmegaSerif-BoldSlanted][omlgcbi]
  \definefontsynonym [OmegaSerif-Caps]       [omlgc]

  \definefontsynonym [Serif]                 [OmegaSerif]
  \definefontsynonym [SerifBold]             [OmegaSerif-Bold]
  \definefontsynonym [SerifItalic]           [OmegaSerif-Italic]
  \definefontsynonym [SerifSlanted]          [OmegaSerif-Slanted]
  \definefontsynonym [SerifBoldItalic]       [OmegaSerif-BoldItalic]
  \definefontsynonym [SerifBoldSlanted]      [OmegaSerif-BoldSlanted]
  \definefontsynonym [SerifCaps]             [OmegaSerif-Caps]

\stoptypescript

\starttypescript [mono] [omega] [name]

  \definefontsynonym [OmegaMono]             [uctt10]
  \definefontsynonym [OmegaMono-Italic]      [ucitt10]
  \definefontsynonym [OmegaMono-Slanted]     [ucsltt10]
  \definefontsynonym [OmegaMono-Bold]        [uctt10]
  \definefontsynonym [OmegaMono-BoldItalic]  [ucitt10]
  \definefontsynonym [OmegaMono-BoldSlanted] [ucsltt10]
  \definefontsynonym [OmegaMono-Caps]        [uctt10]
  \definefontsynonym [OmegaMono-Variable]    [ucvtt10]

  \definefontsynonym [Mono]                  [OmegaMono]
  \definefontsynonym [MonoBold]              [OmegaMono-Bold]
  \definefontsynonym [MonoItalic]            [OmegaMono-Italic]
  \definefontsynonym [MonoSlanted]           [OmegaMono-Slanted]
  \definefontsynonym [MonoBoldItalic]        [OmegaMono-BoldItalic]
  \definefontsynonym [MonoBoldSlanted]       [OmegaMono-BoldSlanted]
  \definefontsynonym [MonoCaps]              [OmegaMono-Caps]
  \definefontsynonym [MonoVariable]          [OmegaMono-Variable]

\stoptypescript

\starttypescript [serif] [omega] [size]

  \definebodyfont
    [20.7pt,17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt]
    [rm]
    [tf=Serif sa 1,
     bf=SerifBold sa 1,
     it=SerifItalic sa 1,
     sl=SerifSlanted sa 1,
     bi=SerifBoldItalic sa 1,
     bs=SerifBoldSlanted sa 1,
     sc=SerifCaps sa 1]

\usetypescript [math,sans] [computer-modern] [size]

\stoptypescript

%D In order to get default Unicode Variable Typewriter,
%D uncomment the first \type {\definebodyfont} and then
%D comment the rest of this typescript.

\starttypescript [mono] [omega] [size]

% \definebodyfont
%   [20.7pt,17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt]
%   [rm]
%   [tf=MonoVariable sa 1,
%    bf=MonoBold sa 1
%    it=MonoItalic sa 1,
%    sl=MonoSlanted sa 1,
%    bi=MonoBoldItali sa 1,
%    bs=MonoBoldSlanted sa 1,
%    sc=MonoCaps sa 1]

  \definebodyfont
    [20.7pt,17.3pt,14.4pt,12pt,11pt]
    [tt]
    [tf=uctt12 sa 1,
     bf=uctt12 sa 1,
     it=ucitt10 sa 1,
     sl=ucsltt10 sa 1,
     bi=ucitt10 sa 1,
     bs=ucsltt10 sa 1,
     sc=uctt10 sa 1,
     nv=ucvtt10 sa 1]

  \definebodyfont
    [10pt]
    [tt]
    [tf=uctt10 at 10pt,
     bf=uctt10 at 10pt,
     it=ucitt10 at 10pt,
     sl=ucsltt10 at 10pt,
     bi=ucitt10 at 10pt,
     bs=ucsltt10 at 10pt,
     sc=uctt10 at 10pt,
     nv=ucvtt10 at 10pt]

  \definebodyfont
    [9pt]
    [tt]
    [tf=uctt9 at 9pt,
     bf=uctt9 at 9pt,
     it=ucitt10 at 9pt,
     sl=ucsltt10 at 9pt,
     bi=ucitt10 at 9pt,
     bs=ucsltt10 at 9pt,
     sc=uctt10 at 9pt,
     nv=ucvtt10 at 9pt]

  \definebodyfont
    [8pt,7pt,6pt,5pt,4pt]
    [tt]
    [tf=uctt8 sa 1,
     bf=uctt8 sa 1,
     it=ucitt10 sa 1,
     sl=ucsltt10 sa 1,
     bi=ucitt10 sa 1,
     bs=ucsltt10 sa 1,
     sc=uctt10 sa 1,
     nv=ucvtt10 sa 1]

\stoptypescript

\starttypescript [OmegaLGC]

  \definebodyfontenvironment
    [omlgc]
    [default]
    [interlinespace=2.8ex]

  \definetypeface [omlgc] [rm] [serif] [omega] [omega]
  \definetypeface [omlgc] [tt] [mono] [omega] [omega]

\stoptypescript

\stoptypescriptcollection

\endinput