This directory contains files which can be used to make russified
Plain TeX and other Plain TeX based formats, such as AMS-TeX, TeXinfo
or BLUe TeX, using LH fonts in `old' LCY encoding (similar to cp866).

Note, that your documents may be in any input encoding supported by
the T2 package (e.g., koi8-r, cp866, cp1251).

To install russian support for Plain TeX, AMS-TeX, TeXinfo or BLUe
TeX, please do the following steps:

1) To setup hyphenation, you will need russian hyphenation patterns
and a file `hyphen.cfg' (either from BABEL or created manually). It is
recommended to use russian hyphenation patterns contained in the
`ruhyphen' package (see the README in the parent directory for more
information). There you will find also documentation on installation
and usage of patterns. Note, that for all Plain TeX-based formats it
is recommended to use "combined" Russian-English patterns as a single
language to avoid necessity of language switching (you may use a
sample "language.dat" from the ruhyphen package when creating format
files).

2) If you want to be able to use input encodings other than cp866, you
should install the T2 package first. Then edit the file `cyrplain.ini',
and choose the default input encoding of your documents in the line
"\inputencoding{koi8-r}". In this case you must install BABEL, because
we use some files from BABEL (e.g., plain.def, hyphen.cfg).

Otherwise (if you will process only documents in cp866 encoding),
change "\iftrue" to "\iffalse" in `cyrplain.ini' (or put cp866 in the
argument of \inputencoding).

3) Edit the file `makefmts.sh' or `makefmts.bat' (depending on your
platform), and (optionally) remove or comment out the lines which call
INITEX for formats which you do not want to install.

Then run the script/batch file `makefmts.sh' or `makefmts.bat'. This will
create TeX format files: `cyrplain.fmt', `cyramstex.fmt', `cyrtexinfo.fmt'
and `cyrblue.fmt' (maybe not all of them if you commented some lines
in makefmts script). In case of `makefmts.bat', we use short DOSish
filenames `cyramstx.fmt', `cyrtxinf.fmt' instead of `cyramstex.fmt',
`cyrtexinfo.fmt'.  You can rename them to long names if your OS
supports them. ;-) Finally, install the format files as usual (maybe
creating symlinks or scripts/batch files which call TeX with these
formats).

Note: if you are using `amsppt' with AMS-TeX, you should also patch
the file `amsppt.sty', changing some hard-coded CM fonts to the
corresponding LH fonts. The patch `amsppt.diff' is in the `etc'
directory of the T2 package [if you do not have a `patch' utility, you
may do the changes manually].


Happy TeXing!
