bug-groff
[Top][All Lists]
Advanced

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

[bug #55042] [PATCH] The character \[u00A0] is not recognized


From: Bjarni Ingi Gislason
Subject: [bug #55042] [PATCH] The character \[u00A0] is not recognized
Date: Sat, 17 Nov 2018 11:07:23 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

URL:
  <https://savannah.gnu.org/bugs/?55042>

                 Summary: [PATCH] The character \[u00A0] is not recognized
                 Project: GNU troff
            Submitted by: bjarniig
            Submitted on: Sat 17 Nov 2018 04:07:21 PM UTC
                Category: Macro - others
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

>From f47b7dd139525bf3b8b4fbe767c3a45816c8445a Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <address@hidden>
Date: Sat, 17 Nov 2018 15:59:09 +0000
Subject: [PATCH] The character \[u00A0] is not recognized
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

  The input character "no-break space" (' ', 0xA0) is mapped by "groff"
to '\~' (groff_char(7)), but only the character name '\[char160]' is
translated in the file "tmac/troffrc".

  The "preconv" translates the no-break space to the name '\[u00A0]'.

  Example:

.pl 3v
A\[char161]B\[char160]C
.br
.\".tr \[u00A0]\~
A\[u00A1]B\[u00A0]C

  or

echo ' ' | preconv

Signed-off-by: Bjarni Ingi Gislason <address@hidden>
---
 tmac/troffrc | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)


diff --git a/tmac/troffrc b/tmac/troffrc
index 1bd4aa8c..8895a9a0 100644
--- a/tmac/troffrc
+++ b/tmac/troffrc
@@ -33,10 +33,14 @@ troffrc!X100 troffrc!X100-12 troffrc!lj4 troff!lbp
troffrc!html troffrc!pdf
 .
 .\" Test whether we work under EBCDIC and map the no-breakable space
 .\" character accordingly.
-.do ie '\[char97]'a' \
+.do ie '\[char97]'a' \{\
 .      do tr \[char160]\~
-.el \
+.      do tr \[u00A0]\~
+.\}
+.el \{\
 .      do tr \[char65]\~
+.      do tr \[u0041]\~
+.\}
 .
 .\" Set the hyphenation language to 'us'.
 .do hla us
-- 
2.19.1






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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