Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#12 paperformat units wrong

closed
nobody
None
5
2012-10-16
2003-09-02
No

I just tried for the first time to set paperformat='letter', and
discovered an error. in _paperformats, the units for 'letter'
and 'legal' are specified as
"letter" : ("8.5 t in", "11 t in"),
"legal" : ("8.5 t in", "14 t in")}
unfortunately, pyx.units defines the inch unit as 'inch' and
not 'in'. Please either add 'in' as an alias for an inch in
pyx.units, or change _paperformats in pyx.canvas to use the
current name.

Thanks.

Discussion

  • Andre Wobst
    Andre Wobst
    2003-09-02

    Logged In: YES
    user_id=405853

    The definition of _paperformats was corrected in CVS a few
    days ago already. Discussing the other way to get rid of the
    problem (switching to "in" instead of "inch" in pyx.unit) we
    found, that it would break some naming scheme in pyx.unit
    because "in" is a python keyword. However, as you requested,
    it might still be nice to have just another alias "in" for
    inch in the string handling of pyx.unit while primary keep
    the name "inch" due to the python keyword "in".

    Thanks for reporting this bug.