*** imelib.orig	Sun Oct 15 22:15:28 2000
--- imelib	Wed Nov 22 22:59:32 2000
***************
*** 10,16 ****
  
  ShowUsage.C() {
  cat <<EOF
!   Usage:  setime [-k] {canna|wnn|wnn6|wnn6xwnmo|FreeWnn|atokx|none|status}
  
       canna:   set Canna as default input method and start kinput2
       wnn:     set Wnn as default input method and start kinput2
--- 10,16 ----
  
  ShowUsage.C() {
  cat <<EOF
!   Usage:  setime [-k] {canna|wnn|wnn6|wnn6xwnmo|FreeWnn|atokx|vje|none|status}
  
       canna:   set Canna as default input method and start kinput2
       wnn:     set Wnn as default input method and start kinput2
***************
*** 19,24 ****
--- 19,25 ----
       wnn6xwnmo:    set Wnn6 as default input method and start xwnmo
       FreeWnn: set FreeWnn as default input method and start kinput2
       atokx:   set Atok X as default input method
+      vje:     set VJE-Delta as default input method and start vje
       default: start default kinput2
       none:    do not use input method and stop kinput2
       status:  get information about current environment for Kanji input methods
***************
*** 30,36 ****
  
  ShowUsage.ja() {
  cat <<EOF
!   »ÈÍÑË¡:  setime [-k]{canna|wnn|wnn6|wnn6xwnmo|FreeWnn|atokx|none|status}
  
       canna:   ¤«¤ó¤Ê ¤ò¥Ç¥Õ¥©¥ë¥È¤Î´Á»úÊÑ´¹¥·¥¹¥Æ¥à¤È¤·¡¢kinput2 ¤òµ¯Æ°¤·¤Þ¤¹
       wnn:     Wnn ¤ò¥Ç¥Õ¥©¥ë¥È¤Î´Á»úÊÑ´¹¥·¥¹¥Æ¥à¤È¤·¡¢kinput2 ¤òµ¯Æ°¤·¤Þ¤¹
--- 31,37 ----
  
  ShowUsage.ja() {
  cat <<EOF
!   »ÈÍÑË¡:  setime [-k]{canna|wnn|wnn6|wnn6xwnmo|FreeWnn|atokx|vje|none|status}
  
       canna:   ¤«¤ó¤Ê ¤ò¥Ç¥Õ¥©¥ë¥È¤Î´Á»úÊÑ´¹¥·¥¹¥Æ¥à¤È¤·¡¢kinput2 ¤òµ¯Æ°¤·¤Þ¤¹
       wnn:     Wnn ¤ò¥Ç¥Õ¥©¥ë¥È¤Î´Á»úÊÑ´¹¥·¥¹¥Æ¥à¤È¤·¡¢kinput2 ¤òµ¯Æ°¤·¤Þ¤¹
***************
*** 39,44 ****
--- 40,46 ----
       wnn6xwnmo:Wnn6 ¤ò¥Ç¥Õ¥©¥ë¥È¤Î´Á»úÊÑ´¹¥·¥¹¥Æ¥à¤È¤·¡¢xwnmo ¤òµ¯Æ°¤·¤Þ¤¹
       FreeWnn: FreeWnn6 ¤ò¥Ç¥Õ¥©¥ë¥È¤Î´Á»úÊÑ´¹¥·¥¹¥Æ¥à¤È¤·¡¢kinput2 ¤òµ¯Æ°¤·¤Þ¤¹
       atokx:   Atok X ¤ò¥Ç¥Õ¥©¥ë¥È¤Î´Á»úÊÑ´¹¥·¥¹¥Æ¥à¤È¤·¤Þ¤¹
+      vje:     VJE-Delta¤ò¥Ç¥Õ¥©¥ë¥È¤Î´Á»úÊÑ´¹¥·¥¹¥Æ¥à¤È¤·¡¢vje¤òµ¯Æ°¤·¤Þ¤¹
       default: ¥Ç¥Õ¥©¥ë¥È¤Î´Á»úÊÑ´¹¥·¥¹¥Æ¥à¤òÍÑ¤¤¤Æ¡¢kinput2 ¤òµ¯Æ°¤·¤Þ¤¹
       none:    ´Á»úÊÑ´¹¥·¥¹¥Æ¥à¤ÏÍÑ¤¤¤Ê¤¤
       status:  ¸½ºß¤Î¥·¥¹¥Æ¥à¤Ë¤ª¤±¤ë¡¢´Á»úÆþÎÏÊýË¡¤Ë´Ø¤¹¤ë¾ðÊó¤òÉ½¼¨¤·¤Þ¤¹
***************
*** 140,145 ****
--- 142,163 ----
  EOF
  }
  
+ VjeNotAliveMsg.ja(){
+ cat <<EOF
+     VJE ¥µ¡¼¥Ð¤¬Áö¤Ã¤Æ¤¤¤Þ¤»¤ó!
+     VJE ¥µ¡¼¥Ð¤òµ¯Æ°¤·¤ÆºÆÄ©Àï¤·¤Æ¤¯¤À¤µ¤¤!
+     ½ªÎ»¤·¤Þ¤¹...
+ EOF
+ }
+ 
+ VjeNotAliveMsg.C(){
+ cat <<EOF
+     VJE server is NOT running!
+     Start VJE server and try again!
+     Aborted...
+ EOF
+ }
+ 
  NoIMMsg.ja(){
  cat <<EOF
      $1 ¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó...
***************
*** 211,216 ****
--- 229,237 ----
  	atokx* | Atokx*)
  		STATUS=atokx
  		;;
+ 	vje*|VJE*)
+ 		STATUS=vje
+ 		;;
  	No_IM)
  		STATUS=No_IM
  		;;
***************
*** 228,233 ****
--- 249,255 ----
  WNNRPM=FreeWnn
  WNN6RPM=wnn6
  ATOKXRPM=atokx
+ VJERPM=vje-delta
  
  eval IMEMsg.$LOCALE
  cat<<EOF
***************
*** 240,245 ****
--- 262,268 ----
  [Wnn]   `LANG=${LOCALE} LC_ALL=${LOCALE} rpm -q ${WNNRPM} 2>&1`
  [Wnn6]  `LANG=${LOCALE} LC_ALL=${LOCALE} rpm -q ${WNN6RPM} 2>&1`
  [Atokx] `LANG=${LOCALE} LC_ALL=${LOCALE} rpm -q ${ATOKXRPM} 2>&1`
+ [VJE-Delta] `LANG=${LOCALE} LC_ALL=${LOCALE} rpm -q ${VJERPM} 2>&1`
  -----------------------------------------
  `eval EnvVarMsg.${LOCALE}`
  EMACS_IME=${EMACS_IME}
***************
*** 276,281 ****
--- 299,312 ----
  return 0
  }
  
+ isVjeAlive(){
+ if [ ! -f /var/lock/subsys/vjed ]; then
+     eval VjeNotAliveMsg.$LOCALE
+     return -1
+ fi
+ return 0
+ }
+ 
  Wnn6Exists(){
  
  #if [ -n "`rpm -q wnn6 2>/dev/null`" ]; then
***************
*** 396,401 ****
--- 427,438 ----
  return 0
  }
  
+ setVje(){
+ isVjeAlive || return -1
+ vje &
+ return 0
+ }
+ 
  setNone(){
      kinput2ctl stop
      return 0
***************
*** 477,482 ****
--- 514,525 ----
  	    fi
  	    setAtokx
  	    ;;
+ 	vje)
+ 	    eval SettingIMMsg.$LOCALE vje
+ 	    EMACS_IME=vje
+ 	    XIM_PROG=vje
+ 	    setVje
+ 	    ;;
  	none|No_IM)
  	    eval SettingIMMsg.$LOCALE No_IM
  	    EMACS_IME=No_IM
***************
*** 504,512 ****
--- 547,557 ----
  unset -f EnvVarMsg.ja EnvVarMsg.C SettingIMMsg.ja SettingIMMsg.C
  unset -f CannaNotAliveMsg.ja CannaNotAliveMsg.C WnnNotAliveMsg.ja WnnNotAliveMsg.C
  unset -f AtokxNotAliveMsg.ja AtokxNotAliveMsg.C 
+ unset -f VjeNotAliveMsg.ja VjeNotAliveMsg.C 
  unset -f NoIMMsg.ja NoIMMsg.C ExitMsg.ja ExitMsg.C xwnmoWarning.ja xwnmoWarning.C
  unset -f setLocale CheckOption CheckXIMStatus ShowIMEStatus isCannaAlive isWnnAlive
  unset -f isAtokxAlive AtokxExists setAtokx
+ unset -f isVjeAlive setVje
  unset -f Wnn6Exists FreeWnnExists checkKinput2Mod startKinput2 setCanna killXwnmo
  unset -f setWnn6 setFreeWnn setIME setNone unsetImeFuncs
  }
