svghmi/inline_svg.ysl2
branchsvghmi
changeset 3108 079419e7228d
parent 3030 2d13a4379e2f
child 3186 1e9b9d7451cd
equal deleted inserted replaced
3107:ee0704cc6dc8 3108:079419e7228d
    33     error > ViewBox settings other than X=0, Y=0 and Scale=1 are not supported
    33     error > ViewBox settings other than X=0, Y=0 and Scale=1 are not supported
    34 }
    34 }
    35 // ensure that coordinate in CSV file generated by inkscape match svg default unit
    35 // ensure that coordinate in CSV file generated by inkscape match svg default unit
    36 template "sodipodi:namedview[@units!='px' or @inkscape:document-units!='px']", mode="inline_svg" {
    36 template "sodipodi:namedview[@units!='px' or @inkscape:document-units!='px']", mode="inline_svg" {
    37     error > All units must be set to "px" in Inkscape's document properties
    37     error > All units must be set to "px" in Inkscape's document properties
       
    38 }
       
    39 
       
    40 // remove i18n markers, so that defs_by_labels can find text elements
       
    41 svgtmpl "svg:text/@inkscape:label[starts-with(., '_')]", mode="inline_svg" {
       
    42     attrib "{name()}" > «substring(., 2)»
    38 }
    43 }
    39 
    44 
    40 ////// Clone unlinking
    45 ////// Clone unlinking
    41 //
    46 //
    42 // svg:use (inkscape's clones) inside a widgets are
    47 // svg:use (inkscape's clones) inside a widgets are