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 | |
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')
-rw-r--r-- | Master/texmf-dist/doc/luatex/luavlna/README.md | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.pdf | bin | 87276 -> 87293 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.tex | 7 | ||||
-rw-r--r-- | Master/texmf-dist/doc/luatex/luavlna/luavlna.tex | 17 |
4 files changed, 11 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/luatex/luavlna/README.md b/Master/texmf-dist/doc/luatex/luavlna/README.md index 871d2900b49..366cd21700c 100644 --- a/Master/texmf-dist/doc/luatex/luavlna/README.md +++ b/Master/texmf-dist/doc/luatex/luavlna/README.md @@ -1,4 +1,4 @@ -# Luavlna, version v0.1b, 2018-05-31 +# Luavlna, version v0.1c, 2019-04-16 # Introduction diff --git a/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.pdf b/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.pdf Binary files differindex b96633d362b..c9295780139 100644 --- a/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.pdf +++ b/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.pdf diff --git a/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.tex b/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.tex index 7a4ac630657..1519d7fe9f7 100644 --- a/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.tex +++ b/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.tex @@ -227,7 +227,7 @@ the other way. Lua\LaTeX, Lua\TeX\ and CSplain formats are supported at the mome \subsection{Recognized languages} \subsubsection{Lua\TeX\ and Lua\LaTeX} -File \verb|language.dat| is processed to load language names, aliases and assigned numbers. These language names are the same as supported by \verb|babel| package. +File \verb|language.dat| is processed to load language names, aliases and assigned numbers. These language names are the same as names supported by the \verb|babel| package. \begin{quotation} \small\noindent @@ -248,10 +248,7 @@ File \verb|language.dat| is processed to load language names, aliases and assign \subsubsection{CSplain} -Different method is used. File \verb|hyphen.lan| is included in CSplain, where -language numbers are assigned to ISO-639-1 or ISO-639-2 language codes. -These language codes were then normalized to names used vy \verb|babel|, or -standard English language names. +Different method is used with the CSplain format. The \verb|lua-hyphen.lan| file is parsed for the language codes. \begin{quotation} \small\noindent 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 } |