gbranden pushed a commit to branch master
in repository groff.

commit 087aced68d3de71a3a9f0df7556a5928dcf25360
Author: Dave Kemper <[email protected]>
AuthorDate: Thu Apr 3 17:11:10 2025 +0000

    tmac/fallbacks.tmac: Fix Savannah #63354.
    
    * tmac/fallbacks.tmac: Add fallback character definitions for more code
      points from Unicode's General Punctuation code chart.
      - U+2008 PUNCTUATION SPACE
      - U+2012 FIGURE DASH
      - U+202F NARROW NO-BREAK SPACE
      - U+203D INTERROBANG
    
    Fixes <https://savannah.gnu.org/bugs/?63354>.
---
 ChangeLog           | 11 +++++++++++
 tmac/fallbacks.tmac | 14 +++++++-------
 2 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5d77051fa..fc6956554 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2025-08-28  Dave Kemper <[email protected]>
+
+       * tmac/fallbacks.tmac: Add fallback character definitions for
+       more code points from Unicode's General Punctuation code chart.
+       - U+2008 PUNCTUATION SPACE
+       - U+2012 FIGURE DASH
+       - U+202F NARROW NO-BREAK SPACE
+       - U+203D INTERROBANG
+
+       Fixes <https://savannah.gnu.org/bugs/?63354>.
+
 2025-08-13  G. Branden Robinson <[email protected]>
 
        * font/devpdf/devpdf.am: Rationalize use of make(1) macros for
diff --git a/tmac/fallbacks.tmac b/tmac/fallbacks.tmac
index d23fb83bd..0862092f5 100644
--- a/tmac/fallbacks.tmac
+++ b/tmac/fallbacks.tmac
@@ -157,19 +157,16 @@
 .fchar \[u2005] \h'1/4u'\" four-per-em space
 .fchar \[u2006] \h'1/6u'\" six-per-em space
 .fchar \[u2007] \0\" figure space
-.fchar \[u2008] \^\" punctuation space
+.ie \n[fallbacks*troff-mode] .fchar \[u2008] \|\" punctuation space
+.el                          .fchar \[u2008] " \" punctuation space
 .fchar \[u2009] \|\" thin space
 .fchar \[u200A] \^\" hair space
 .\" Mapping U+200B awaits resolution of Savannah #58958.
 .\"fchar \[u200B] \h'0'\" zero-width space
 .\" \[u2010] is always defined thanks to uniglyph.cpp.
-.\"fchar \[u2010] -\:\" hyphen
 .\" Mapping U+2011 awaits resolution of Savannah #63354.
 .\"fchar \[u2011] -\" non-breaking hyphen (won't break w/o .hcode or \:)
-.ie \n[fallbacks*troff-mode] \
-.  fchar \[u2012] \^\v'-.3m'\l'\w"\0"u'\v'+.3m'\^\" figure dash
-.el \
-.  fchar \[u2012] \-
+.fchar \[u2012] \o'-\0'\" figure dash
 .fchar \[u2013] \[en]\" en dash
 .fchar \[u2014] \[em]\" em dash
 .fchar \[u2015] \[em]\" horizontal bar (quotation dash)
@@ -189,14 +186,17 @@
 .fchar \[u2025] .\|.\" two dot leader
 .fchar \[u2026] .\|.\|.\" horizontal ellipsis
 .fchar \[u2027] \[pc]\" hyphenation point
+.fchar \[u202F] \|\" narrow no-break space
 .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] \
+.ie \n[fallbacks*troff-mode] \
 .  fchar \[u203D] \o'?!'\" interrobang
+.el \
+.  fchar \[u203D] !?
 .if \n[fallbacks*troff-mode] \
 .  fchar \[u203E] \[rn]\" overline \" Savannah #63332 again
 .fchar \[u2044] \[f/]\" fraction slash

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to