HPGL Import Extension

Bug #1159641 reported by TimeWaster on 2013-03-25
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

I wrote a HPGL Input Extension to be able to open the .hpgl files written by the HPGL Output Extension.

It is by no means a complete implementation of the hpgl standard, my intention was only to be able to open files written by the HPGL Output Extension.

Anyhow, the extension can be easily expanded and the extension warns the user that the drawing could be incomplete if any unknown (unsupported) commands are detected in the hpgl data.

it would be nice if it could be added to inkscape, code attached.

Alvin Penner (apenner) wrote :

thanks for the input!

However, there is already an Inkscape extension that can read hpgl files. It is based on Uniconvertor and reads files with the extension .plt. I've attached a sample test case of an hpgl file. I read this into Inkscape using your hpgl extension and then renamed it to be .plt and read it in again using the .plt input. In both cases the results were similar.

Would you be willing to try the .plt input to see if it is suitable?

TimeWaster (sebi-k) wrote :

hi alvin,

i know the uniconverter and .plt method, i used it many, many times (too often) while expanding the hpgl output extension.

although it does mostly the same thing as my input extension, the reasons why i wrote this input extension are the following:

- if there is a output there should be a matching input.
- renaming the file extension every time is a pain in the a**.
- the info that .hpgl and .plt files are essentially the same is not common, i only gained it after reading some inkscape wiki page about supporting file extensions in the future, and even this info was obscure.
- even if the .plt renaming method was propagated in the hpgl putput extension it would still be a broken workflow.
- my input extension is not depending on external software, it works right out of the box.

i hope you can see why i wrote this extension.

TimeWaster (sebi-k) wrote :

i forgot one very important point:

- the plt input via uniconverter does not support arbitrary dpi settings as does the hpgl output, so the drawing will have the wrong size when opening a hpgl (plt) file which was written by the hpgl output with non-standard dpi settings.

jazzynico (jazzynico) on 2013-04-03
tags: added: extensions-plugins hpgl importing
Changed in inkscape:
importance: Undecided → Wishlist
TimeWaster (sebi-k) wrote :
jazzynico (jazzynico) on 2013-04-29
Changed in inkscape:
assignee: nobody → TimeWaster (sebi-k)
status: New → In Progress
TimeWaster (sebi-k) wrote :

i don't want to be impatient or anything, but after this code gets checked in i am eligible to become contributor to inkscape and then i can check in without writing new bug reports and stealing other people's time... :)

Alvin Penner (apenner) wrote :

committed to rev 12365

I just made a few minor changes in the .py declarations to make it more consistent with current usage, and modified the tooltip for Show Movements since the default behaviour was Un-checked when first loaded.

Changed in inkscape:
status: In Progress → Fix Committed
TimeWaster (sebi-k) wrote :

hmm, i cant set the milestone... (or i am to dumb for it)

su_v (suv-lp) on 2013-06-12
Changed in inkscape:
milestone: none → 0.49
TimeWaster (sebi-k) on 2013-11-03
Changed in inkscape:
status: Fix Committed → Fix Released
jazzynico (jazzynico) on 2013-11-03
Changed in inkscape:
status: Fix Released → Fix Committed
TimeWaster (sebi-k) on 2015-02-12
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers