bug-groff
[Top][All Lists]
Advanced

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

[bug #43905] [PATCH] duplicate glyph-codepoint mappings for curly braces


From: Ingo Schwarze
Subject: [bug #43905] [PATCH] duplicate glyph-codepoint mappings for curly braces
Date: Tue, 30 Dec 2014 10:10:45 +0000
User-agent: Mozilla/5.0 (X11; OpenBSD i386; rv:34.0) Gecko/20100101 Firefox/34.0

URL:
  <http://savannah.gnu.org/bugs/?43905>

                 Summary: [PATCH] duplicate glyph-codepoint mappings for curly
braces
                 Project: GNU troff
            Submitted by: schwarze
            Submitted on: Tue 30 Dec 2014 10:10:44 AM GMT
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

The glyph-to-codepoint and codepoint-to-glyph mappings in libgroff contain
duplicate entries for the glyphs \[lt], \[lk], \[lb], \[rt], \[rk], and \[rb].
 One consequence is that for the -Tutf8 output device, requesting the \[u23A7]
glyph in the input stream (as documented in the groff_char(7) manual)
surprisingly results in an U+256D character (0xE2 95 AD byte sequence) in the
output stream because it gets internally translated u23A7 -> lt -> 256D. 
There may be other consequences.  Using \[bracelefttp], on the other hand,
works as expected.

The attached patch solves the problem.

The following lines in the following files look suspicious as well, in
particular since those files do not contain "23A7", but i'm not providing
patches for these three files because i don't own such devices, cannot
properly test, and don't understand those files well enough:

font/devlj4/S:u256D 26346,7410,6588 1 128354 -- MSL 646 (15U 98)
font/devlj4/generate/special.map:646 256D u256D
src/utils/hpftodit/hpuni.cpp: { "646", "256D", },



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 30 Dec 2014 10:10:44 AM GMT  Name: braces.patch  Size: 1kB   By:
schwarze

<http://savannah.gnu.org/bugs/download.php?file_id=32733>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43905>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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