texlive[47527] Master/texmf-dist: lua-check-hyphen (19apr18)

commits+karl at tug.org commits+karl at tug.org
Tue May 1 00:56:49 CEST 2018


Revision: 47527
          http://tug.org/svn/texlive?view=revision&revision=47527
Author:   karl
Date:     2018-05-01 00:56:48 +0200 (Tue, 01 May 2018)
Log Message:
-----------
lua-check-hyphen (19apr18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/README.md
    trunk/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.pdf
    trunk/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.tex
    trunk/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/sample.pdf
    trunk/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.lua
    trunk/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.sty

Modified: trunk/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/README.md	2018-04-30 22:56:35 UTC (rev 47526)
+++ trunk/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/README.md	2018-04-30 22:56:48 UTC (rev 47527)
@@ -21,7 +21,7 @@
 
 
 Copyright 2012–2018 Patrick Gundlach (patrick at gundla.ch) and other contributors (see github)<br>
-Package version: 0.6
+Package version: 0.7a
 Public repository: https://github.com/pgundlach/lua-check-hyphen<br>
 Licensed under the MIT license. See the file 'mit-license.txt' for exact terms.<br>
 Status: works fine, slightly unmaintained.<br>

Modified: trunk/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.tex
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.tex	2018-04-30 22:56:35 UTC (rev 47526)
+++ trunk/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.tex	2018-04-30 22:56:48 UTC (rev 47527)
@@ -1,6 +1,6 @@
 \documentclass{ltxdockit}
 \usepackage{csquotes,graphicx}
-\newcommand\pkgversion{0.6}
+\newcommand\pkgversion{0.7a}
 
 \titlepage{%
   title={The lua-check-hyphen package},
@@ -115,6 +115,12 @@
 
 \section{Changes}
 \begin{changelog}
+\begin{release}{0.7a}{2018-04-19}
+  \item Bugfix for \texttt{--output-directory} with argument separated by = instead of whitespace.
+\end{release}
+\begin{release}{0.7}{2018-04-16}
+  \item Take \texttt{--output-directory} into account.
+\end{release}
 \begin{release}{0.6}{2018-02-07}
   \item Remove dependencies and update package to a modern LuaTeX. Thanks to Christian Stadelmann.
 \end{release}

Modified: trunk/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/sample.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.lua
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.lua	2018-04-30 22:56:35 UTC (rev 47526)
+++ trunk/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.lua	2018-04-30 22:56:48 UTC (rev 47527)
@@ -2,7 +2,7 @@
 -- Public repository: https://github.com/pgundlach/lua-check-hyphen
 -- Licensed under the MIT license. See the file 'mit-license.txt' for exact terms.
 
--- Version: 0.6
+-- Version: 0.7a
 
 
 -- for debugging purpuse:
@@ -167,6 +167,30 @@
   return iter
 end
 
+local function getUhyFilename (tex_jobname)
+	local unknown_hyphenation_filename = tex_jobname .. ".uhy"
+	local i = 1
+	local FLAG = '-output-directory'
+	while (arg[i] ~= nil) do
+		local argument = arg[i]
+		if (string.sub(argument, 2, 2) == '-' ) then
+			argument = string.sub(argument, 2)
+		end
+		if (string.sub(argument, 1, string.len(FLAG)) == FLAG) then
+			local prefix = nil
+			if (string.sub(argument, string.len(FLAG)+1, string.len(FLAG)+1) == '=') then
+				prefix = string.sub(argument, string.len(FLAG)+2)
+			else
+				prefix = arg[i+1]
+			end
+			unknown_hyphenation_filename = prefix .. "/" .. unknown_hyphenation_filename
+			break
+		end
+		i = i + 1
+	end
+	return unknown_hyphenation_filename
+end
+
 luacheckhyphen.listhyphenatedwords = function()
 	if luacheckhyphen.final == "true" then
 		return
@@ -173,7 +197,7 @@
 	end
 	-- don't write if the use has turned that off!
 	if not luacheckhyphen.nofile then
-		local unknown_hyphenation_filename = tex.jobname .. ".uhy"
+		local unknown_hyphenation_filename = getUhyFilename(tex.jobname)
 		local unknown_hyphenation_file = io.open(unknown_hyphenation_filename,"w")
 		for k,v in pairsByKeys(luacheckhyphen.all_hyphenatedwords) do
 			if luachekchyphen.compact == "true" or luachekchyphen.compact == nil then

Modified: trunk/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.sty	2018-04-30 22:56:35 UTC (rev 47526)
+++ trunk/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.sty	2018-04-30 22:56:48 UTC (rev 47527)
@@ -2,8 +2,9 @@
 % Public repository: https://github.com/pgundlach/lua-check-hyphen
 % Licensed under the MIT license. See the file 'mit-license.txt' for exact terms.
 
-\def\luachekchyphenpkgdate{2018/02/07}
-\def\luachekchyphenversion{0.6}
+% Don't change these two lines, they are updated automatically
+\def\luachekchyphenpkgdate{2018/04/19}
+\def\luachekchyphenversion{0.7a}
 
 
 \RequirePackage{ifluatex}



More information about the tex-live-commits mailing list