merging text

Bug #960046 reported by Andrei Arici on 2012-03-20
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Working with text isn't Inkscape's strength. This is unfortunate and while I know Inkscape isn't DPS, it's only a few functions away from doing a good job when it comes to text too.

We already have the split-text extension helping us work with text, but I'd appreciate to see the ability to merge text objects into one - especially a flowed text object.

This idea was mentioned several times in the threads linked below but discussions resulted in only the splitting being implemented.

description: updated
jazzynico (jazzynico) on 2012-03-21
tags: removed: merge split text-object
Changed in inkscape:
importance: Undecided → Wishlist
jazzynico (jazzynico) wrote :

It should be possible to reuse the Text>Extract extension and create a new text object instead of a list in a dialog.
I'll try to investigate.

Changed in inkscape:
assignee: nobody → JazzyNico (jazzynico)
status: New → Triaged
tags: added: extensions-plugins
jazzynico (jazzynico) wrote :

Attached is a first version of the extension.

Apart from the options already available in the Extract text extension, you can choose to keep the texts and spans styles, and merge as normal text or as flow text.

Please test!

Changed in inkscape:
status: Triaged → In Progress
jazzynico (jazzynico) wrote :

Tested on Debian Stable and committed revision 12484.

Changed in inkscape:
milestone: none → 0.49
status: In Progress → Fix Committed
su_v (suv-lp) wrote :

@JazzyNico - merging text with differently formatted nested tspans loses trailing text (see attached example). Do you want to have this tracked in a separate report?

jazzynico (jazzynico) on 2014-03-15
Changed in inkscape:
status: Fix Committed → In Progress
jazzynico (jazzynico) wrote :

@~suv - Thanks for your test file. Just found out it also affects the Text>Extract extension.
Unfortunately the fix is not obvious at all. Investigations in progress...

jazzynico (jazzynico) wrote :

New versions of Merge text and Extract text committed revision 13177.
Note that I've disabled the flowtext mode in Merge text (unexpected line breaks due to the impossibility to determine if a flowSpan or a flowPara should be used).

Changed in inkscape:
status: In Progress → Fix Committed
Martin Quinson (mquinson) wrote :

If I try to apply this extension on a file that was extracted from a PDF file, then the block is flipped upside-down.

From what I was told on IRC, that's because of the layer transform, because if you open a PDF file, the content is on a single layer which is scaled and vertically flipped, apparently.

Indeed, if I create a new layer to my document and move the content to their, it works much better.

Martin Quinson (mquinson) wrote :

It seems that my upside-down issue is due to or something similar. It is thus more generic than this specific extension and can probably be ignored here. Sorry for the noise.

jazzynico (jazzynico) on 2015-02-14
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers