Bug 32248 - FILEOPEN SVG no TEXT visible
Summary: FILEOPEN SVG no TEXT visible
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Drawing (show other bugs)
Version: 3.3.0 RC1
Hardware: All All
: high minor
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: Confirmed:4.1.3.2:OSX Confirmed:4.3.0...
Keywords:
: 33161 37994 39599 64006 68682 69638 70739 72246 74842 (view as bug list)
Depends on:
Blocks: 88277
  Show dependency treegraph
 
Reported: 2010-12-08 22:36 UTC by grigoreflorin1985
Modified: 2015-01-15 13:58 UTC (History)
28 users (show)

See Also:
i915 platform:
i915 features:


Attachments
svg text only that give the bug on RC1 (2.32 KB, image/svg+xml)
2010-12-08 22:36 UTC, grigoreflorin1985
Details
screenshot of both test files inserted in writer (23.22 KB, image/png)
2014-05-03 19:06 UTC, Christina Rossmanith
Details

Description grigoreflorin1985 2010-12-08 22:36:45 UTC
Created attachment 40940 [details]
svg text only that give the bug on RC1

I have tested in Gimp same SVG with only TEXT (some paragraphs) exported clean from Inkscape , in Gimp loads flawless, in Inkscape loads flawless and in LibreOffice no text apears.

I need SVG text to be imported and editable like other SVG shapes in particular that LibreOffice it is an Office tools for writen documents , so this it is a Bloker if not fixed until major release.


There I upload the test SVG file that loads perfectly in other svg importing apps notable : gimp 2.6.11 , inkscape (dev version december)..etc
Comment 1 Yifan Jiang 2010-12-08 22:50:38 UTC
Ye...this is an issue for some time. Thanks for reporting.

Thorsten, would you have a review? It should be there since at least 3.2.1, if I remember it right. So not a regression.
Comment 2 grigoreflorin1985 2010-12-08 23:19:02 UTC
I`m glad i can help :)
Comment 3 Thorsten Behrens 2010-12-10 03:54:57 UTC
Yeah, indeed a problem. Does not happen for most of the openclipart svgs, thus reducing severity (see https://bugs.freedesktop.org/page.cgi?id=fields.html#importance for the scale). There's a native renderer for svg in the making, that should solve this (and many more) problems,
Comment 4 Kurosawa Takeshi 2011-01-26 04:16:30 UTC
*** Bug 33161 has been marked as a duplicate of this bug. ***
Comment 5 Jürgen Sauer 2011-03-07 00:41:54 UTC
This "SVG is Drawn without Text" is also hitting us.
Our Logo (SVG Design by Inkscape saved as Standard SVG) is drwan wrong:
http://www.automatix.de/cms/index.php/Datei:AutomatiX-Logo.svg

Imported to LibreOffice Writer the text is missing. :(
But imported into the Draw Module all seems to be correct.
This File show the wrong way:
http://www.automatix.de/cms/index.php/Datei:Wrong-SVG-Import-to-LibreOffice_Writer.odt
This File shows the correct way in Draw:
http://www.automatix.de/cms/index.php/Datei:AutomatiX-Logo-correct-import-to-draw.odg

I hope I could help stomething.
You can take this files for testing :)
Comment 6 Jürgen Sauer 2011-03-07 00:44:34 UTC
(In reply to comment #5)
Belong to Version: LibreOffice 3.3.1 
OOO330m19 (Build:8)
tag libreoffice-3.3.1.2, Ubuntu package 1:3.3.1-1ubuntu3~lucid2
Comment 7 Carl Michal 2011-07-22 16:16:54 UTC
I've looked a number of SVG files where text does import and others where it doesn't and think I've found the common denominator. It looks like text within tspan elements is thrown away. tspan is described here: http://www.w3.org/TR/SVG/text.html#TSpanElement

and it looks like recent versions of inkscape (and gnuplot) put text into tspan elements by default. It seems like this should not be horribly difficult to implement at least the x, y, dx, dy and rotate properties of tspan - since those should already be implemented for the base text element?

Taking the text that is missing from the broken svg files attached to this bug out of tspan elements and putting them into the parent text element manually allows them to be rendered in libreoffice draw (both the bugtest attachment above and the automatix logo).
Comment 8 Carl Michal 2011-07-22 16:46:24 UTC
ok - spoke a little too quickly.  The problem with gnuplot's text is different.
gnuplot produces text that looks like this:

	<g transform="translate(45.6,405.8)"  style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
		<text> 10</text>
	</g>

which appears to be thrown away because there are no explicit coordinates given.  If the <text> is replaced with <text x="0" y="0"> then the text renders (in almost, but not quite, the right place - looks like the end alignment is ignored).
Comment 9 Rainer Bielefeld Retired 2011-07-27 08:24:02 UTC
We have some similar bugs with similar results for me (Seamonkey and OOo show text, LibO not:
Bug 39554 - Insert->Picture->From File... *.SVG not correctly
Bug 39599 - EDITING, FILEOPEN SVG TEXT INKSCAPE
Bug 37994 - Wrong import of SVG files

We should try to get some order into this issue.
Comment 10 maressyl 2013-01-21 09:56:39 UTC
Still happening in 3.6.4.3 on Windows XP SP3 32 bits.
Comment 11 ign_christian 2013-06-19 06:54:32 UTC
*** Bug 39599 has been marked as a duplicate of this bug. ***
Comment 12 ign_christian 2013-06-19 06:57:37 UTC
Change component to: Drawing

Confirming still reproducible on LO 4.0.4.2 (Win7 32bit)
Comment 13 bfoman 2013-07-25 13:17:49 UTC
Checked with:
LO 4.2.0.0.alfa0
Build ID: 2013-06-24 own debug build 
Windows 7 Professional SP1 64 bit

Could not reproduce. Both bugtest.svg, AutomatiX-Logo.svg are displayed correctly in Writer and Draw.
Comment 14 Thorsten Behrens 2013-09-12 16:14:48 UTC
Apologies for not having gotten around fixing this bug yet; unfortunately in future I'll have even less time at my disposal for this, so I'm freeing up ownership for other volunteers to take over.
Comment 15 Julien Nabet 2013-11-15 21:22:35 UTC
On pc Debian x86-64 with master sources updated today, here's what I got by using Draw:
1) with Automatix-Logo.svg, I can see the logo but not the text bellow.

console logs:
warn:xmloff.core:16464:1:xmloff/source/core/xmlimp.cxx:726: SvXMLImport::endElement: popped context has wrong prefix
warn:xmloff.core:16464:1:xmloff/source/core/xmlimp.cxx:726: SvXMLImport::endElement: popped context has wrong prefix
warn:legacy.osl:16464:1:svx/source/sdr/contact/viewcontactofsdrpathobj.cxx:67: PolyPolygon object without geometry detected, this should not be created (!)


2) with bugtext shows nothing and same console logs:
warn:xmloff.core:16464:1:xmloff/source/core/xmlimp.cxx:726: SvXMLImport::endElement: popped context has wrong prefix
warn:xmloff.core:16464:1:xmloff/source/core/xmlimp.cxx:726: SvXMLImport::endElement: popped context has wrong prefix
Comment 16 Jon Grossart 2013-11-26 07:03:10 UTC
In Inkscape, try converting from Flowed Text to either:

1) Text > Convert to Text (requires the font to be present on the system to render correctly)
or
2) Convert object to paths (bigger file size, will always render correctly)

I've fixed importing with no text by doing these things. FlowedText is Inkscape specific and not part of SVG spec.
Comment 17 Regina Henschel 2013-12-03 19:28:00 UTC
The text is there, if you insert the *.svg image into a Draw document, but it is missing, if you use File > Open. This is a LO only problem, in AOO the text is there also in case of File > Open.
Comment 18 Regina Henschel 2013-12-03 20:05:22 UTC
*** Bug 72246 has been marked as a duplicate of this bug. ***
Comment 19 David Gerard 2013-12-03 21:33:51 UTC
Just to note to those watching that SVG import works fine in AOO - but fails in LO. This is a bug where LO is visibly falling down. See attachments to bug 72246.
Comment 20 Owen Genat 2013-12-08 10:21:56 UTC
*** Bug 68682 has been marked as a duplicate of this bug. ***
Comment 21 foss 2013-12-09 10:53:50 UTC
Confirming Reginas observation. If opened with Impress nothing is visible. If opened via menu Insert > Image > From file svg shows fine.

OS X 10.9, LO 4.3 Version: 4.3.0.0.alpha0+
Build ID: 5e01904de993caa3d497a8f6c82a846336e70eef
TinderBox: MacOSX-x86@49-TDF, Branch:master, Time: 2013-12-06_02:05:01
and 4.1.3.2
adding whiteboard status for both.
Comment 22 foss 2013-12-09 11:09:51 UTC
*** Bug 37994 has been marked as a duplicate of this bug. ***
Comment 23 foss 2013-12-09 11:25:02 UTC
*** Bug 69638 has been marked as a duplicate of this bug. ***
Comment 24 foss 2013-12-09 11:27:31 UTC
*** Bug 70739 has been marked as a duplicate of this bug. ***
Comment 25 Björn Michaelsen 2014-01-17 00:43:46 UTC
(This is an automated message.)

LibreOffice development currently prioritizes bugs with the so called MAB (most annoying bugs) -- as this bug has not run through that process (including writing a short rationale for this bug being a candidate and other who are watching the tracker bug silently approving that rationale etc.) its priority is set to high. Note this is effectively no change in the urgency assigned to this bug, as we are currently not making a difference between high and highest and severity is untouched.

You can find out more about MABs and how the process works by contacting libreoffice qa on irc:

 http://webchat.freenode.net/?channels=libreoffice-qa

The QA wiki page also gives you hints on how to get in contact with the team (if IRC fails you, your next best choice is the mailing list):

 https://wiki.documentfoundation.org/QA
Comment 26 Gerry 2014-01-28 21:56:37 UTC
In reply to Regina's comment 17: Can anyone have a look which commit in AOO actually solved the problem of missing text in SVG graphics. Couldn't this fix be ported to LibreOffice?
Comment 27 Julien Nabet 2014-02-01 10:55:15 UTC
Marco/Christina: reading http://nabble.documentfoundation.org/SVG-tspan-td3953675.html, I thought you might be interested in this tracker.
Comment 28 Julien Nabet 2014-02-11 18:14:10 UTC
*** Bug 74842 has been marked as a duplicate of this bug. ***
Comment 29 inpost 2014-02-18 11:44:36 UTC
(In reply to comment #21)
> Confirming Reginas observation. If opened with Impress nothing is visible.
> If opened via menu Insert > Image > From file svg shows fine.
> 

Have observed that if svg file created from another program (e.g. dia), using the menu bar options insert|image|fromfile, the svg does _not_ show OK: vector lines are visible, but text is _not_ visible.

Also, after a quick search, this seems related/duplicate of to: 40177; 45771; 37650; 39554.
Comment 30 Christina Rossmanith 2014-05-03 19:06:48 UTC
Created attachment 98382 [details]
screenshot of both test files inserted in writer

The screenshot shows both test files inserted into a writer document (not File -> Open !). All text is dispayed correctly.

Version: 4.3.0.0.alpha1+
Build ID: 66c3d569187c4cef80b9c46ce216a8b2af0ebf02
Linux
Comment 31 Gerry 2014-05-04 07:20:19 UTC
I tried to verify Christina's success in comment 30 with a recent nightly build, but I get completely different problems:

On Insert->Image of an SVG. The file from the attachment inserts only the text, but not the logo. With another SVG file, LO crashes.

On File -> Open the SVG, I get the error message: "General Error. General input/output error."

Shall I file another bug report for this or is this problem known in current LibreOffice nightly?

Version: 4.3.0.0.alpha1+
Build ID: 20778b037c688759a4dc46acb8aeb66c9d1290cc
TinderBox: Win-x86@39, Branch:master, Time: 2014-05-03_23:16:12
In VirtualBox on Windows XP.
Comment 32 foss 2014-05-04 11:45:02 UTC
This is a bug with long history and mixed observations on platforms / LO versions.

My tests:

4.2.3.3: Writer + Impress menu Insert > Image > From file import the svg perfectly fine. It shows and all text displayes and is readable.

Version: 4.3.0.0.alpha1+
Build ID: f76026a43acc65465882924796d93e635c35fd90
TinderBox: MacOSX-x86@49-TDF, Branch:master, Time: 2014-05-04_06:32:55
When menu > insert > image > from file, I see the spinning psycho pizza of death (osx) for a while but then the dialogue does open and I can insert the svg just fine.
same with impress (guess they share the same code at that place).

So WORKSFORME.

Should I have missed something please re-open and specify exactly what is not working in which environment for you.

@Gerry: since Christina was able to test successfully on Linux and things are working for me on OS X (with fresh release as well as latest nightly from today) I suggest to file any remaining problems as a new bug (one problem per bug). Attach the svg in question to make sure, issues can be reproduced.
Comment 33 foss 2014-05-04 11:45:55 UTC
Gerry: side note on XP: that beast is EOL (thankfully) so I suggest creating a new VirtualMachine with Win8.1 or such.
Comment 34 Gerry 2014-05-04 20:20:57 UTC
I reopen this bug, because the bug is about the problem that File->Open an SVG does not import the SVG text. Unfortunately, this problem is not solved.

To summarize the problem, I quote Regina from comment 17:

"The text is there, if you insert the *.svg image into a Draw document, but it is missing, if you use File > Open. This is a LO only problem, in AOO the text is there also in case of File > Open."

BTW, only via Open->File, the SVG is fully editable in LO. Being able to properly "open" an SVG is important.
Comment 35 David Gerard 2014-05-04 20:32:39 UTC
Indeed. There's quite a lot of duplicates to this bug, most of which have example attachments, to check against before closing this "WORKSFORME".
Comment 36 Christina Rossmanith 2014-05-04 20:45:06 UTC
Gerry, if you insert a svg in draw and select "break" from the context menu it is editable. 

There has been a problem with breaking the graphic such that parts of the graphic disappear after breaking. But with my recent build this problem does not exist anymore. However I can't tell which commit fixed this bug.
Comment 37 Regina Henschel 2014-05-04 21:27:41 UTC
I've got Version: 4.3.0.0.alpha1+
Build ID: f76026a43acc65465882924796d93e635c35fd90
TinderBox: Win-x86@39, Branch:master, Time: 2014-05-04_06:34:33
And there it is not fixed.
Comment 38 Kevin Suo 2014-07-18 17:16:39 UTC
Hi all,
I see bug 78554 was fixed, it has very simila summary as this one. Does the commit in 78554 fix this one also?
Comment 39 foss 2014-07-18 18:21:47 UTC
LO 4.3RC2 only shows text but no logo. Am I supposed to see a logo? Not a lot of time and can't seem to figure out, how to import svg files to word.
Comment 40 Regina Henschel 2014-07-18 22:56:25 UTC
No it is not fixed. The text is still missing when opened with Version: 4.4.0.0.alpha0+
Build ID: 4011b74eb7650a0eeb99d3acebb9ef60b0fcaab9
TinderBox: Win-x86@42, Branch:master, Time: 2014-07-18_03:54:18
on Windows 7 32bit

Please be careful in verifying. The issue is about opening via File > Open, not about insert.
Comment 41 Owen Genat 2014-07-19 08:44:58 UTC
(In reply to comment #40)
> Please be careful in verifying. The issue is about opening via File > Open,
> not about insert.

Also confirmed under Crunchbang linux 11 x86_64 using v4.4.0.0.alpha0+ Build ID: 3fdd4f069d5436cf39708004af7fda8175fbc4c2 (deb 2014-07-09). No text is displayed in Draw via File > Open.
Comment 42 Xisco Faulí 2014-07-24 15:11:18 UTC
This issue is still reproducible by File > Open with

Version: 4.3.1.0.0+
Build ID: 0d5d8c22f7be41d408d8ee4012ef1a6f4368423e
TinderBox: Win-x86@51-TDF, Branch:libreoffice-4-3, Time: 2014-07-23_05:34:04
Comment 43 Jorendc 2014-07-24 19:54:58 UTC
*** Bug 64006 has been marked as a duplicate of this bug. ***
Comment 44 Joel Madero 2014-07-28 16:14:50 UTC
REOPENED is not the correct status as this is only used by developers when a bug is assigned. Setting to NEW

Also this is not a Major bug - it does not prevent high quality work (as there is a workaround from what I can see in the comments).

MAJOR is loss of data/crash that there is no workaround for, here if you go to insert it seems like the text is imported.

Please don't change the severity or priority again. Thanks
Comment 45 Joel Madero 2014-07-28 16:15:40 UTC
Sorry for the noise - upping to High because of the # of duplicates (minor because there is the workaround, can slow down high quality/professional work but won't prevent it)
Comment 46 QA Administrators 2014-10-23 17:32:05 UTC
Please read this message in its entirety before responding.

Your bug was confirmed at least 1 year ago and has not had any activity on it for over a year. Your bug is still set to NEW which means that it is open and confirmed. It would be nice to have the bug confirmed on a newer version than the version reported in the original report to know that the bug is still present -- sometimes a bug is inadvertently fixed over time and just never closed.

If you have time please do the following:
1) Test to see if the bug is still present on a currently supported version of LibreOffice (preferably 4.2 or newer).
2) If it is present please leave a comment telling us what version of LibreOffice and your operating system.
3) If it is NOT present please set the bug to RESOLVED-WORKSFORME and leave a short comment telling us your version and Operating System

Please DO NOT
1) Update the version field
2) Reply via email (please reply directly on the bug tracker)
3) Set the bug to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 
LibreOffice is powered by a team of volunteers, every bug is confirmed (triaged) by human beings who mostly give their time for free. We invite you to join our triaging by checking out this link:
https://wiki.documentfoundation.org/QA/BugTriage

There are also other ways to get involved including with marketing, UX, documentation, and of course developing -  http://www.libreoffice.org/get-help/mailing-lists/. 

Lastly, good bug reports help tremendously in making the process go smoother, please always provide reproducible steps (even if it seems easy) and attach any and all relevant material
Comment 47 Gerold Jens Wucherpfennig 2014-10-24 20:35:25 UTC
I tested LibreOffice 4.2.6.3 on Arch Linux. The bug is still present.

1. I started Inkscape, wrote a few words, saved the file and closed Inkscape.

2. I started LibreOffice, opened the svg-file, no text is visible!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.