[tex-k] Fixes of newlines in DVItype

Karl Berry karl at freefriends.org
Thu Feb 24 22:25:16 CET 2022


    Date: Tue, 25 Jan 2022 16:23:09 +0700
    From: Igor Liferenko <igor.liferenko at gmail.com>

    Change #1 can be seen if you run dvitype on a.dvi (see attachment)
    starting from second page when output level is 0.

    Change #2 can be seen if you run dvitype on a.dvi starting from second
    page when output level is 0.

    Change #3 can be seen if you run dvitype on output of gftodvi when
    output level is not 0.

Thanks. I applied change #3 (reducing it to fewer source lines, as
Andreas had in his original patch; TL r62168) to fix the original
problem of the font definitions running together. I also added this to
the list for Knuth.

For the record, the dvitype output changes like the below, with the
attached io.dvi from gftodvi, as we were playing with back in November.
Fortunately this does not affect the trip test.

The other changes, while they make the output nicer, don't seem worth
changing the output from Knuth's original default to me. --best, karl.

--- io.typ	2022-02-24 10:00:27.002127031 -0800
+++ io3.typ	2022-02-24 10:05:41.801471795 -0800
@@ -1,3 +1,3 @@
-This is DVItype, Version 3.6 (TeX Live 2021)
+This is DVItype, Version 3.6 (TeX Live 2022)
 Options selected:
   Starting page = * 
@@ -14,5 +14,9 @@
 Font 3: gray---loaded at size 505200 DVI units 
 Font 5: logo8---loaded at size 524288 DVI units 
-Font 1: cmr8Font 2: cmtt10Font 3: grayFont 5: logo8 
+Font 1: cmr8 
+Font 2: cmtt10 
+Font 3: gray 
+Font 5: logo8 
+ 
 130: beginning of page 1 
 175: push 

--- ChangeLog	(revision 62162)
+++ ChangeLog	(working copy)
@@ -1,3 +1,14 @@
+2022-02-24  Karl Berry  <karl at freefriends.org>
+
+	* dvitype.ch (scan_bop, [99]): output a newline between
+	font definitions so they do not run together.
+	From Igor Liferenko,
+	https://tug.org/pipermail/tex-k/2022-January/003760.html (change#3).
+	Original report part of
+	https://tug.org/pipermail/tex-k/2021-November/003711.html,
+	and a first patch from Andreas Scherer in that thread,
+	https://tug.org/pipermail/tex-k/2021-November/003721.html.
+
 2022-02-18  Andreas Scherer  <https://ascherer.github.io>
 
 	* cwebboot.cin,
Index: dvitype.ch
===================================================================
--- dvitype.ch	(revision 62162)
+++ dvitype.ch	(working copy)
@@ -488,6 +488,14 @@ endcases;
   if show_opcodes and (o >= 128) then print (' {', o:1, '}');
 @z
 
+ at x [99]
+    begin define_font(first_par(k)); k:=nop;
+ at y
+    begin define_font(first_par(k));
+      if out_mode<>errors_only then print_ln(' ');
+      k:=nop;
+ at z
+
 @x [107] (main) No dialog; remove unused label.
 dialog; {set up all the options}
 @y

-------------- next part --------------
A non-text attachment was scrubbed...
Name: io.dvi
Type: application/octet-stream
Size: 668 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex-k/attachments/20220224/1496a7b9/attachment.obj>


More information about the tex-k mailing list.