From b87cc8c3e732db08ec5267565ee635f7d3718e13 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 30 Apr 2018 22:56:48 +0000 Subject: lua-check-hyphen (19apr18) git-svn-id: svn://tug.org/texlive/trunk@47527 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/lualatex/lua-check-hyphen/doc/README.md | 2 +- .../lua-check-hyphen/doc/luacheckhyphenmanual.pdf | Bin 112265 -> 112214 bytes .../lua-check-hyphen/doc/luacheckhyphenmanual.tex | 8 +++++- .../doc/lualatex/lua-check-hyphen/doc/sample.pdf | Bin 5266 -> 5268 bytes .../lualatex/lua-check-hyphen/lua-check-hyphen.lua | 28 +++++++++++++++++++-- .../lualatex/lua-check-hyphen/lua-check-hyphen.sty | 5 ++-- 6 files changed, 37 insertions(+), 6 deletions(-) diff --git a/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/README.md b/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/README.md index b54584322a5..24384114ef1 100644 --- a/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/README.md +++ b/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/README.md @@ -21,7 +21,7 @@ A typical workflow is: Copyright 2012–2018 Patrick Gundlach (patrick@gundla.ch) and other contributors (see github)
-Package version: 0.6 +Package version: 0.7a Public repository: https://github.com/pgundlach/lua-check-hyphen
Licensed under the MIT license. See the file 'mit-license.txt' for exact terms.
Status: works fine, slightly unmaintained.
diff --git a/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.pdf b/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.pdf index 23e92b23e68..a7011208903 100644 Binary files a/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.pdf and b/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.pdf differ diff --git a/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.tex b/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.tex index 4fcbaa84a3f..5d043a71246 100644 --- a/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.tex +++ b/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.tex @@ -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 @@ When you pass the Option \opt{final} to the \cmd{documentclass}, the \cmd{usepac \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} diff --git a/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/sample.pdf b/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/sample.pdf index dbd02e959b6..83d16992ee8 100644 Binary files a/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/sample.pdf and b/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/sample.pdf differ diff --git a/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.lua b/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.lua index e3ba21a906a..b21a39bcde0 100644 --- a/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.lua +++ b/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.lua @@ -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,13 +167,37 @@ local function pairsByKeys (t) 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 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 diff --git a/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.sty b/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.sty index 32cf57603ef..933694871af 100644 --- a/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.sty +++ b/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.sty @@ -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} -- cgit v1.2.3