<?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>半月記 &#187; Debian</title>
	<atom:link href="http://pasero.net/~mako/blog/s/category/debian/feed" rel="self" type="application/rss+xml" />
	<link>http://pasero.net/~mako/blog</link>
	<description></description>
	<lastBuildDate>Wed, 23 Jun 2010 09:25:44 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>beep は PC スピーカーで鳴らしたい</title>
		<link>http://pasero.net/~mako/blog/s/110</link>
		<comments>http://pasero.net/~mako/blog/s/110#comments</comments>
		<pubDate>Sun, 04 Oct 2009 11:01:08 +0000</pubDate>
		<dc:creator>Mako</dc:creator>
				<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://pasero.net/~mako/blog/?p=110</guid>
		<description><![CDATA[あるときから beep が鳴らなくなってしまった。このときはパッケージ alsa-base のバージョンを上げたときで、/etc/modprobe.d/alsa-base-blacklist.conf に blackli &#8230; <a href="http://pasero.net/~mako/blog/s/110">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>あるときから beep が鳴らなくなってしまった。このときはパッケージ alsa-base のバージョンを上げたときで、<a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540831" >/etc/modprobe.d/alsa-base-blacklist.conf に blacklist pcspkr と書かれるようになった</a>からで、これをコメントアウトしてカーネルのモジュール pcspkr をロードするようにして復活した。</p>
<p>別の事情のためにカーネルのバージョンを 2.6.30 にしたら、またまた beep が鳴らなくなってしまった。というか、PC スピーカーからではなく ALSA のほうに行ってしまい、そちらに外部スピーカーを接続して alsamixer の beep コントロールを適切に設定すればそちらから音が出るようになった。</p>
<p>しかし、ここでは外部スピーカー(ヘッドホン)は音楽を聴くときなど限られたときしか使っていない。そのため警告音として役に立たない。</p>
<p>検索の結果、<a href="http://bugzilla.kernel.org/show_bug.cgi?id=13651" >Anyone know what happened with PC speaker in 2.6.30?</a> の中ほどを見ると、カーネルの config で、SND_HDA_INPUT_BEEP を off にすればいいようだ。このためだけに Debian パッケージのカーネルを使えずにカーネルの再構築をしなければならないとはひどく面倒だ。</p>
<p>まとめると、Debian で beep を PC スピーカーで鳴らすには、</p>
<ol>
<li>SND_HDA_INPUT_BEEP を off にしてカーネルを再構築する</li>
<li>カーネルのモジュール pcspkr はロードする</li>
<li>alsamixer の beep はミュートする (そうしないと ALSA から「も」beep が鳴る)</li>
</ol>
<p>検索してみても、いかに beep を消すかというばかりが見つかり、逆に beep を PC スピーカーで鳴らしたいというのはほとんど見つからない。時代遅れなのだろうか。</p>

	<h4>タグ</h4> <a href="http://pasero.net/~mako/blog/s/tag/debian" title="Debian" rel="tag">Debian</a>
]]></content:encoded>
			<wfw:commentRss>http://pasero.net/~mako/blog/s/110/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emacs で subversion のコミットログ</title>
		<link>http://pasero.net/~mako/blog/s/97</link>
		<comments>http://pasero.net/~mako/blog/s/97#comments</comments>
		<pubDate>Tue, 21 Apr 2009 12:58:46 +0000</pubDate>
		<dc:creator>Mako</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://pasero.net/~mako/blog/?p=97</guid>
		<description><![CDATA[日本語入力システムにWnn7を使うために環境変数 LANG を ja_JP.eucJP にしなければならないのだが、いくつか問題が出てきた。
そのうちのひとつ、emacs で subversion のコミットをする際のロ &#8230; <a href="http://pasero.net/~mako/blog/s/97">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>日本語入力システムに<a href="http://pasero.net/~mako/blog/s/83">Wnn7を使う</a>ために環境変数 LANG を ja_JP.eucJP にしなければならないのだが、いくつか問題が出てきた。</p>
<p>そのうちのひとつ、emacs で subversion のコミットをする際のログを日本語で書こうとするとエラーを起こす。しばらく放っておいたのだが、やはりログは日本語で書いたほうがささっと書ける<sup><a href="#footnote-1-97" id="footnote-link-1-97" title="See the footnote.">1</a>)</sup>。</p>
<p>.emacs に</p>
<div class="igBar"><span id="llisp-2"><a href="#" onclick="javascript:showPlainTxt('lisp-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">LISP:</span>
<div id="lisp-2">
<div class="lisp" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#40;</span>add-hook 'svn-log-edit-mode-hook</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; '<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">lambda</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span>set-buffer-file-coding-system 'euc-jp<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
を加えて解決した。</p>
<br /><ol class="footnotes"><li id="footnote-1-97">諸説あるが、何しろここでは自分ひとりで使っているリポジトリのものなので自分流である。   <a href="#footnote-link-1-97">↑</a></li></ol>
	<h4>タグ</h4> <a href="http://pasero.net/~mako/blog/s/tag/debian" title="Debian" rel="tag">Debian</a>, <a href="http://pasero.net/~mako/blog/s/tag/emacs" title="Emacs" rel="tag">Emacs</a>, <a href="http://pasero.net/~mako/blog/s/tag/subversion" title="subversion" rel="tag">subversion</a>
]]></content:encoded>
			<wfw:commentRss>http://pasero.net/~mako/blog/s/97/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian lenny (以降) で Wnn7 を使う</title>
		<link>http://pasero.net/~mako/blog/s/83</link>
		<comments>http://pasero.net/~mako/blog/s/83#comments</comments>
		<pubDate>Wed, 04 Feb 2009 13:19:35 +0000</pubDate>
		<dc:creator>Mako</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Wnn]]></category>

		<guid isPermaLink="false">http://pasero.net/~mako/blog/?p=83</guid>
		<description><![CDATA[debian lenny(やsid)に、商用の古い日本語入力システム Wnn7 をインストールした。各パッケージで依存関係を書き直すなどして、無事動かすことができた。 <a href="http://pasero.net/~mako/blog/s/83">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>ハードディスクが飛んでしまい、これを機会に Debian の新しいバージョンをすっかりはじめからインストールした。随分楽になったものだ。さてここでシステムの locale を最近の流行りにしたがって ja_JP.UTF-8 にしたのだが、これが後で問題となった。</p>
<p>sid (unstable) に入れ替えつつ、さらに必要なものを少しづつインストールして、クラッシュ直前の使い勝手に近づいてきたのだが、常用していた debian 外の日本語入力システム <a href="http://www.omronsoft.co.jp/SP/pcunix/wnn7/index.html" >Wnn7</a> はライブラリの依存の問題でインストールすることができなかった<sup><a href="#footnote-1-83" id="footnote-link-1-83" title="See the footnote.">1</a>)</sup> 。商用ソフトでしかも2001年発表というものなので、しかたないかもしれない。Wnn8 ならインストールできるかもしれないが、これですら2005年発表なので今さら買う気にもなれない。</p>
<p>1ヵ月ほど Anthy を使ってみたものの、20年近くも Wnn を使い続けてきた感覚のためか、どうにもストレスを感じて仕方がない。特に Wnn7 の「異体字変換」機能に相当するものを Anthy に見つけることができなかったところで、とうとう我慢ができなくなった。</p>
<p>というわけで、Wnn7 を2009年1月現在の debian sid にインストールしてみることにした。<a href="http://www.omronsoft.co.jp/SP/pcunix/wnn7/support/wnn7updates.html" >アップデートセンター</a> から(当時の debian に対応した) deb パッケージが手にはいる。</p>
<h3>dpkey7</h3>
<p>そのままではインストールはできるが libc6 のバージョンが合わず起動しない。ここでは強引な方法で解決した。上記のアップデートセンターの「ライセンスサーバー」の項を見ると「glibc2.3 対応版」が出ていることがわかる(ただし rpm のみ)。この中から実行ファイルのみ(2つ)を取り出して、これに差し換えた deb を作り直してインストールすることにした。</p>
<p>ネットで検索すると、chroot 環境に<a href="http://snapshot.debian.net/archive/2005/05/12/debian/pool/main/g/glibc/" >古い libc6 (libc6_2.3.2.ds1-22_i386.deb)</a> を飼うという解決法が見つかる。さらに将来を考えるとこのほうがいいのかもしれない。</p>
<h3>wnn7-utils、辞書</h3>
<p>wnn7-utils, maindic, optiondic は特に問題なくインストールできる。</p>
<h3>wnn7-server</h3>
<div class="igBar"><span id="lcode-3"><a href="#" onclick="javascript:showPlainTxt('code-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-3">
<div class="code" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># dpkg-deb -x wnn7-server_1<span style="color:#800000;color:#800000;">.01</span>-1_i386.<span style="">deb</span> wnn7-server</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># dpkg-deb -e wnn7-server_1<span style="color:#800000;color:#800000;">.01</span>-1_i386.<span style="">deb</span> wnn7-server/DEBIAN</div>
</li>
</ol>
</div>
</div>
</div>
<p>
で開梱し、DEBIAN/control の Depends の行にある古いライブラリを現在のものに書き換える。 libglib1.2 は libglib1.2ldbl に、またxlib6g はなくなってしまったので、個々のライブラリにする。したがって depand の行は</p>
<div class="igBar"><span id="lcode-4"><a href="#" onclick="javascript:showPlainTxt('code-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-4">
<div class="code" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Depends: libc6 <span style="color:#006600; font-weight:bold;">&#40;</span>&gt;= <span style="color:#800000;color:#800000;">2.1</span><span style="color:#800000;color:#800000;">.2</span><span style="color:#006600; font-weight:bold;">&#41;</span>, libglib1<span style="color:#800000;color:#800000;">.2</span> <span style="color:#006600; font-weight:bold;">&#40;</span>&gt;= <span style="color:#800000;color:#800000;">1.2</span><span style="color:#800000;color:#800000;">.0</span><span style="color:#006600; font-weight:bold;">&#41;</span>|libglib1.2ldbl, libgtk1<span style="color:#800000;color:#800000;">.2</span> <span style="color:#006600; font-weight:bold;">&#40;</span>&gt;= <span style="color:#800000;color:#800000;">1.2</span><span style="color:#800000;color:#800000;">.7</span><span style="color:#800000;color:#800000;">-1</span><span style="color:#006600; font-weight:bold;">&#41;</span>, libXi6, libxext6, libx11<span style="color:#800000;color:#800000;">-6</span>, libxau6, libxcb-xlib0, libxcb1, libxdmcp6</div>
</li>
</ol>
</div>
</div>
</div>
<p>
とした。libgtk1.2 は辛うじて現在の debian にも残っているのでよかった。</p>
<p>開梱したものを</p>
<div class="igBar"><span id="lcode-5"><a href="#" onclick="javascript:showPlainTxt('code-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-5">
<div class="code" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># dpkg-deb -b&nbsp; wnn7-server wnn7-server_1<span style="color:#800000;color:#800000;">.01</span>-1p1_i386.<span style="">deb</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
のようにして再びパッケージ化して、インストールした。</p>
<h3>wnn7-elisp</h3>
<p>Depends に Emacs のバージョンが固定的に書かれているので、新しいEmacs でも大丈夫なように、先ほどと同様に、emacsen と書き加える。</p>
<p>また、usr/lib/emacsen-common/packages/*/wnn7-elisp の中の case 文にもバージョンが固定的に書かれているので、ここに<a href="http://pasero.net/~mako/blog/s/70" >新しいバージョンを加える</a>。</p>
<p>ここまでで、dpkeystat で ライセンスサーバが起動していることを確認でき、wnnstat で変換サーバが起動していることを確認できる。そして Emacs をクライアントとして正しく日本語入力と変換ができることを確認できる。</p>
<h3>wnn7-xclients</h3>
<p>最後に、xwnmo の含まれるこのパッケージも、同様に Depends の行を書き換える。</p>
<div class="igBar"><span id="lcode-6"><a href="#" onclick="javascript:showPlainTxt('code-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-6">
<div class="code" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Depends: debhelper, debconf, libc6 <span style="color:#006600; font-weight:bold;">&#40;</span>&gt;= <span style="color:#800000;color:#800000;">2.2</span><span style="color:#800000;color:#800000;">.4</span><span style="color:#800000;color:#800000;">-4</span><span style="color:#006600; font-weight:bold;">&#41;</span>, libglib1<span style="color:#800000;color:#800000;">.2</span> <span style="color:#006600; font-weight:bold;">&#40;</span>&gt;= <span style="color:#800000;color:#800000;">1.2</span><span style="color:#800000;color:#800000;">.0</span><span style="color:#006600; font-weight:bold;">&#41;</span>|libglib1.2ldbl, libgtk1<span style="color:#800000;color:#800000;">.2</span> <span style="color:#006600; font-weight:bold;">&#40;</span>&gt;= <span style="color:#800000;color:#800000;">1.2</span><span style="color:#800000;color:#800000;">.10</span><span style="color:#800000;color:#800000;">-4</span><span style="color:#006600; font-weight:bold;">&#41;</span>, libXi6, libxext6, libx11<span style="color:#800000;color:#800000;">-6</span>, libxau6, libxcb-xlib0, libxcb1, libxdmcp6, libXmu6, libXt6, libsm6, libice6</div>
</li>
</ol>
</div>
</div>
</div>
<p>
とした。</p>
<h3>設定</h3>
<p>はじめに書いたようにシステムの locale を UTF-8 にしたのだが、これが原因で xwnmo が機能しなかった。ユーザーの .bash_profile で、LANG=ja_JP.eucJP と設定することにした。他のアプリケーションでそのうち困ることが出てくるかもしれないが。</p>
<p>そのほかの環境変数は、Wnn7 をインストールするより前に Anthy を入れた関係で im-switch もインストールしていたので、この際その流儀に合わせることにした。/etc/X11/xinit/xinput.d/ の default-xim を xim-wnn7 という名前でコピーして</p>
<div class="igBar"><span id="lcode-7"><a href="#" onclick="javascript:showPlainTxt('code-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-7">
<div class="code" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">XIM=_XWNMO</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">XIM_PROGRAM=<span style="color:#CC0000;">&quot;/usr/bin/xwnmo&quot;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">XIM_ARGS=<span style="color:#CC0000;">&quot;-map -g 1x1-0-0&quot;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">GTK_IM_MODULE=xim</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">QT_IM_MODULE=xim</div>
</li>
</ol>
</div>
</div>
</div>
<p>
とした(XIM_ARGSはご自由に)。あとは im-switch -s xim-wnn7 で切り替えておく。</p>
<br /><ol class="footnotes"><li id="footnote-1-83">ハードディスクが壊れる直前はその時点でほぼ最新の sid だったのだが、ずっと以前にインストールした Wnn7 に依存される形で古いライブラリが残っていて、 Wnn7 は正常に動いていた。   <a href="#footnote-link-1-83">↑</a></li></ol>
	<h4>タグ</h4> <a href="http://pasero.net/~mako/blog/s/tag/debian" title="Debian" rel="tag">Debian</a>, <a href="http://pasero.net/~mako/blog/s/tag/wnn" title="Wnn" rel="tag">Wnn</a>
]]></content:encoded>
			<wfw:commentRss>http://pasero.net/~mako/blog/s/83/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PostgreSQL を 8.3 に</title>
		<link>http://pasero.net/~mako/blog/s/77</link>
		<comments>http://pasero.net/~mako/blog/s/77#comments</comments>
		<pubDate>Thu, 20 Mar 2008 09:29:19 +0000</pubDate>
		<dc:creator>Mako</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://pasero.net/~mako/blog/s/77</guid>
		<description><![CDATA[バックエンドに PostgreSQL を使っているのは、自前のデータベースのほかに Trac と MediaWiki だ。バージョン 8.3 が出てから1ヵ月以上経つし、MediaWiki の 1.12.0rc1 で P &#8230; <a href="http://pasero.net/~mako/blog/s/77">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>バックエンドに PostgreSQL を使っているのは、自前のデータベースのほかに Trac と MediaWiki だ。バージョン 8.3 が出てから1ヵ月以上経つし、MediaWiki の 1.12.0rc1 で PostgreSQL 8.3 対応の文字が見えてきたのでそろそろ大丈夫だろうとバージョンアップしてみた。</p>
<p>debian の場合 pg_upgradecluster で簡単にデータの移行ができる……はずだったのだが一筋縄ではいかなかったのだった。きっと数ヵ月後には根本的に解決されていて役に立たない情報になるだろうが、記録しておく。</p>
<h3>自前のデータベース</h3>
<p>PostgreSQL の contrib に含まれている isn.sql<sup><a href="#footnote-1-77" id="footnote-link-1-77" title="See the footnote.">1</a>)</sup>を利用している。この isn.sql も 8.2 と 8.3 で若干違っているようで、pg_dump したものを読み込ませてもうまくいかなかった。</p>
<p>しかたがないので、pg_dump したものを isn.sql 関連の定義前の部分、isn.sql による部分、その後の部分の3つに分け、前の部分を読み込ませた後、contrib の isn.sql を読み込ませ、それから後の部分を読み込ませることで、ようやくデータの移行ができた。</p>
<p>自前で書いていたフロントエンドは特に問題なしと思ったら、</p>
<blockquote><p>
互換性のない変更点</p>
<dl>
<dt>文字でない型 (日付型など) を自動的に text 型に変換しないようにしました。</dt>
<dd>今までは text 型入力を受けとる演算子や関数に文字でない値が渡されると、自動的に text 型にキャストしていました。 これからは text 型でないデータを渡したい場合には text 型への明示的なキャストが必要になります。</dd>
</dl>
</blockquote>
<p>に引っかかるところが数ヵ所見つかった。演算子 ~ はテキスト型にしか使えないとのこと。暗黙のルールは使わないようにしているつもりでもうっかり使っているのものだなと思った。</p>
<h3>Trac</h3>
<p>データの移行はすんなりとできた。が、使ってみるとエラーが出る。上と同様、キャストに関わる問題のようだ。検索して、<a href="http://trac.edgewall.org/changeset/6416" >6416</a>と<a href="http://trac.edgewall.org/changeset/6512" >6512</a>の変更を加えて、うまく動くようになった。</p>
<h3>MediaWiki</h3>
<p>MediaWiki で使っている tsearch2 は PostgreSQL 8.2 では contrib だったのが 8.3 では本体に組み込まれた。と言っても関数名等の互換性を取るために 8.3 でも contrib の tsearch2.sql を読み込ませる必要がある。上述したのと同じように dump を分割してデータを移行した。</p>
<p>これで大丈夫と思ったら、記事を書き換えようとした際にエラーが出た。ts2_page_text() で tsvectorの引数の 'default' は存在しないというもの(すみません、メッセージを正確に記録していませんでした)。</p>
<p>maintenance/postgres/tables.sql の 当該関数の定義箇所を見てみると</p>
<div class="igBar"><span id="lsql-9"><a href="#" onclick="javascript:showPlainTxt('sql-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">SQL:</span>
<div id="sql-9">
<div class="sql" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">-- Tsearch2 2 stuff. Will fail if we don't have proper access to the tsearch2 tables</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">-- Note: if version 8.3 or higher, we remove the 'default' arg</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
とのコメントがある。1.12.0rc1 ではまだ対応されていないのだった。<a href="http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/maintenance/postgres/tables.sql" >新しい版</a>を見るとコメントがつけ加えられていて、<a href="http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/maintenance/postgres/archives/patch-tsearch2funcs.sql" >patch-tsearch2funcs.sql</a>の存在を教えてくれた。これを適用して、問題なく動くようになった。</p>
<br /><ol class="footnotes"><li id="footnote-1-77">書籍コードの ISBN をひとつの変数型として扱うためのもの。   <a href="#footnote-link-1-77">↑</a></li></ol>
	<h4>タグ</h4> <a href="http://pasero.net/~mako/blog/s/tag/debian" title="Debian" rel="tag">Debian</a>, <a href="http://pasero.net/~mako/blog/s/tag/postgresql" title="PostgreSQL" rel="tag">PostgreSQL</a>, <a href="http://pasero.net/~mako/blog/s/tag/software" title="Software" rel="tag">Software</a>
]]></content:encoded>
			<wfw:commentRss>http://pasero.net/~mako/blog/s/77/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>kernel 2.6.24</title>
		<link>http://pasero.net/~mako/blog/s/76</link>
		<comments>http://pasero.net/~mako/blog/s/76#comments</comments>
		<pubDate>Tue, 12 Feb 2008 09:30:39 +0000</pubDate>
		<dc:creator>Mako</dc:creator>
				<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://pasero.net/~mako/blog/s/76</guid>
		<description><![CDATA[随分長いこと間があいてしまった。この間いろいろなことがあったのだが、今日はとにかくどこかにメモしておくべきことをメモしておく。
カーネルをバージョンアップ。Debian なのでそれ自体はいたって簡単。いつのまにか -k7 &#8230; <a href="http://pasero.net/~mako/blog/s/76">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>随分長いこと間があいてしまった。この間いろいろなことがあったのだが、今日はとにかくどこかにメモしておくべきことをメモしておく。</p>
<p>カーネルをバージョンアップ。Debian なのでそれ自体はいたって簡単。いつのまにか -k7 パッケージはなくなっていて、-686 に統合されたらしい。</p>
<p>メモしておくべきなのは、独自にいれているモジュールなど。nvidia は module-assistant のおかげでいまや特筆すべきことはない。shfs は<a href="http://pasero.net/~mako/blog/s/34#kernel_2.6.18" >前もひどく苦労した</a>のだが今回もうまくいかず、と思ったらパッケージそのものが Debian から消えつつある。というわけで sshfs に乗り換えることにした。こちらはあっさり入れることができた。</p>
<p>そして VMWare (VMware-server-1.0.4-56528)でも一苦労。検索して <a href="http://www.nowhere.dk/archives/2008/01/17/running_vmware_workstation_on_ubuntu_hardy_herron/index.php">Running VMWare Workstation on Ubuntu Hardy Herron</a>という情報にたどり着き、ようやく動いた。カーネル 2.6.22 では any-any パッチすら不要だったので、じきにすんなりはいるようになるとは思うが。</p>

	<h4>タグ</h4> <a href="http://pasero.net/~mako/blog/s/tag/debian" title="Debian" rel="tag">Debian</a>
]]></content:encoded>
			<wfw:commentRss>http://pasero.net/~mako/blog/s/76/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gdm でのシャットダウンの禁止</title>
		<link>http://pasero.net/~mako/blog/s/75</link>
		<comments>http://pasero.net/~mako/blog/s/75#comments</comments>
		<pubDate>Sun, 07 Oct 2007 08:54:58 +0000</pubDate>
		<dc:creator>Mako</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[gdm]]></category>

		<guid isPermaLink="false">http://pasero.net/~mako/blog/s/75</guid>
		<description><![CDATA[特に設定しないと gdm のグリーティング画面で、「アクション」から誰でもシャットダウンや再起動ができてしまう。これではコンソールの前を通りかかった人は誰でも実行できてしまうので困ったものだと思うのだが、GNOME の考 &#8230; <a href="http://pasero.net/~mako/blog/s/75">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>特に設定しないと gdm のグリーティング画面で、「アクション」から誰でもシャットダウンや再起動ができてしまう。これではコンソールの前を通りかかった人は誰でも実行できてしまうので困ったものだと思うのだが、GNOME の考え方なのだろう、以前からこれがデフォルトだ。</p>
<p>また、いったんログインすれば、メインメニュー「シャットダウン」の項目があり、一般ユーザーがシャットダウンできてしまう。意図的でなくてもメニューで「ログアウト」と隣合っているので、うっかり間違えてシャットダウンしてしまうことがある。別のユーザーがリモートからそのマシンを使っていると困ったことになる。</p>
<p>シャットダウンを禁止するには、GNOME 2.18 では、gdm の設定ファイル /etc/gdm/gdm.conf<sup><a href="#footnote-1-75" id="footnote-link-1-75" title="See the footnote.">1</a>)</sup> の [deamon] セクションに</p>
<div class="igBar"><span id="lcode-12"><a href="#" onclick="javascript:showPlainTxt('code-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-12">
<div class="code" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>daemon<span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">HaltCommand=</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">RebootCommand=</div>
</li>
</ol>
</div>
</div>
</div>
<p>
と書き加えればよかった。シャットダウンと再起動用のコマンドに空を指定することで、自動的にグリーティング画面の「アクション」メニューから「シャットダウン」「再起動」の項目が消え、ログインした一般ユーザーのメインメニューからも「シャットダウン」が消えていた。</p>
<p>ところが、gdm 2.20 になると、グリーティング画面の「アクション」からは消えるが一般ユーザーのメインメニューには「シャットダウン」が出るようになってしまった<sup><a href="#footnote-2-75" id="footnote-link-2-75" title="See the footnote.">2</a>)</sup>。</p>
<p><a href="http://www.gnome.org/projects/gdm/docs/2.20/configuration.html#daemonsection" >gdm の設定の [daemon] セクション</a>を見ると、 <code>AllowLogoutActions</code> という項目が 2.20 から増えていた。これに空の値を指定する、つまり先ほどの2行に加えて</p>
<div class="igBar"><span id="lcode-13"><a href="#" onclick="javascript:showPlainTxt('code-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-13">
<div class="code" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">AllowLogoutActions=</div>
</li>
</ol>
</div>
</div>
</div>
<p>
と書くことで、一般ユーザーのメインメニューから「シャットダウン」を消すことができた。</p>
<br /><ol class="footnotes"><li id="footnote-1-75"><a href="http://www.gnome.org/projects/gdm/docs/" >gdm のマニュアル</a>を見ると <code>/etc/gdm/custom.conf</code> という名前のようだが、Debian では古い名前 <code>/etc/gdm/gdm.conf</code> が使われ続けているようだ。   <a href="#footnote-link-1-75">↑</a></li><li id="footnote-2-75">ロックダウン・エディタ <code>pessulus</code> を使うことも考えたが、これで「ログアウトを無効にする」と「シャットダウン」も「ログアウト」も一緒にできなくなってしまう。これらを別々に設定することはできない。   <a href="#footnote-link-2-75">↑</a></li></ol>
	<h4>タグ</h4> <a href="http://pasero.net/~mako/blog/s/tag/debian" title="Debian" rel="tag">Debian</a>, <a href="http://pasero.net/~mako/blog/s/tag/gdm" title="gdm" rel="tag">gdm</a>, <a href="http://pasero.net/~mako/blog/s/tag/software" title="Software" rel="tag">Software</a>
]]></content:encoded>
			<wfw:commentRss>http://pasero.net/~mako/blog/s/75/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>emacs22 と wnn7-elisp パッケージ</title>
		<link>http://pasero.net/~mako/blog/s/70</link>
		<comments>http://pasero.net/~mako/blog/s/70#comments</comments>
		<pubDate>Tue, 10 Jul 2007 13:51:46 +0000</pubDate>
		<dc:creator>Mako</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Wnn]]></category>

		<guid isPermaLink="false">http://pasero.net/~mako/blog/s/70</guid>
		<description><![CDATA[Debian sid に emacs22 (とその GTK版emacs22-gtk) が降りてきた。さっそく入れようと思ったがいくつかのパッケージが対応していない。特に wnn7-elisp は Debian 公式のもの &#8230; <a href="http://pasero.net/~mako/blog/s/70">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Debian sid に <a href="http://packages.debian.org/unstable/editors/emacs22" >emacs22</a> (とその GTK版<a href="http://packages.debian.org/unstable/editors/emacs22-gtk" >emacs22-gtk</a>) が降りてきた。さっそく入れようと思ったがいくつかのパッケージが対応していない。特に <a href="http://www.omronsoft.co.jp/SP/support/pcunix/wnn7/index.html" >wnn7-elisp</a> は Debian 公式のものではなく、商用(しかも5,6年も前)なので対応パッケージが出るとも思われない。自分で修正することとした。</p>
<div class="igBar"><span id="ldiff-15"><a href="#" onclick="javascript:showPlainTxt('diff-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">DIFF:</span>
<div id="diff-15">
<div class="diff" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #888822;">--- wnn7-elisp.orig/DEBIAN/control&nbsp; <span style="color:#800000;">2002</span><span style="color:#800000;">-05</span><span style="color:#800000;">-22</span> <span style="color:#800000;">18</span>:<span style="color:#800000;">42</span>:<span style="color:#800000;">05.000000000</span> <span style="color:#800000;">+0900</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #888822;">+++ wnn7-elisp/DEBIAN/control&nbsp; &nbsp;<span style="color:#800000;">2007</span><span style="color:#800000;">-07</span><span style="color:#800000;">-09</span> <span style="color:#800000;">15</span>:<span style="color:#800000;">02</span>:<span style="color:#800000;">36.000000000</span> <span style="color:#800000;">+0900</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #440088;">@@ <span style="color:#800000;">-1</span>,<span style="color:#800000;">13</span> <span style="color:#800000;">+1</span>,<span style="color:#800000;">13</span> @@</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;Priority: extra</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;Architecture: all</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #991111;">-Depends: emacs20 | emacs20-dl | xemacs21-mule | xemacs21-mule-canna-wnn</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #00b000;">+Depends: emacs22 | emacs-snapshot | emacs21 | emacs20 | emacs20-dl | xemacs21-mule | xemacs21-mule-canna-wnn</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;Installed-Size: <span style="color:#800000;">587</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;Maintainer: OMRON SOFTWARE Co.,Ltd. &lt;wnn-info@omronsoft.co.jp&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;Description: A package of Japanese input method 'Wnn7' elisp client.</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">diff -u -r wnn7-elisp.orig/usr/lib/emacsen-common/packages/install/wnn7-elisp wnn7-elisp/usr/lib/emacsen-common/packages/install/wnn7-elisp</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #888822;">--- wnn7-elisp.orig/usr/lib/emacsen-common/packages/install/wnn7-elisp&nbsp; <span style="color:#800000;">2002</span><span style="color:#800000;">-05</span><span style="color:#800000;">-22</span> <span style="color:#800000;">18</span>:<span style="color:#800000;">41</span>:<span style="color:#800000;">59.000000000</span> <span style="color:#800000;">+0900</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #888822;">+++ wnn7-elisp/usr/lib/emacsen-common/packages/install/wnn7-elisp&nbsp; &nbsp;<span style="color:#800000;">2007</span><span style="color:#800000;">-07</span><span style="color:#800000;">-10</span> <span style="color:#800000;">21</span>:<span style="color:#800000;">50</span>:<span style="color:#800000;">47.818091867</span> <span style="color:#800000;">+0900</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #440088;">@@ <span style="color:#800000;">-37</span>,<span style="color:#800000;">7</span> <span style="color:#800000;">+37</span>,<span style="color:#800000;">7</span> @@</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;emacs<span style="">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;;;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #991111;">-&nbsp; &nbsp; emacs20|xemacs21<span style="">&#41;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #00b000;">+&nbsp; &nbsp; emacs22|emacs-snapshot|emacs21|emacs20|xemacs21<span style="">&#41;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;install -m <span style="color:#800000;">755</span> -d $<span style="">&#123;</span>ELCDIR<span style="">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="">&#40;</span>cd $<span style="">&#123;</span>ELDIR<span style="">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">diff -u -r wnn7-elisp.orig/usr/lib/emacsen-common/packages/remove/wnn7-elisp wnn7-elisp/usr/lib/emacsen-common/packages/remove/wnn7-elisp</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #888822;">--- wnn7-elisp.orig/usr/lib/emacsen-common/packages/remove/wnn7-elisp&nbsp; &nbsp;<span style="color:#800000;">2002</span><span style="color:#800000;">-05</span><span style="color:#800000;">-22</span> <span style="color:#800000;">18</span>:<span style="color:#800000;">41</span>:<span style="color:#800000;">59.000000000</span> <span style="color:#800000;">+0900</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #888822;">+++ wnn7-elisp/usr/lib/emacsen-common/packages/remove/wnn7-elisp&nbsp; &nbsp; <span style="color:#800000;">2007</span><span style="color:#800000;">-07</span><span style="color:#800000;">-10</span> <span style="color:#800000;">21</span>:<span style="color:#800000;">51</span>:<span style="color:#800000;">17.472192301</span> <span style="color:#800000;">+0900</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #440088;">@@ <span style="color:#800000;">-10</span>,<span style="color:#800000;">7</span> <span style="color:#800000;">+10</span>,<span style="color:#800000;">7</span> @@</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;case &quot;$<span style="">&#123;</span>FLAVOR<span style="">&#125;</span>&quot; in</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;emacs<span style="">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;;;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #991111;">-&nbsp; &nbsp; emacs20|xemacs21<span style="">&#41;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #00b000;">+&nbsp; &nbsp; emacs22|emacs-snapshot|emacs21|emacs20|xemacs21<span style="">&#41;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;echo remove/$<span style="">&#123;</span>PACKAGE<span style="">&#125;</span>: purging byte-compiled files for $<span style="">&#123;</span>FLAVOR<span style="">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;rm -rf /usr/share/$<span style="">&#123;</span>FLAVOR<span style="">&#125;</span>/site-lisp/$<span style="">&#123;</span>PACKAGE<span style="">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;rm -f $<span style="">&#123;</span>STARTDIR<span style="">&#125;</span>/<span style="color:#800000;">50</span>$<span style="">&#123;</span>STARTFILE<span style="">&#125;</span>*;</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>wnn7-elisp の他にも auctex, gnus も同様に修正すればいますぐ使える。これらは公式パッケージなのでしばらく待てば emacs22 対応版が出るだろう。</p>

	<h4>タグ</h4> <a href="http://pasero.net/~mako/blog/s/tag/debian" title="Debian" rel="tag">Debian</a>, <a href="http://pasero.net/~mako/blog/s/tag/emacs" title="Emacs" rel="tag">Emacs</a>, <a href="http://pasero.net/~mako/blog/s/tag/wnn" title="Wnn" rel="tag">Wnn</a>
]]></content:encoded>
			<wfw:commentRss>http://pasero.net/~mako/blog/s/70/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NICとインターフェイス名</title>
		<link>http://pasero.net/~mako/blog/s/50</link>
		<comments>http://pasero.net/~mako/blog/s/50#comments</comments>
		<pubDate>Mon, 05 Feb 2007 09:32:16 +0000</pubDate>
		<dc:creator>Mako</dc:creator>
				<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://pasero.net/~mako/blog/s/50</guid>
		<description><![CDATA[
以前、[[http://pasero.net/~mako/blog/s/34#intel_pro_1000gt&#124;「で、使わないオンボードLANとieee1394をBIOSで殺しても、新しいNICは eth0 にはな ら &#8230; <a href="http://pasero.net/~mako/blog/s/50">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><wiki><br />
以前、[[http://pasero.net/~mako/blog/s/34#intel_pro_1000gt|「で、使わないオンボードLANとieee1394をBIOSで殺しても、新しいNICは eth0 にはな らず eth2 としてしか認識してくれない。」]]と書いたのだが、その答が[[http://lists.debian.or.jp/debian-users/200702/msg00039.html|Debian JP Users ML]] に流れてきた。これか!と思って自分のところの/etc/udev/rules.d/z25_persistent-net.rules を見てみたら、確かにここで当該NICをeth2にするという設定になっていた。<br />
</wiki></p>

	<h4>タグ</h4> <a href="http://pasero.net/~mako/blog/s/tag/debian" title="Debian" rel="tag">Debian</a>
]]></content:encoded>
			<wfw:commentRss>http://pasero.net/~mako/blog/s/50/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NICとkernel 2.6.18</title>
		<link>http://pasero.net/~mako/blog/s/34</link>
		<comments>http://pasero.net/~mako/blog/s/34#comments</comments>
		<pubDate>Sat, 30 Sep 2006 11:32:24 +0000</pubDate>
		<dc:creator>Mako</dc:creator>
				<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://pasero.net/~mako/blog/s/34</guid>
		<description><![CDATA[
=== Intel PRO/1000GT ===
オンボードのLANチップがどうにも調子が悪く、新たにIntel PRO/1000GTを差した。
で、使わないオンボードLANとieee1394をBIOSで殺しても、新し &#8230; <a href="http://pasero.net/~mako/blog/s/34">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><wiki><br />
=== Intel PRO/1000GT ===<br />
オンボードのLANチップがどうにも調子が悪く、新たにIntel PRO/1000GTを差した。<br />
で、使わないオンボードLANとieee1394をBIOSで殺しても、新しいNICは eth0 にはな<br />
らず eth2 としてしか認識してくれない。</p>
<p>dmesg を見ると、<br />
<code><br />
...<br />
e1000: 0000:00:0d.0: e1000_probe: (PCI:33MHz:32-bit) 00:0e:0c:xx:xx:xx<br />
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection<br />
...<br />
</code><br />
なのに、/etc/network/interfacesには eth0やeth1と書いてもだめで、<br />
<code><br />
auto eth2<br />
iface eth2 inet static<br />
...<br />
</code><br />
としないと設定できない。どうしてだろう。</p>
<p>=== kernel 2.6.18 ===<br />
さて上記に伴って、まずvmplayerでネットが使えなくなってしまい、vmware-config.pl<br />
もカーネルとヘッダの情報が云々…でできないという状態だったので、思いきっ<br />
て sid の linux-image-2.6.18-1 に入れ換えてからやることにした。</p>
<p>vmplayerもすっかり入れ換えて、これは動くようになった。</p>
<p>別に入れているモジュールも入れ直し。nvidia-kernel-sourceは特に問題なし。<br />
shfs-sourceはコンパイルできず。[[http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=386229|バグ情報]]を見つけて、shfs-0.35-6-2.6.18.diffのパッチを当ててようやくできた。</p>
<p>e1000モジュールはカーネル同梱のもので動いているのでそのまま。というか新しいものを持ってきてコンパイルしようとしたが、まずバージョン情報を取得できず、これは2.6.18では UTS_RELEASE が include/linux/version.h と別になって include/linux/utsrelease.h になっているからのようだ。で、Makefileを書き換えてみたのだが、今度は<br />
<code><br />
error: 'struct skb_shared_info' has no member named 'tso_size'<br />
</code><br />
のエラーが出て失敗。e1000_main.cの'tso_size'を'gso_size'に書き換えればいいというのを見つけて、これでコンパイルできた。<br />
</wiki></p>

	<h4>タグ</h4> <a href="http://pasero.net/~mako/blog/s/tag/debian" title="Debian" rel="tag">Debian</a>
]]></content:encoded>
			<wfw:commentRss>http://pasero.net/~mako/blog/s/34/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>fontconfig 2.4.1</title>
		<link>http://pasero.net/~mako/blog/s/31</link>
		<comments>http://pasero.net/~mako/blog/s/31#comments</comments>
		<pubDate>Wed, 20 Sep 2006 11:59:20 +0000</pubDate>
		<dc:creator>Mako</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[フォント]]></category>

		<guid isPermaLink="false">http://pasero.net/~mako/blog/s/31</guid>
		<description><![CDATA[永らく 2.3.2-1 で hold していたのだが、思い余って現時点の sid のバージョン 2.4.1 に入れ換えてみた。
設定ファイル
設定ファイルの配置が変更になったようで、/etc/fonts/conf.ava &#8230; <a href="http://pasero.net/~mako/blog/s/31">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>永らく 2.3.2-1 で hold していたのだが、思い余って現時点の sid のバージョン 2.4.1 に入れ換えてみた。</p>
<h3>設定ファイル</h3>
<p>設定ファイルの配置が変更になったようで、/etc/fonts/conf.avail/ から/etc/fonts/conf.d/ にリンクが張られていると有効となるようだ。で、この中に 51-local.conf というのがあって、それで /etc/fonts/local.conf を読み込むようになっているので、ローカルの設定は結局 /etc/fonts/local.conf に書けばよさそう。</p>
<p>ところで debian 的には、/etc/fonts/conf.avail/ 以下の内容を書き換えたい(上書きしたい場合)はどうするのがよいのだろう。例えば 90-synthetic.conf は「疑似斜体」と「疑似ボールド」を実現するのだが、このうち斜体は生かしたくてボールドは抑制したい。local.conf で embolden を false にしても読み込みの順番によって true にされてしまう。90-synthetic.conf を直接書き直すのだろうか。</p>
<p>ここでは、リンクを /etc/fonts/conf.avail/51-local.conf から/etc/fonts/conf.d/91-local.conf に張りかえて、local.conf が最後になるようにした。</p>
<h3>IPAフォントを総称名で</h3>
<p>「sans」「sans-serif」で指定したときに、IPAフォント<sup><a href="#footnote-1-31" id="footnote-link-1-31" title="See the footnote.">1</a>)</sup>を用いるようにしたい。<a href="http://wiki.fdiary.net/font/?unixuser200403-2#l5" >Xft フォントシステムの設定</a>を参考にして、/etc/fonts/local.conf に</p>
<div class="igBar"><span id="lxml-20"><a href="#" onclick="javascript:showPlainTxt('xml-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-20">
<div class="xml" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;alias<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;family<span style="font-weight: bold; color: black;">&gt;</span></span></span>serif<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/family<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;prefer<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;family<span style="font-weight: bold; color: black;">&gt;</span></span></span>Bitstream Vera Serif<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/family<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;family<span style="font-weight: bold; color: black;">&gt;</span></span></span>IPAMincho<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/family<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/prefer<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/alias<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;alias<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;family<span style="font-weight: bold; color: black;">&gt;</span></span></span>sans-serif<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/family<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;prefer<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;family<span style="font-weight: bold; color: black;">&gt;</span></span></span>Bitstream Vera Sans<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/family<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;family<span style="font-weight: bold; color: black;">&gt;</span></span></span>IPAGothic<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/family<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/prefer<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/alias<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;alias<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;family<span style="font-weight: bold; color: black;">&gt;</span></span></span>monospace<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/family<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;prefer<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;family<span style="font-weight: bold; color: black;">&gt;</span></span></span>Bitstream Vera Sans Mono<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/family<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;family<span style="font-weight: bold; color: black;">&gt;</span></span></span>IPAGothic<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/family<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/prefer<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/alias<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
のように書く。</p>
<h3>ボールドはEPSONフォントを</h3>
<p>EPSON プリンタに付属の CD-ROM に太明朝や太ゴシックなどのフォントが入っている<sup><a href="#footnote-2-31" id="footnote-link-2-31" title="See the footnote.">2</a>)</sup>ので、ボールドは疑似を使わず、これらを用いるようにする。</p>
<p>/etc/fonts/local.conf では、まず疑似ボールドを抑制し<sup><a href="#footnote-3-31" id="footnote-link-3-31" title="See the footnote.">3</a>)</sup>、</p>
<div class="igBar"><span id="lxml-21"><a href="#" onclick="javascript:showPlainTxt('xml-21'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-21">
<div class="xml" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;match</span> <span style="color: #000066;">target</span>=<span style="color: #ff0000;">&quot;font&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;edit</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;embolden&quot;</span> <span style="color: #000066;">mode</span>=<span style="color: #ff0000;">&quot;assign&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;bool<span style="font-weight: bold; color: black;">&gt;</span></span></span>false<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/bool<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/edit<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/match<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
明朝 (IPAMincho) のボールドに EpsonFutoMincho, ゴシック (IPAGothic) に EpsonFutoKakugo をそれぞれ対応させる。</p>
<div class="igBar"><span id="lxml-22"><a href="#" onclick="javascript:showPlainTxt('xml-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-22">
<div class="xml" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;match</span> <span style="color: #000066;">target</span>=<span style="color: #ff0000;">&quot;pattern&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;test</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;string<span style="font-weight: bold; color: black;">&gt;</span></span></span>IPAMincho<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/string<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/test<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;test</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;more&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;weight&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;const<span style="font-weight: bold; color: black;">&gt;</span></span></span>medium<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/const<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/test<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;edit</span> <span style="color: #000066;">mode</span>=<span style="color: #ff0000;">&quot;assign&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;string<span style="font-weight: bold; color: black;">&gt;</span></span></span>EPSON 太明朝体Ｂ<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/string<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/edit<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/match<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;match</span> <span style="color: #000066;">target</span>=<span style="color: #ff0000;">&quot;pattern&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;test</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;string<span style="font-weight: bold; color: black;">&gt;</span></span></span>IPAGothic<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/string<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/test<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;test</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;more&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;weight&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;const<span style="font-weight: bold; color: black;">&gt;</span></span></span>medium<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/const<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/test<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;edit</span> <span style="color: #000066;">mode</span>=<span style="color: #ff0000;">&quot;assign&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;string<span style="font-weight: bold; color: black;">&gt;</span></span></span>EPSON 太角ゴシック体Ｂ<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/string<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/edit<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/match<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
ここでフォント名はフォントそのものに埋め込まれている名前 (fc-listで表示される)を書く。UTF-8 なら local.conf も UTF-8 にする。</p>
<h3>ビットマップを抑制</h3>
<p><a href="http://kmuto.jp/d/index.cgi/debian/fontconfig2.4.htm" >武藤さんの日記</a>にあるとおりなので、/etc/fonts/local.conf に</p>
<div class="igBar"><span id="lxml-23"><a href="#" onclick="javascript:showPlainTxt('xml-23'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-23">
<div class="xml" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;match</span> <span style="color: #000066;">target</span>=<span style="color: #ff0000;">&quot;font&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;edit</span> <span style="color: #000066;">mode</span>=<span style="color: #ff0000;">&quot;assign&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;embeddedbitmap&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;bool<span style="font-weight: bold; color: black;">&gt;</span></span></span>false<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/bool<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/edit<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/match<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
を書く。</p>
<h3>「〜」(波ダッシュ、U+301C)</h3>
<p>IPAフォントでは「〜」(波ダッシュ、U+301C)が表示されない。これについてはいろいろ意見があるだろうが、現実問題として、Firefoxであちこちのサイトを見る場合などかなり鬱陶しい。</p>
<p>根本的解決でなくても、表示する際に fontconfig あたりで置換することはできないのだろうかと思って検索してみると、やはり<a href="http://www.startide.jp/~dtana/diary/?200512c&#038;to=200512252#200512252" >既にパッチがあった</a>。</p>
<p>上記のもののうち必要な部分だけを取り出し、最新の fontconfig (2.4.1)に行番号を合わせたものを置いておく。</p>
<ul>
<li><a href="http://pasero.net/~mako/blog/wp-content/uploads/2006/09/fcfreetype.patch" >fcfreetype.patch</a></li>
</ul>
<p>まず apt-get source fontconfig でソースを持ってくる。ディレクトリ debian/ の下にpatches/ というディレクトリを作り、その下に上記のパッチを置く。その際ファイル名の拡張子は .patch とか .diff にする。</p>
<p>あとは dpkg-buildpackage -rfakeroot で、自動的にパッチを当てながらパッケージができる。</p>
<p>パッケージをインストールした後、fc-cacheを忘れずに。</p>
<br /><ol class="footnotes"><li id="footnote-1-31"><a href="http://www.grass-japan.org/FOSS4G/readme-grass-i18n-ipafonts.eucjp.htm" >GRASS国際化版</a>や<a href="http://lx1.avasys.jp/OpenPrintingProject/" >オープンプリンティングプロジェクト</a>で入手できる。   <a href="#footnote-link-1-31">↑</a></li><li id="footnote-2-31">もしCD-ROMを紛失したなら<a href="http://www.i-love-epson.co.jp/download2/readme/3.0/ttf30.htm" >EPSONダウンロードサービス</a>から入手可能。   <a href="#footnote-link-2-31">↑</a></li><li id="footnote-3-31">そして前述のようにこの指定が最後に来て有効になるようにして。抑制しておかないと太字にデザインされたフォントをさらにボールド化しようとして醜くなる。   <a href="#footnote-link-3-31">↑</a></li></ol>
	<h4>タグ</h4> <a href="http://pasero.net/~mako/blog/s/tag/debian" title="Debian" rel="tag">Debian</a>, <a href="http://pasero.net/~mako/blog/s/tag/%e3%83%95%e3%82%a9%e3%83%b3%e3%83%88" title="フォント" rel="tag">フォント</a>
]]></content:encoded>
			<wfw:commentRss>http://pasero.net/~mako/blog/s/31/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
