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

 
 

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

Submitted by:  Costin Stroie <cstroie>
Submitted on:  Tue 20 May 2014 03:51:49 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: Werner LEMBERG <wl>
Open/Closed: ClosedPlanned Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by deri (Posted a comment)
  • -unavailable- added by cstroie (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 20 May 2014 09:56:46 PM UTCwlStatusNone=>Invalid
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1