1 %% Czech format for LuaTeX + ucwmac
3 %% This is a cousin of Petr Olšák's csplain/luaplain living in LuaTeX land.
4 %% It is based on ε-TeX
6 %% Written by Martin Mareš <mj@ucw.cz> in 2017 and placed into public domain
8 \catcode`\{=1 \catcode`\}=2 \catcode`\#=6 \catcode9=10
10 \input luatexiniconfig.tex % Enable LuaTeX primitives
12 % We will skip font section of plain.tex, which sets up CM fonts.
13 % Later, we will load Unicode LM fonts instead.
14 % This hack is inspired by luaplain.ini.
16 \long\def\font#1\ttfam=\tentt{}
17 \let\rm=\relax \let\tenex=\relax
18 \def\mit{\fam1 } \def\cal{\fam2 }
19 \def\it{\fam\itfam\tenit} \def\sl{\fam\slfam\tensl}
20 \def\bf{\fam\bffam\tenbf} \def\tt{\fam\ttfam\tentt}
21 \def\oldstyle{\fam1 \the\textfont1 }
26 \input etex.src % ε-TeX macros (includes plain.tex)
30 \let\orifont=\undefined
32 \input luatex-unicode-letters.tex % Set properties of Unicode characters
33 \input ltluatex.tex % LuaTeX support for plain TeX
34 \input luatex85.sty % Backward compatibility with pdfTeX
35 \input pdftexconfig.tex % Initialize PDF output parameters
36 \input pdftexmagfix.tex % Fix \magnification
37 \input plaina4.tex % Set paper size to A4
38 \input ucode.tex % \uv and similar macros for Czech typesetting
39 \input luaotfload.sty % OTF loader
41 % Ask csplain to load LM fonts
42 \def\fontfeatures{mode=base;script=latn;+tlig}
43 \let\luafonts=\relax % Avoid inclusion of csplain's luafonts.tex
45 \let\fontfeatures=\undefined
48 \message{Loaded ucw-luacsplain 2017-10}%
49 % Set resolution of bitmap fonts
50 \directlua{kpse.init_prog("luatex", 600, "ljfour")}%
51 % We need to reload the OTF loader