diff options
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r-- | luaotfload.dtx | 104 |
1 files changed, 53 insertions, 51 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx index ced94f0..677570b 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -405,36 +405,36 @@ and the derived files % % \begin{multicols}{3} % \begin{itemize*} -% \item |luat-dum.lua| % \item |data-con.lua| -% \item |node-inj.lua| -% \item |node-dum.lua| -% \item |font-ini.lua| -% \item |font-tfm.lua| +% \item |font-age.lua| % \item |font-cid.lua| -% \item |font-ott.lua| -% \item |font-otf.lua| +% \item |font-def.lua| +% \item |font-dum.lua| +% \item |font-ini.lua| +% \item |font-lua.lua| +% \item |font-map.lua| +% \item |font-ota.lua| +% \item |font-otb.lua| +% \item |font-otc.lua| % \item |font-otd.lua| +% \item |font-otf.lua| % \item |font-oti.lua| -% \item |font-otb.lua| % \item |font-otn.lua| -% \item |font-ota.lua| -% \item |font-otc.lua| -% \item |font-def.lua| -% \item |font-xtx.lua| -% \item |font-map.lua| -% \item |font-dum.lua| +% \item |font-ott.lua| +% \item |font-tfm.lua| +% \item |luat-dum.lua| +% \item |node-dum.lua| +% \item |node-inj.lua| % \end{itemize*} % \end{multicols} % % The following files have been written for this package: -% \begin{multicols}{3} % \begin{itemize*} % \item |font-clr.lua| % \item |font-nms.lua| % \item |luat-ovr.lua| +% \item |font-ltx.lua|, heavily modified version of |font-xtx.lua|. % \end{itemize*} -% \end{multicols} % % \section{Troubleshooting} % @@ -496,6 +496,23 @@ if tex.luatexversion < luatex_version then end % \end{macrocode} % +% +% \begin{macrocode} +function table.reversed(t) + if t then + local tt, tn = { }, #t + if tn > 0 then + local ttn = 0 + for i=tn,1,-1 do + ttn = ttn + 1 + tt[ttn] = t[i] + end + end + return tt + end +end +% \end{macrocode} +% % \subsection{Module loading} % % We load the \context files with this function. It automatically adds the @@ -535,9 +552,8 @@ tex.attribute[0] = 0 % Node support modules. % % \begin{macrocode} -luaotfload.loadmodule("font-ini.lua") -luaotfload.loadmodule("node-dum.lua") -luaotfload.loadmodule("node-inj.lua") +luaotfload.loadmodule('node-dum.lua') +luaotfload.loadmodule('node-inj.lua') % \end{macrocode} % % By default \context takes some private attributes for internal use. To @@ -560,20 +576,23 @@ end % Font handling modules. % % \begin{macrocode} -luaotfload.loadmodule("font-tfm.lua") -luaotfload.loadmodule("font-cid.lua") -luaotfload.loadmodule("font-ott.lua") -luaotfload.loadmodule("font-map.lua") -luaotfload.loadmodule("font-otf.lua") -luaotfload.loadmodule("font-otd.lua") -luaotfload.loadmodule("font-oti.lua") -luaotfload.loadmodule("font-otb.lua") -luaotfload.loadmodule("font-otn.lua") -luaotfload.loadmodule("font-ota.lua") -luaotfload.loadmodule("font-otc.lua") -luaotfload.loadmodule("font-def.lua") -luaotfload.loadmodule("font-xtx.lua") -luaotfload.loadmodule("font-dum.lua") +luaotfload.loadmodule('font-ini.lua') +luaotfload.loadmodule('font-tfm.lua') +luaotfload.loadmodule('font-cid.lua') +luaotfload.loadmodule('font-ott.lua') +luaotfload.loadmodule('font-map.lua') +luaotfload.loadmodule('font-lua.lua') +luaotfload.loadmodule('font-otf.lua') +luaotfload.loadmodule('font-otd.lua') +luaotfload.loadmodule('font-oti.lua') +luaotfload.loadmodule('font-otb.lua') +luaotfload.loadmodule('font-otn.lua') +luaotfload.loadmodule('font-ota.lua') +luaotfload.loadmodule('font-otc.lua') +luaotfload.loadmodule('font-age.lua') +luaotfload.loadmodule('font-def.lua') +luaotfload.loadmodule('font-ltx.lua') +luaotfload.loadmodule('font-dum.lua') % \end{macrocode} % % This is a patch for |otfl-font-def.lua|, that defines a reader for ofm @@ -608,7 +627,7 @@ luatexbase.create_callback("luaotfload.patch_font", "simple", function() end) % % \begin{macrocode} local function def_font(...) - local fontdata = fonts.define.read(...) + local fontdata = fonts.definers.read(...) if type(fontdata) == "table" and fontdata.shared then % \end{macrocode} % @@ -652,23 +671,6 @@ end fonts.mode = "node" % \end{macrocode} % -% The following features are useful in math (e.g. in XITS Math font), -% but \textsf{luaotfload} does not recognize them in |base| mode. -% -% \begin{macrocode} -local register_base_sub = fonts.otf.features.register_base_substitution -local gsubs = { - "ss01", "ss02", "ss03", "ss04", "ss05", - "ss06", "ss07", "ss08", "ss09", "ss10", - "ss11", "ss12", "ss13", "ss14", "ss15", - "ss16", "ss17", "ss18", "ss19", "ss20", -} - -for _,v in next, gsubs do - register_base_sub(v) -end -% \end{macrocode} -% % Finally we register the callbacks % % \begin{macrocode} |