[Prime-cvs] CVS update: prime/src

Back to archive index

Hiroyuki Komatsu komat****@users*****
2005年 3月 2日 (水) 02:34:56 JST


Index: prime/src/prime.src
diff -u prime/src/prime.src:1.3.4.4 prime/src/prime.src:1.3.4.5
--- prime/src/prime.src:1.3.4.4	Mon Jan 31 03:30:56 2005
+++ prime/src/prime.src	Wed Mar  2 02:34:56 2005
@@ -1,7 +1,7 @@
 #!/usr/bin/env ruby
 #
 # PRIME: PRedictive Input Method Editor
-# $Id: prime.src,v 1.3.4.4 2005/01/30 18:30:56 komatsu Exp $
+# $Id: prime.src,v 1.3.4.5 2005/03/01 17:34:56 komatsu Exp $
 #
 # Copyright (C) 2001 Satoru Takabayashi <sator****@namaz*****>
 # Copyright (C) 2002, 2003 Hiroyuki Komatsu <komat****@taiya*****>
@@ -74,7 +74,8 @@
                        ['--no-save',            GetoptLong::NO_ARGUMENT],
                        ['--debug', '-d',	GetoptLong::NO_ARGUMENT],
                        ['--skk',	        GetoptLong::OPTIONAL_ARGUMENT],
-                       ['--pobox',	        GetoptLong::OPTIONAL_ARGUMENT])
+                       ['--pobox',	        GetoptLong::OPTIONAL_ARGUMENT],
+                       ['--network-dict',       GetoptLong::REQUIRED_ARGUMENT])
 
     parser.each_option {|option, arg|
       options[option.sub(/^--/, '')] = arg
@@ -112,6 +113,17 @@
                      PRIME_ENV['char_encoding'] )
     PRIME_ENV['char_encoding'] = char_encoding
 
+    ## Configurating a network-dict (Experimental)
+    network_dict = options['network-dict']
+    if network_dict then
+      unless PRIME_ENV['engines'].member?(:PrimeEngineNetwork) then
+        PRIME_ENV['engines'].push(:PrimeEngineNetwork)
+      end
+      unless PRIME_ENV['engine_network_servers'].member?(network_dict) then
+        PRIME_ENV['engine_network_servers'].push(network_dict)
+      end
+    end
+
     return options
   end
 


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