From 7d2275b552d67dfa310ed285783a4761a2a9da18 Mon Sep 17 00:00:00 2001
From: Luigi Scarso <luigi.scarso@gmail.com>
Date: Fri, 19 Jan 2018 11:57:04 +0000
Subject: [PATCH] more granularity in kern reporting (HH)

[[Split portion of a mixed commit.]]
---
 source/texk/web2c/luatexdir/tex/texnodes.w | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/source/texk/web2c/luatexdir/tex/texnodes.w b/source/texk/web2c/luatexdir/tex/texnodes.w
index d0008b08f..0c8bdb837 100644
--- a/source/texk/web2c/luatexdir/tex/texnodes.w
+++ b/source/texk/web2c/luatexdir/tex/texnodes.w
@@ -3205,11 +3205,17 @@ void show_node_list(int p)
                 /*  An ``explicit'' kern value is indicated implicitly by an explicit space. */
                 if (subtype(p) != mu_glue) {
                     tprint_esc("kern");
+                    /*
                     if (subtype(p) != normal)
                         print_char(' ');
+                    */
                     print_scaled(width(p));
-                    if (subtype(p) == accent_kern)
-                        tprint(" (for accent)");
+                    if (subtype(p) == font_kern)
+                        tprint(" (font)");
+                    else if (subtype(p) == italic_kern)
+                        tprint(" (italic)");
+                    else if (subtype(p) == accent_kern)
+                        tprint(" (accent)");
                 } else {
                     tprint_esc("mkern");
                     print_scaled(width(p));
-- 
GitLab