Hiroyuki Komatsu
komat****@users*****
2004年 12月 31日 (金) 05:15:25 JST
Index: prime/lib/makedict/dictformat-skkdic.rb diff -u prime/lib/makedict/dictformat-skkdic.rb:1.2.4.1 prime/lib/makedict/dictformat-skkdic.rb:1.2.4.2 --- prime/lib/makedict/dictformat-skkdic.rb:1.2.4.1 Sat Dec 11 16:43:12 2004 +++ prime/lib/makedict/dictformat-skkdic.rb Fri Dec 31 05:15:25 2004 @@ -1,5 +1,5 @@ # dictformat-skk.rb: Converter module for skk format. -# $Id: dictformat-skkdic.rb,v 1.2.4.1 2004/12/11 07:43:12 komatsu Exp $ +# $Id: dictformat-skkdic.rb,v 1.2.4.2 2004/12/30 20:15:25 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