diff options
author | Karl Berry <karl@freefriends.org> | 2019-05-04 22:48:20 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-05-04 22:48:20 +0000 |
commit | cd83806db3427557043949f1d0ef6f369e681791 (patch) | |
tree | 5545a22648580cd465c7c216b9b669730d12b033 /Master/texmf-dist/doc/luatex/luavlna/luavlna.tex | |
parent | c0bef3346513bd933c0e451415a1cbf6120264d2 (diff) |
luavlna (16apr19)
git-svn-id: svn://tug.org/texlive/trunk@50993 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luavlna/luavlna.tex')
-rw-r--r-- | Master/texmf-dist/doc/luatex/luavlna/luavlna.tex | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/luatex/luavlna/luavlna.tex b/Master/texmf-dist/doc/luatex/luavlna/luavlna.tex index 33134a800c9..f3c44f1b695 100644 --- a/Master/texmf-dist/doc/luatex/luavlna/luavlna.tex +++ b/Master/texmf-dist/doc/luatex/luavlna/luavlna.tex @@ -1,16 +1,12 @@ -% detect LaTeX and use the correct method for luatexbase inclusion -\ifx\RequirePackage\undefined - \input{luatexbase.sty}% -\else - \RequirePackage{luatexbase} -\fi - -\newluatexattribute\preventsinglestatus % Modify pre_linebreak_filter callback so the spaces can be inserted \directlua{% luavlna = require "luavlna" langno = require "luavlna-langno" -luatexbase.add_to_callback("pre_linebreak_filter", luavlna.preventsingle," ") + +require "ltluatex" +luatexbase.add_to_callback("pre_linebreak_filter", luavlna.preventsingle,"LuaVlna") +% -- define the attribute number +luavlna.preventsingleid = math.random(2^16) local languages = langno.load_languages() local get_lang_id = function(lang) @@ -78,6 +74,9 @@ end \directlua{set_main_language("#1")} } +%\newluatexattribute\preventsinglestatus +\attributedef\preventsinglestatus=\directlua{tex.print(luavlna.preventsingleid)} % just a random number + \def\preventsingleon{% \preventsinglestatus=2 } |