diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2009-04-08 13:18:29 +0200 |
---|---|---|
committer | Elie Roux <elie.roux@telecom-bretagne.eu> | 2009-04-08 13:18:29 +0200 |
commit | c3ccb3ee07e0a67171c24960966ae974e0dd8e98 (patch) | |
tree | c5e7ea101bca45dcadb4adda212b36e8b3203066 /luaotfload.sty | |
download | luaotfload-c3ccb3ee07e0a67171c24960966ae974e0dd8e98.tar.gz |
adding a first working version of luaotfload
Diffstat (limited to 'luaotfload.sty')
-rw-r--r-- | luaotfload.sty | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/luaotfload.sty b/luaotfload.sty new file mode 100644 index 0000000..c01e966 --- /dev/null +++ b/luaotfload.sty @@ -0,0 +1,42 @@ +\expandafter\ifx\csname ProvidesPackage\endcsname\relax +\expandafter\ifx\csname luaUseModule\endcsname\relax +\input luatextra.sty +\fi +\else +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{luaotfload}% + [2009/04/08 v1.001 ConTeXt font loading system] +\RequirePackage{luatextra} +\fi + +\expandafter\edef\csname otfl@AtEnd\endcsname{% + \catcode64 \the\catcode64\relax +} + +\catcode64 11 + +\newluaattribute\otfl@state +\newluaattribute\otfl@markbase +\newluaattribute\otfl@markdone +\newluaattribute\otfl@markmark +\newluaattribute\otfl@cursbase +\newluaattribute\otfl@curscurs +\newluaattribute\otfl@cursdone +\newluaattribute\otfl@kernpair +\newluaattribute\otfl@color + +\def\otfl@off{ +\luadirect{luaotfload.unregister_callbacks()} +} + +\def\otfl@on{ +\luadirect{luaotfload.register_callbacks()} +} + +\luaUseModule{luaotfload} + +\otfl@on + +\otfl@AtEnd + +\endinput |