Text split / merge tool.
I've made a simple extension (just lxml twiddling) which, given a selection of a single svg:text or svg:flowRoot, splits it up into separate svg:texts, or, given a selection multiple svg:texts and/or svg:flowRoots, merges them into one svg:text. Splitting in merging appears to the user to be line oriented (actually xpath is collecting flowParas ans tspans).
Really handy when you have a list of labels as a single text and want to split them into separate objects quickly.
Is it worth including in the distribution (either before or after .47) and if so what should I do with it? And if not, is there somewhere else I should put it?
Cheers -Terry
On Mon, 13 Apr 2009 16:13:02 -0500 Terry Brown <terry_n_brown@...36...> wrote:
Splitting in merging appears to the user to be line oriented (actually xpath is collecting flowParas ans tspans).
Sheesh, pardon me:
Splitting *and* merging appears to the user to be line oriented (actually xpath is collecting flowParas *and* tspans).
On Mon, Apr 13, 2009 at 6:13 PM, Terry Brown
Is it worth including in the distribution (either before or after .47) and if so what should I do with it? And if not, is there somewhere else I should put it?
Yes, it's a useful function that was often requested. Until we have it moved into the core, implementing it as an extension is the second best thing.
Hi,
I've already created a Python extension for breaking apart text: http://nerdson.com/bin/split/split.py http://nerdson.com/bin/split/split.inx
https://bugs.launchpad.net/inkscape/+bug/171748
On Mon, Apr 13, 2009 at 7:53 PM, bulia byak <buliabyak@...400...> wrote:
On Mon, Apr 13, 2009 at 6:13 PM, Terry Brown
Is it worth including in the distribution (either before or after .47) and if so what should I do with it? And if not, is there somewhere else I should put it?
Yes, it's a useful function that was often requested. Until we have it moved into the core, implementing it as an extension is the second best thing.
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On Mon, 13 Apr 2009 21:38:05 -0300 Karlisson <theanimage@...400...> wrote:
I've already created a Python extension for breaking apart text: http://nerdson.com/bin/split/split.py http://nerdson.com/bin/split/split.inx
Tch - that's why we need a way of making extensions visible to more people between releases - I think that's been discussed before. Any other projects that do a similar thing? Is it a matter of finding a warm body to manage something on the web? How does Photo$hop distribute plugins?
Cheers -Terry
On Tue, Apr 14, 2009 at 10:47 AM, Terry Brown <terry_n_brown@...36...> wrote:
On Mon, 13 Apr 2009 21:38:05 -0300 Karlisson <theanimage@...400...> wrote:
I've already created a Python extension for breaking apart text: http://nerdson.com/bin/split/split.py http://nerdson.com/bin/split/split.inx
Tch - that's why we need a way of making extensions visible to more people between releases - I think that's been discussed before.
Absolutely.
As for this extension, can any of you work on merging the best of these implementations, if this makes sense? Please compare your code and merge or choose the best, and let me know which one to add to SVN :)
On Mon, 13 Apr 2009 21:38:05 -0300 Karlisson <theanimage@...400...> wrote:
I've already created a Python extension for breaking apart text: http://nerdson.com/bin/split/split.py http://nerdson.com/bin/split/split.inx
Karlisson - looks like your split functionality is better than mine because it handles splitting by chars, words, and lines, not just lines. Also might be more general in the way it collects text.
I've attached my version for reference, but it might make more sense to just add merging to your extension following the same pattern you're already using - if you think it's worthwhile, really split will be used much much more often than merge, and have Bulia push it into SVN.
Cheers -Terry
Yeah, thanks ;)
My extension have some problems yet: - Doesn't merge text elements (solved, if we merge ours extensions :-) - Doesn't positioning of the new elements according to previous positions (it moves all the texts to a unique position, because it's hard to guess the width/height of the text by x, y and font-size) - Doesn't preserve some formatting when separating by words (I found it so difficult)
Here's an explanation image: http://nerdson.com/bin/split/
Karlisson - looks like your split functionality is better than mine because it handles splitting by chars, words, and lines, not just lines. Also might be more general in the way it collects text. I've attached my version for reference, but it might make more sense to just add merging to your extension following the same pattern you're already using - if you think it's worthwhile, really split will be used much much more often than merge, and have Bulia push it into SVN.
Cheers -Terry
On Tue, Apr 14, 2009 at 5:47 PM, Terry Brown wrote:
On Mon, 13 Apr 2009 21:38:05 -0300 Karlisson <theanimage@...400...> wrote:
I've already created a Python extension for breaking apart text: http://nerdson.com/bin/split/split.py http://nerdson.com/bin/split/split.inx
Tch - that's why we need a way of making extensions visible to more people between releases - I think that's been discussed before. Any other projects that do a similar thing? Is it a matter of finding a warm body to manage something on the web?
inkscapestuff.org
How does Photo$hop distribute plugins?
It doesn't. 3rd party developers do it.
Alexandre
On Tue, 14 Apr 2009 18:02:34 +0400 Alexandre Prokoudine <alexandre.prokoudine@...400...> wrote:
Tch - that's why we need a way of making extensions visible to more people between releases - I think that's been discussed before. Any other projects that do a similar thing? Is it a matter of finding a warm body to manage something on the web?
inkscapestuff.org
Hmm, doesn't seem to have a section for extensions. Also I didn't know about it.
I know there's a lot of work going on with the release and this kind of discussion can take time, but would it be useful to have a "Look for more extensions / effects" menu item under Effects, which takes you the relevant website or a listing on inkscape.org if there are multiple relevant websites? Like Firefox does, only just a simple link to a site.
Cheers -Terry
On Tue, Apr 14, 2009 at 6:09 PM, Terry Brown wrote:
inkscapestuff.org
Hmm, doesn't seem to have a section for extensions. Also I didn't know about it.
It can be fixed by creator of the website :) IIRC, the engine he uses is based on GHNS -- Get Hot New Stuff protocol, which provides ways for client-side applications to install things in an easy way. Ultimately it'd be cool to have such a functionality in Inkscape :)
Alexandre
Terry Brown wrote the following on 4/14/2009 9:47 AM:
On Mon, 13 Apr 2009 21:38:05 -0300 Karlisson <theanimage@...400...> wrote:
I've already created a Python extension for breaking apart text: http://nerdson.com/bin/split/split.py http://nerdson.com/bin/split/split.inx
Tch - that's why we need a way of making extensions visible to more people between releases - I think that's been discussed before. Any other projects that do a similar thing? Is it a matter of finding a warm body to manage something on the web? How does Photo$hop distribute plugins?
Cheers -Terry
I hate to troll comments but why can't Inkscape.org host 3rd party extensions without a guarantee of them working? (Ref. http://registry.gimp.org)
heathenx
On Tue, Apr 14, 2009 at 10:47 AM, Terry Brown <terry_n_brown@...36...> wrote:
Tch - that's why we need a way of making extensions visible to more people between releases - I think that's been discussed before. Any other projects that do a similar thing? Is it a matter of finding a warm body to manage something on the web? How does Photo$hop distribute plugins?
I have proposed something like that: http://wiki.inkscape.org/wiki/index.php/ExtensionsRepository (with a update program like the Firefox extension update)
participants (6)
-
Alexandre Prokoudine
-
Aurélio A. Heckert
-
bulia byak
-
heathenx
-
Karlisson
-
Terry Brown