Inkscape.org
Beyond the Basics "Viewer does not support full SVG 1.1"
  1. #1
    tigrisoculus tigrisoculus @tigrisoculus

    Hello --

    My diagram, which may have been created in an application that was not Inkscape (probably Prism), displays this message "Viewer does not support full SVG 1.1"

    Some of the text boxes are truncated.

    My Inkscape version is 1.0.2. I downloaded it today.

    I don't understand this error message, as Inkscape is compatible with svg 1.1, is it not?

    What should I do about this? I must be able to share diagrams with my colleagues.

     

  2. #2
    Polygon Polygon @Polygon🌶

    Are you saying the error message is from Inkscape? Can you see the SVG in any browser you use? If so maybe "save as" SVG again and try again with Inkscape again.

    If it still fails maybe upload such an example file so we could have a closer look.

  3. #3
    Tyler Durden Tyler Durden @TylerDurden

    I'd try changing the preferences setting for SVG 2 flowed text to SVG 1.2, maybe that will help.

  4. #4
    tigrisoculus tigrisoculus @tigrisoculus

    Do you mean uncheck that preference for "Use SVG2 auto-flowed text"?

    In answer to PixelPest, the error message appear on my imported svg diagram, which also showed some text truncated. (I was able to open the svg in diagrams.net with no truncation of the text.)

  5. #5
    tigrisoculus tigrisoculus @tigrisoculus

    I unchecked "Use SVG2 auto-flowed text" and re-imported the original svg. The text was still truncated, but the error message doesn't appear on it. Trying to expand the text boxes in Inkscape does nothing but distort the text.

    Here is a screenshot of the svg in Inkscape. The ellipses represent the text that was truncated, which appears in full on diagrams.net

    https://drive.google.com/file/d/1BhV7O234BWjDubPLXKN4BQe1gcZvMfFS/view?usp=sharing

    The original file is here. Displays fine in diagrams.net

     

  6. #6
    Tyler Durden Tyler Durden @TylerDurden

    The linked svg file has no text beyond the ellipses. The error message is embedded in the file. Definitely not made with Inkscape. 

  7. #7
    tigrisoculus tigrisoculus @tigrisoculus

    The original svg, which I can open undamaged in diagrams.net, has text beyond the ellipses. It does not contain the error message, ""Viewer does not support full SVG 1.1"

    "Viewer does not support full SVG 1.1" appeared in the svg when I opened it in Inkscape. 

    Because of the text truncation, I was not able to make modifications to this file in Inkscape. I mostly used diagrams.net.

    This may or may not explain my issue https://www.diagrams.net/doc/faq/svg-export-text-problems

    It's beyond me why there is this incompatibility in SVG 1.1.

  8. #8
    Tyler Durden Tyler Durden @TylerDurden

    I opened the file AD Tapering.svg linked above using a text editor:

    Snip of the last few strings:

    <text x="942" y="854" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle">Antidepressant...</text></switch></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Viewer does not support full SVG 1.1</text></a></switch></svg>

    As you can see from the XML, there is no text in the file past the ellipses and the last text object is the notification. These are fallback elements for renderers that do not support the foreignObject element.

    From the diagrams.net page:

    the exported SVG will not show all labels when the SVG image file is viewed in IE and most SVG editors (such as Inkscape and Illustrator), as well as some online services such as Wordpress...

    ...We are aware of the problem and have spent a considerable amount of time researching solutions. However, the subject is very complex and we don’t have a fix so far. We will continue to investigate it.

    They continue to advise the use of their workarounds:

    diagrams.net uses foreign objects (foreignObject) in SVG to allow complex, HTML labels on shapes. To disable complex HTML labels by default, click here...

    ...In the meantime, consider exporting your diagram to a PDF file as this is also a vector format, or disable formatted text and word wrapping for all labels in your diagram before you export it to SVG by following the steps below.

    1. Right click on a blank area of the drawing canvas, then choose Select All from the context menu.
    2. In the Text tab of the format panel, uncheck the Word Wrap and Formatted Text.

    Note: When you disable these formatting options, you can still style the label text as a whole. You can not apply different formatting to parts of the label. When you disable word wrap you may have to add manual linebreaks to match the previous output.

    I'd follow the guidance from diagrams.net, and not use the wrapping feature that relies on the foreignObject element.

    Then, it will be easier to use a number of SVG editors, seeing as none of them support the element. 

Inkscape Inkscape.org Inkscape Forum Beyond the Basics "Viewer does not support full SVG 1.1"