
Dear list,
I would like to open http://www.thamnos.de/l2.ps in inkscape. Therefore, I use epstopdf to produce http://www.thamnos.de/l2.pdf which I can open.
However, the text at the x- and y-axes (0, 0.25, 0.5, ...) is one big object each instead of an object per number. This would be my preferred behaviour as a subsequent save as pdf with PDF+LaTeX will now end up in a messed up LaTeX part: http://www.thamnos.de/l2.pdf_tex
So I tried to split the numbers using the Split Text extension, splitting words at the x-axis. This fails though with
Traceback (most recent call last): File "split.py", line 215, in <module> b.affect() File "/usr/share/inkscape/extensions/inkex.py", line 215, in affect self.effect() File "split.py", line 202, in effect nodes = self.split_words(node) File "split.py", line 115, in split_words x = float(line.get("x")) ValueError: invalid literal for float(): 0 40.54911213 47.89159253 84.76972857 92.11220897 128.98994884 136.33242924 173.21016911 180.55264951 217.43078555 224.77326595
I tried to add some print statements in split.py but it is not printed to stdout... Can someone here please help?
Thanks in advance, Sebastian.

Hi!
I do not think you can split such a text into separate objects with the inkscape exetension .... however there is a workaround that at least is useful regarding your figure:
1) you need openoffice 2) you need the pdf import extension in open office 3) import the pdf into the draw module of openoffice, your text will be split into separate objects as you wish 4) export the figure as a pdf from openoffice 5) import the "openoffice version pdf" into inkscape 6) start working ..... :-)
It works - I tried it on your figure
PS! Sorry that your question is not included below, my news reader seems to have some trouble with the format of your mail (it appears as an attachment .. ? )
Regards Kjell Lindbo
"Sebastian Busch" <webmaster@...2752...> wrote in message news:4C83BB05.8000105@...2754...
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd
--------------------------------------------------------------------------------
Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user

Thank you so much!
On 09/11/2010 09:52 PM, Kjell Lindbo wrote:
...
- you need openoffice
- you need the pdf import extension in open office
- import the pdf into the draw module of openoffice, your text will
be split into separate objects as you wish 4) export the figure as a pdf from openoffice 5) import the "openoffice version pdf" into inkscape 6) start working ..... :-) ...
This is so much better than before -- I had tried to work a bit more with the split text feature but couldn't really get it to work.
Using your detour via openoffice, all horizontal text gets split exactly as I want it to! Vertical text seems to be split letter by letter but that's so much easier to fix than having one huge text element where all positioning information is lost.
Thanks again!
Perhaps the import pdf feature of inkscape could at some point incorporate this feature? Given the amount of feedback on the openoffice pdf import feature http://extensions.services.openoffice.org/project/pdfimport I could imagine that there would also be quite some happy inkscape users (as me) ;)
To answer my own question about adding print statements to the extension to see it work: don't use "print" but rather "inkex.debug" or "inkex.errormsg" from the inkex.py module!
Happy greetings, Sebastian.
participants (2)
-
Kjell Lindbo
-
Sebastian Busch