<?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: My DocBook-Bundle for TextMate</title>
	<atom:link href="http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/feed/" rel="self" type="application/rss+xml" />
	<link>http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/</link>
	<description>Things I'm working on, not necessarily functioning yet.</description>
	<lastBuildDate>Sat, 02 Apr 2011 22:40:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jason Jansma &#187; XML the Easy Way</title>
		<link>http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/comment-page-1/#comment-89</link>
		<dc:creator>Jason Jansma &#187; XML the Easy Way</dc:creator>
		<pubDate>Fri, 03 Jul 2009 17:26:47 +0000</pubDate>
		<guid isPermaLink="false">http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/#comment-89</guid>
		<description>[...] TextMate has a built-in XML bundle; however, if you are using DocBook XML, then you should use one of the free DocBook [...]</description>
		<content:encoded><![CDATA[<p>[...] TextMate has a built-in XML bundle; however, if you are using DocBook XML, then you should use one of the free DocBook [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/comment-page-1/#comment-59</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Wed, 16 Jul 2008 15:15:38 +0000</pubDate>
		<guid isPermaLink="false">http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/#comment-59</guid>
		<description>@Alan: I&#039;ll do my very best to add this function, and a couple of other things, to the bundle as soon as I can (I&#039;m buried in work at the moment). :( Thanks again for the tip.</description>
		<content:encoded><![CDATA[<p>@Alan: I&#8217;ll do my very best to add this function, and a couple of other things, to the bundle as soon as I can (I&#8217;m buried in work at the moment). <img src='http://erikslab.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Thanks again for the tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Forsyth</title>
		<link>http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/comment-page-1/#comment-58</link>
		<dc:creator>Alan Forsyth</dc:creator>
		<pubDate>Wed, 16 Jul 2008 14:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/#comment-58</guid>
		<description>Hey - no problem. Glad it works for you. We need relative links too, and if the folder containing the images is close to the location of the docbook file (i.e. a child or sibling folder) the link should be relative (or it works for me that way, anyway).

I&#039;m hoping &#039;contentwidth&#039; and &#039;contentdepth&#039; will be ok for both PDF and HTML output - we&#039;ll be testing this in a few days.
Previously we used a simple &#039;width=&quot;100%&quot;&#039;, which is fine for PDF (no stretching), but without specific image dimensions, CSS doesn&#039;t work so well for the resulting HTML image elements (e.g. image backgrounds etc.). Anyway, if you come up with anything better, I&#039;ll look forward to getting the updated DocBook bundle :-)

Alan</description>
		<content:encoded><![CDATA[<p>Hey &#8211; no problem. Glad it works for you. We need relative links too, and if the folder containing the images is close to the location of the docbook file (i.e. a child or sibling folder) the link should be relative (or it works for me that way, anyway).</p>
<p>I&#8217;m hoping &#8216;contentwidth&#8217; and &#8216;contentdepth&#8217; will be ok for both PDF and HTML output &#8211; we&#8217;ll be testing this in a few days.<br />
Previously we used a simple &#8216;width=&#8221;100%&#8221;&#8216;, which is fine for PDF (no stretching), but without specific image dimensions, CSS doesn&#8217;t work so well for the resulting HTML image elements (e.g. image backgrounds etc.). Anyway, if you come up with anything better, I&#8217;ll look forward to getting the updated DocBook bundle <img src='http://erikslab.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Alan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/comment-page-1/#comment-56</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Wed, 16 Jul 2008 12:05:51 +0000</pubDate>
		<guid isPermaLink="false">http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/#comment-56</guid>
		<description>@Alan: Great. I just tested the code in your third comment. Works like a charm. I&#039;ll have to tinker with it a little to accommodate my special needs, though. (I need relative image-paths or the nice people at the printshop will go bonkers. :mrgreen: )

If you don&#039;t mind, I&#039;ll include the action in the next release of the bundle, containing a reference to you, of course.

Thanks again.</description>
		<content:encoded><![CDATA[<p>@Alan: Great. I just tested the code in your third comment. Works like a charm. I&#8217;ll have to tinker with it a little to accommodate my special needs, though. (I need relative image-paths or the nice people at the printshop will go bonkers. <img src='http://erikslab.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  )</p>
<p>If you don&#8217;t mind, I&#8217;ll include the action in the next release of the bundle, containing a reference to you, of course.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Forsyth</title>
		<link>http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/comment-page-1/#comment-55</link>
		<dc:creator>Alan Forsyth</dc:creator>
		<pubDate>Wed, 16 Jul 2008 11:17:47 +0000</pubDate>
		<guid isPermaLink="false">http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/#comment-55</guid>
		<description>Try again:

img=&quot;$TM_DROPPED_FILE&quot;
echo -n &quot;&lt;imagedata fileref=\&quot;$img\&quot; &quot;

sips -g pixelWidth -g pixelHeight &quot;$img&quot; \
&#124;awk &#039;/pixelWidth/  { printf(&quot;contentwidth=\&quot;%d\&quot; &quot;,  $2) }
     /pixelHeight/ { printf(&quot;contentdepth=\&quot;%d\&quot;&quot;, $2) }&#039;
echo -n &quot;/&gt;&quot;

Sorry for the extra comments!

Alan</description>
		<content:encoded><![CDATA[<p>Try again:</p>
<p>img=&#8221;$TM_DROPPED_FILE&#8221;<br />
echo -n &#8220;&lt;imagedata fileref=\&#8221;$img\&#8221; &#8221;</p>
<p>sips -g pixelWidth -g pixelHeight &#8220;$img&#8221; \<br />
|awk &#8216;/pixelWidth/  { printf(&#8220;contentwidth=\&#8221;%d\&#8221; &#8220;,  $2) }<br />
     /pixelHeight/ { printf(&#8220;contentdepth=\&#8221;%d\&#8221;", $2) }&#8217;<br />
echo -n &#8220;/&gt;&#8221;</p>
<p>Sorry for the extra comments!</p>
<p>Alan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Forsyth</title>
		<link>http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/comment-page-1/#comment-54</link>
		<dc:creator>Alan Forsyth</dc:creator>
		<pubDate>Wed, 16 Jul 2008 11:16:28 +0000</pubDate>
		<guid isPermaLink="false">http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/#comment-54</guid>
		<description>Hmm.... looks like the code didn&#039;t get published properly:

img=&quot;$TM_DROPPED_FILE&quot;
echo -n &quot;&quot;</description>
		<content:encoded><![CDATA[<p>Hmm&#8230;. looks like the code didn&#8217;t get published properly:</p>
<p>img=&#8221;$TM_DROPPED_FILE&#8221;<br />
echo -n &#8220;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Forsyth</title>
		<link>http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/comment-page-1/#comment-53</link>
		<dc:creator>Alan Forsyth</dc:creator>
		<pubDate>Wed, 16 Jul 2008 11:05:09 +0000</pubDate>
		<guid isPermaLink="false">http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/#comment-53</guid>
		<description>Hey Erik - thanks for the bundle. We recently need to add a lot of new images to a docbook file, so created a new drag item that allows you to drag an image into a docbook file and create an  tag with fileref, contentwidth and contentdepth attributes filled in automatically! Very cool - modified from the similar image drag item for the HTML bundle...

Here&#039;s how you do it (after installing Erik&#039;s DocBook bundle in Textmate)

In Textmate:
- open a docbook file (for practice)
- go to Bundles-&gt;Bundle Editor-&gt;Show Bundle Editor
- open the &#039;Docbook&#039; bundle in the lefthand window of the editor (select an entry there to be sure)
- click the &#039;+&#039; at the bottom left and choose &#039;New Drag Command&#039;
- Type &#039;imagedata&#039; as the name, then go to the righthand side of the editor
- Add file types: png, jpg, gif
- In Command(s), replace the existing text with the following:

img=&quot;$TM_DROPPED_FILE&quot;
echo -n &quot;&quot;

The above can be modified for width, height and other attributes (see http://www.sagehill.net/docbookxsl/ImageSizing.html)

Alan</description>
		<content:encoded><![CDATA[<p>Hey Erik &#8211; thanks for the bundle. We recently need to add a lot of new images to a docbook file, so created a new drag item that allows you to drag an image into a docbook file and create an  tag with fileref, contentwidth and contentdepth attributes filled in automatically! Very cool &#8211; modified from the similar image drag item for the HTML bundle&#8230;</p>
<p>Here&#8217;s how you do it (after installing Erik&#8217;s DocBook bundle in Textmate)</p>
<p>In Textmate:<br />
- open a docbook file (for practice)<br />
- go to Bundles-&gt;Bundle Editor-&gt;Show Bundle Editor<br />
- open the &#8216;Docbook&#8217; bundle in the lefthand window of the editor (select an entry there to be sure)<br />
- click the &#8216;+&#8217; at the bottom left and choose &#8216;New Drag Command&#8217;<br />
- Type &#8216;imagedata&#8217; as the name, then go to the righthand side of the editor<br />
- Add file types: png, jpg, gif<br />
- In Command(s), replace the existing text with the following:</p>
<p>img=&#8221;$TM_DROPPED_FILE&#8221;<br />
echo -n &#8220;&#8221;</p>
<p>The above can be modified for width, height and other attributes (see <a href="http://www.sagehill.net/docbookxsl/ImageSizing.html" rel="nofollow">http://www.sagehill.net/docbookxsl/ImageSizing.html</a>)</p>
<p>Alan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/comment-page-1/#comment-48</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Wed, 14 May 2008 06:18:54 +0000</pubDate>
		<guid isPermaLink="false">http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/#comment-48</guid>
		<description>@GeneG1: The bundle contains just &#x21E5;-expansions, as stated in the post. It does not check the hierarchy of tags for validity while writing, a.k.a. you have to know what you&#039;re doing.

If you are looking for a mechanism like the one in Emacs, telling you the valid tags for the current position of your cursor, then I&#039;m sorry.

Regarding Relax NG, as soon as my publisher (read the printshop) is able to cope with that, I&#039;ll look into it. The sole purpose of the bundle is to make my (writing-)life easier. I&#039;m working on some automation, though.</description>
		<content:encoded><![CDATA[<p>@GeneG1: The bundle contains just &#x21E5;-expansions, as stated in the post. It does not check the hierarchy of tags for validity while writing, a.k.a. you have to know what you&#8217;re doing.</p>
<p>If you are looking for a mechanism like the one in Emacs, telling you the valid tags for the current position of your cursor, then I&#8217;m sorry.</p>
<p>Regarding Relax NG, as soon as my publisher (read the printshop) is able to cope with that, I&#8217;ll look into it. The sole purpose of the bundle is to make my (writing-)life easier. I&#8217;m working on some automation, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GeneG1</title>
		<link>http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/comment-page-1/#comment-47</link>
		<dc:creator>GeneG1</dc:creator>
		<pubDate>Tue, 13 May 2008 22:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://erikslab.com/2008/02/26/my-docbook-bundle-for-textmate/#comment-47</guid>
		<description>Erik, what version of DocBook are you using? Does your bundle play nice with the Relax NG version of DocBook 5.0?</description>
		<content:encoded><![CDATA[<p>Erik, what version of DocBook are you using? Does your bundle play nice with the Relax NG version of DocBook 5.0?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

