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 %% WARNING: This is experimental. We currently depend on internals of csplain
7 %% and also on various packages related to LuaTeX, which tend to be rapidly
10 %% Written by Martin Mareš <mj@ucw.cz> in 2017 and placed into public domain
12 \catcode`\{=1 \catcode`\}=2 \catcode`\#=6 \catcode9=10
14 \input luatexiniconfig.tex % Enable LuaTeX primitives
16 % We will skip font section of plain.tex, which sets up CM fonts.
17 % Later, we will load Unicode LM fonts instead.
18 % This hack is inspired by luaplain.ini.
20 \long\def\font#1\ttfam=\tentt{}
21 \let\rm=\relax \let\tenex=\relax
22 \def\mit{\fam1 } \def\cal{\fam2 }
23 \def\it{\fam\itfam\tenit} \def\sl{\fam\slfam\tensl}
24 \def\bf{\fam\bffam\tenbf} \def\tt{\fam\ttfam\tentt}
25 \def\oldstyle{\fam1 \the\textfont1 }
30 \input etex.src % ε-TeX macros (includes plain.tex)
34 \let\orifont=\undefined
36 \input luatex-unicode-letters.tex % Set properties of Unicode characters
37 % \input ltluatex.tex % LuaTeX support for plain TeX
38 \input luatex85.sty % Backward compatibility with pdfTeX
39 \input pdftexconfig.tex % Initialize PDF output parameters
40 \input pdftexmagfix.tex % Fix \magnification
41 \input plaina4.tex % Set paper size to A4
42 \input ucode.tex % \uv and similar macros for Czech typesetting
43 % \input luaotfload.sty % OTF loader
45 % Ask csplain to load LM fonts
46 % (currently disabled, because it is broken in some versions; use ucw-luaofs.tex instead)
47 % \def\fontfeatures{mode=base;script=latn;+tlig}
48 % \let\luafonts=\relax % Avoid inclusion of csplain's luafonts.tex
50 % \let\fontfeatures=\undefined
53 \message{Loaded ucw-luacsplain 2018-06}%
54 % Set resolution of bitmap fonts
55 \directlua{kpse.init_prog("luatex", 600, "ljfour")}%
56 % These packages do not survive dumping, defer loading to \everyjob