一太郎 for Linux

更新日 2005/02/24

一太郎 for LinuxをVine 3.1にインストール。
CD-ROMをマウントする

# mount /dev/cdrom /mnt/cdrom
# cd /mnt/cdrom/bin

一太郎をインストール
# ./setuptaro


ATOKをインストール
# ./setupatok

(略)
Preparing... ########################################### [100%]
  1:iiimf-rc               ########################################### [100%]
"/etc/gtk-2.0/gtk.immodules" will be changed.
A starting script "IIim" will be generated.
failed to glob pattern /etc/rc3.d/[SK][0-9][0-9]IIim: Input/output error
Preparing... ########################################### [100%]
  1:atokx                  ########################################### [100%]
A starting script "atokx2" will be generated.
failed to glob pattern /etc/rc3.d/[SK][0-9][0-9]atokx2: Input/output error
Installation has been completed.

このページにあるようにパッチをあてる
# cd /usr/share/vine
# patch -p0 < imelib.atok4linux.patch

# /etc/rc.d/init.d/atokx2 start
# /etc/rc.d/init.d/IIim start

ユーザごとの標準IMEをATOKに変更(ユーザごとに実行の必要あり)
$ setime atokx

X Windowを再ログオンする

imelib.atok4linux.patchの内容

--- imelib.orig	2004-11-04 09:08:41.000000000 +0900
+++ imelib	2005-01-22 01:52:23.000000000 +0900
@@ -341,9 +341,16 @@
 }
 
 isAtokxAlive(){
-if [ -z "`ps ax | grep atokmngdaemon 2>/dev/null`" ]; then
-    eval AtokxNotAliveMsg_$LOCALE
-    return -1
+if [ -f "/opt/atokx2/bin/atokx2_client.sh" ] ; then
+    if [ -z "`ps ax | grep atokx2mngdaemon 2>/dev/null`" ]; then
+        eval AtokxNotAliveMsg_$LOCALE
+        return -1
+    fi
+else
+    if [ -z "`ps ax | grep atokmngdaemon 2>/dev/null`" ]; then
+        eval AtokxNotAliveMsg_$LOCALE
+        return -1
+    fi
 fi
 return 0
 }
@@ -396,18 +403,26 @@
 }
 
 Atok17Exists(){
-if [ -f "/opt/atokx2/sbin/atokx2mngdaemon" ] ; then
+if [ -f "/opt/atokx2/bin/atokx2_client.sh" ] ; then
     return 0
 else
-    return -1
+    if [ -f "/opt/atokx2/sbin/atokx2mngdaemon" ] ; then
+        return 0
+    else
+        return -1
+    fi
 fi
 }
 
 AtokxExists(){
-if [ -f "/usr/lib/locale/ja/atokserver/atokmngdaemon" ] ; then
+if [ -f "/opt/atokx2/bin/atokx2_client.sh" ] ; then
     return 0
 else
-    return -1
+    if [ -f "/usr/lib/locale/ja/atokserver/atokmngdaemon" ] ; then
+        return 0
+    else
+        return -1
+    fi
 fi
 }
 
@@ -544,27 +559,31 @@
    if [ -f ${HOME}/.Xdefaults ]; then
       xrdb -merge ${HOME}/.Xdefaults
     fi
-    if [ -f "/usr/lib/im/locale/ja/atokserver/shift_space" ]; then
-        echo "*conversionOnKeys: Kanji Zenkaku_Hankaku <Shift>space" | /usr/X11R6/bin/xrdb -m
+    if [ -f "/opt/atokx2/bin/atokx2_client.sh" ] ; then
+        . /opt/atokx2/bin/atokx2_client.sh
     else
-        echo "*conversionOnKeys: Kanji Zenkaku_Hankaku <Ctrl>space" | /usr/X11R6/bin/xrdb -m
-    fi
-    LD_PRELOAD=/usr/X11R6/lib/libXi.so.6 /usr/lib/im/httx -if atok12 -lc_basiclocale ja_JP -xim htt_xbe &
+        if [ -f "/usr/lib/im/locale/ja/atokserver/shift_space" ]; then
+            echo "*conversionOnKeys: Kanji Zenkaku_Hankaku <Shift>space" | /usr/X11R6/bin/xrdb -m
+        else
+            echo "*conversionOnKeys: Kanji Zenkaku_Hankaku <Ctrl>space" | /usr/X11R6/bin/xrdb -m
+        fi
+        LD_PRELOAD=/usr/X11R6/lib/libXi.so.6 /usr/lib/im/httx -if atok12 -lc_basiclocale ja_JP -xim htt_xbe &
 
-    times=0
+        times=0
 
-    while :
-    do
-     if [ -n "`ps xc | grep LookupAux`" ]; then
-#         sleep 1
-         break
-     fi
-     usleep 100000
-     times=$[$times+1]
-     if [ $times -ge "30" ]; then
-         break
-     fi
-    done
+        while :
+        do
+         if [ -n "`ps xc | grep LookupAux`" ]; then
+#             sleep 1
+             break
+         fi
+         usleep 100000
+         times=$[$times+1]
+         if [ $times -ge "30" ]; then
+             break
+         fi
+        done
+    fi
 
 fi
 
@@ -604,7 +623,6 @@
          break
      fi
     done
-
 fi
 
 return 0
===========================ここまで============================