Hershey error: ValueError: invalid literal for float(): 0 3.336
#### Summary: <!-- Summarize the issue/suggestion concisely: --> Hi I've imported a PDF with 10 pages, on every page one word. Now I want to render it to hershey text (1 line) #### Steps to reproduce: <!-- Describe what you did (step-by-step) so we can reproduce: --> - open Inkscape - import a multiple page pdf - pick the text - open tab extensions - text - hershey text - choose hershey text (1 line) - apply #### What happened? An Error, see attachment. Example error message from https://gitlab.com/oskay/hershey-text/-/issues/19 ``` Traceback (most recent call last): File "hershey.py", line 2009, in <module> e.affect() File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex.py", line 283, in affect self.effect() File "hershey.py", line 1987, in effect self.recursively_traverse_svg( [self.selected[id]], transform) File "hershey.py", line 1342, in recursively_traverse_svg self.recursively_traverse_svg( node, matNew, v ) File "hershey.py", line 1342, in recursively_traverse_svg self.recursively_traverse_svg( node, matNew, v ) File "hershey.py", line 1342, in recursively_traverse_svg self.recursively_traverse_svg( node, matNew, v ) File "hershey.py", line 1834, in recursively_traverse_svg xStartLine = float(self.text_x[i]) # We are starting a new line here. ValueError: invalid literal for float(): 0 3.336 ``` #### What should have happened? Rendering to Hershey text Sample attachments: ![Error_Hershey_Text](/uploads/4e394b794692ef266c00690ccaf89df4/Error_Hershey_Text.png) #### Version info ``` Inkscape 1.2-alpha (0bd5040e63, 2022-02-05) ```
issue