bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #63332] [PATCH] recent fallbacks.tmac change degrades ASCII output


From: Dave
Subject: [bug #63332] [PATCH] recent fallbacks.tmac change degrades ASCII output
Date: Mon, 28 Aug 2023 04:34:32 -0400 (EDT)

Update of bug #63332 (project groff):

                 Summary: recent fallbacks.tmac change degrades ASCII output
=> [PATCH] recent fallbacks.tmac change degrades ASCII output

    _______________________________________________________

Follow-up Comment #16:

Oh, I guess one minor thing can be done right away: comment #11 suggests that
the problematic definitions can now be suppressed only on the devices where
they're problematic, which makes them a bit more useful until the root problem
(comment #1) can be debugged.

diff --git a/tmac/fallbacks.tmac b/tmac/fallbacks.tmac
index 162e57eea..d30e59a16 100644
--- a/tmac/fallbacks.tmac
+++ b/tmac/fallbacks.tmac
@@ -182,22 +182,24 @@
 .\"fchar \[u2019] \[cq]\" right single quotation mark
 .\"fchar \[u201C] \[lq]\" left double quotation mark
 .\"fchar \[u201D] \[rq]\" right double quotation mark
-.\" XXX: The next two are troublesome; see Savannah #63332.
-.\"fchar \[u2020] \[dg]\" dagger
-.\"fchar \[u2021] \[dd]\" double dagger
+.\" XXX: The next two are troublesome in nroff; see Savannah #63332.
+.if \n[fallbacks*troff-mode] .fchar \[u2020] \[dg]\" dagger
+.if \n[fallbacks*troff-mode] .fchar \[u2021] \[dd]\" double dagger
 .fchar \[u2022] \[bu]\" bullet
 .fchar \[u2024] .\" one dot leader
 .fchar \[u2025] .\|.\" two dot leader
 .fchar \[u2026] .\|.\|.\" horizontal ellipsis
 .fchar \[u2027] \[pc]\" hyphenation point
-.\"fchar \[u2030] \[%0]\" per mille sign \" Savannah #63332 again
+.if \n[fallbacks*troff-mode] \
+.  fchar \[u2030] \[%0]\" per mille sign \" Savannah #63332 again
 .fchar \[u2032] \[fm]\" prime
 .fchar \[u2033] \[sd]\" double prime
 .fchar \[u2039] \[fo]\" left single chevron
 .fchar \[u203A] \[fc]\" right single chevron
 .if \n[fallbacks*troff-mode] \
 .  fchar \[u203D] \o'?!'\" interrobang
-.\"fchar \[u203E] \[rn]\" overline \" Savannah #63332 again
+.if \n[fallbacks*troff-mode] \
+.  fchar \[u203E] \[rn]\" overline \" Savannah #63332 again
 .fchar \[u2044] \[f/]\" fraction slash
 .fchar \[u2052] %\" commercial minus sign
 .fchar \[u2053] \[ti]\" swung dash

I've tested with the reproducer in the [comment #0 original submission] to
confirm this patch doesn't reintroduce the problem.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63332>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]