From: eto Date: Mon, 10 Nov 2003 08:38:21 +0000 (+0000) Subject: change directory X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ae38d91fe31cac8f91bbde7f9934d1230736b64;p=chise%2Fruby.git change directory --- diff --git a/lib/chise/char.rb b/lib/chise/char.rb index 084d461..f0b5651 100755 --- a/lib/chise/char.rb +++ b/lib/chise/char.rb @@ -1,13 +1,13 @@ #!/usr/bin/env ruby # Ruby/CHISE module by eto 2002-1114 -# $Id: char.rb,v 1.1 2003-11-10 08:31:26 eto Exp $ +# $Id: char.rb,v 1.2 2003-11-10 08:38:12 eto Exp $ # Copyright (C) 2002-2003 Kouichirou Eto, All rights reserved. # This is free software with ABSOLUTELY NO WARRANTY. # You can redistribute it and/or modify it under the terms of the GNU GPL2. require 'uconv' require 'singleton' -$LOAD_PATH << '../../src' if $0 == __FILE__ +$LOAD_PATH << '../../lib' if $0 == __FILE__ require 'chise/db' $KCODE = 'u' #今のところこれ以外では動かない。String.splitが影響大。inspectも影響。 diff --git a/lib/chise/ids.rb b/lib/chise/ids.rb index 4523583..91521a0 100755 --- a/lib/chise/ids.rb +++ b/lib/chise/ids.rb @@ -1,10 +1,10 @@ #!/usr/bin/env ruby -# $Id: ids.rb,v 1.1 2003-11-10 08:31:26 eto Exp $ +# $Id: ids.rb,v 1.2 2003-11-10 08:38:12 eto Exp $ # Copyright (C) 2002-2003 Kouichirou Eto, All rights reserved. # This is free software with ABSOLUTELY NO WARRANTY. # You can redistribute it and/or modify it under the terms of the GNU GPL2. -$LOAD_PATH << '../../src' if $0 == __FILE__ +$LOAD_PATH << '../../lib' if $0 == __FILE__ require 'chise/db' module CHISE diff --git a/lib/chise/kage.rb b/lib/chise/kage.rb index 35a062b..b683e5c 100755 --- a/lib/chise/kage.rb +++ b/lib/chise/kage.rb @@ -1,13 +1,13 @@ #!/usr/bin/env ruby # KageFont library by eto 2003-0311 -# $Id: kage.rb,v 1.1 2003-11-10 08:31:26 eto Exp $ +# $Id: kage.rb,v 1.2 2003-11-10 08:38:12 eto Exp $ # Copyright (C) 2002-2003 Kouichirou Eto, All rights reserved. # This is free software with ABSOLUTELY NO WARRANTY. # You can redistribute it and/or modify it under the terms of the GNU GPL2. require 'sgl' require 'singleton' -$LOAD_PATH << '../../src' if $0 == __FILE__ +$LOAD_PATH << '../../lib' if $0 == __FILE__ require 'chise/kageserver' #こんな感じのフォーマットになっている。 diff --git a/lib/chise/kageserver.rb b/lib/chise/kageserver.rb index 6e772d0..43d1517 100755 --- a/lib/chise/kageserver.rb +++ b/lib/chise/kageserver.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby # KageServer - access and fetch Kage glyph data files -# $Id: kageserver.rb,v 1.1 2003-11-10 08:31:26 eto Exp $ +# $Id: kageserver.rb,v 1.2 2003-11-10 08:38:12 eto Exp $ # Copyright (C) 2002-2003 Kouichirou Eto, All rights reserved. # This is free software with ABSOLUTELY NO WARRANTY. # You can redistribute it and/or modify it under the terms of the GNU GPL2. @@ -8,7 +8,7 @@ require 'singleton' require 'net/http' require 'uri' -$LOAD_PATH << '../../src' +$LOAD_PATH << '../../lib' require 'chise' require 'chise/network' #漢字間接続のネットワークを計算する #require 'chise/kanjilist' diff --git a/lib/chise/makegraph.rb b/lib/chise/makegraph.rb index 76012f9..8d43b07 100755 --- a/lib/chise/makegraph.rb +++ b/lib/chise/makegraph.rb @@ -1,11 +1,11 @@ #!/usr/bin/env ruby # MakeGraph routine by eto 2003-0305 -# $Id: makegraph.rb,v 1.1 2003-11-10 08:31:26 eto Exp $ +# $Id: makegraph.rb,v 1.2 2003-11-10 08:38:12 eto Exp $ # Copyright (C) 2002-2003 Kouichirou Eto, All rights reserved. # This is free software with ABSOLUTELY NO WARRANTY. # You can redistribute it and/or modify it under the terms of the GNU GPL2. -$LOAD_PATH << '../../src' if $0 == __FILE__ +$LOAD_PATH << '../../lib' if $0 == __FILE__ require 'chise' include CHISE require 'chise/network' diff --git a/lib/chise/network.rb b/lib/chise/network.rb index 33a0c13..fd71b05 100755 --- a/lib/chise/network.rb +++ b/lib/chise/network.rb @@ -1,11 +1,11 @@ #!/usr/bin/env ruby # calc KanjiNetwork by eto 2003-0305 -# $Id: network.rb,v 1.1 2003-11-10 08:31:26 eto Exp $ +# $Id: network.rb,v 1.2 2003-11-10 08:38:12 eto Exp $ # Copyright (C) 2002-2003 Kouichirou Eto, All rights reserved. # This is free software with ABSOLUTELY NO WARRANTY. # You can redistribute it and/or modify it under the terms of the GNU GPL2. -$LOAD_PATH << '../../src' if $0 == __FILE__ +$LOAD_PATH << '../../lib' if $0 == __FILE__ require 'chise' include CHISE require 'chise/kanjilist' diff --git a/lib/chise/stroke.rb b/lib/chise/stroke.rb index acbc325..3ab85de 100755 --- a/lib/chise/stroke.rb +++ b/lib/chise/stroke.rb @@ -10,7 +10,7 @@ # require 'sgl' -$LOAD_PATH << '../../src' if $0 == __FILE__ +$LOAD_PATH << '../../lib' if $0 == __FILE__ require 'chise/kage' require 'chise/csf' diff --git a/t/tc_char.rb b/t/tc_char.rb index c3bc828..db14594 100755 --- a/t/tc_char.rb +++ b/t/tc_char.rb @@ -2,7 +2,7 @@ # by eto 2003-0112 require 'test/unit' -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE diff --git a/t/tc_db.rb b/t/tc_db.rb index 194ac1d..3d3e179 100755 --- a/t/tc_db.rb +++ b/t/tc_db.rb @@ -2,7 +2,7 @@ # by eto 2003-0112 require 'test/unit' -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE diff --git a/t/tc_ids.rb b/t/tc_ids.rb index 884472d..cf13d60 100755 --- a/t/tc_ids.rb +++ b/t/tc_ids.rb @@ -2,7 +2,7 @@ # by eto 2003-0112 require 'test/unit' -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE diff --git a/t/tc_kage.rb b/t/tc_kage.rb index f1f2140..48cbf35 100755 --- a/t/tc_kage.rb +++ b/t/tc_kage.rb @@ -2,7 +2,7 @@ # kage testcase by eto 2003-0318 require 'test/unit' -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' require 'stroke' include CHISE diff --git a/t/tc_kanjilist.rb b/t/tc_kanjilist.rb index cdbbb87..d84b1c4 100755 --- a/t/tc_kanjilist.rb +++ b/t/tc_kanjilist.rb @@ -2,9 +2,9 @@ # testcase for KanjiNetwork by eto 2003-0227 require 'test/unit' -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' -require 'kanjilist' +require 'chise/kanjilist' include CHISE class TC_KanjiList < Test::Unit::TestCase diff --git a/t/tc_network.rb b/t/tc_network.rb index b0519d1..19a70ff 100755 --- a/t/tc_network.rb +++ b/t/tc_network.rb @@ -2,7 +2,7 @@ # testcase for KanjiNetwork by eto 2003-0227 require 'test/unit' -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' require 'network' include CHISE diff --git a/t/tc_str.rb b/t/tc_str.rb index 8af1756..4783381 100755 --- a/t/tc_str.rb +++ b/t/tc_str.rb @@ -2,7 +2,7 @@ # by eto 2003-0112 require 'test/unit' -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE diff --git a/t/test1.rb b/t/test1.rb index 636acac..481938b 100755 --- a/t/test1.rb +++ b/t/test1.rb @@ -1,7 +1,7 @@ #!/usr/bin/env ruby # by eto 2003-0117 -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE diff --git a/tools/dbdumball.rb b/tools/dbdumball.rb index b2258a9..0a130d8 100755 --- a/tools/dbdumball.rb +++ b/tools/dbdumball.rb @@ -1,7 +1,7 @@ #!/usr/bin/env ruby # by eto 2003-0110 -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE diff --git a/tools/make_ids_db.rb b/tools/make_ids_db.rb index 2833049..fa8a862 100755 --- a/tools/make_ids_db.rb +++ b/tools/make_ids_db.rb @@ -3,7 +3,7 @@ # IDSのテキストファイルを読み、bdbとして出力する # 同時に、各種のIDS正規化作業も行う -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE diff --git a/tools/mkdbtarball.rb b/tools/mkdbtarball.rb index af74f64..8b51435 100755 --- a/tools/mkdbtarball.rb +++ b/tools/mkdbtarball.rb @@ -2,7 +2,7 @@ # by eto 2003-0109 require 'find' -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE diff --git a/tools/move_obsolete_files.rb b/tools/move_obsolete_files.rb index f78fc2d..1b78e22 100755 --- a/tools/move_obsolete_files.rb +++ b/tools/move_obsolete_files.rb @@ -2,7 +2,7 @@ # by eto 2003-0219 # obsoleteである属性のBDBファイルを移動する -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE diff --git a/tools/sample-lc2003.rb b/tools/sample-lc2003.rb index 118698e..c1c9617 100755 --- a/tools/sample-lc2003.rb +++ b/tools/sample-lc2003.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE diff --git a/tools/sample1.rb b/tools/sample1.rb index 601597d..0017112 100755 --- a/tools/sample1.rb +++ b/tools/sample1.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE diff --git a/tools/t1.rb b/tools/t1.rb index 3e6ab22..e198691 100755 --- a/tools/t1.rb +++ b/tools/t1.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE p "字" # "字" diff --git a/tools/t2.rb b/tools/t2.rb index 5da8f3e..4cc51bf 100755 --- a/tools/t2.rb +++ b/tools/t2.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE p "字".decompose # "+宀子" diff --git a/tools/t3.rb b/tools/t3.rb index bc4e16f..b096de2 100755 --- a/tools/t3.rb +++ b/tools/t3.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE p "⿰木木".compose diff --git a/tools/t4.rb b/tools/t4.rb index b1ba224..c9225a4 100755 --- a/tools/t4.rb +++ b/tools/t4.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE diff --git a/tools/t5.rb b/tools/t5.rb index 31af1d4..be2f9fd 100755 --- a/tools/t5.rb +++ b/tools/t5.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE require 'uconv' diff --git a/tools/t6.rb b/tools/t6.rb index 9a5ab79..eece4b2 100755 --- a/tools/t6.rb +++ b/tools/t6.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' include CHISE diff --git a/tools/t7.rb b/tools/t7.rb index cd8b634..db3a966 100755 --- a/tools/t7.rb +++ b/tools/t7.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' require 'chise/kanjilist' include CHISE diff --git a/tools/t8.rb b/tools/t8.rb index 893ce94..7fae736 100755 --- a/tools/t8.rb +++ b/tools/t8.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' require 'chise/kanjilist' include CHISE diff --git a/tools/t9.rb b/tools/t9.rb index f9495c0..505cc16 100755 --- a/tools/t9.rb +++ b/tools/t9.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -$LOAD_PATH << '../src' +$LOAD_PATH << '../lib' require 'chise' require 'chise/kanjilist' include CHISE