pasting unicode into inkscape

Post questions on how to use or achieve an effect in Inkscape.
texasjet
Posts: 5
Joined: Sat Mar 24, 2018 8:15 am

pasting unicode into inkscape

Postby texasjet » Sat Mar 24, 2018 8:19 am

I'm entering a huge list of names (first and last) into inkscape. They all need to fit into an object. However, so that first and last names stay together (and not break), I need to use the unicode 00a0 between each first and last name. 00a0 is the unicode for "non breaking space)

I've googled a ton and can't find out to enter unicode in bulk without having to type first name, CTRL+U, 00a0, last name.

Is there anyway I can just paste the list of names WITH the unicode already inserted and inkscape detects the unicode??

IE

bob 00a0 sanders
rachel 00a0 barb
chris 00a0 smith

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

Re: pasting unicode into inkscape

Postby Moini » Sat Mar 24, 2018 8:52 am

You could insert it into the SVG text file directly, maybe.
Or a more manual way would be to copy-paste the previous name and then replace everything but the nbsp by the new name.
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)

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

Re: pasting unicode into inkscape

Postby Moini » Sat Mar 24, 2018 8:54 am

(and also, if copy-pasting really doesn't work - for me it didn't respect the non-breaking property - can you open a bug report at https://bugs.launchpad.net/inkscape, after looking if one already exists?)
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)

texasjet
Posts: 5
Joined: Sat Mar 24, 2018 8:15 am

Re: pasting unicode into inkscape

Postby texasjet » Sat Mar 24, 2018 10:54 am

I'm willing to do it any way as long as it respects the non-breaking space.

I'm exhausted from trying to figure out an alternative. But typing CTRL+U 00a0 160+ times is just as bad

this seems crazy

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: pasting unicode into inkscape

Postby prkos » Sat Mar 24, 2018 11:10 am

Maybe this extension can help
viewtopic.php?f=34&t=33009&p=103691#p103682

Of course you won't be typing it! If it can be typed to work then it can also be automated to work.

There may be more to the issue though, I'm not an expert but you can't use HTML entities in exactly the same way in XML. https://stackoverflow.com/questions/199 ... le_rich_qa

This seems to be the proper encoding for non breakable space:

Code: Select all

 
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

texasjet
Posts: 5
Joined: Sat Mar 24, 2018 8:15 am

Re: pasting unicode into inkscape

Postby texasjet » Sat Mar 24, 2018 11:16 am

got it. For the poor soul in the future that stumbles across this on google,

edit the .svg file and enter   where you want your no break spaces
Last edited by texasjet on Sun Mar 25, 2018 2:33 am, edited 1 time in total.

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

Re: pasting unicode into inkscape

Postby Moini » Sat Mar 24, 2018 12:16 pm

Great :)
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”