#33 wrong parsing of .enc files

closed
Jörg Lehmann
5
2012-10-16
2006-02-11
Mojca Miklavec
No

How to reproduce the error?
text.preamble(r"\usepackage{iwona}")

Reason for misbehaviour:
some .enc files may start with something like this:

/enciwona-qx[
/alpha

PyX considers '[' being part of the encoding name and
expects another '[' to appear.

Please also try with
text.preamble(r"\usepackage{lmodern}")

Parsing of .enc files is simple, but yet not as trivial
as it may seem to be.

Mojca

PS: Hoping that PyX will support ConTeXt once as well,
not only (hardcoded) LaTeX;
www.pragma-ade.com/overview.htm. But PyX seems to be
great anyway.

Discussion

  • Jörg Lehmann
    Jörg Lehmann
    2006-02-11

    Logged In: YES
    user_id=390410

    Hi Mojca,

    I checked in a fix. Could you maybe checkout the CVS
    version of PyX and try whether it fixes the problem. I
    neither have the iwona package nor, as it seems, the fonts
    for the lmodern package installed.

    Thanks,

    Jörg
    

    PS: With respect to ConTeXt support, I have to say that
    adding this, is not a priority for us, since neither of
    the developers is a ConTeXt user.

     
  • Mojca Miklavec
    Mojca Miklavec
    2006-02-11

    Logged In: YES
    user_id=1411306

    Which files did you change? Type1font and encoding weren't
    changed unless I didn't look close enough.

    The problem wasn't solved, but I might have done something
    wrong. I'm attaching an example of an encoding file which
    might cause problems in addition to "/encodingname[".

    Iwona is not that important (just a nice and pretty complete
    font), but Latin Modern should slowly replace Computer
    Modern and might be of greater importance. For your info
    only, not so important for PyX itself.

    http://www.ctan.org/tex-archive/fonts/lm/
    http://www.cstug.cz/aktivity/2005/lm-at11e.pdf

    Thanks for the very fast response.

    Mojca

    (I understand that ConTeXt is not a priority in any way, I
    would also prefer to see other features before this one. In
    most cases of typesetting simple labels there is not that
    big difference if plain TeX/LaTeX/ConTeXt is used. It was
    just a thought ...)

     
  • Mojca Miklavec
    Mojca Miklavec
    2006-02-11

    Logged In: YES
    user_id=1411306

    Which files did you change? Type1font and encoding weren't
    changed unless I didn't look close enough.

    The problem wasn't solved, but I might have done something
    wrong. I'm attaching an example of an encoding file which
    might cause problems in addition to "/encodingname[".

    Iwona is not that important (just a nice and pretty complete
    font), but Latin Modern should slowly replace Computer
    Modern and might be of greater importance. For your info
    only, not so important for PyX itself.

    http://www.ctan.org/tex-archive/fonts/lm/
    http://www.cstug.cz/aktivity/2005/lm-at11e.pdf

    Thanks for the very fast response.

    Mojca

    (I understand that ConTeXt is not a priority in any way, I
    would also prefer to see other features before this one. In
    most cases of typesetting simple labels there is not that
    big difference if plain TeX/LaTeX/ConTeXt is used. It was
    just a thought ...)

     
  • Mojca Miklavec
    Mojca Miklavec
    2006-02-11

    Example of a more complex encoding file

     
    Attachments
  • Jörg Lehmann
    Jörg Lehmann
    2006-02-25

    Logged In: YES
    user_id=390410

    Hello Mojca,

    sorry for my late reply, somehow your response slipped
    through my radar. Anyway, could you try again. I'm pretty
    sure that both of your problems (with the iwona and the
    lmodern package) have been fixed now.

    Jörg
    
     
  • Jörg Lehmann
    Jörg Lehmann
    2006-05-20

    Logged In: YES
    user_id=390410

    I'm marking this bug as fixed and close it. Feel free to
    reopen it again, if the problem has not been fixed.

    Jörg