groff-commit
[Top][All Lists]
Advanced

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

[groff] 01/38: tmac/ps.tmac: Fix Savannah #62955.


From: G. Branden Robinson
Subject: [groff] 01/38: tmac/ps.tmac: Fix Savannah #62955.
Date: Mon, 3 Oct 2022 01:42:54 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit cb7dd080d44891c032136da292fd94739d71866a
Author: Nikita Ivanov <nikita.vyach.ivanov@gmail.com>
AuthorDate: Thu Sep 8 19:01:38 2022 +0000

    tmac/ps.tmac: Fix Savannah #62955.
    
    * tmac/ps.tmac: Fallback definitions for glyphs that usually come from
      special fonts should use `schar` instead of `fchar`.  [Define fallback
      special characters using `schar` instead of `fchar` for glyphs that we
      do not expect to find in text fonts; that is, they don't have bold,
      italic, and bold-italic stylistic variants.  This means all special
      character definitions in the file except for rules, ligatures, and
      digraphs.  Problem dates back to a series of commits from March 2002
      to February 2003, straddling the introduction of the `schar` request
      in November 2002. --GBR]
    
    Fixes <https://savannah.gnu.org/bugs/?62955>.
---
 ChangeLog    | 15 +++++++++++++++
 tmac/ps.tmac | 22 +++++++++++-----------
 2 files changed, 26 insertions(+), 11 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e6c418c88..6938ae8d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2022-09-08  Nikita Ivanov <nikita.vyach.ivanov@gmail.com>
+
+       * tmac/ps.tmac: Fallback definitions for glyphs that usually
+       come from special fonts should use `schar` instead of `fchar`.
+       {Define fallback special characters using `schar` instead of
+       `fchar` for glyphs that we do not expect to find in text fonts;
+       that is, they don't have bold, italic, and bold-italic stylistic
+       variants.  This means all special character definitions in the
+       file except for rules, ligatures, and digraphs.  Problem dates
+       back to a series of commits from March 2002 to February 2003,
+       straddling the introduction of the `schar` request in November
+       2002. --GBR}
+
+       Fixes <https://savannah.gnu.org/bugs/?62955>.
+
 2022-09-21  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [ms]: Slightly simplify new `XN` macro feature to align it more
diff --git a/tmac/ps.tmac b/tmac/ps.tmac
index 8b796e376..0f512b42a 100644
--- a/tmac/ps.tmac
+++ b/tmac/ps.tmac
@@ -51,9 +51,9 @@
 .
 .char \[ru] \D'l .5m 0'
 .
-.fchar \[va] \o'\[ua]\[da]'
-.fchar \[ci] \v'-.25m'\h'.05m'\D'c .5m'\h'.05m'\v'.25m'
-.fchar \[sq] \h'.05m'\D'l .5m 0'\D'l 0 -.5m'\D'l -.5m 0'\D'l 0 .5m'\h'.55m'
+.schar \[va] \o'\[ua]\[da]'
+.schar \[ci] \v'-.25m'\h'.05m'\D'c .5m'\h'.05m'\v'.25m'
+.schar \[sq] \h'.05m'\D'l .5m 0'\D'l 0 -.5m'\D'l -.5m 0'\D'l 0 .5m'\h'.55m'
 .fchar \[Fi] f\[fi]
 .fchar \[Fl] f\[fl]
 .fchar \[ff] ff
@@ -61,15 +61,15 @@
 .fchar \[fl] fl
 .fchar \[ij] ij
 .fchar \[IJ] IJ
-.fchar \[tm] \s-3\v'-.3m'TM\v'+.3m'\s+3
+.schar \[tm] \s-3\v'-.3m'TM\v'+.3m'\s+3
 .
-.fchar \[<<] <\h'-.2m'<
-.fchar \[>>] >\h'-.2m'>
-.fchar \[|=] \v'.075m'\Z'\[mi]'\v'-.15m'\[ap]\v'.075m'
-.fchar \[nc] \v'.1m'\Z'\h'.15m'\F[T]\f[R]/'\v'-.1m'\[sp]
-.fchar \[ne] \v'.07m'\Z'\h'.13m'\F[T]\f[R]/'\v'-.07m'\[==]
-.fchar \[-h] \F[T]\f[I]\v'-.53m'\Z'\h'.05m'\D'l .3m 0''\v'.53m'h
-.fchar \[hbar] \[-h]
+.schar \[<<] <\h'-.2m'<
+.schar \[>>] >\h'-.2m'>
+.schar \[|=] \v'.075m'\Z'\[mi]'\v'-.15m'\[ap]\v'.075m'
+.schar \[nc] \v'.1m'\Z'\h'.15m'\F[T]\f[R]/'\v'-.1m'\[sp]
+.schar \[ne] \v'.07m'\Z'\h'.13m'\F[T]\f[R]/'\v'-.07m'\[==]
+.schar \[-h] \F[T]\f[I]\v'-.53m'\Z'\h'.05m'\D'l .3m 0''\v'.53m'h
+.schar \[hbar] \[-h]
 .
 .de ps-achar
 .  \" Note that character definitions are always interpreted with



reply via email to

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