[Prime-cvs] CVS update: prime/lib/makedict

Back to archive index

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


Index: prime/lib/makedict/dictformat-skkdic.rb
diff -u prime/lib/makedict/dictformat-skkdic.rb:1.3 prime/lib/makedict/dictformat-skkdic.rb:1.4
--- prime/lib/makedict/dictformat-skkdic.rb:1.3	Sat Dec 11 16:53:01 2004
+++ prime/lib/makedict/dictformat-skkdic.rb	Fri Dec 31 15:23:31 2004
@@ -1,5 +1,5 @@
 # dictformat-skk.rb: Converter module for skk format.
-# $Id: dictformat-skkdic.rb,v 1.3 2004/12/11 07:53:01 komatsu Exp $
+# $Id: dictformat-skkdic.rb,v 1.4 2004/12/31 06:23:31 komatsu Exp $
 #
 # Copyright (C) 2003 Hiroyuki Komatsu <komat****@taiya*****>
 #     All rights reserved.
@@ -29,8 +29,12 @@
     words.each{|word|
       if valid_word?(pron, word) then
 	(literal, attr) = word.split(';')
-        comment = "comment=#{attr}"
-	results << [pron, @default_pos, literal, @default_freq, comment]
+        if attr then
+          comment = "comment=#{attr}"
+          results << [pron, @default_pos, literal, @default_freq, comment]
+        else
+          results << [pron, @default_pos, literal, @default_freq]
+        end
       end
     }
     return results


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