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)
32 % Bring \font back and allocate font families
34 \let\orifont=\undefined
40 \input luatex-unicode-letters.tex % Set properties of Unicode characters
41 % \input ltluatex.tex % LuaTeX support for plain TeX
42 \input luatex85.sty % Backward compatibility with pdfTeX
43 \input pdftexconfig.tex % Initialize PDF output parameters
44 \input pdftexmagfix.tex % Fix \magnification
45 \input plaina4.tex % Set paper size to A4
46 \input ucode.tex % \uv and similar macros for Czech typesetting
47 % \input luaotfload.sty % OTF loader
49 % Ask csplain to load LM fonts
50 % (currently disabled, because it is broken in some versions; use ucw-luaofs.tex instead)
51 % \def\fontfeatures{mode=base;script=latn;+tlig}
52 % \let\luafonts=\relax % Avoid inclusion of csplain's luafonts.tex
54 % \let\fontfeatures=\undefined
57 \message{Loaded ucw-luacsplain 2018-06}%
58 % These packages do not survive dumping, defer loading to \everyjob