From 98ef842ac8b0bc51c8a31937d1b76d3d3e98c8eb Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 11 Oct 2019 21:33:17 +0000
Subject: microtype (11oct19)

git-svn-id: svn://tug.org/texlive/trunk@52344 c570f23f-e606-0410-a88d-b1316a301751
---
 .../tex/latex/microtype/microtype-luatex.def       | 30 ++++++++++++++--------
 1 file changed, 20 insertions(+), 10 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/microtype/microtype-luatex.def')

diff --git a/Master/texmf-dist/tex/latex/microtype/microtype-luatex.def b/Master/texmf-dist/tex/latex/microtype/microtype-luatex.def
index 968ba9fd7ca..08daa2166eb 100644
--- a/Master/texmf-dist/tex/latex/microtype/microtype-luatex.def
+++ b/Master/texmf-dist/tex/latex/microtype/microtype-luatex.def
@@ -10,7 +10,7 @@
 %% 
 %%                       The `microtype' package
 %%         Subliminal refinements towards typographical perfection
-%%           Copyright (c) 2004--2018 R Schlicht <w.m.l@gmx.net>
+%%           Copyright (c) 2004--2019 R Schlicht <w.m.l@gmx.net>
 %% 
 %% This work may be distributed and/or modified under the conditions of the
 %% LaTeX Project Public License, either version 1.3c of this license or (at
@@ -30,7 +30,7 @@
 %%
 \ProvidesFile
   {microtype-luatex.def}
-  [2019/02/28 v2.7b
+  [2019/10/10 v2.7c
    Definitions specific to
    luatex
    (RS)]
@@ -1152,14 +1152,24 @@
     \MT@check@step{stretch}%
     \MT@check@step{shrink}%
     \MT@check@active@set{ex}%
-    \CheckCommand*\showhyphens[1]{\setbox0\vbox{%
-      \color@begingroup\everypar{}\parfillskip\z@skip
-      \hsize\maxdimen\normalfont\pretolerance\m@ne\tolerance\m@ne
-      \hbadness\z@\showboxdepth\z@\ ##1\color@endgroup}}%
-    \gdef\showhyphens##1{\setbox0\vbox{%
-      \color@begingroup\pdfadjustspacing\z@\everypar{}\parfillskip\z@skip
-      \hsize\maxdimen\normalfont\pretolerance\m@ne\tolerance\m@ne
-      \hbadness\z@\showboxdepth\z@\ ##1\color@endgroup}}%
+    \MT@ifdefined@n@TF{showhyphens }{%
+      \def\MT@temp##1##2{%
+        \expandafter\CheckCommand\csname showhyphens \endcsname[1]{##1}%
+        \DeclareRobustCommand\showhyphens[1]{##2}}%
+    }{%
+      \def\MT@temp##1##2{%
+        \CheckCommand*\showhyphens[1]{##1}%
+        \gdef\showhyphens####1{##2}}%
+    }%
+    \MT@temp
+       {\setbox0\vbox{\color@begingroup
+        \everypar{}\parfillskip\z@skip
+        \hsize\maxdimen\normalfont\pretolerance\m@ne\tolerance\m@ne
+        \hbadness\z@\showboxdepth\z@\ ##1\color@endgroup}}
+       {\setbox0\vbox{\color@begingroup\pdfadjustspacing\z@
+        \everypar{}\parfillskip\z@skip
+        \hsize\maxdimen\normalfont\pretolerance\m@ne\tolerance\m@ne
+        \hbadness\z@\showboxdepth\z@\ ##1\color@endgroup}}%
   \else
     \let\MT@expansion\relax
     \MT@info@nl{No font expansion}%
-- 
cgit v1.2.3

