Problems with Inkscape SVG images

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
cube
Posts: 13

Problems with Inkscape SVG images

Mon Oct 28, 2013 2:51 pm

I've creates some SVG-images with Inkscape. Unfortunately they are not rendered correctly in the Author view.

Default:
Image

After changing the "version" attribute in the SVG file from "1.1" to "1.2" the graphic is displayed, but has some rendering issues.
Image

With version=1.2
Image

Maybe that is a font issue, tried Sans and Arial. There should be text instead of the black boxes. Any ideas?
Radu
Posts: 5763

Re: Problems with Inkscape SVG images

Mon Oct 28, 2013 3:00 pm

Hi,

Oxygen uses the open-source Batik library to render SVG documents and the library has only partial support for SVG 1.2:

http://xmlgraphics.apache.org/batik/dev/svg12.html

As soon as the Batik library gets updated, we will bundled the new version with Oxygen.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
adrian
Posts: 2454

Re: Problems with Inkscape SVG images

Mon Oct 28, 2013 3:26 pm

Hi,

One problem particular to SVG images saved from Inkscape is that they are always tagged as SVG 1.1, even though Inkscape sometimes uses flowing text (flowRoot element) which was introduced in SVG 1.2.
There are various discussions on the web about this:
StackOverflow - How to properly display multiline text in SVG 1.1?

Having said that, as Radu mentioned, Oxygen uses the Batik library for SVG rendering and the current version of Batik (v1.7) only has partial support for SVG 1.2.
I hope hat explains why it partially works when the SVG is tagged as 1.2.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
cube
Posts: 13

Re: Problems with Inkscape SVG images

Mon Oct 28, 2013 6:51 pm

Hi Radu and Adrian,

thank you for your quick reply. If I understand you corretly, it should work with SVG 1.1, but when using 1.1 no image is rendered at all. So it is possible to use Oxygen and Inkscape-SVG without having fragments like this? How can I avoid them? Or can you recommend another SVG-Editor?

Thank you and best regards
Stefan
adrian
Posts: 2454

Re: Problems with Inkscape SVG images

Mon Nov 18, 2013 4:47 pm

Hi,

Unfortunately we do not have first hand experience using Inkscape or any other visual SVG editor for that matter. So we can't make a recommendation in the know.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
cube
Posts: 13

Re: Problems with Inkscape SVG images

Wed Dec 18, 2013 4:22 pm

I answer to myself: You must not create "Flowing Text“ with Inkscape, only "Simple Text" works. If you want enter text, do not draw a text frame, just click in the drawing area and start typing. You can try to convert "Flowing Text" to "Simple Text" via the Text menu > Convert to Text. If you still have black frames, open the SVG in text mode and remove all flowRoot elements. This is a known bug: https://bugzilla.gnome.org/show_bug.cgi?id=460904.

You can find more information here (automatically translated with Google Translator from German to English): Wikipedia - Problems with SVGs

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 0 guests