<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>Patryk Zawadzki &#187; icons</title>
	<atom:link href="http://blogs.gnome.org/patrys/category/icons/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.gnome.org/patrys</link>
	<description>Tales of a whining gnome</description>
	<lastBuildDate>Sun, 12 Jul 2009 23:03:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/pl/</creativeCommons:license>		<item>
		<title>Improved one canvas workflow</title>
		<link>http://blogs.gnome.org/patrys/2008/07/14/improved-one-canvas-workflow/</link>
		<comments>http://blogs.gnome.org/patrys/2008/07/14/improved-one-canvas-workflow/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 13:33:43 +0000</pubDate>
		<dc:creator>patrys</dc:creator>
				<category><![CDATA[GNOME]]></category>
		<category><![CDATA[icons]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/patrys/2008/07/14/improved-one-canvas-workflow/</guid>
		<description><![CDATA[Jimmac&#8217;s post got me thinking. His script did the job for a single icon. Why not improve upon it to allow multiple icons sharing a single SVG file? Immediately decided to give it a go and after a few iterations the result works as follows:

You start by creating a template SVG.
For each icon (not size) [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://jimmac.musichall.cz/log/?p=436">Jimmac&#8217;s post</a> got me thinking. His script did the job for a single icon. Why not improve upon it to allow multiple icons sharing a single SVG file? Immediately decided to give it a go and after a few iterations the result works as follows:</p>
<ol>
<li>You start by creating a template SVG.</li>
<li>For each icon (not size) you create a layer <del>and set its name to <code>context/icon-name</code>. You can use a different syntax but it has to contain at least one slash. The rest of the layers are treated as drawing aids</del>.</li>
<li>For each layer you create a sublayer and give it a name starting with <q>plate</q>. Inkscape requires you to have distinct layer labels so a simple <code>plate</code> won&#8217;t do for multiple icons but you are free to use names such as <q>plate for foo.</q></li>
<li>The plate consists of a set of rectangles. Each rectangle will result in a separate PNG and the size is taken verbatim from the rectangles (so make sure you don&#8217;t end up with ten decimal places in width or height).</li>
<li>The plate also needs two text objects: one with label set to <code>context</code> and one with label set to <code>icon-name</code>. The text you put there is used to create the directory structure.</li>
<li>Save your template to a directory called <code>svg</code>. Make sure you hide the plate layers before saving.</li>
<li>Download the <a href='http://wirusy.room-303.com/OneCanvas/split-icons'>Split Icons</a> script.</li>
<li>Run the script. If you pass a path (or several paths), it will only process the files from the command line. If you don&#8217;t pass anything, it will process the whole <code>svg</code> directory.</li>
<li>Draw art!</li>
</ol>
<p>Here&#8217;s a <a href="http://wirusy.room-303.com/OneCanvas/icon-template.svg">template example</a>.</p>
<p>PS: b.g.o upload sucks. It will only accept <code>.gz</code> files and then will strip the dot from the original extension.</p>
<p><strong>Update:</strong> updated the script to handle the new format invented by jimmac. See the example above for details.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/patrys/2008/07/14/improved-one-canvas-workflow/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
