How to edit the text on this file?

Post questions on how to use or achieve an effect in Inkscape.
A.H.Vincent
Posts: 25
Joined: Fri Jul 13, 2012 6:08 pm
Location: Canada & Thailand

How to edit the text on this file?

Postby A.H.Vincent » Mon Jul 16, 2012 5:08 pm

Hi there,

I can select the text, and sometimes it works and sometimes doesn't...

In some cases I can add or delete text and in some other the text just repeats on itself...difficult to explain.

If nobody understands I'll need to record a movie to show what I mean...

Thanks,
Attachments
Nutritional_Facts_template_abbv.svg
(54.03 KiB) Downloaded 263 times

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

Re: How to edit the text on this file?

Postby brynn » Mon Jul 16, 2012 5:34 pm

Yeah, I don't understand what you mean, but you might not need to make a video. The problem might be because all the text is grouped. Once you ungroup it, you should be able to select it, and edit with Text tool. If that doesn't help though, maybe we need either a video or otherwise more info.

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: How to edit the text on this file?

Postby druban » Mon Jul 16, 2012 7:10 pm

where did you get this file? several of the text objects are unnamed fonts. If by repeat on itself you mean that all letters are typed on top of each other, that is because either the original maker manually removed or reduced kerns to the point where your added letters have no spacing at all. Here's a file with all the objects ungrouped, clips removed and all the manual kerns removed. Of course it looks nothing like the original, but it might answer your questions?
Attachments
Nutritional_Facts_template_abbv no kerns.svg
(53.23 KiB) Downloaded 243 times
Your mind is what you think it is.

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

Re: How to edit the text on this file?

Postby ~suv » Mon Jul 16, 2012 9:09 pm

Based on the internal structure, the content of the file "Nutritional_Facts_template_abbv.svg" originates from a PDF file, and for editing text in PDF files opened in Inkscape, the 'Text editing tips' from the Release notes of Inkscape 0.46 still apply:
PDF and AI import
(…)
Text editing tips: Any text imported from PDF or AI has each letter's precise place on the page fixed. While this preserves the exact appearance (e.g. justification of text blocks) of the imported document, it makes editing such text difficult: deleting text fails to contract the text line and inserting text fails to expand it, i.e. typed letters overlay the existing letters. (However, you still can replace a letter with another letter of about the same width, although you may need to kern it into place with Alt+arrows.)

To work around this, select the text object you want to edit and use Text > Remove manual kerns command. This will remove the exact positioning information, so if the text block was justified it will lose justification, but instead you will be able to edit it as usual.

Note that there is a way to select even a single line in a text block. For this, open the XML editor, expand the <svg:text> tree branch corresponding to your text, and select any of the <svg:tspan> objects under it. Now you can remove manual kerns from this line only. After you finish editing the line, you can manually justify it back, for example by adding spaces, manual kerns (Alt+arrows), or by adjusting letterspacing (select the whole line and use Alt+> or Alt+<).

The native PDF/AI importer is based on the poppler library and was implemented by Miklós Erdélyi as part of the Google Summer of Code 2007.

A.H.Vincent
Posts: 25
Joined: Fri Jul 13, 2012 6:08 pm
Location: Canada & Thailand

Re: How to edit the text on this file?

Postby A.H.Vincent » Mon Jul 16, 2012 9:32 pm

Hi Suv,

Yes exactly 100% works!

Open source kicks ass! I can't imagine getting perfect answer that fast with AI!

Onto making my labels for my new "Pickles" business in Thailand, I need to translate all that in Thai, I can't imagine the pain it would have been one character at a time, thanks to this I'm hoping to have them on the shelves by next week.

Cheers!

lohe
Posts: 1
Joined: Fri Jul 06, 2018 7:55 pm

Re: How to edit the text on this file?

Postby lohe » Fri Jul 06, 2018 8:04 pm

Registered to this forum just to thank ~suv. I had the exact same problem this morning and a quick Google search brought me here. Awesome explanation!


Return to “Help with using Inkscape”