かかし設置例

setenv TAR /usr/src/tar_files  # 一例

tar zxf    $TAR/kakasi-2.2.5.tar.gz
tar zxf    $TAR/kakasi-ext.tar.gz

less            kakasi-2.2.5/README.jpn
less            kakasi-ext/KAKASI

cd kakasi-2.2.5
patch -s -p0 < ../kakasi-ext/patch.kakasi-2.2.5
patch -s -p1 < $TAR/kakasi-2.2.5w-lib3a.diff

vi src/Makefile
cd src
gunzip  -c $TAR/kakasidict.940620.gz > kakasidict    
make
su
mkdir /usr/local/lib/kakasi
make install
  (以下のようになる)
  cp kakasi /usr/local/bin
  cp itaijidict mkkanwa atoc-conv rdic-conv /usr/local/lib/kakasi
  ./mkkanwa /usr/local/lib/kakasi/kanwadict kakasidict


makoto@harry  13:39:01/990531(...kakasi-2.2.5/src)> kakasi -h
@(#) $Header: /e/u/j/local-repository/htdocs/www/software/namazu-1.4/prep/kakasi.shtml,v 1.1.1.1 2008/03/12 10:53:39 makoto Exp $ written by H. Takahashi

Usage: kakasi -a[jE] -j[aE] -g[ajE] -k[ajKH] -E[aj] -K[ajkH] -H[ajkK] -J[ajkKH]
              -i{oldjis,newjis,dec,euc,sjis} -o{oldjis,newjis,dec,euc,sjis}
              -r{hepburn,kunrei} -p -s -f -c"chars"  [jisyo1, jisyo2,,,]

       Character Sets:
       a: ascii        j: jisroman   g: graphic    k: kana (j,k     defined in jisx0201)
       E: kigou        K: katakana   H: hiragana   J: kanji(E,K,H,J defined in jisx0208)

       Options:
       -i: input coding system   -o output coding system
       -r: romaji conversion system
       -p: list all readings (with -J option)
       -s: insert separate characters (with -J option)
       -f: furigana mode (with -J option)
       -c: skip chars within jukugo (with -J option: default TAB CR LF BLANK)
       -C: romaji Capitalize (with -Ja or -Jj option)
       -U: romaji Upcase     (with -Ja or -Jj option)
       -u: call fflush() after 1 character output
       -w: wakatigaki mode (added by H. Baba, Sun Jul  7 16:52:40
       JST 1996)

簡単な動作確認
makoto@harry  13:43:53/990531(...src-harry/kakasi-2.2.5)> kakasi -w < README.jpn


Text::Kakasi のために、src directory で
cp libkakasi.a /usr/pkg/lib
ranlib -t /usr/pkg/lib/libkakasi.a
cp libkakasi.h /usr/pkg/include




Last Update
10:53:39 03/12/08
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Apache/2.4.46 (Unix) PHP/7.4.15