texlive[73242] Build/source/texk/web2c/luatexdir: Increment tally in

commits+lscarso at tug.org commits+lscarso at tug.org
Tue Dec 31 10:44:01 CET 2024


Revision: 73242
          https://tug.org/svn/texlive?view=revision&revision=73242
Author:   lscarso
Date:     2024-12-31 10:44:00 +0100 (Tue, 31 Dec 2024)
Log Message:
-----------
Increment tally in tprint also when doterm is true (thanks to user202729 at protonmail.com).
Avoid useless 0 beginbfrange endbfrange in pdf.
LuaTeX 1.19.4

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/luatexdir/ChangeLog
    trunk/Build/source/texk/web2c/luatexdir/font/tounicode.c
    trunk/Build/source/texk/web2c/luatexdir/luatex.c
    trunk/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
    trunk/Build/source/texk/web2c/luatexdir/tex/printing.c

Modified: trunk/Build/source/texk/web2c/luatexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/ChangeLog	2024-12-31 00:41:54 UTC (rev 73241)
+++ trunk/Build/source/texk/web2c/luatexdir/ChangeLog	2024-12-31 09:44:00 UTC (rev 73242)
@@ -1,3 +1,14 @@
+2024-12-30 Luigi Scarso <luigi.scarso at gmail.com>
+	* Increment tally in tprint also when doterm is true (thanks to user202729 at protonmail.com).
+	* LuaTeX 1.19.4
+
+
+
+2024-12-30 Luigi Scarso <luigi.scarso at gmail.com>
+	* Avoid useless 0 beginbfrange endbfrange in pdf 
+	* LuaTeX 1.19.3
+
+
 2024-12-24 Luigi Scarso <luigi.scarso at gmail.com>
 	* For PNG, we no longer set the attr on the mask. If we get a report about dropping this 
           we could add a 'maskattr' feature, but one should consider
@@ -4,6 +15,7 @@
           to include a correct pdf of the image instead, it's more robust.
 	* LuaTeX 1.19.2
 
+
 2024-11-02  Luigi Scarso <luigi.scarso at gmail.com>
 	* Fixed a memory leak in token.put_next()  (thanks to user202729 at protonmail.com)
 	* Fixed a memory leak in token.set_macro() implementation (thanks to user202729 at protonmail.com)

Modified: trunk/Build/source/texk/web2c/luatexdir/font/tounicode.c
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/font/tounicode.c	2024-12-31 00:41:54 UTC (rev 73241)
+++ trunk/Build/source/texk/web2c/luatexdir/font/tounicode.c	2024-12-31 09:44:00 UTC (rev 73242)
@@ -457,15 +457,17 @@
     else
         subrange_count = bfrange_count;
     bfrange_count -= subrange_count;
-    pdf_printf(pdf, "%i beginbfrange\n", subrange_count);
-    for (j = 0; j < subrange_count; j++) {
+    if (subrange_count>0) {
+      pdf_printf(pdf, "%i beginbfrange\n", subrange_count);
+      for (j = 0; j < subrange_count; j++) {
         while (range_size[i] <= 1 && i < 256)
-            i++;
+	  i++;
         assert(i < 256);
         pdf_printf(pdf, "<%02X> <%02X> <%s>\n", i, i + range_size[i] - 1, utf16be_str(gtab[i].code));
         i += range_size[i];
+      }
+      pdf_printf(pdf, "endbfrange\n");
     }
-    pdf_printf(pdf, "endbfrange\n");
     if (bfrange_count > 0)
         goto write_bfrange;
     /*tex Write out |bfchar|. */
@@ -656,14 +658,16 @@
     else
         subrange_count = bfrange_count;
     bfrange_count -= subrange_count;
-    pdf_printf(pdf, "%i beginbfrange\n", subrange_count);
-    for (j = 0; j < subrange_count; j++) {
+    if (subrange_count>0) {
+      pdf_printf(pdf, "%i beginbfrange\n", subrange_count);
+      for (j = 0; j < subrange_count; j++) {
         while (range_size[i] <= 1 && i < 65536)
-            i++;
+	  i++;
         pdf_printf(pdf, "<%04X> <%04X> <%s>\n", i, i + range_size[i] - 1, utf16be_str(gtab[i].code));
         i += range_size[i];
+      }
+      pdf_printf(pdf, "endbfrange\n");
     }
-    pdf_printf(pdf, "endbfrange\n");
     if (bfrange_count > 0)
         goto write_bfrange;
     /*tex Write out |bfchar| */

Modified: trunk/Build/source/texk/web2c/luatexdir/luatex.c
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/luatex.c	2024-12-31 00:41:54 UTC (rev 73241)
+++ trunk/Build/source/texk/web2c/luatexdir/luatex.c	2024-12-31 09:44:00 UTC (rev 73242)
@@ -33,8 +33,8 @@
 */
 
 int luatex_version = 119;
-int luatex_revision = '2';
-const char *luatex_version_string = "1.19.2";
+int luatex_revision = '4';
+const char *luatex_version_string = "1.19.4";
 const char *engine_name = my_name;
 
 #include <kpathsea/c-ctype.h>

Modified: trunk/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/luatex_svnversion.h	2024-12-31 00:41:54 UTC (rev 73241)
+++ trunk/Build/source/texk/web2c/luatexdir/luatex_svnversion.h	2024-12-31 09:44:00 UTC (rev 73242)
@@ -1,4 +1,4 @@
 #ifndef luatex_svn_revision_h
 #define luatex_svn_revision_h
-#define luatex_svn_revision 7631
+#define luatex_svn_revision 7633
 #endif

Modified: trunk/Build/source/texk/web2c/luatexdir/tex/printing.c
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/tex/printing.c	2024-12-31 00:41:54 UTC (rev 73241)
+++ trunk/Build/source/texk/web2c/luatexdir/tex/printing.c	2024-12-31 09:44:00 UTC (rev 73242)
@@ -527,6 +527,7 @@
                     }
                 }
             }
+	    tally += i;
             if (*buffer) {
                 buffer[i++] = '\0';
                 fputs(buffer, term_out);



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