2
# canna2skk.rb -- convert Canna dictionary to SKK-JISYO format.
4
# Copyright (C) 2003 NAKAJIMA Mikio <minakaji@namazu.org>
6
# Author: NAKAJIMA Mikio <minakaji@namazu.org>
7
# Created: March 23, 2003
8
# Last Modified: $Date: 2003/03/22 23:59:37 $
9
# Version: $Id: canna2skk.rb,v 1.1 2003/03/22 23:59:37 minakaji Exp $
11
# This file is part of Daredevil SKK.
13
# Daredevil SKK is free software; you can redistribute it and/or modify
14
# it under the terms of the GNU General Public License as published by
15
# the Free Software Foundation; either versions 2, or (at your option)
18
# Daredevil SKK is distributed in the hope that it will be useful
19
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
# GNU General Public License for more details.
23
# You should have received a copy of the GNU General Public License
24
# along with Daredevil SKK, see the file COPYING. If not, write to the
25
# Free Software Foundation Inc., 59 Temple Place - Suite 330, Boston,
29
# As to Canna dictionary, See
30
# http://cannadic.oucrc.org/
32
# $ canna2skk.rb gcanna.t gcannaf.t > tmp.jisyo
33
# $ skkdic-expr2 tmp.jisyo > SKK-JISYO.canna
35
# ���� #JS*8 �� #CNSUC2*2 �� #JS �� �� #JSSUC ��
38
open(file).each{|line|
39
if !(line =~ /([^ ]+) (.+) *$/)
44
words.split(' ').each{|word|
45
if (word =~ /[#*a-zA-Z0-9]+/ || key == word)
48
print key, " /", word, "/\n"