OSDN Git Service

標準出力の改行コードをCR+LFになるように変更。
authorYAMASHIRO, Jun <yamajun@ofug.net>
Mon, 30 Apr 2018 03:05:30 +0000 (12:05 +0900)
committerYAMASHIRO, Jun <yamajun@ofug.net>
Mon, 30 Apr 2018 03:05:30 +0000 (12:05 +0900)
出力される辞書データのWindows環境での扱いやすさを改善するため。

script/oki2mozc.pl

index a459c15..b5b35d4 100755 (executable)
@@ -79,7 +79,7 @@ while (<>) {
 
     } else {
        print STDERR "Error: $.: too few field number `$_'\n";
-       print  "$_";
+       print  "$_\r\n";
     }
 }
 
@@ -132,7 +132,7 @@ sub print_dictionary {
     }
 
     if (!find_from_mozc_dictionary($phonate, $word)) {
-       print "$phonate\t$word\t$class\t$comment\n";
+       print "$phonate\t$word\t$class\t$comment\r\n";
     }
 }
 
@@ -151,6 +151,6 @@ sub version {
     $mon++;
     # 「おきなわじしょのひづけ」と入力したときのみ候補に表示される。
     # 「おきなわじしょのひづけとにゅうりょく」と入力したら候補には出てこない。
-    print "おきなわじしょのひづけ\t$year年$mon月$mday日(沖縄辞書の日付け)\t短縮よみ\t沖縄辞書生成時に作成される単語\n";
+    print "おきなわじしょのひづけ\t$year年$mon月$mday日(沖縄辞書の日付け)\t短縮よみ\t沖縄辞書生成時に作成される単語\r\n";
 }