summaryrefslogtreecommitdiff
path: root/language/cyrillic/doc/cyrillic.notes
blob: 77f3e151619c86b18a7f6e914b368733c9a21497 (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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
From uucp Tue May 12 06:33:32 1987
From: cheviot.newcastle.ac.uk!EXETER.AC.UK!BOOTH.CM remote from sot-mao
Received: from sot-mao by cm.soton.ac.uk; Tue May 12 06:33:29 GMT 1987
Sender: maori.soton.ac.uk!cheviot.newcastle.ac.uk!EXETER.AC.UK!BOOTH.CM
Received: from cheviot by maori.soton.ac.uk; Tue, 12 May 87 06:07:50 BST
Received: from uk.ac.ex by uk.ac.newcastle.cheviot; Mon, 11 May 87 17:16:06 +0100
Date:       Mon, 11 May 87 16:54:49 BST
To: SPQR%UK.AC.SOTON.CM@CHEVIOT.NEWCASTLE.AC.UK
From: BOOTH.CM@EXETER.AC.UK
Subject:    cyrillix
Message-Id: <BOOTH.CM.RIJL@UK.AC.EXETER>
 

Here's the cyrillic files from barbara beeton:

cyracc.def - definitions supporting the cyrillic fonts
cyrmemo.def and cyrmemo.tex - input instructions
cyrillic.ligs - details of the ligaturing scheme used to
            implement the input scheme (for info)

cathy


Message 90 -- ************************
 8-May-87 22:00:50-EDT,12420;000000000001
Return-Path: <BEETON@Score.Stanford.EDU>
Received: from ohio-state.ARPA (OSU-EDDIE.#Internet) by OSU-20 with TCP; Fri 8 May 87 21:56:51-EDT
Return-Path: <BEETON@Score.Stanford.EDU>
Received: from Score.Stanford.EDU (score.stanford.edu.ARPA) by ohio-state.ARPA (4.12/6.1.OSU-CIS)
        id AA08807; Fri, 8 May 87 21:55:51 edt
Date: Fri 8 May 87 18:50:44-PDT
From: Barbara Beeton <BEETON@Score.Stanford.EDU>
Subject: Re: [mcvax!ux63.bath.ac.uk!cc_dc@seismo.CSS.GOV: Documentation and CYRACC.DEF for Cyrillic]
To: crawford-j@osu-eddie
In-Reply-To: <8705081740.AA02272@ohio-state.ARPA>
Message-Id: <12300865214.13.BEETON@Score.Stanford.EDU>

be glad to ftp the files.  in fact, ...

%                       *****   CYRACC.DEF      *****           11 Aug 85, bb
%
%       This file contains definitions of accents and special characters
%       required for cyrillic.  The \font specification(s) should be made
%       elsewhere, and should include
%               \newfam\cyrfam
%               \font\...cyr=mcyr...
%
%       An appropriate definition for cyrillic, usable in math and text, is
%               \def\cyr{\fam\cyrfam\...cyr\cyracc}
%
%       See end of file (after \endinput) for notes.


\def\ubar#1{\oalign{#1\crcr\hidewidth
    \vbox to.2ex{\hbox{\char22}\vss}\hidewidth}}
%       this is definition of \b from PLAIN; it may not work in math mode
\def\cydot{$\cdot$}     % temporary -- real dot will be in accent font

\def\cprime{$'$}
\def\Cprime{$'$}
\def\cdprime{$''$}
\def\Cdprime{$\ubar{\hbox{$''$}}$}

\def\dbar{dj}           % make real barred d when accent font available
\def\Dbar{Dj}           %  ""

\def\dz{dz}             % ultimately, d will have to become active, to
\def\Dz{Dz}             % make these control sequences unnecessary
\def\dzh{dzh\cydot }
\def\Dzh{Dzh\cydot }

\def\cyracc{\def\cydot{{\kern0pt}}%
        \def\cprime{\char"7E }\def\Cprime{\char"5E }%
        \def\cdprime{\char"7F }\def\Cdprime{\char"5F }%
        \def\dbar{dj}\def\Dbar{Dj}%
        \def\dz{\char"1E }\def \Dz{\char"16 }%
        \def\dzh{\char"0A }\def \Dzh{\char"02 }%
        \def\'##1{\if c##1\char"0F %
                \else \if C##1\char"07 %
                \else \accent"26 ##1\fi \fi }%
        \def\`##1{\if e##1\char"0B %
                \else \if E##1\char"03 %
                \else \errmessage{accent \string\` not defined in cyrillic}%
                                ##1\fi \fi }%
        \def\=##1{\if e##1\char"0D %
                \else \if E##1\char"05 %
                \else \if \i##1\char"0C %
                \else \if I##1\char"04 %
                \else \errmessage{accent \string\= not defined in cyrillic}%
                                ##1\fi \fi \fi \fi }%
        \def\u##1{\if \i##1\accent"24 i%
                \else \accent"24 ##1\fi }%
        \def\"##1{\if \i##1\accent"20 \char"3D %
                \else \if I##1\accent"20 \char"04 %
                \else \accent"20 ##1\fi \fi }}

\endinput
 % octal 214 removed jmcosu

%                       *****   CYRMEMO.TEX      *****           18 Aug 84, bb
%
%       Access to the cyrillic is through the new MR transliteration scheme,
%       using TeX/Metafont ligature capability.  (An alternate set of
%       ligatures exists, for accessing letters beyond the 26 located in
%       the font positions of the 26 roman letters.  An authoritative list
%       of the ligature rules is in the file  cyrillic.ligs.)  Successful
%       use of this file requires appropriate cyrillic and accent fonts,
%       arranged according to the AMS/MR scheme.
%
%       This is an interim version.  Not everything works yet.
%       The following are known to be less than satisfactory:
%
%       the intermediate `ligatures' for shch access numerals;
%       primes (transliteration of hard/soft signs) use math mode;
%       underbar on `cap' double prime is too low (hard sign);
%       thorn d's don't yet exist;
%       \cydot uses math mode.
%
%
%       Notes on the macros:
%
%       The single space following each hex character code is necessary
%       to prevent the next input character from being gobbled.

%%%%%%%%%%

\input cyrmemo.def

\date 12 August 1985<
\fromname Barbara N. Beeton\\
        Computer Services Division<

\toname Users of AMS cyrillic in \TeX<

\longsub \TeX82 Cyrillic input instructions<
\shortsub \TeX82 Cyrillic input<

\topinfo

The AMS cyrillic fonts have been designed so that input using the
``new'' (post-1982) Math.~Reviews cyrillic transliteration will be
converted directly to cyrillic text.  An alternate input form is
available for most cyrillic letters which are not transliterated by
the equivalent single roman letters.  Numerals and punctuation follow
the normal input conventions for roman.  Cyrillic is indicated to
\TeX\ by the command |{\cyr...}|.

The table below is in alphabetical order as given in the table published
in the 1983 MR Author Index.  The three paired columns contain:\ \ %
(1)~cyrillic;
(2)~transliteration-style input;
(3)~alternate input, if any.

\bigskip

\parindent=0pt
\parskip=0pt
\baselineskip=15pt

\newbox\BoxA
\newbox\BoxB

\def\TwoUp{\centerline{%
        \valign{##\vfil\cr
                \box\BoxA\cr
                \noalign{\hfil\vrule\hfil}
                \box\BoxB\cr}}}

\newbox\TestBox
\setbox\TestBox=\hbox{\quad\cyr Zh}
\newdimen\cyrwd
\cyrwd=\wd\TestBox
\setbox\TestBox=\hbox{\enskip\tt xCdprime}
\newdimen\ttawd
\ttawd=\wd\TestBox
\setbox\TestBox=\hbox{\enskip\tt N0}
\newdimen\ttbwd
\ttbwd=\wd\TestBox


\settabs \+\hskip\cyrwd &\hskip\cyrwd\quad
                &\hskip\ttawd &\hskip\ttawd\quad
                &\hskip\ttbwd &\hskip\ttbwd\cr

% \def\1 #1,#2;#3,#4;#5,#6<{\+{\cyr\ignorespaces#1}%
%       &{\cyr\ignorespaces#2\hfil}%
%       &\ignorespaces#3\hfil &\ignorespaces#4\hfil
%       &{\tt\ignorespaces#5\hfil}&{\tt\ignorespaces#6\hfil}}

\setbox\BoxA=\vbox{\hsize=.45\hsize \tt
\+{\cyr A}&{\cyr a}& |A| & |a| &  & \cr
\+{\cyr B}&{\cyr b}& |B| & |b| &  & \cr
\+{\cyr V}&{\cyr v}& |V| & |v| &  & \cr
\+{\cyr G}&{\cyr g}& |G| & |g| &  & \cr
\+{\cyr D}&{\cyr d}& |D| & |d| &  & \cr
\+{\cyr Dj}&{\cyr dj}& |Dj| & |dj| & D1 & d1\cr
\+{\cyr \'G}&{\cyr \'g}& |\'G| & |\'g| &  & \cr
\+{\cyr E}&{\cyr e}& |E| & |e| &  & \cr
\+{\cyr \"E}&{\cyr \"e}& |\"E| & |\"e| &  & \cr
\+{\cyr \=E}&{\cyr \=e}& |\=E| & |\=e| & E2 & e2\cr
\+{\cyr Zh}&{\cyr zh}& |Zh| & |zh| & Z1 & z1\cr
\+{\cyr Z}&{\cyr z}& |Z| & |z| &  & \cr
\+{\cyr I}&{\cyr i}& |I| & |i| &  & \cr
\+{\cyr \=I}&{\cyr \=\i}& |\=I| & |\=\i| & I1 & i1\cr
\+{\cyr \"I}&{\cyr \"\i}& |\"I| & |\"\i| &  & \cr
\+{\cyr J}&{\cyr j}& |J| & |j| &  & \cr
\+{\cyr \u I}&{\cyr \u\i}& |\u I| & |\u\i| &  & \cr
\+{\cyr K}&{\cyr k}& |K| & |k| &  & \cr
\+{\cyr L}&{\cyr l}& |L| & |l| &  & \cr
\+{\cyr Lj}&{\cyr lj}& |Lj| & |lj| & L1 & l1\cr
\+{\cyr M}&{\cyr m}& |M| & |m| &  & \cr
\+{\cyr N}&{\cyr n}& |N| & |n| &  & \cr
\+{\cyr Nj}&{\cyr nj}& |Nj| & |nj| & N1 & n1\cr
\+{\cyr O}&{\cyr o}& |O| & |o| &  & \cr
\+{\cyr P}&{\cyr p}& |P| & |p| &  & \cr
}       % end \BoxA

\setbox\BoxB=\vbox{\hsize=.45\hsize \tt
\+{\cyr R}&{\cyr r}& |R| & |r| &  & \cr
\+{\cyr S}&{\cyr s}& |S| & |s| &  & \cr
\+{\cyr T}&{\cyr t}& |T| & |t| &  & \cr
\+{\cyr \'C}&{\cyr \'c}& |\'C| & |\'c| & C1 & c1\cr
\+{\cyr \'K}&{\cyr \'k}& |\'K| & |\'k| &  & \cr
\+{\cyr U}&{\cyr u}& |U| & |u| &  & \cr
\+{\cyr \u U}&{\cyr \u u}& |\u U| & |\u u| &  & \cr
\+{\cyr F}&{\cyr f}& |F| & |f| &  & \cr
\+{\cyr Kh}&{\cyr kh}& |Kh| & |kh| & H & h\cr
\+{\cyr Ts}&{\cyr ts}& |Ts| & |ts| & C & c\cr
\+{\cyr Ch}&{\cyr ch}& |Ch| & |ch| & Q & q\cr
\+{\cyr \Dzh}&{\cyr \dzh}& |\Dzh| & |\dzh| & D2 & d2\cr
\+{\cyr Sh}&{\cyr sh}& |Sh| & |sh| & X & x\cr
\+{\cyr Shch}&{\cyr shch}& |Shch| & |shch| & W & w\cr
\+{\cyr \Cdprime}&{\cyr \cdprime}& |\Cdprime| & |\cdprime| & P2 & p2\cr
\+{\cyr Y}&{\cyr y}& |Y| & |y| &  & \cr
\+{\cyr \Cprime}&{\cyr \cprime}& |\Cprime| & |\cprime| & P1 & p1\cr
\+{\cyr \`E}&{\cyr \`e}& |\`E| & |\`e| & E1 & e1\cr
\+{\cyr Yu}&{\cyr yu}& |Yu| & |yu| & J2 & j2\cr
\+{\cyr Ya}&{\cyr ya}& |Ya| & |ya| & J1 & j1\cr
\+{\cyr \Dz}&{\cyr \dz}& |\Dz| & |\dz| & D3 & d3\cr
\+{\cyr N0}&  &  &  & N0 & \cr
\+{\cyr <}&  & |<| &  &  & \cr
\+{\cyr >}&  & |>| &  &  & \cr
\+\hbox to \hsize{}\cr
}       % end \BoxB

\TwoUp

\bigskip
\normalbaselines

\noindent In addition to the input codes shown in the table, the code
|\cydot| is used between letters that ordinarily become ligatures to
indicate that they are really separate letters.  For example,
|t\cydot s|${}\mapsto{}${\cyr t\cydot s} (in transliteration, t\cydot s)
as opposed to |ts|${}\mapsto{}${\cyr ts}.

\medskip

\noindent {\bf Technical notes:}\ \ The names of the AMS cyrillic fonts
begin with the letters ``|MC|'' (for ``Math Society cyrillic'').  Only
|MCYR| (lightface) is available at present, but several other styles
are under construction: |MCB| (bold), |MCSS| (sans serif),
|MCSSB| (bold sans serif), and others may be added from time to time.
These fonts were prepared using {\smc Metafont79}.
In addition to the font files, the file |CYRACC.DEF| must also be
input for the complete cyrillic alphabet to be usable according to these
instructions.

\vfil\end

%%%%%%%%%%

%               *****   CYRMEMO.DEF     *****                   11 Aug 85, bb
%
%       This file contains the instructions necessary to produce the memos
%       which describe the use of the AMS cyrillic font.  PLAIN is presumed
%       to be preloaded.  The cyrillic 10-point font is required, as is
%       the file CYRACC.DEF.

\newfam\cyrfam
\font\tencyr=mcyr10
\font\tensmc=amcsc10 \def\smc{\tensmc}

\input cyracc.def

\def\cyr{\tencyr\cyracc}


\newif\iffirstpage
\firstpagetrue
\newdimen\pagelgt
\pagelgt=9in
\newbox\letterhead
\setbox\letterhead=\vbox{\vskip 1pc
        \vbox to 0pt{\halign{\hss{#}\hss\cr
                \bf American Mathematical Society\cr
                P.\thinspace O.~Box 6248\cr
                Providence, RI 02940\cr}\vss}}
\vsize=\pagelgt
\advance\vsize by-\ht\letterhead

\headline={\iffirstpage \centerline{\bf INTEROFFICE MEMORANDUM}\else
   \line{\ssub \hfil \rdate\quad Page \folio}\fi}
\footline={\iffirstpage \rightline{\box\letterhead}\global\vsize=\pagelgt
   \global\firstpagefalse \fi}

\def \topitem#1#2{\leavevmode \hangindent 5pc \hbox to 5pc{\bf #1\hss}#2\par }

\def \toname #1<{\gdef\mto{\topitem{To:}{#1}}}
\def \fromname #1<{\gdef\mfrom{\topitem{From:}{#1}}}
\def \longsub #1<{\gdef\lsub{\topitem{Subject:}{#1}}}
\def \shortsub #1<{\gdef\ssub{#1}}

\def \date #1<{\gdef\mdate{\topitem{\bf Date:}{#1}}
                \gdef\rdate{#1}}

\def \topinfo{{\parindent=0pt
        \parskip=.5\baselineskip
        \def \\{\hfil\break }
        \mdate
        \mto
        \mfrom
        \lsub
        \vskip\baselineskip }}

 % octal 214 removed jmcosu

%       Support verbatim listing of TeX source, as defined in TeXbook, p. 421
%       lifted from MANMAC.TEX, and modified slightly as for TUGboat

\chardef\other=12
\def\ttverbatim{\begingroup
  \catcode`\\=\other \catcode`\{=\other
  \catcode`\}=\other \catcode`\$=\other \catcode`\&=\other
  \catcode`\#=\other \catcode`\%=\other \catcode`\~=\other
  \catcode`\_=\other \catcode`\^=\other
  \obeyspaces \obeylines \tt}

\newdimen\ttrightskip
\ttrightskip=5pc
   
\outer\def\begintt{$$\let\par=\endgraf \ttverbatim \parskip=\z@
  \catcode`\|=0 \rightskip=-\ttrightskip \ttfinish}
{\catcode`\|=0 |catcode`|\=\other % | is temporary escape character
  |obeylines % end of line is active
  |gdef|ttfinish#1^^M#2\endtt{#1|vbox{#2}|endgroup$$}}

\catcode`\|=\active
{\obeylines \gdef|{\ttverbatim \spaceskip\ttglue \let^^M=\  \let|=\endgroup}}

\newskip\ttglue
{\tentt \global\ttglue=.5em plus .25em minus .15em}
% this should be installed in each font


%%%%%%%%%%

<mf82.amf>CYRILLIC.LIGS   This is a list of all the letter ligatures in
the AMS cyrillic fonts.  Please keep this file up to date.      29 Jun 84

LOWER CASE LIGATURES
    A.  All-letter ligatures

ch = `q
dj = '016
kh = `h
lj = '011
nj = '010
sh = `x; xc = `7 (shc); 7h = `w (shch)
ts = `c
ya = '037
yu = '030
zh = '031

    B.  Ligatures with keyed numerals

c1 = '017
d1 = '016 (dj); d2 = '012 (dzh); d3 = '036 (dz)
e1 = '013; e2 = '015
i1 = '014
j1 = '037 (ya); j2 = '030 (yu)
l1 = '011 (lj)
n1 = '010 (nj)
p1 = '176; p2 = '177
z1 = '031 (zh)

UPPER CASE LIGATURES
    A.  All-letter ligatures

CH, Ch = `Q
KH, Kh = `H
LJ, Lj = '001
NJ, Nj = '000
SH, Sh = `X; XH, Xh = `6 (SHC, SHc, Shc); 6H, 6h = `W (SHCH, SHCh, SHch, Shch)
TS, Ts = `C
YA, Ya = '027
YU, Yu = '020
ZH, Zh = '021

    B.  Ligatures with keyed numerals

C1 = '007
D1 = '006 (DJ); D2 = '002 (DZH); D3 = '026 (DZ)
E1 = '003; E2 = '005
I1 = '004
J1 = '027 (YA); J2 = '020 (YU)
L1 = '001 (LJ)
N0 = '175 (Number sign); N1 = '000 (NJ)
P1 = '136; P2 = '137
Z1 = '021 (ZH)

DEACTIVATED LIGATURES
The following were the original way of building dzh and DZH ligs, but were not
compatible with desired keyboarding schemes.

dz = '036; '036(roman s)h = '012 (dzh)
DZ = '026; '026(roman S)H = '002 (DZH)
-------