texlive[72542] Build/source/texk/web2c/synctexdir: pass "kern"

commits+karl at tug.org commits+karl at tug.org
Mon Oct 14 00:21:04 CEST 2024


Revision: 72542
          https://tug.org/svn/texlive?view=revision&revision=72542
Author:   karl
Date:     2024-10-14 00:21:04 +0200 (Mon, 14 Oct 2024)
Log Message:
-----------
pass "kern" instead of "glue" for kern nodes

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/synctexdir/ChangeLog
    trunk/Build/source/texk/web2c/synctexdir/synctex.c

Modified: trunk/Build/source/texk/web2c/synctexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/synctexdir/ChangeLog	2024-10-13 21:26:32 UTC (rev 72541)
+++ trunk/Build/source/texk/web2c/synctexdir/ChangeLog	2024-10-13 22:21:04 UTC (rev 72542)
@@ -1,3 +1,18 @@
+2024-10-13  <user202729 at protonmail.com>
+
+	* synctex_record_node_kern: pass "kern" instead of "glue"
+	as SYNCTEX_TAG_MODEL and SYNCTEX_LINE_MODEL.
+	https://tug.org/pipermail/luatex/2024-September/008006.html
+
+	Forwarded by Luigi, confirmed by Jerome, committed by Karl.
+	Jerome adds:
+           This bug only affects engines for which kern node and glue
+           nodes do not have the same size, aka none.
+           The kern problem is well known for luatex since a long time but
+           it does not affect other engines. While this patch is necessary
+           to make the synctex code cleaner, it does not change anything
+           for the engines concerned by the code.
+
 2024-04-14  TANAKA Takuji  <ttk at t-lab.opal.ne.jp>
 
 	* am/synctex.am: Remove eptex.

Modified: trunk/Build/source/texk/web2c/synctexdir/synctex.c
===================================================================
--- trunk/Build/source/texk/web2c/synctexdir/synctex.c	2024-10-13 21:26:32 UTC (rev 72541)
+++ trunk/Build/source/texk/web2c/synctexdir/synctex.c	2024-10-13 22:21:04 UTC (rev 72542)
@@ -1,5 +1,5 @@
 /* 
- Copyright (c) 2008-2017 jerome DOT laurens AT u-bourgogne DOT fr
+ Copyright (c) 2008-2024 jerome DOT laurens AT u-bourgogne DOT fr
  
  This file is part of the SyncTeX package.
  
@@ -2060,14 +2060,14 @@
 #   endif
     if (SYNCTEX_SHOULD_COMPRESS_V) {
         len = SYNCTEX_fprintf(SYNCTEX_FILE, "k%i,%i:%i,=:%i\n",
-                              SYNCTEX_TAG_MODEL(p,glue),
-                              SYNCTEX_LINE_MODEL(p,glue),
+                              SYNCTEX_TAG_MODEL(p,kern),
+                              SYNCTEX_LINE_MODEL(p,kern),
                               SYNCTEX_CTXT_CURH UNIT,
                               SYNCTEX_WIDTH(p) UNIT);
     } else {
         len = SYNCTEX_fprintf(SYNCTEX_FILE, "k%i,%i:%i,%i:%i\n",
-                              SYNCTEX_TAG_MODEL(p,glue),
-                              SYNCTEX_LINE_MODEL(p,glue),
+                              SYNCTEX_TAG_MODEL(p,kern),
+                              SYNCTEX_LINE_MODEL(p,kern),
                               SYNCTEX_CTXT_CURH UNIT,
                               SYNCTEX_CTXT_CURV UNIT,
                               SYNCTEX_WIDTH(p) UNIT);



More information about the tex-live-commits mailing list.