Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • extensions extensions
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 77
    • Issues 77
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Scheduled maintenance on the database layer will take place on 2022-07-02. We expect GitLab.com to be unavailable for up to 2 hours starting from 06:00 UTC. Kindly follow our status page for updates and read more in our blog post.

  • Inkscape
  • extensionsextensions
  • Issues
  • #142
Closed
Open
Created Oct 28, 2019 by Michael Summers@mfsummers

Split text by words or letters not working with multiple x values

  1. 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).
  2. 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.

Split_text_problem.svg

Split_text_problem.ai

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'
Edited May 23, 2021 by Jonathan Neuhauser
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking