Text not wrapping upon importing a .vsd file

Post questions on how to use or achieve an effect in Inkscape.
elarue
Posts: 3
Joined: Sat Oct 22, 2016 2:03 am

Text not wrapping upon importing a .vsd file

Postby elarue » Sat Oct 22, 2016 3:37 am

I am attempting to import a .vsd file into Inkscape, but I have a text box that doesn't display properly - where the text was originally displayed in four separate lines (each separated by a carriage return) in MS Visio, it displays in one continuous line in Inkscape. I've tried manipulating the text to get it to wrap, but when I resize the text box, it just shrinks the text horizontally rather than wrapping it.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Text not wrapping upon importing a .vsd file

Postby tylerdurden » Sat Oct 22, 2016 9:03 am

If you are a new Inkscape user, you may be seeing the outline of the object "bounding box", not a text-box per-se...

You might try copying the text and pasting it into a dragged text area or flowing it into a rectangle object.

http://tavmjong.free.fr/INKSCAPE/MANUAL ... Enter-Flow
http://tavmjong.free.fr/INKSCAPE/MANUAL ... -Flow.html
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Text not wrapping upon importing a .vsd file

Postby Moini » Sat Oct 22, 2016 12:53 pm

Does it work if you double-click on the text, and insert a line break by hitting enter in the desired location?

You could also create a flow-text box, and copy-paste the text into it to have it auto-wrap. Click and drag with the text tool to create a flow text box.
Note that flowed text will only work inside Inkscape, SVG currently still needs manual linebreaks to display correctly, the file format doesn't support flowed text. You can, however, convert a flowed text into a normal text by using the corresponding item in the 'Text' menu.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

elarue
Posts: 3
Joined: Sat Oct 22, 2016 2:03 am

Re: Text not wrapping upon importing a .vsd file

Postby elarue » Thu Oct 27, 2016 3:12 am

I had manual line breaks that I inserted in Microsoft Visio, but they aren't reflected when I open the .vsd in Inkscape. Now, I am able to insert the line breaks manually once I have it opened in Inkscape, but is there a way to import them programmatically, rather than having to insert them manually and then drag the individual text boxes into place?

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Text not wrapping upon importing a .vsd file

Postby tylerdurden » Thu Oct 27, 2016 11:53 am

elarue wrote:I had manual line breaks that I inserted in Microsoft Visio, but they aren't reflected when I open the .vsd in Inkscape. Now, I am able to insert the line breaks manually once I have it opened in Inkscape, but is there a way to import them programmatically, rather than having to insert them manually and then drag the individual text boxes into place?


Any chance you can export (save as) an SVG file from Visio? Does that help/hinder?
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

elarue
Posts: 3
Joined: Sat Oct 22, 2016 2:03 am

Re: Text not wrapping upon importing a .vsd file

Postby elarue » Fri Oct 28, 2016 2:01 am

tylerdurden wrote:
elarue wrote:I had manual line breaks that I inserted in Microsoft Visio, but they aren't reflected when I open the .vsd in Inkscape. Now, I am able to insert the line breaks manually once I have it opened in Inkscape, but is there a way to import them programmatically, rather than having to insert them manually and then drag the individual text boxes into place?


Any chance you can export (save as) an SVG file from Visio? Does that help/hinder?


Actually, we're trying to use Inkscape as part of an automated process to convert .vsd to .svg, since we can't use Visio as part of our automation system. But to your question, when I open the SVG file in Visio, the four lines of text are all on top of each other instead of being one right after the other as it's supposed to be - the SVG file opens correctly in any other program, though.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Text not wrapping upon importing a .vsd file

Postby Moini » Fri Oct 28, 2016 6:38 am

A quick search in the bug section at launchpad didn't reveal any hints about that bug on vsd import being known. If you've got some time to spare, could you do a search yourself here: https://bugs.launchpad.net/inkscape and, if you don't find anything, submit a report? (with files attached, and version numbers, operating system and all the info).

If the lines really show up above one another in Inkscape, it might be possible to fix the problem programmatically, though, until that is fixed.
Can you upload a screenshot of a text how it *should* look and a file that contains an imported text that looks wrong?

Correction: It might also *not* be possible to fix this with a workaround, depending upon the file structure you get after import.
Last edited by Moini on Fri Oct 28, 2016 7:25 am, edited 1 time in total.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Text not wrapping upon importing a .vsd file

Postby ~suv » Fri Oct 28, 2016 7:17 am

Inkscape uses an external library for converting Visio files to SVG. Support for advanced or complex layouts of text content needs to be implemented in libvisio, not Inkscape. Such an implementation should not use Inkscape's current 'Flowed Text' format - it would need to be compatible and coordinated with whatever is planned for SVG 2 (CSS).

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Text not wrapping upon importing a .vsd file

Postby Moini » Fri Oct 28, 2016 7:28 am

mmh. yes, it would possibly have to actually render the text, to see where it breaks, if the visio text is a visio implementation of flowed text, and it were to insert linebreaks...
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Text not wrapping upon importing a .vsd file

Postby ~suv » Fri Oct 28, 2016 7:30 am

See also the quoted IRC conversion in this comment in the bug tracker ...

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Text not wrapping upon importing a .vsd file

Postby Moini » Fri Oct 28, 2016 9:06 am

Thx!
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Help with using Inkscape”