bugGNU roff - Bugs: bug #42393, Incorrect unicode codes for...

 
 

bug #42393: Incorrect unicode codes for tcommaaccent and Tcommaaccent characters in devpdf

Submitter:  Costin Stroie <cstroie>
Submitted:  Tue 20 May 2014 03:51:49 PM UTC
   
 
Category:  Driver gropdf Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  Invalid
Privacy:  Public Assigned to:  wl
Open/Closed:  Closed Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 20 May 2014 09:56:46 PM UTC, comment #3: 

The data in `afmtodit.tables' is algorithmically derived from the Adobe Glyph List, version 2.0.  In this file, for backwards compatibility, both `tcommaaccent' and `tcedilla' point to U+0163.

Note the word `backwards compatibility': The PostScript glyph names are older than the Unicode points for the `WITH COMMA BELOW' forms, which have been introduced in Unicode version 3.0!

In other words, the mapping is correct, and I won't change it. 

New (OpenType) fonts should not use those glyph names!  Instead, they should use PostScript names like `u0074_u0326'.

If someone provided a patch for a new command line option to make afmtodit change those mappings to a Romanian locale...

Werner LEMBERG <wl>
Group administrator
Tue 20 May 2014 04:36:40 PM UTC, comment #2: 

Actually, the relevent lines are 127/8 of afmtodit.tables which is merged into afmtodit.pl during installation.

Deri James <deri>
Group Member
Tue 20 May 2014 04:22:17 PM UTC, comment #1: 

I believe this is due to the table in afmtodit.pl lines 163/4 contain the code ending in "7". DEVPDF uses 'afmtodit.pl' to generate the U_* fonts during installation.

I can prepare a patch for afmtodit if someone (Werner?) can confirm this is the correct 'fix'. Of course this will only fix new installations, so afmtodit by th user to fix existing U_* fonts.

Deri James <deri>
Group Member
Tue 20 May 2014 03:51:49 PM UTC, original submission:  

Regarding the devpdf driver (I have not checked the others), the codes used in 'U-*' fonts for the Romanian characters "LATIN SMALL LETTER T WITH COMMA BELOW" and "LATIN CAPITAL LETTER T WITH COMMA BELOW", named tcommaaccent and Tcommaaccent in postscript conventions, are wrong.

For tcommaaccent, the right code is u0074_0326. For Tcommaaccent, the right code is u0054_0326. In groff version 1.22.2, the codes are u0074_0327 and u0054_0327, respectively, with '7' instead of final '6'. These correspond to the other character forms, using cedilla, not comma. The correct Romanian form is using comma.


References

http://www.fileformat.info/info/unicode/char/021b/index.htm
http://www.fileformat.info/info/unicode/char/21a/index.htm

http://cpansearch.perl.org/src/ARC/perl-5.17.8/cpan/Unicode-Collate/Collate/Locale/ro.pl

Costin Stroie <cstroie>

 

(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 (Updated the item)
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by deri (Posted a comment)
  • -email is unavailable- added by cstroie (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-01-22 gbranden CategoryNone Driver gropdf
        Item GroupNone Incorrect behaviour
    2014-05-20 wl StatusNone Invalid
        Assigned toNone wl
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code