summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/luavlna
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luavlna')
-rw-r--r--Master/texmf-dist/doc/luatex/luavlna/README.md2
-rw-r--r--Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.pdfbin87276 -> 87293 bytes
-rw-r--r--Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.tex7
-rw-r--r--Master/texmf-dist/doc/luatex/luavlna/luavlna.tex17
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
index b96633d362b..c9295780139 100644
--- a/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.pdf
+++ b/Master/texmf-dist/doc/luatex/luavlna/luavlna-doc.pdf
Binary files differ
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
}