Tabs turn into spaces when pasting text

Post questions on how to use or achieve an effect in Inkscape.
seans_potato_biz
Posts: 138
Joined: Mon Apr 07, 2008 6:01 am

Tabs turn into spaces when pasting text

Postby seans_potato_biz » Fri Oct 09, 2015 3:54 am

I'm trying to prepare a scientific figure. Here is the basis of the figure in text: http://pastebin.com/G1qUkHRN Note that it uses tabs to help align everything. The alignment is important. When I copy and paste the text into Inkscape 0.91, the tabs turn into spaces which is not helpful. Why do the tabs turn into spaces?
Win 7/10, Inkscape 0.92.2

We don't inherit the Earth from our parents; we borrow it from our children.

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Tabs turn into spaces when pasting text

Postby hulf2012 » Fri Oct 09, 2015 4:48 am

Hello,
seans_potato_biz wrote:I'm trying to prepare a scientific figure. Here is the basis of the figure in text: http://pastebin.com/G1qUkHRN Note that it uses tabs to help align everything. The alignment is important. When I copy and paste the text into Inkscape 0.91, the tabs turn into spaces which is not helpful. Why do the tabs turn into spaces?


why?... I don't know. I guess the developers didn't think it was needed, since Inkscape is a graphic editor and not a text editor :twisted: ... I could be wrong.

I don't know in what system you are. But there are some text processors that can convert from "tabs" to "spacebars". I use Scite, that I "think" it can do that conversion.

On the other hand. Are you pasting your text in a Inkscape's text box?. I remember, some time ago, Inkscape was able to import an excel table as an array of text cells. Recently I tried with a Libre Office table, but the result was a bitmap of the table... totally bad.

There are some extensions that can deal with text objects.

Could you share your draft svg document, or some sample or screen shot of what you are trying to achieve?... I ask this because some designs are more easy to do in Inkscape than others. Or it's more easy to do in other software,... perhaps.
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Tabs turn into spaces when pasting text

Postby brynn » Fri Oct 09, 2015 9:45 am

Wow, that looks like gene sequences, or maybe amino acids?

But to be more on topic. I agree with hulf. Inkscape just doesn't recognize the Tab in Text, probably because it's not meant to work as a text editor or desktop publisher. Although I'm sure there have been plenty of new feature requests for more text features ;)

There are plenty of other ways to align things in Inkscape. Although it might put a kink in your workflow....

What about Scribus? Open source desktop publishing software. It's compatible with SVG. Maybe that would work, instead of Inkscape?

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

Re: Tabs turn into spaces when pasting text

Postby tylerdurden » Fri Oct 09, 2015 10:13 am

I suggest using a monospace font, left justified.

GeneSeq1.png
GeneSeq1.png (122.21 KiB) Viewed 2081 times
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: Tabs turn into spaces when pasting text

Postby Moini » Fri Oct 09, 2015 10:17 am

(@Brynn: it's chicken DNA ;) )
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)

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

Re: Tabs turn into spaces when pasting text

Postby tylerdurden » Fri Oct 09, 2015 10:22 am

I though Chicken DNA went

BAKBAKBAKBAKBRRRRRBAKBAKBAKBAK
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/

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Tabs turn into spaces when pasting text

Postby brynn » Fri Oct 09, 2015 11:58 pm

OT
DNA! My poor old brain :-( I knew what it was but couldn't find the right word.
end OT


Return to “Help with using Inkscape”