svghmi/inline_svg.ysl2
branchsvghmi
changeset 3108 079419e7228d
parent 3030 2d13a4379e2f
child 3186 1e9b9d7451cd
--- a/svghmi/inline_svg.ysl2	Tue Jan 05 01:23:45 2021 +0100
+++ b/svghmi/inline_svg.ysl2	Fri Jan 15 10:11:05 2021 +0100
@@ -37,6 +37,11 @@
     error > All units must be set to "px" in Inkscape's document properties
 }
 
+// remove i18n markers, so that defs_by_labels can find text elements
+svgtmpl "svg:text/@inkscape:label[starts-with(., '_')]", mode="inline_svg" {
+    attrib "{name()}" > «substring(., 2)»
+}
+
 ////// Clone unlinking
 //
 // svg:use (inkscape's clones) inside a widgets are