Misplaced elements when converting from svg to wmf

Bug #486734 reported by markus haider
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned
UniConvertor
Fix Committed
Undecided
Unassigned
python-uniconvertor (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

Binary package hint: python-uniconvertor

When converting the enclosed svg file into wmf, labels at the axes of the graph get displaced. I experienced this using the python-uniconvertor package (1.1.4) as well as uniconvertor build from svn (1.1.5 prerelease).

As wmf/emf seems to be the only vector format open office supports (except from odg), it would be great if this could get fixed.

By the way, http://sk1project.org/modules.php?name=Products&product=uniconvertor&op=devres it is stated that launchpad is the official bug-tracker...

clarification added by ~suv: the link at the UniConvertor Developer Resources page points to their own, so far unused launchpad bugtracker, not to the one from Inkscape.

Revision history for this message
markus haider (markus.haider) wrote :
description: updated
Revision history for this message
markus haider (markus.haider) wrote :

I get the same result when converting with inkscape, which uses uniconvertor as far as I know for conversion...

description: updated
su_v (suv-lp)
description: updated
description: updated
Revision history for this message
Alvin Penner (apenner) wrote :

this is a uniconvertor bug, not an Inkscape bug, I encounter the same problem when I use uniconvertor 1.1.3 from a DOS prompt.

as a temporary workaround, have you tried emf? attached is the emf obtained from Inkscape 0.47pre4 in Windows XP.

Revision history for this message
su_v (suv-lp) wrote :

changing status to 'Invalid' in Inkscape since
a) the source file was created with 'matplotlib' not Inkscape
b) as confirmed by Alvin Penner it also happens when using UniConvertor on the command line outside of inkscape

Changed in inkscape:
status: New → Invalid
Revision history for this message
markus haider (markus.haider) wrote :

Unfortunatly, the Linux version of Inkscape 0.47pre4 r22446 (which I use) is not capable of exporting into emf. If emf export gets possible, my problem would be solved

Revision history for this message
markus haider (markus.haider) wrote :

I am aware that this is a uniconvertor bug, I just wanted to point out, that this also affects inkscape.

Revision history for this message
su_v (suv-lp) wrote :

UniConverter is currently used by Inkscape as helper application for these extensions:
input: ccx, cdr, cdt, cgm, cmx, plt, sk1, wmf
output: plt, sk1, wmf
Bug reports (in Inkscape but concerning UniConvertor) have been filed about CDR import and WMF export, mainly concerning text or unsupported svg elements.

Maybe a RFE for improved or easier data exchange with OpenOffice.org (cross-platform) would be more rewarding to open a discussion about the issue? Are there no plans by OOo to fully support SVG or third-party plugins available (like for PDF)?

Revision history for this message
markus haider (markus.haider) wrote :

I completely agree, the main problem is that openoffice does not support svg, eps or pdf, and openoffice is the place where this should be fixed. However, I don't see a solution there in the near future:

http://qa.openoffice.org/issues/show_bug.cgi?id=49991 (opened 2005)
http://qa.openoffice.org/issues/show_bug.cgi?id=2497 (opened 2005)
http://wiki.services.openoffice.org/wiki/SVG_Import_Filter

There actually is a svg import filter, however it doesn't seem to work very well (see attached screenshot, where I imported my initial svg file). As far as I know, it translates svg into odg, therefore I think this filter will have problems for quite some time. I think the inability to display svg or eps/pdf files is really a problem which should be solved.

I also tried the pdf import filter from the open office extensions, but it also doesn't display the graph right

Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Ubuntu 9.10, UniConvertor 1.1.4.

Changed in uniconvertor:
status: New → Confirmed
Revision history for this message
max (maxim-s-barabash) wrote :

Please test svg import filter for uniconvertor correcting this error. To do this, just replace the file in the attachment to the message.

Revision history for this message
markus haider (markus.haider) wrote :

@max: I tried your svgloader.py and It worked perfectly, as you can see in the attachment. I wish all bugs could be resolved so fast...

Thanks for the great work

Revision history for this message
jazzynico (jazzynico) wrote :

Marking it "in progress".
Don't hesitate to change the status when the patch is officially committed or released on UniConvertor.

Changed in uniconvertor:
status: Confirmed → In Progress
jazzynico (jazzynico)
Changed in python-uniconvertor (Ubuntu):
status: New → In Progress
Revision history for this message
markus haider (markus.haider) wrote :

Unfortuantly I came across a further issue. I created a colorplot using matplotlib, where the region inside the axes is rasterized (see issue2.svg). When I convert it to wmf (see issue2.wmf), this region vanishes. Another strange thing is, that the color of the colorbar labels gets changed.

Revision history for this message
markus haider (markus.haider) wrote :
Revision history for this message
max (maxim-s-barabash) wrote :

Unfortunately problems with the file issue2.svg, in the near future will not be resolved. The main reason is the filter wmfsaver.py, which has long been prepared but not integrated into the trunk. The man responsible for this operation is very busy.

Revision history for this message
markus haider (markus.haider) wrote :

Is it a difficult task? Perhaps I could try, if somebody gives me an idea of what has to be done where

Revision history for this message
max (maxim-s-barabash) wrote :

Source code for wmf / emf is in the subproject pymfvu
http://sk1project.org/modules.php?name=Products&product=pymfvu

If you have an interest please contact the project leader sK1 Forum
http://sk1project.org/forum/index.php

Revision history for this message
markus haider (markus.haider) wrote :

Thanks. From a fast look at the code I fear that I am not able to contribute something usable within a reasonable amount of time.

Changed in python-uniconvertor (Ubuntu):
status: In Progress → Triaged
max (maxim-s-barabash)
Changed in python-uniconvertor (Ubuntu):
status: Triaged → Fix Committed
Changed in uniconvertor:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.