bugGNU TeXmacs - Bugs: bug #38031, Encoding of Pandora font

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #38031: Encoding of Pandora font

Submitter:  Miguel de Benito <mdbenito>
Submitted:  Sun 06 Jan 2013 08:24:29 PM UTC
   
 
Category:  Typesetter Priority:  5 - Normal
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  vdhoeven
Originator Name:  Open/Closed:  Closed
Release:  None Release: 
Fixed Release:  None Fixed Release: 
Keywords: 

Fri 29 Nov 2013 05:58:59 PM UTC, comment #1: 

OK, I applied your patch.  I cannot really test with the old style font mechanism, because TeX did not install any Pandora fonts on my system (I hard copied them, so they are only recognized by the new font system).  It seems that the Pandora fonts use the EC encoding except for the range 0 until 31, where they follow the CM encoding.  Well, all this is really exotic and deprecated, but I applied your patch; thanks.

Joris van der Hoeven <vdhoeven>
Group administrator
Sun 06 Jan 2013 08:24:29 PM UTC, original submission:  

Select Document->Program font->Pandora and open a scheme session.  Type an accented letter, like á ä ö. The letters displayed are ok, but the overlayed accents are not («, instead of ´ for instance).

The font rules for Pandora fonts in fonts-ec.scm say they are CM instead of EC. This results in find_font() instantiating them via tex_cm_font(). As a result typesetting of accented characters happens using CM_accents[] and CM_unaccented[], which I think follow the OT1 font encoding (see ftp://ftp.dante.de/pub/tex/macros/latex/doc/encguide.pdf ).

However, the proper encoding for whatever font is actually used seems to be T1 (sloppily checked changing the character codes in CM_accents[] to follow T1, i.e \01 instead of \23, for the acute accent, etc.)

The attached patch changes the font rules for Pandora. Because I'm not sure the problem is not due to the lack of a particular font in my system or some weird side-effect thereof, I cannot commit until someone knowledgeable gives some input.

Miguel de Benito <mdbenito>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #27210:  pandora-ec.patch added by mdbenito (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by mdbenito (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.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-11-29 vdhoeven StatusNeed Info Fixed
        Assigned tomdbenito vdhoeven
        Open/ClosedOpen Closed
    2013-08-15 mdbenito StatusConfirmed Need Info
        Assigned toNone mdbenito
    2013-01-06 mdbenito Attached File- Added pandora-ec.patch, #27210

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code