<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using Cairo to generate SVG in Django</title>
	<atom:link href="http://www.stuartaxon.com/2010/02/03/using-cairo-to-generate-svg-in-django/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stuartaxon.com/2010/02/03/using-cairo-to-generate-svg-in-django/</link>
	<description>Adding LOC to the web.</description>
	<lastBuildDate>Thu, 03 Mar 2011 19:52:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: stu</title>
		<link>http://www.stuartaxon.com/2010/02/03/using-cairo-to-generate-svg-in-django/comment-page-1/#comment-15288</link>
		<dc:creator>stu</dc:creator>
		<pubDate>Wed, 12 Jan 2011 11:13:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=217#comment-15288</guid>
		<description>Only just saw this comment ... I&#039;ll try and find some time to fix this - the code removes something like an XML DocString (I&#039;ll need to get home and run this example to find the exact string it removes).

[This comment edited after I saw what the question really meant]</description>
		<content:encoded><![CDATA[<p>Only just saw this comment &#8230; I&#8217;ll try and find some time to fix this &#8211; the code removes something like an XML DocString (I&#8217;ll need to get home and run this example to find the exact string it removes).</p>
<p>[This comment edited after I saw what the question really meant]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://www.stuartaxon.com/2010/02/03/using-cairo-to-generate-svg-in-django/comment-page-1/#comment-13336</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Sun, 05 Dec 2010 19:55:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=217#comment-13336</guid>
		<description>Hi Stu,

Nice article/example. Really appreciate it.

In the &quot;Evil hack alert&quot; there is something which doesn&#039;t render out to the reader&#039;s browser in this line:  &quot;django doesn’t like having in the middle&quot;

Can you patch that up? I&#039;m assuming it is a control character, probably a line end, but for the sake of the reader it would be nice not to have to guess.

Cheers!</description>
		<content:encoded><![CDATA[<p>Hi Stu,</p>
<p>Nice article/example. Really appreciate it.</p>
<p>In the &#8220;Evil hack alert&#8221; there is something which doesn&#8217;t render out to the reader&#8217;s browser in this line:  &#8220;django doesn’t like having in the middle&#8221;</p>
<p>Can you patch that up? I&#8217;m assuming it is a control character, probably a line end, but for the sake of the reader it would be nice not to have to guess.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stu</title>
		<link>http://www.stuartaxon.com/2010/02/03/using-cairo-to-generate-svg-in-django/comment-page-1/#comment-6606</link>
		<dc:creator>stu</dc:creator>
		<pubDate>Thu, 25 Feb 2010 17:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=217#comment-6606</guid>
		<description>Almost that, but not quite - 
The rendering context is provided by SVGSurface.
SVGSurface can take a file like object instead of a filename, so we use the response.
Rendering happens on the SVGSurfaces Context.
When .finish() is called on SVGSurface, it does it&#039;s rendering (in this case SVG data, to the response).</description>
		<content:encoded><![CDATA[<p>Almost that, but not quite &#8211;<br />
The rendering context is provided by SVGSurface.<br />
SVGSurface can take a file like object instead of a filename, so we use the response.<br />
Rendering happens on the SVGSurfaces Context.<br />
When .finish() is called on SVGSurface, it does it&#8217;s rendering (in this case SVG data, to the response).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.stuartaxon.com/2010/02/03/using-cairo-to-generate-svg-in-django/comment-page-1/#comment-6603</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 25 Feb 2010 15:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=217#comment-6603</guid>
		<description>response = HttpResponse(mimetype=&#039;image/svg xml&#039;)

I don&#039;t understand this - you&#039;re using a Django HttpResponse object as a context for rendering in Cairo? How does this work? Thanks</description>
		<content:encoded><![CDATA[<p>response = HttpResponse(mimetype=&#8217;image/svg xml&#8217;)</p>
<p>I don&#8217;t understand this &#8211; you&#8217;re using a Django HttpResponse object as a context for rendering in Cairo? How does this work? Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VidJa</title>
		<link>http://www.stuartaxon.com/2010/02/03/using-cairo-to-generate-svg-in-django/comment-page-1/#comment-6377</link>
		<dc:creator>VidJa</dc:creator>
		<pubDate>Fri, 12 Feb 2010 22:59:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=217#comment-6377</guid>
		<description>Thanks for your feature request. SVG seems to get more attention these days, even from Microsoft. It&#039;s great for producing high quality and detailed graphics at large sizes. 

A nice paper I found on SVG vs Canvas
http://www.svgopen.org/2009/papers/54-SVG_vs_Canvas_on_Trivial_Drawing_Application/</description>
		<content:encoded><![CDATA[<p>Thanks for your feature request. SVG seems to get more attention these days, even from Microsoft. It&#8217;s great for producing high quality and detailed graphics at large sizes. </p>
<p>A nice paper I found on SVG vs Canvas<br />
<a href="http://www.svgopen.org/2009/papers/54-SVG_vs_Canvas_on_Trivial_Drawing_Application/" rel="nofollow">http://www.svgopen.org/2009/papers/54-SVG_vs_Canvas_on_Trivial_Drawing_Application/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stu</title>
		<link>http://www.stuartaxon.com/2010/02/03/using-cairo-to-generate-svg-in-django/comment-page-1/#comment-6360</link>
		<dc:creator>stu</dc:creator>
		<pubDate>Thu, 11 Feb 2010 16:55:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=217#comment-6360</guid>
		<description>I&#039;ve submitted a feature request to Cairo, #26530 on their bug tracker.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve submitted a feature request to Cairo, #26530 on their bug tracker.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stu</title>
		<link>http://www.stuartaxon.com/2010/02/03/using-cairo-to-generate-svg-in-django/comment-page-1/#comment-6358</link>
		<dc:creator>stu</dc:creator>
		<pubDate>Thu, 11 Feb 2010 16:40:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=217#comment-6358</guid>
		<description>Good question... I had a look at the generated SVG and it could definitely be nicer (theres no way to name particular bits).

You might be able to generate a piece of SVG with cairo, then put the XML into some DOM library where you could add a css ID or Path to it.

Really we need a new bit of the cairo-svg api that will let us output metadata as we go.

Post here if you do anything though as I think there should be more Cairo and SVG on the web.</description>
		<content:encoded><![CDATA[<p>Good question&#8230; I had a look at the generated SVG and it could definitely be nicer (theres no way to name particular bits).</p>
<p>You might be able to generate a piece of SVG with cairo, then put the XML into some DOM library where you could add a css ID or Path to it.</p>
<p>Really we need a new bit of the cairo-svg api that will let us output metadata as we go.</p>
<p>Post here if you do anything though as I think there should be more Cairo and SVG on the web.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VidJa</title>
		<link>http://www.stuartaxon.com/2010/02/03/using-cairo-to-generate-svg-in-django/comment-page-1/#comment-6356</link>
		<dc:creator>VidJa</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=217#comment-6356</guid>
		<description>Wow, you beat me, I was working on a quite similar setup past week, but had to back off due to other tasks. 

Any thoughts on how to hook this up for interactivity with ecmascript?</description>
		<content:encoded><![CDATA[<p>Wow, you beat me, I was working on a quite similar setup past week, but had to back off due to other tasks. </p>
<p>Any thoughts on how to hook this up for interactivity with ecmascript?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

