[Prime-cvs] CVS update: prime/src

Back to archive index

Hiroyuki Komatsu komat****@users*****
2004年 12月 31日 (金) 05:15:25 JST


Index: prime/src/prime-dict-convert.src
diff -u prime/src/prime-dict-convert.src:1.2.4.5 prime/src/prime-dict-convert.src:1.2.4.6
--- prime/src/prime-dict-convert.src:1.2.4.5	Sun Dec  5 19:07:17 2004
+++ prime/src/prime-dict-convert.src	Fri Dec 31 05:15:24 2004
@@ -1,6 +1,6 @@
 #!/usr/bin/env ruby
 # prime-dict-convert: A dictionary converter from a dictionary of another IME
-# $Id: prime-dict-convert.src,v 1.2.4.5 2004/12/05 10:07:17 komatsu Exp $
+# $Id: prime-dict-convert.src,v 1.2.4.6 2004/12/30 20:15:24 komatsu Exp $
 #
 # Copyright (C) 2003 Hiroyuki Komatsu <komat****@taiya*****>
 #     All rights reserved.
@@ -26,6 +26,9 @@
   Kernel::require('prime/makedict/dictformat-wordlist')
   Kernel::require('prime/makedict/dictformat-text')
 rescue LoadError
+  FLAG_MECAB = false
+else
+  FLAG_MECAB = true
 end
 
 class PrimeDictConvertCommand
@@ -46,10 +49,12 @@
                 :skk      => [DictFormatSkkdic],
                 :usage    => [DictFormatUsage],
                 :adambnc  => [DictFormatAdamBNC],
-                :wordlist => [DictFormatWordlist],
-                :text     => [DictFormatText],
-                :gaim     => [DictFormatGaim],
     }
+    if FLAG_MECAB then
+      @formats[:wordlist] = DictFormatWordlist
+      @formats[:text]     = DictFormatText
+      @formats[:gaim]     = DictFormatGaim
+    end
 
     @command_name = command_name
     @version = '%PACKAGE_VERSION%'


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