texlive[44936] Master/texmf-dist: lua-check-hyphen (1aug17)

commits+karl at tug.org commits+karl at tug.org
Tue Aug 1 23:39:19 CEST 2017


Revision: 44936
          http://tug.org/svn/texlive?view=revision&revision=44936
Author:   karl
Date:     2017-08-01 23:39:19 +0200 (Tue, 01 Aug 2017)
Log Message:
-----------
lua-check-hyphen (1aug17)

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	2017-08-01 21:39:04 UTC (rev 44935)
+++ trunk/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/README.md	2017-08-01 21:39:19 UTC (rev 44936)
@@ -20,8 +20,8 @@
 * optionally use the option `mark` to make the unknown hyphenated words visible in the PDF file
 
 
-Copyright 2012–2016 Patrick Gundlach (patrick at gundla.ch)<br>
-Package version: 0.4
+Copyright 2012–2017 Patrick Gundlach (patrick at gundla.ch)<br>
+Package version: 0.5
 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	2017-08-01 21:39:04 UTC (rev 44935)
+++ trunk/Master/texmf-dist/doc/lualatex/lua-check-hyphen/doc/luacheckhyphenmanual.tex	2017-08-01 21:39:19 UTC (rev 44936)
@@ -1,6 +1,6 @@
 \documentclass{ltxdockit}
-\usepackage{dtklogos,csquotes,graphicx}
-\newcommand\pkgversion{0.4}
+\usepackage{csquotes,graphicx}
+\newcommand\pkgversion{0.5}
 
 \titlepage{%
   title={The lua-check-hyphen package},
@@ -115,6 +115,9 @@
 
 \section{Changes}
 \begin{changelog}
+\begin{release}{0.5}{2017-07-31}
+  \item Fix error where I can't find a whitelist file, but the io.open() call does not return an error message.
+\end{release}
 \begin{release}{0.4}{2016-04-01}
   \item Compact representation of hyphenated words that occur more than once with different hyphenation positions (option copmact=true).
   \item Sort uhy entries alphabetically and only use lowercase words in the file.

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	2017-08-01 21:39:04 UTC (rev 44935)
+++ trunk/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.lua	2017-08-01 21:39:19 UTC (rev 44936)
@@ -1,8 +1,8 @@
--- Copyright 2012-2016 Patrick Gundlach (patrick at gundla.ch)
+-- Copyright 2012-2017 Patrick Gundlach (patrick at gundla.ch)
 -- 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.4
+-- Version: 0.5
 
 
 -- for debugging purpuse:
@@ -129,12 +129,12 @@
 	elseif  head.id == a_disc_node and head.next and head.next.id == a_glue_node and head.next.subtype == subtype_rightskip or
 			head.id == a_disc_node and head.next and head.next.next and head.next.id == a_whatsit_node and head.next.next.id == a_glue_node and head.next.next.subtype == subtype_rightskip then
 		c = node.has_attribute(head,hyphenattr)
-		word = luacheckhyphen.hyphenwords[c]
+		word = sln.lower(luacheckhyphen.hyphenwords[c])
 		if luacheckhyphen.word_whitelist[word] then
 			-- word found, but OK (whitelisted)
 		else
 			if luachekchyphen.compact == nil or luachekchyphen.compact == "true" then
-				local word_without_hyphen = sln.lower(removedash(word))
+				local word_without_hyphen = removedash(word)
 				local tmp = luacheckhyphen.all_hyphenatedwords[word_without_hyphen] or {}
 				tmp[word] = true
 				luacheckhyphen.all_hyphenatedwords[word_without_hyphen] = tmp
@@ -220,7 +220,11 @@
 		for i,v in ipairs(string.explode(luacheckhyphen.whitelist,",")) do
 			whitelistfile,err = io.open(v)
 			if not whitelistfile then
-				texio.write_nl(err)
+				if err then
+					texio.write_nl(err)
+				else
+					texio.write_nl(string.format("White list %q not found, ignored.",tostring(v)))
+				end
 			else
 				filecontents = whitelistfile:read("*a")
 				for _,entry in ipairs(explode(filecontents,"[^%s]+")) do

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	2017-08-01 21:39:04 UTC (rev 44935)
+++ trunk/Master/texmf-dist/tex/lualatex/lua-check-hyphen/lua-check-hyphen.sty	2017-08-01 21:39:19 UTC (rev 44936)
@@ -1,9 +1,9 @@
-% Copyright 2012 Patrick Gundlach (patrick at gundla.ch)
+% Copyright 2012–2017 Patrick Gundlach (patrick at gundla.ch)
 % 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{2016/04/02}
-\def\luachekchyphenversion{0.4}
+\def\luachekchyphenpkgdate{2017/07/31}
+\def\luachekchyphenversion{0.5}
 
 
 \RequirePackage{ifluatex}



More information about the tex-live-commits mailing list