Comment 7 for bug 548918

Revision history for this message
Neil Baylis (neil-baylis) wrote : Re: [Bug 548918] Re: HPGL output scaling incorrect
  • xxx.hpgl Edit (64 bytes, application/octet-stream; name="xxx.hpgl")
  • xxx.svg Edit (2.1 KiB, image/svg+xml; name="xxx.svg")

Hi Alvin,

On Mon, Mar 29, 2010 at 6:25 PM, Alvin Penner <email address hidden> wrote:
> unfortunately, I don't know how to associate specific pen numbers with
> layers. This information would be document-specific so it would need to
> be saved in the svg file, not in the Inkscape preferences.
>

I understand. I was thinking of just starting with pen 1, and
incrementing the pen number for each layer. But I'm not sure if that
would work for other users.

Having the option of selecting a single pen in the save-as dialog is
probably a good compromise. This way, the user can at least make a
separate hpgl file for each pen.

The changes you provided seem to work OK, except there seems to be an
extra point plotted at the end.

I made a test drawing that draws a 1 inch square located at 0,0. I've
attached the svg file and the resulting hpgl file. If you look before
the final 'PU;" there are two identical 'PD0,1019;' entries. Looking
at the code, it's not immediately clear to me why this is happening.
This extra point has no effect on the plotter, because it's identical
to the previous one.

Neil