I would like to have a Cyrillic version of TeX/AMSTeX. I have installed the cyrplain package, but further instructions are too long and technical for me, sometimes referring to README of other packages or suggesting to manually move some files, and the expected result of following them is not quite clear. Citing the README:
To install russian support for Plain TeX, AMS-TeX, Texinfo or BLUe TeX, please do the following steps:
To setup hyphenation, you will need russian hyphenation patterns and a file
hyphen.cfg(either fromBABELor created manually). It is recommended to use russian hyphenation patterns contained in theruhyphenpackage (see theREADMEin 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 to use language switching commands like\Russianand\English(you may use a sample "language.dat" from theruhyphenpackage when creating format files).If you want to be able to use input encodings other than
cp866, you should install theT2package first. Then edit the filecyrtex.cfg, and choose the default input encoding of your documents in the line "\def\definpenc{koi8-r}". In this case you must installBABEL, because we use some files fromBABEL(e.g.,plain.def,hyphen.cfg).Otherwise (if you will process only documents in
cp866encoding), change "\iftrue" to "\iffalse" incyrtex.cfg(or putcp866in the definition of\definpenc).Note that we use here the file
lcydefs.texwhich is part of thecyrillicbundle for LaTeX2e (CTAN:macros/latex/required/cyrillic). Note that this file should be generated as explained in00readme.txtfrom thecyrillicbundle.By default, we use
LHfonts. You could change this to any otherLCY- orT2A-encoded font set (e.g. to useType1virtual fonts like 'C1fonts package'), by redefining the command\fontprefixincyrtex.cfg.We support
LCYandT2Afont encodings (seecyrtex.cfg). If you useT2Aencoding, you should getEXMIfonts fromCTAN:macros/ec-plain/*.mfand define\miprefixtoexincyrtex.cfg.Edit the file
makefmts.shormakefmts.bat(depending on your platform), and (optionally) remove or comment out the lines which callINITEXfor formats which you do not want to install.Then run the script/batch file
makefmts.shormakefmts.bat. This will create TeX format files:cyrtex.fmt,cyramstex.fmt,cyrtexinfo.fmtandcyrblue.fmt(maybe not all of them if you commented some lines in makefmts script). In case ofmakefmts.bat, we use short DOSish filenamescyramstx.fmt,cyrtxinf.fmtinstead ofcyramstex.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
amspptwith AMS-TeX, you should also patch the fileamsppt.sty, changing some hard-codedCMfonts to the corresponding cyrillic fonts. The patchamsppt.diffis in theetcdirectory of theT2package [if you do not have apatchutility, you may do the changes manually].
Is there an automated method to activate
cyrplainpackage (creatingcyrtex.fmt,cyramstex.fmt, ... in some sensible default configuration)?Are there some simpler walk-through instructions than this
README?(Soft question.) The activation seems to affect other packages (for example, patching
amsppt.sty). How much will the activation ofcyrplainaffect other parts of the installation? Can this interference be reduced?
In fact, i would not mind any other user friendly solution for being able to compile old sources for russified Plain TeX and AMSTeX, possibly after changing the source encoding. For example, XeTeX looks promising, but i have not yet figured out how to make it use fonts with Cyrillic glyphs. I have created a new question about Cyrillic XeTeX.
Update
It looks like it should be possible to generate cyrplain and cyramsplain formats using fmtutil and that fmtutil already knows about them.
After having patched /usr/local/texlive/2015basic/texmf-dist/tex/plain/cyrplain/plainenc.tex as suggested in a comment to the answer to this question, i tried executing
sudo fmtutil --enablefmt cyrtex
sudo fmtutil --enablefmt cyramstex
sudo fmtutil --missing
and the format files were created in /usr/local/texlive/2015basic/texmf-var/web2c/pdftex/. However, i cannot use them for some reason. For example,
tex &cyrtex
gives the error:
[12] 23093
zsh: command not found: cyrtex
This is TeX, Version 3.14159265 (TeX Live 2015) (preloaded format=tex)
**[12] + suspended (tty input) tex
Very strange, what does zsh have to do with it?