Create link for selected text only

Migrated from: https://bugs.launchpad.net/inkscape/+bug/167513

Steps to reproduce:

  • open Inkscape
  • create a text and select a word
  • Right click -> Create link and set a target

What happened?

The entire text element is wrapped in an <a> element.

What should have happened?

The selected text is moved into a tspan, and the <a> element is wrapped around the tspan.

I want to create SVGs like this:

drawing.svg

Selecting another word and trying to set another link doesn't work, since the element is already wrapped in <a> and the option in the context menu is inactive (that's good).

There is currently no way to limit the clickable section of a text within Inkscape.

Inkscape Version and Operating System:

  • Inkscape Version: 1.1-dev (6b4d57f, 2020-04-01)
  • Operating System: Windows 10
  • Operating System version: 10.0.18362
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information