Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mergeText plugin to consolidate text/tspan elements #1907

Open
johnkenny54 opened this issue Dec 27, 2023 · 0 comments
Open

mergeText plugin to consolidate text/tspan elements #1907

johnkenny54 opened this issue Dec 27, 2023 · 0 comments

Comments

@johnkenny54
Copy link
Contributor

The Inkscape text tool creates verbose and redundant elements, with a <tspan> inside a <text> element. These can often be consolidated, by merging adjacent <text> elements, resulting in a single <text> element containing multiple <tspan> elements.

For example:

   <text x="45.869" y="38.606">
        <tspan x="45.869" y="38.606">Part one</tspan>
    </text>
    <text x="87.151" y="89.826">
        <tspan x="87.151" y="89.826">Part two</tspan>
    </text>

becomes

   <text>
        <tspan x="45.869" y="38.606">Part one</tspan>
        <tspan x="87.151" y="89.826">Part two</tspan>
    </text>

A <text> element containing a single <tspan> can also be consolidated - see issue #964

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant