bugGNU roff - Bugs: bug #63200, [grodvi] doesn't map \[aq] to a...

 
 

bug #63200: [grodvi] doesn't map \[aq] to a neutral glyph

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Tue 11 Oct 2022 04:55:24 AM UTC
   
 
Category:  Driver - others/general Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.23.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 16 Oct 2022 07:55:22 PM UTC, comment #2: 


commit 3828f3a427318764f19ba06cbaf2410e662339fc
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Tue Oct 11 00:01:06 2022 -0500

    [grodvi]: Fix Savannah #63200.

    * tmac/dvi.tmac: Always render \[aq] as a neutral apostrophe.  Thanks to
      the TC fonts, we can do this even when the default CM text fonts are
      in use.

    Fixes <https://savannah.gnu.org/bugs/?63200>.

    Problem originally observed with the following.

    .TH foo 1 2022-10-10 "groff test suite"
    .SH Name
    foo \- frobnicate a bar
    .P
    .TS
    L L L.
    face    text aq, dq     special aq, dq
    _
    \f[TR]font/devdvi/TR    \[aq] \[dq]\f[] \f[TRTC]\[aq] \[dq]\f[]
    \f[TI]font/devdvi/TI    \[aq] \[dq]\f[] \f[TITC]\[aq] \[dq]\f[]
    \f[TB]font/devdvi/TB    \[aq] \[dq]\f[] \f[TBTC]\[aq] \[dq]\f[]
    \f[TBI]font/devdvi/TBI  \[aq] \[dq]\f[] \f[TBITC]\[aq] \[dq]\f[]
    \f[HR]font/devdvi/HR    \[aq] \[dq]\f[] \f[HRTC]\[aq] \[dq]\f[]
    \f[HI]font/devdvi/HI    \[aq] \[dq]\f[] \f[HITC]\[aq] \[dq]\f[]
    \f[HB]font/devdvi/HB    \[aq] \[dq]\f[] \f[HBTC]\[aq] \[dq]\f[]
    \f[HBI]font/devdvi/HBI  \[aq] \[dq]\f[] \f[HBITC]\[aq] \[dq]\f[]
    \f[CW]font/devdvi/CW    \[aq] \[dq]\f[] \f[CWTC]\[aq] \[dq]\f[]
    \f[CWI]font/devdvi/CWI  \[aq] \[dq]\f[] \f[CWITC]\[aq] \[dq]\f[]
    .TE


G. Branden Robinson <gbranden>
Group administrator
Tue 11 Oct 2022 04:56:35 AM UTC, comment #1: 

Forgot to mention--affects groff 1.22.4, and probably every version before that back to groff 1.06 (September 1992).

G. Branden Robinson <gbranden>
Group administrator
Tue 11 Oct 2022 04:55:24 AM UTC, original submission:  

In groff, the `aq` special character is fairly militantly a neutral glyph.

Except when using -Tdvi.

However, such a neutral apostrophe is always available thanks to the Text Companion (TC) fonts.

So, use the TC versions of this glyph even when employing CM for the text fonts, which is the default.


diff --git a/tmac/dvi.tmac b/tmac/dvi.tmac
index 2ff831985..5ce2c4cc2 100644
--- a/tmac/dvi.tmac
+++ b/tmac/dvi.tmac
@@ -82,7 +82,16 @@
 .fchar \[=~] \v'.1m'\Z'\[eq]'\v'-.4m'\[ap]\v'.3m'
 .fchar \[tm] \v'-.3m'\s[\En[.s]/2u]TM\s0\v'.3m'
 .\" TC fonts contain real \[aq] glyphs
-.schar \[aq] '
+.fschar TR \[aq] \f[TRTC]\[aq]
+.fschar TI \[aq] \f[TITC]\[aq]
+.fschar TB \[aq] \f[TBTC]\[aq]
+.fschar TBI \[aq] \f[TBITC]\[aq]
+.fschar HR \[aq] \f[HRTC]\[aq]
+.fschar HI \[aq] \f[HITC]\[aq]
+.fschar HB \[aq] \f[HBTC]\[aq]
+.fschar HBI \[aq] \f[HBITC]\[aq]
+.fschar CW \[aq] \f[CWTC]\[aq]
+.fschar CWI \[aq] \f[CWITC]\[aq]
 .fchar \[bq] ,
 .fchar \[Bq] ,\h'\w'\[rq]'u-(2u*\w"'"u)',
 .fchar \[ho] \s[\En[.s]/2u]\v'.4m'c\v'-.4m'\s0


G. Branden Robinson <gbranden>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-10-16 gbranden StatusIn Progress Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.23.0

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code