diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/README.md | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.pdf | bin | 112265 -> 112214 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.tex | 8 | ||||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/sample.pdf | bin | 5266 -> 5268 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.lua | 28 | ||||
-rw-r--r-- | Master/texmf-dist/tex/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)<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> 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 Binary files differindex 23e92b23e68..a7011208903 100644 --- a/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.pdf +++ b/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.pdf 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 Binary files differindex dbd02e959b6..83d16992ee8 100644 --- a/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/sample.pdf +++ b/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/sample.pdf 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} |