[Prime-cvs] CVS update: prime/src

Back to archive index

Hiroyuki Komatsu komat****@users*****
2005年 3月 28日 (月) 00:23:10 JST


Index: prime/src/prime.src
diff -u prime/src/prime.src:1.7 prime/src/prime.src:1.8
--- prime/src/prime.src:1.7	Mon Mar  7 16:51:34 2005
+++ prime/src/prime.src	Mon Mar 28 00:23:09 2005
@@ -1,7 +1,7 @@
 #!/usr/bin/env ruby
 #
 # PRIME: PRedictive Input Method Editor
-# $Id: prime.src,v 1.7 2005/03/07 07:51:34 komatsu Exp $
+# $Id: prime.src,v 1.8 2005/03/27 15:23:09 komatsu Exp $
 #
 # Copyright (C) 2001 Satoru Takabayashi <sator****@namaz*****>
 # Copyright (C) 2002, 2003 Hiroyuki Komatsu <komat****@taiya*****>
@@ -50,8 +50,9 @@
       --typing-method=METHOD  run with the specified typing method.
   -d, --debug                 run under debug mode
 
-      --skk                   run as SKK Server
-      --pobox                 run as POBox Server
+      --migemo                run as a Migemo server
+      --skk                   run as a SKK server
+      --pobox                 run as a POBox server
 
 HomePage: http://taiyaki.org/prime/ (in Japanese)
 "
@@ -75,6 +76,7 @@
                        ['--debug', '-d',	GetoptLong::NO_ARGUMENT],
                        ['--skk',	        GetoptLong::OPTIONAL_ARGUMENT],
                        ['--pobox',	        GetoptLong::OPTIONAL_ARGUMENT],
+                       ['--migemo',	        GetoptLong::NO_ARGUMENT],
                        ['--network-dict',       GetoptLong::REQUIRED_ARGUMENT])
 
     parser.each_option {|option, arg|
@@ -133,11 +135,13 @@
     if @options['skk'] then
       tcp_port = @options['skk'].empty?() ? "1178" : @options['skk']
       @options['tcp-server'] = tcp_port
-      protocol = PrimeProtocolSKK.new(@prime, PRIME_VERSION)
+      protocol = PrimeProtocolSKK.new(@prime)
     elsif @options['pobox'] then
       tcp_port = @options['pobox'].empty?() ? "1179" : @options['pobox']
       @options['tcp-server'] = tcp_port
-      protocol = PrimeProtocolPOBox.new(@prime, PRIME_VERSION)
+      protocol = PrimeProtocolPOBox.new(@prime)
+    elsif @options['migemo'] then
+      protocol = PrimeProtocolMigemo.new(@prime)
     else
 #      protocol = ProtocolPrime.new(@prime, PRIME_VERSION)
       protocol = PrimeProtocolPrime2.new(@prime, PRIME_VERSION)


Prime-cvs メーリングリストの案内
Back to archive index