summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-06-13 20:30:40 +0000
committerKarl Berry <karl@freefriends.org>2022-06-13 20:30:40 +0000
commit9f6d1b275dbaac0ba8319854ec01142c9cc106da (patch)
treec897e91e1dff7d5dbd9e864538d3d9d0ef7c64c5 /Master/texmf-dist/tex/lualatex
parent5d9b0845aa919ee94eaf15014a189875650ada5f (diff)
showhyphenation (13jun22)
git-svn-id: svn://tug.org/texlive/trunk@63578 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex')
-rw-r--r--Master/texmf-dist/tex/lualatex/showhyphenation/showhyphenation.lua12
-rw-r--r--Master/texmf-dist/tex/lualatex/showhyphenation/showhyphenation.sty2
2 files changed, 10 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/lualatex/showhyphenation/showhyphenation.lua b/Master/texmf-dist/tex/lualatex/showhyphenation/showhyphenation.lua
index ff763be2509..72f964932c1 100644
--- a/Master/texmf-dist/tex/lualatex/showhyphenation/showhyphenation.lua
+++ b/Master/texmf-dist/tex/lualatex/showhyphenation/showhyphenation.lua
@@ -10,7 +10,7 @@
-- and version 1.3c or later is part of all distributions of
-- LaTeX version 2009/09/24 or later.
--- Version: 0.1
+-- Version: 0.1a
local FLOOR = math.floor
@@ -128,7 +128,11 @@ local function find_glyph ( n, d, kern_value )
if line_end and n.user_id == 848485 then
ligtype_mark = true
end
- n = d ( n )
+ if d ( n ) then
+ n = d ( n )
+ else
+ return false
+ end
end
if n.replace then
local REPLACE = n.replace
@@ -214,7 +218,9 @@ local function hyphenation_points ( head )
end
local prev_next_glyph = n
local ligtype_mark = nil
- prev_next_glyph, prev_next_kern, ligtype_mark = find_glyph ( prev_next_glyph, DIR, 0 )
+ if find_glyph ( prev_next_glyph, DIR, 0 ) then
+ prev_next_glyph, prev_next_kern, ligtype_mark = find_glyph ( prev_next_glyph, DIR, 0 )
+ end
head = AB ( head, prev_next_glyph, NEW ( WI, pdfliteral ) )
lig_add = lig_add + ( prev_next_kern + prev_next_kern_lig ) * f
DIR ( prev_next_glyph ).mode = 0
diff --git a/Master/texmf-dist/tex/lualatex/showhyphenation/showhyphenation.sty b/Master/texmf-dist/tex/lualatex/showhyphenation/showhyphenation.sty
index 866d39c9db8..ee088450a0c 100644
--- a/Master/texmf-dist/tex/lualatex/showhyphenation/showhyphenation.sty
+++ b/Master/texmf-dist/tex/lualatex/showhyphenation/showhyphenation.sty
@@ -10,7 +10,7 @@
% and version 1.3c or later is part of all distributions of
% LaTeX version 2009/09/24 or later.
-\ProvidesPackage{showhyphenation}[2022/04/17 v0.1 Show hyphenation points]
+\ProvidesPackage{showhyphenation}[2022/06/13 v0.1a Marking of hyphenation points]
\RequirePackage{ifluatex,luatexbase}
\ifluatex