diff options
Diffstat (limited to 'macros/luatex/latex/ligtype/ligtype.sty')
-rw-r--r-- | macros/luatex/latex/ligtype/ligtype.sty | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/macros/luatex/latex/ligtype/ligtype.sty b/macros/luatex/latex/ligtype/ligtype.sty index 3cf84a67f0..edcfcd0c55 100644 --- a/macros/luatex/latex/ligtype/ligtype.sty +++ b/macros/luatex/latex/ligtype/ligtype.sty @@ -1,4 +1,4 @@ -% Copyright (c) 2022 Thomas Kelkel kelkel@emaileon.de +% Copyright (c) 2022-2023 Thomas Kelkel kelkel@emaileon.de % This file may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -19,15 +19,27 @@ % and may be distributed and/or modified under the % conditions of the LaTeX Project Public License. -\ProvidesPackage{ligtype}[2022/06/13 v0.1b Comprehensive ligature suppression functionalities] +\ProvidesPackage{ligtype}[2023/07/08 v0.3 Comprehensive ligature suppression functionalities] \RequirePackage{ifluatex,luatexbase} \ifluatex \directlua{require ( "ligtype.lua" )} + \DeclareOption{noshortf}{\directlua{ligtype_no_short_f()}} + \DeclareOption{allshortf}{\directlua{ligtype_all_short_f()}} + \DeclareOption{makemarks}{\directlua{ligtype_make_marks()}} + \DeclareOption{kerntest}{\AtEndDocument{\directlua{ligtype_write_ligs()}}} + \DeclareOption{nodefault}{\directlua{ligtype_no_default()}} + \DeclareOption{liglist}{\directlua{ligtype_lig_list()}} + \DeclareOption{connotes}{\directlua{ligtype_con_notes()}} + \ProcessOptions + \def\ligtypeon{\directlua{ligtype_on()}} \def\ligtypeoff{\directlua{ligtype_off()}} + \def\noligs{\directlua{ligtype_no_ligs()}} + \def\ligs{\directlua{ligtype_ligs()}} + \ligtypeon \newcommand\nolig[2]{% @@ -40,13 +52,6 @@ ligtype_parse_macro ( "\luatexluaescapestring{#1}", "\luatexluaescapestring{#2}", false )% }% } - - \DeclareOption{noshortf}{\directlua{ligtype_no_short_f()}} - \DeclareOption{allshortf}{\directlua{ligtype_all_short_f()}} - \DeclareOption{makemarks}{\directlua{ligtype_make_marks()}} - \DeclareOption{kerntest}{\AtEndDocument{\directlua{ligtype_write_ligs()}}} - \DeclareOption{nodefault}{\directlua{ligtype_no_default()}} - \ProcessOptions \else \errhelp{Compile with LuaLaTeX to be able to use the "ligtype" package.} \errmessage{Package "ligtype" error: This package requires LuaLaTeX!} |