| Summary: | FILEOPEN SVG no TEXT visible | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | grigoreflorin1985 |
| Component: | Drawing | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | NEW --- | QA Contact: | |
| Severity: | minor | ||
| Priority: | high | CC: | anistenis, bfo.bugmail, bugs, bugs, cernym, ChrRossmanith, dgerard, dtardon, gerry.treppel, gjwucherpfennig, gunungloli, inpost, jaragunde, jmadero.dev, LibreOffice, libreoffice, michal, mikuszefski, mowolf2000, mrcekets, ofirr.dev, rb.henschel, serval2412, suokunlong, taken.spc, thom1fr, toddrme2178, v_2e |
| Version: | 3.3.0 RC1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | Confirmed:4.1.3.2:OSX Confirmed:4.3.0.0alpha0+:OSX Confirmed:3.6.4.3:WindowsXP Confirmed:4.0.4.2:Windows7 Confirmed:4.2.0.0.alpha0+:Windows7 filter:svgOpen | ||
| i915 platform: | i915 features: | ||
| Bug Depends on: | |||
| Bug Blocks: | 88277 | ||
| Attachments: |
svg text only that give the bug on RC1
screenshot of both test files inserted in writer |
||
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. I`m glad i can help :) 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, *** Bug 33161 has been marked as a duplicate of this bug. *** 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 :) (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 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). 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). 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. Still happening in 3.6.4.3 on Windows XP SP3 32 bits. *** Bug 39599 has been marked as a duplicate of this bug. *** Change component to: Drawing Confirming still reproducible on LO 4.0.4.2 (Win7 32bit) 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. 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. 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 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. 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. *** Bug 72246 has been marked as a duplicate of this bug. *** 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. *** Bug 68682 has been marked as a duplicate of this bug. *** 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. *** Bug 37994 has been marked as a duplicate of this bug. *** *** Bug 69638 has been marked as a duplicate of this bug. *** *** Bug 70739 has been marked as a duplicate of this bug. *** (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 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? Marco/Christina: reading http://nabble.documentfoundation.org/SVG-tspan-td3953675.html, I thought you might be interested in this tracker. *** Bug 74842 has been marked as a duplicate of this bug. *** (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. 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
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. 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. Gerry: side note on XP: that beast is EOL (thankfully) so I suggest creating a new VirtualMachine with Win8.1 or such. 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. Indeed. There's quite a lot of duplicates to this bug, most of which have example attachments, to check against before closing this "WORKSFORME". 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. 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. 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? 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. 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. (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. 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 *** Bug 64006 has been marked as a duplicate of this bug. *** 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 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) 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 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.
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