<?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/"
	>

<channel>
	<title>His Deeds Are Dust &#187; fedora</title>
	<atom:link href="http://hisdeedsaredust.com/tag/fedora/feed/" rel="self" type="application/rss+xml" />
	<link>http://hisdeedsaredust.com</link>
	<description>surveying sub-optimal solutions</description>
	<lastBuildDate>Tue, 17 Jan 2012 15:52:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Samsung X120 custom kernel</title>
		<link>http://hisdeedsaredust.com/2011/03/samsung-x120-custom-kernel/</link>
		<comments>http://hisdeedsaredust.com/2011/03/samsung-x120-custom-kernel/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 17:58:53 +0000</pubDate>
		<dc:creator>Paul Flo Williams</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[samsung]]></category>

		<guid isPermaLink="false">http://hisdeedsaredust.com/?p=199</guid>
		<description><![CDATA[I have a Samsung X120 notebook. Commiserate with me, please, for ever since F13&#8242;s kernel went from 2.6.33 to 2.6.34, I&#8217;ve been without ACPI. Anything other than acpi=off in the boot settings produced a giant stack trace that scrolled off the tiny screen so fast and so early in the boot that only videoing the [...]]]></description>
			<content:encoded><![CDATA[<p>I have a Samsung X120 notebook. Commiserate with me, please, for ever since F13&#8242;s kernel went from 2.6.33 to 2.6.34, I&#8217;ve been without ACPI. Anything other than <tt>acpi=off</tt> in the boot settings produced a giant stack trace that scrolled off the tiny screen so fast and so early in the boot that only videoing the screen would have enabled me to transcribe it. Even <tt>boot_delay</tt> didn&#8217;t work, because that won&#8217;t delay <em>every</em> line of output when the kernel is curling up in a corner and dying.</p>
<p>It&#8217;s a bug in the Samsung BIOS no doubt, and it has an upstream <a href="https://bugzilla.kernel.org/show_bug.cgi?id=16548">kernel report</a>, but the bisect points to a sane commit that&#8217;s good for everyone else.</p>
<p>Running without ACPI isn&#8217;t a realistic option on a laptop. I wouldn&#8217;t know when to plug it back into the mains, and shutting down requires rather more persuasion than should be necessary, so last night it was time to patch the kernel.</p>
<p><a href="https://fedoraproject.org/wiki/">Fedora Wiki</a> to the rescue. I followed the instructions on <a href="https://fedoraproject.org/wiki/Building_a_custom_kernel">building a custom kernel</a> to the letter, and eleven hours later, I had a functioning laptop. I&#8217;ll break that down, lest you think me hard of understanding: five minutes to read the page, 20 minutes to grab the kernel src.rpm and make the appropriate patch, and 10 hours and 35 minutes to compile the entire thing on the laptop. I went to bed for the last bit, after ensuring that the mains was plugged in and on so that my laptop wouldn&#8217;t do the same.</p>
<p>So, to everyone who has had a hand in that page on the wiki, thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://hisdeedsaredust.com/2011/03/samsung-x120-custom-kernel/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Extracting font licence metadata</title>
		<link>http://hisdeedsaredust.com/2010/02/extracting-font-licence-metadata/</link>
		<comments>http://hisdeedsaredust.com/2010/02/extracting-font-licence-metadata/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 13:14:57 +0000</pubDate>
		<dc:creator>Paul Flo Williams</dc:creator>
				<category><![CDATA[Fonts]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[opentype]]></category>

		<guid isPermaLink="false">http://hisdeedsaredust.com/?p=142</guid>
		<description><![CDATA[I&#8217;ve just been looking at packaging a font for Fedora, and have found that there is no separate licence file, though the font metadata contains the full licence text. I should ask upstream to put a copy of the licence in their archive, the next time they do a release, but what if they aren&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just been looking at packaging a font for Fedora, and have found that there is no separate licence file, though the font metadata contains the full licence text. I should ask upstream to put a copy of the licence in their archive, the next time they do a release, but what if they aren&#8217;t interested? How would I extract the licence text?</p>
<p>The simplest starting point seems to be <a href="http://sourceforge.net/projects/fonttools/">TTX</a>, which can take a TrueType font and convert some or all of it to an XML document. From then, anything that can parse XML or plain text should help. I&#8217;ll just extract the TrueType &#8220;name&#8221; table:</p>
<pre>
$ ttx -t name font.ttf
</pre>
<p>This creates a file called <tt>font.ttx</tt>. Annoying, I can&#8217;t send the output to stdout, and I can&#8217;t ask that it overwrites any old file of the same name; it&#8217;ll just insist on creating <tt>font.ttx</tt>, <tt>font#1.ttx</tt>, <tt>font#2.ttx</tt> and so on.</p>
<p>If we take a look at <tt>font.ttx</tt>, we can see the field I&#8217;m interested in, in a <tt>namerecord</tt> element with attribute <tt>nameID</tt> of 13:</p>
<pre>
&lt;namerecord nameID="13" platformID="1" platEncID="0" langID="0x0"&gt;
       This font software is copyright (c) 2007, Frixxon Wanglewurx. All rights reserved.&amp;#13;&amp;#10;"Frixxon Muck" is a Reserved ...
&lt;/namerecord&gt;
</pre>
<p>The entire licence is extracted as one line in the XML output, with carriage returns and line feeds encoded as <tt>&amp;#13;</tt> and <tt>&amp;#10;</tt>, respectively. There may be more than one copy of this licence, with different <tt>platformID</tt> values.</p>
<p>To go from here to a text file with no more than 80 characters per line and LF endings, I could either use <tt>sed</tt> or <tt>xsltproc</tt>. Let&#8217;s take a look at how both would work. Here&#8217;s <tt>getlicence.sed</tt>:</p>
<pre>
/&lt;namerecord nameID="13"/ {
  n
  s/^ \+//
  s/&amp;#13;//g
  s/&amp;#9;/\t/g
  s/&amp;#10;/\n/g
  s/&amp;amp;/\&amp;/g
  p
  q
}
</pre>
<p>Which reads as: <em>find the namerecord, skip to the next line, strip leading spaces, convert some XML entities to text, print it and quit</em>.</p>
<p>I&#8217;d invoke this with:</p>
<pre>
$ sed -nf getlicence.sed font.ttx | fold -s > LICENSE.txt
</pre>
<p>Yes, despite using the British spelling of licence normally, I&#8217;ll use <em>license</em> for packaging.</p>
<p>The XML entity conversion is a bit of a faff which a proper XML tool could take care of for me. Here&#8217;s <tt>getlicence.xsl</tt>:</p>
<pre>
&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
&lt;xsl:output method="text"/&gt;
&lt;xsl:template match='/'&gt;
  &lt;xsl:value-of select="//namerecord[@nameID='13'][position()=1]"/&gt;
&lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;
</pre>
<p>I&#8217;d use this with:</p>
<pre>
$ xsltproc getlicence.xsl font.ttx | dos2unix | fold -s > LICENSE.txt
</pre>
<p>There are plenty more tiny hacks that TTX and XSLT can help with. I haven&#8217;t yet tried many round trip conversions with TTX, but if I lose my way in FontForge&#8217;s Font Information menus and dialogs, I could be tempted.</p>
]]></content:encoded>
			<wfw:commentRss>http://hisdeedsaredust.com/2010/02/extracting-font-licence-metadata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An old video terminal, in vector form</title>
		<link>http://hisdeedsaredust.com/2009/11/video-terminal-in-vector-form/</link>
		<comments>http://hisdeedsaredust.com/2009/11/video-terminal-in-vector-form/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 15:03:34 +0000</pubDate>
		<dc:creator>Paul Flo Williams</dc:creator>
				<category><![CDATA[Fonts]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fontconfig]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[opentype]]></category>

		<guid isPermaLink="false">http://hisdeedsaredust.com/?p=108</guid>
		<description><![CDATA[I still have a VT100 terminal, but it&#8217;s in storage. I figured I could pretend that it was on my desk if I made a font that looked like the old beast, including the gaps between scan lines. Once I&#8217;d started, I needed the reverse video form of it, and the forms correctly underlined, and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://hisdeedsaredust.com/wp-content/uploads/2009/11/mayterm-setupa.png"><img src="http://hisdeedsaredust.com/wp-content/uploads/2009/11/mayterm-thumb.png" alt="mayterm-thumb" title="mayterm-thumb" width="96" height="115" class="alignright size-full wp-image-111" /></a>I still have a <a href="http://vt100.net/vt_history#VT100">VT100 terminal</a>, but it&#8217;s in storage. I figured I could pretend that it was on my desk if I made a font that looked like the old beast, including the gaps between scan lines.</p>
<p>Once I&#8217;d started, I needed the reverse video form of it, and the forms correctly underlined, and double width, and double height <i>and</i> double width. Blinking is more problematic <img src='http://hisdeedsaredust.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>The challenge with the double height, double width font is that the VT100 had escape sequences that made particular character rows either display just the top half of characters, or the bottom half. To display characters double height, you had to put the same characters on two consecutive rows, and set the line attributes correctly. In fact, you could make up some funky alien characters by setting the line attributes and typing different characters on each row.</p>
<p>In order to reproduce this effect (<em>yes, I&#8217;m carrying on digging</em>), I had to make an upper half font, and a lower half font. And <em>that</em> gives me a problem with <a href="http://fontconfig.org">Fontconfig</a>, because that takes a look through fonts as it caches them, and marks glyphs as broken if they don&#8217;t make any marks, but they are encoded at positions which aren&#8217;t space characters in Unicode. My &#8220;upper half&#8221; font doesn&#8217;t have any marks for the underscore glyph, and my &#8220;lower half&#8221; font doesn&#8217;t have any marks for the double quotes, for example.</p>
<p>There isn&#8217;t a way of telling Fontconfig that my font isn&#8217;t broken just because it didn&#8217;t fancy making any marks for a particular glyph, so I&#8217;ll have to do some pre-processing when generating &#8220;<a href="http://hisdeedsaredust.com/wp-content/uploads/2009/11/mayterm-setupa.png">screen shots</a>&#8221; of my old terminal. I can locally configure Fontconfig to <strong>not</strong> do this, but that wouldn&#8217;t help anyone else.</p>
]]></content:encoded>
			<wfw:commentRss>http://hisdeedsaredust.com/2009/11/video-terminal-in-vector-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resurrecting fonts</title>
		<link>http://hisdeedsaredust.com/2009/11/resurrecting-fonts/</link>
		<comments>http://hisdeedsaredust.com/2009/11/resurrecting-fonts/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 20:05:37 +0000</pubDate>
		<dc:creator>Paul Flo Williams</dc:creator>
				<category><![CDATA[Fonts]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[ofl]]></category>
		<category><![CDATA[opentype]]></category>

		<guid isPermaLink="false">http://hisdeedsaredust.com/?p=104</guid>
		<description><![CDATA[A while ago, I recovered my old font files from some crufty old SuperDisks, but did nothing more with them than copy them to my network storage, in the hope that that is a safer home. Last weekend I was reading about the Fedora Fonts SIG, and decided to bring the old font files back [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://hisdeedsaredust.com/wp-content/uploads/2009/10/segment14.png" alt="segment14" title="segment14" width="66" height="97" class="alignright size-full wp-image-92" />A while ago, I recovered my old font files from some <a href="/2009/04/the-not-so-super-superdisk/">crufty old SuperDisks</a>, but did nothing more with them than copy them to my network storage, in the hope that <em>that</em> is a safer home.</p>
<p>Last weekend I was reading about the <a href="http://fedoraproject.org/wiki/Category:Fonts_SIG">Fedora Fonts SIG</a>, and decided to bring the old font files back to life. The Fonts SIG is concerned with packaging fonts for Fedora, but their pages have some interesting pointers on how they might be created as well, so I grabbed an old font and explored the tools that are available.</p>
<p>The font I picked is one I created when I was working with an old Stag PROM programmer, back in 1996. The programmer had a <a href="http://en.wikipedia.org/wiki/Starburst_display">14-segment LED display</a>. The real thing doesn&#8217;t look much like the clean vertical pictures you&#8217;ll see in that Wikipeda article. The real characters are slightly oblique and there seems to be a kind of hexagonal mesh over the top that makes the segments look like the figure at the top of this posting.</p>
<p>I originally created the font by hand-coding the Type 1 format on a Sun workstation with Ghostscript installed, using my own tools to transform some readable path descriptions into the encrypted form.</p>
<p>This time, it seemed sensible to update the font to <a href="http://en.wikipedia.org/wiki/OpenType">OpenType</a> format, and I decided to use <a href="http://fontforge.sourceforge.net">FontForge</a> for the job.</p>
<p>Importing the old PFB file worked OK, and exporting is a doddle, except for FontForge complaining about overlapping segments in the font. There aren&#8217;t any, but there are some subroutines that move back to the glyph origin, causing some empty subpaths, which FontForge doesn&#8217;t ignore.</p>
<p>The only other problem was my attempt to upload the font to the <a href="http://openfontlibrary.org">Open Font Library</a>, because the upload facility is broken. Ho hum.</p>
<p>Here&#8217;s the result of my hacking, a font called Segment14, released under the SIL Open Font License (OFL): <a href='http://hisdeedsaredust.com/wp-content/uploads/2010/08/segment14-1.0.tar.gz'>segment14-1.0.tar.gz</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hisdeedsaredust.com/2009/11/resurrecting-fonts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Samsung X120 keyboard quirks</title>
		<link>http://hisdeedsaredust.com/2009/11/samsung-x120-keyboard-quirks/</link>
		<comments>http://hisdeedsaredust.com/2009/11/samsung-x120-keyboard-quirks/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 13:29:21 +0000</pubDate>
		<dc:creator>Paul Flo Williams</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[samsung]]></category>

		<guid isPermaLink="false">http://hisdeedsaredust.com/?p=99</guid>
		<description><![CDATA[As suspected, the Samsung X120 notebook has the same keyboard quirks as many other Samsung laptops, so that some of the function keys don&#8217;t work correctly under Fedora 11. There are two problems and fixes needed. One, the kernel needs patching so that the quirks with missing key release events are also applied to the [...]]]></description>
			<content:encoded><![CDATA[<p>As suspected, the Samsung X120 notebook has the same keyboard quirks as many other Samsung laptops, so that some of the function keys don&#8217;t work correctly under Fedora 11. There are two problems and fixes needed. One, the kernel needs patching so that the quirks with missing key release events are also applied to the X120 (<a href="http://bugzilla.kernel.org/show_bug.cgi?id=14052">kernel bug 14052</a>). Secondly, HAL needs patching to connect the function keys to turn the brightness up and down, etc., in the manner described by <a href="https://bugzilla.redhat.com/show_bug.cgi?id=504009">Fedora bug 504009</a> and <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/399911">Ubuntu bug 399911</a> (and many others).</p>
<p>However, I have confirmed that grabbing and patching kernel-2.6.30.9-90.fc11.src.rpm works me.</p>
]]></content:encoded>
			<wfw:commentRss>http://hisdeedsaredust.com/2009/11/samsung-x120-keyboard-quirks/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

