2012年10月29日 Converter for SKK's dictionary to OpenPOBox's dictionary
_ Converter for SKK's dictionary to OpenPOBox's dictionary
#! /bin/sh
#
# skk2pbdic.sh
#
for i in `cat $* |\
egrep -v '^;' |\
sed -e 's/ */=/g'`
do
yomi=`echo $i |\
cut -d '=' -f 1 |\
sed -e 's/ー/-/g;s/ン/nn/g;s/ん/nn/g' |\
kakasi -rk -Ea -Ka -Ha -Ja |\
tr 'A-Z' 'a-z'`
tangos=`echo $i |\
cut -d '=' -f 2- |\
sed -e 's/;[^/]*\//\//g;
s/^\///;
s/\/$//;
s/\// /g'`
for j in ${tangos}
do
tango=`echo $j |\
tr '=' ' '`
echo -e "${yomi}\t${tango}"
done
done
How to use
skk2pbdic.sh SKK-JISYO.L | sort | uniq >staticdic
Links
[ツッコミを入れる]
2026年10月29日 building linux-5.10.272 for slackware-14.2 and gcc-9.2.0
_ slackware-14.2 + gcc-9.2.0 な環境で linux-5.10.272 をビルド。
一箇所だけソースの修正が必要。
*** fs/nfsd/nfs4state.c.ORG 2026-10-25 22:39:28.724439982 +0900 --- fs/nfsd/nfs4state.c 2026-10-25 22:50:59.099445980 +0900 *************** *** 1894,1901 **** --- 1894,1906 ---- */ scale_factor = max_t(unsigned int, 8, nn->nfsd_serv->sv_nrthreads); + #if 0 avail = clamp_t(unsigned long, avail, slotsize, total_avail/scale_factor); + #else + avail = max_t(unsigned long, avail, slotsize); + avail = min_t(unsigned long, avail, total_avail / scale_factor); + #endif num = min_t(int, num, avail / slotsize); num = max_t(int, num, 1); nfsd_drc_mem_used += num * slotsize;
最初、linux-4.4.301の.configからmake oldconfigしたが、ext4がモジュールになっていたのでルートパーティションをマウントできずにkernel panic :(
再度make menuconfigからext4ドライバをスタティックに組み込み直しが必要。
ビルド手順は
make mrproper make oldconfig # linux-4.4.301の.configから make menuconfig # ext4ドライバをスタティックに組み込み # make dep は必要なくなってた... make bzImage make modules make modules_install make bzlilo
以上。
[ツッコミを入れる]