[lltx] [metapost] luamplib
Elie Roux
elie.roux at telecom-bretagne.eu
Sat Nov 13 09:19:33 CET 2010
Hans Hagen a écrit :
> Hi Ely,
>
> in luamplib there is a bug:
>
> local function pen_characteristics(object)
> if luamplib.pen_info then
> local t = luamplib.pen_info(object)
> rx, ry, sx, sy, tx, ty = t.rx, t.ry, t.sx, t.sy, t.tx, t.ty
> divider = sx*sy - rx*ry
> return not (sx==1 and rx==0 and ry==0 and sy==1 and tx==0 and
> ty==0), t.width
> else
> rx, sx, sy, ry, tx, ty, divider = 1, 0, 0, 1, 0, 0, 1
> return false, 1
> end
> end
>
> luamplib.pen_info
>
> should be
>
> mplib.pen_info
>
> (probably some side effect of renaming at your end)
>
> Actually I think that
>
> local function pen_characteristics(object)
> local t = mplib.pen_info(object)
> rx, ry, sx, sy, tx, ty = t.rx, t.ry, t.sx, t.sy, t.tx, t.ty
> divider = sx*sy - rx*ry
> return not (sx==1 and rx==0 and ry==0 and sy==1 and tx==0 and
> ty==0), t.width
> end
>
> is ok as well, as pen_info is already in mpib for a while
Hello Hans,
Thank you for your report! I'm not working on the packages anymore, but
I transfer the informations.
Thank you,
--
Elie
More information about the lualatex-dev
mailing list