Support for Sketch
Created by: Eitot
The application Sketch is a fairly popular vector application on the Mac. I hope that support could be added at some point. Just for documentary purposes, some Sketch-specific inclusions that would need to be scrubbed (I haven’t found a complete specification yet):
- Namespace:
xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"
- Header:
-
<!-- Generator: Sketch X.Y.Z (01234) - http://www.bohemiancoding.com/sketch -->
(will be removed with--enable-comment-stripping
) -
<title>[...]</title>
(title of the exported Sketch object) <desc>Created with Sketch.</desc>
-
- In Sketch you can create separate pages, which seem to be exported even though they have no purpose in an SVG file anyway. I generally remove it after using Scour and have not encountered any problems as of yet.
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
<g id="[same as <title>]" sketch:type="MSLayerGroup">
[...]
</g>
</g>
- Sketch-specific attributes:
-
sketch:alignment
(for<text>
, not supported natively) -
sketch:name
(only seen in<mask>
so far) -
sketch:type
(values:MSPage
,MSShapeGroup
,MSLayerGroup
,MSTextLayer
)
-