]> mj.ucw.cz Git - ucwmac.git/blob - ucw-luacsplain.ini
392952ac32b96e8bd32680b77afe94f58ccc5689
[ucwmac.git] / ucw-luacsplain.ini
1 %% Czech format for LuaTeX + ucwmac
2 %%
3 %% This is a cousin of Petr Olšák's csplain/luaplain living in LuaTeX land.
4 %% It is based on ε-TeX.
5 %%
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
8 %% changing.
9 %%
10 %% Written by Martin Mareš <mj@ucw.cz> in 2017 and placed into public domain
11
12 \catcode`\{=1 \catcode`\}=2  \catcode`\#=6  \catcode9=10
13
14 \input luatexiniconfig.tex              % Enable LuaTeX primitives
15
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.
19 \let\orifont=\font
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 }
26
27 % Disarm \outer
28 \let\outer=\relax
29
30 \input etex.src                         % ε-TeX macros (includes plain.tex)
31
32 % Bring \font back
33 \let\font=\orifont
34 \let\orifont=\undefined
35
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
44
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
49 % \input lmfonts.tex
50 % \let\fontfeatures=\undefined
51
52 \everyjob={%
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
57    \input ltluatex.tex
58    \input ucw-luaofs.tex
59 }
60
61 \dump