]> mj.ucw.cz Git - ucwmac.git/blobdiff - ucw-luacsplain.ini
Made ucw-luacsplain work
[ucwmac.git] / ucw-luacsplain.ini
index a8564cbcd1b52529151a5a28e6ef7d194bf3d6da..392952ac32b96e8bd32680b77afe94f58ccc5689 100644 (file)
@@ -1,7 +1,11 @@
 %% Czech format for LuaTeX + ucwmac
 %%
 %% This is a cousin of Petr Olšák's csplain/luaplain living in LuaTeX land.
-%% It is based on ε-TeX
+%% It is based on ε-TeX.
+%%
+%% WARNING: This is experimental. We currently depend on internals of csplain
+%% and also on various packages related to LuaTeX, which tend to be rapidly
+%% changing.
 %%
 %% Written by Martin Mareš <mj@ucw.cz> in 2017 and placed into public domain
 
 \let\orifont=\undefined
 
 \input luatex-unicode-letters.tex      % Set properties of Unicode characters
-\input ltluatex.tex                    % LuaTeX support for plain TeX
+% \input ltluatex.tex                  % LuaTeX support for plain TeX
 \input luatex85.sty                    % Backward compatibility with pdfTeX
 \input pdftexconfig.tex                        % Initialize PDF output parameters
 \input pdftexmagfix.tex                        % Fix \magnification
 \input plaina4.tex                     % Set paper size to A4
 \input ucode.tex                       % \uv and similar macros for Czech typesetting
-\input luaotfload.sty                  % OTF loader
+% \input luaotfload.sty                        % OTF loader
 
 % Ask csplain to load LM fonts
-\def\fontfeatures{mode=base;script=latn;+tlig}
-\let\luafonts=\relax                   % Avoid inclusion of csplain's luafonts.tex
-\input lmfonts.tex
-\let\fontfeatures=\undefined
+% (currently disabled, because it is broken in some versions; use ucw-luaofs.tex instead)
+% \def\fontfeatures{mode=base;script=latn;+tlig}
+% \let\luafonts=\relax                 % Avoid inclusion of csplain's luafonts.tex
+% \input lmfonts.tex
+% \let\fontfeatures=\undefined
 
 \everyjob={%
-   \message{Loaded ucw-luacsplain 2017-10}%
+   \message{Loaded ucw-luacsplain 2018-06}%
    % Set resolution of bitmap fonts
    \directlua{kpse.init_prog("luatex", 600, "ljfour")}%
-   % We need to reload the OTF loader
-   \input luaotfload.sty
+   % These packages do not survive dumping, defer loading to \everyjob
+   \input ltluatex.tex
+   \input ucw-luaofs.tex
 }
 
 \dump