如何解决如何有效地在SVG中搜索和替换多行文本?
假设我有一个像这样的 SVG 文件:
我应该如何有效地编辑文本内容?在 SVG 编辑器中单击它们中的每一个是一种方法,但是如果您有很多这样的文本,它将是无效的。可以在源代码中搜索和替换它,但对于跨越两行或更多行的文本,它们是分开的:
<text
xml:space="preserve"
id="text1769"
style="font-size:2.82222px;line-height:1.25;font-family:sans-serif;text-align:center;white-space:pre;shape-inside:url(#rect1771);display:inline"
transform="matrix(2.5377821,2.5377821,-1.6795872,-19.146171)"><tspan
x="2.7854152"
y="13.211847"><tspan>A sentence spans </tspan></tspan><tspan
x="7.1944451"
y="16.739622"><tspan>in two lines</tspan></tspan></text>
<text
xml:space="preserve"
id="text1775"
style="font-size:2.82222px;line-height:1.25;font-family:sans-serif;text-align:center;white-space:pre;shape-inside:url(#rect1777);display:inline"
transform="matrix(2.5377821,-13.399482,-7.1235831)"><tspan
x="11.339253"
y="19.647394"><tspan>An one liner</tspan></tspan></text>
有没有一种方法可以轻松识别和编辑跨越多行的文本,就好像它们只是一行一样?我的目的是将 this file 翻译成另一种语言。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。