Split text by words or letters not working with multiple x values
- Import an Adobe Illustrator file (default internal import for text).
- Because of the way some of the text is "combined" when importing an Illustrator file, I have to split the text (un-grouping doesn't work). Splitting by line works fine: Extensions > Text > Split Text > (with lines selected).
- When trying to split by words or letters, I get the error shown below.
I've attached the AI and imported but unmodified svg files.
NOTE: Selecting and splitting the text in blue (split by lines) works just fine. But selecting and trying to split the group of numbers below the axis (by line, word, or letter) doesn't seem to work.
Thanks for your help, Mike
Traceback (most recent call last):
File "text_split.py", line 191, in Split().run()
File "inkex/base.py", line 111, in run self.save_raw(self.effect())
File "text_split.py", line 178, in effect nodes = self.split_words(elem)
File "text_split.py", line 105, in split_words x = float(line.get("x"))
ValueError: could not convert string to float: '0 3.1136 4.6704001 7.7839999 -33.028801 -29.915199 -28.3584 -25.244801 -66.063202 -62.9496 -61.392799 -58.279202 -99.092003 -95.978401 -94.4216 -91.307999 -132.1208 -129.0072 -127.4504 -124.3368 -165.1496 -162.036 -160.4792 -157.3656'