summaryrefslogtreecommitdiff
path: root/obsolete/macros/latex209/contrib/ml/cmcyr.sty
blob: 47e02fceac207ddd5823e9b9b665cc44fcdd9440 (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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
%%
%% This is file `cmcyr.sty'
%% Modified for use with DVIps
\def\fileversion{1.1}
\def\filedate{94/09/16}
\def\docdate {}

\expandafter\ifx\csname daterussian\endcsname\else\endinput\fi
\typeout{Style Option: `cmcyr'
  \fileversion\space <\filedate>}
%\typeout{English Documentation:
%  \@spaces\space <\docdate>}

%\def\@fonterr#1#2{%
%\edef\@tempc{#2}\expandafter\errhelp\expandafter{\@tempc}%
%\typeout{Font Selection error.^^J
% Type \space H <return> \space for  immediate help.}\errmessage{#1}}
%
\wlog{Style Option: `cmcyr'  \fileversion\space <\filedate>}
\expandafter\ifx\csname selectfont\endcsname
        \typeout{The `cmcyr' style option can only be used
                 ^^Jwith the new font selection scheme.}\endinput\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%        Cyrillic
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%+
%     Medium weight series
%-
%
%    Cyrillic-Regular
%
\new@fontshape{cyr}{m}{n}{%
    <5>cmcyr10  at4.82pt%
    <6>cmcyr10  at6pt%
    <7>cmcyr10  at6.94pt%
    <8>cmcyr10  at8.33pt%
    <9>cmcyr10  at9pt%
    <10>cmcyr10 at10pt%
    <11>cmcyr10 at10.95pt%
    <12>cmcyr10 at12pt%
    <14>cmcyr10 at14.4pt%
    <17>cmcyr10 at17.28pt%
    <20>cmcyr10 at20.74pt%
    <25>cmcyr10 at24.88pt%
    }{}
%
%    Cyrillic-SansSerif
%
%\new@fontshape{cyr}{m}{sf}{%
%    <5>cmcss10  at4.82pt%
%    <6>cmcss10  at5.79pt%
%    <7>cmcss10  at6.94pt%
%    <8>cmcss10  at8.33pt%
%    <9>cmcss10  at9pt%
%    <10>cmcss10 at10pt%
%    <11>cmcss10 at10.95pt%
%    <12>cmcss10 at12pt%
%    <14>cmcss10 at14.4pt%
%    <17>cmcss10 at17.28pt%
%    <20>cmcss10 at20.74pt%
%    <25>cmcss10 at24.88pt%
%    }{}
%
%    Cyrillic-Italic
%
\new@fontshape{cyr}{m}{it}{%
    <5>cmcti10  at4.82pt%
    <6>cmcti10  at5.79pt%
    <7>cmcti10  at6.94pt%
    <8>cmcti10  at8.33pt%
    <9>cmcti10  at9pt%
    <10>cmcti10 at10pt%
    <11>cmcti10 at10.95pt%
    <12>cmcti10 at12pt%
    <14>cmcti10 at14.4pt%
    <17>cmcti10 at17.28pt%
    <20>cmcti10 at20.74pt%
    <25>cmcti10 at24.88pt%
    }{}
%
%    Cyrillic-Slanted
%
\new@fontshape{cyr}{m}{sl}{%
    <5>cmcsl10  at4.82pt%
    <6>cmcsl10  at5.79pt%
    <7>cmcsl10  at6.94pt%
    <8>cmcsl10  at8.33pt%
    <9>cmcsl10  at9pt%
    <10>cmcsl10 at10pt%
    <11>cmcsl10 at10.95pt%
    <12>cmcsl10 at12pt%
    <14>cmcsl10 at14.4pt%
    <17>cmcsl10 at17.28pt%
    <20>cmcsl10 at20.74pt%
    <25>cmcsl10 at24.88pt%
    }{}
%
%    Cyrillic-TypewriterType
%
\new@fontshape{cyr}{m}{tt}{%
    <5>cmctt10  at4.82pt%
    <6>cmctt10  at5.79pt%
    <7>cmctt10  at6.94pt%
    <8>cmctt10  at8.33pt%
    <9>cmctt10  at9pt%
    <10>cmctt10 at10pt%
    <11>cmctt10 at10.95pt%
    <12>cmctt10 at12pt%
    <14>cmctt10 at14.4pt%
    <17>cmctt10 at17.28pt%
    <20>cmctt10 at20.74pt%
    <25>cmctt10 at24.88pt%
    }{}
%+
%     The bold weight series
%-
%
%    Cyrillic-Bold
%
\new@fontshape{cyr}{b}{n}{%
    <5>cmcbx10  at4.82pt%
    <6>cmcbx10  at5.79pt%
    <7>cmcbx10  at6.94pt%
    <8>cmcbx10  at8.33pt%
    <9>cmcbx10  at9pt%
    <10>cmcbx10 at10pt%
    <11>cmcbx10 at10.95pt%
    <12>cmcbx10 at12pt%
    <14>cmcbx10 at14.4pt%
    <17>cmcbx10 at17.28pt%
    <20>cmcbx10 at20.74pt%
    <25>cmcbx10 at24.88pt%
    }{}
%
%    Cyrillic-BoldItalic
%
\new@fontshape{cyr}{b}{it}{%
    <5>cmcbxti1  at4.82pt%
    <6>cmcbxti1  at5.79pt%
    <7>cmcbxti1  at6.94pt%
    <8>cmcbxti1  at8.33pt%
    <9>cmcbxti1  at9pt%
    <10>cmcbxti1 at10pt%
    <11>cmcbxti1 at10.95pt%
    <12>cmcbxti1 at12pt%
    <14>cmcbxti1 at14.4pt%
    <17>cmcbxti1 at17.28pt%
    <20>cmcbxti1 at20.74pt%
    <25>cmcbxti1 at24.88pt%
    }{}
%
%    Cyrillic-BoldSlanted
%
\new@fontshape{cyr}{b}{sl}{%
    <5>cmcbxsl1  at4.82pt%
    <6>cmcbxsl1  at5.79pt%
    <7>cmcbxsl1  at6.94pt%
    <8>cmcbxsl1  at8.33pt%
    <9>cmcbxsl1  at9pt%
    <10>cmcbxsl1 at10pt%
    <11>cmcbxsl1 at10.95pt%
    <12>cmcbxsl1 at12pt%
    <14>cmcbxsl1 at14.4pt%
    <17>cmcbxsl1 at17.28pt%
    <20>cmcbxsl1 at20.74pt%
    <25>cmcbxsl1 at24.88pt%
    }{}
%
%    Cyrillic-BoldSansSerif
%
\new@fontshape{cyr}{b}{sf}{%
    <5>cmcssdc1  at4.82pt%
    <6>cmcssdc1  at5.79pt%
    <7>cmcssdc1  at6.94pt%
    <8>cmcssdc1  at8.33pt%
    <9>cmcssdc1  at9pt%
    <10>cmcssdc1 at10pt%
    <11>cmcssdc1 at10.95pt%
    <12>cmcssdc1 at12pt%
    <14>cmcssdc1 at14.4pt%
    <17>cmcssdc1 at17.28pt%
    <20>cmcssdc1 at20.74pt%
    <25>cmcssdc1 at24.88pt%
    }{}

\extra@def{cyr}{}{}

\def\graffiti{\protect\pgraffiti}
\def\@makefnmark{\raise 1ex\hbox{\scriptsize\@thefnmark}}

%+
%    Now make these fonts the defaults??
%-
\gdef\cyrmode{%
\def\pgraffiti{\family{cyr}\series{c}\shape{sl}\size{9}{10pt}\selectfont}%
   \chardef\Zh='021%
   \chardef\zh='031%
   \chardef\Ui='022%
   \chardef\ui='032%
   \chardef\Kh='110%
   \chardef\kh='150%
   \chardef\Ts='103%
   \chardef\ts='143%
   \chardef\Ch='121%
   \chardef\ch='161%
   \chardef\Sh='130%
   \chardef\sh='170%
   \chardef\Shch='127%
   \chardef\shch='167%
   \chardef\cDprime='137%
   \chardef\cdprime='176%
   \chardef\cPrime='136%
   \chardef\cprime='176%
   \chardef\Ee='003%
   \chardef\ee='013%
   \chardef\Yu='020%
   \chardef\yu='030%
   \chardef\Ya='027%
   \chardef\ya='037}
\gdef\transcyr{\family{cmr}\selectfont\@ifnextchar
   [{\@transcyr}{\@transcyr[n]}}
\def\@transcyr[#1]{\if #1s%
   \def\Zh{\v{Z}}%
   \def\zh{\v{z}}%
   \def\Ui{J}%
   \def\ui{j}%
   \def\Kh{Ch}%
   \def\kh{ch}%
   \def\Ts{C}%
   \def\ts{c}%
   \def\Ch{\v{C}}%
   \def\ch{\v{c}}%
   \def\Sh{\v{S}}%
   \def\sh{\v{s}}%
   \def\Shch{\v{S}\v{c}}%
   \def\shch{\v{s}\v{c}}%
   \def\cprime{\kern0pt'\kern0pt\relax}%
   \def\cPrime{\kern0pt'\kern0pt\relax}%
   \def\cdprime{\kern0pt'\kern0pt'\kern0pt\relax}%
   \def\cDprime{\kern0pt'\kern0pt'\kern0pt\relax}%
   \def\Ee{\`{E}}%
   \def\ee{\`{e}}%
   \def\Yu{\t{J}{u}}%
   \def\yu{\t{\j}{u}}%
   \def\Ya{\t{J}{a}}%
   \def\ya{\t{\j}{a}}%
\else\if #1n%
   \def\Zh{\t{Z}{h}}%
   \def\zh{\t{z}{h}}%
   \def\Ui{\t{U}{i}}%
   \def\ui{\t{u}{i}}%
   \def\Kh{\t{K}{h}}%
   \def\kh{\t{k}{h}}%
   \def\Ts{\t{T}{s}}%
   \def\ts{\t{t}{s}}%
   \def\Ch{\t{C}{h}}%
   \def\ch{\t{c}{h}}%
   \def\Sh{\t{S}{h}}%
   \def\sh{\t{s}{h}}%
   \def\Shch{\t{S}{h}\t{c}{h}}%
   \def\shch{\t{s}{h}\t{c}{h}}%
   \def\cprime{$^\prime$}%
   \def\cPrime{$\underline{^\prime}$}%
   \def\cDprime{$^{\prime\prime}$}%
   \def\cdprime{$\underline{^{\prime\prime}}$}%
   \def\Ee{\`{E}}%
   \def\ee{\`{e}}%
   \def\Yu{\t{Y}{u}}%
   \def\yu{\t{y}{u}}%
   \def\Ya{\t{Y}{a}}%
   \def\ya{\t{y}{a}}%
\fi\fi}
\gdef\cyr{\family{cyr}\selectfont\cyrmode\frenchpunctuation}
\endinput