#!/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も影響。
#!/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
#!/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'
#こんな感じのフォーマットになっている。
#!/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.
require 'singleton'
require 'net/http'
require 'uri'
-$LOAD_PATH << '../../src'
+$LOAD_PATH << '../../lib'
require 'chise'
require 'chise/network' #漢字間接続のネットワークを計算する
#require 'chise/kanjilist'
#!/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'
#!/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'
#
require 'sgl'
-$LOAD_PATH << '../../src' if $0 == __FILE__
+$LOAD_PATH << '../../lib' if $0 == __FILE__
require 'chise/kage'
require 'chise/csf'
# by eto 2003-0112
require 'test/unit'
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
# by eto 2003-0112
require 'test/unit'
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
# by eto 2003-0112
require 'test/unit'
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
# kage testcase by eto 2003-0318
require 'test/unit'
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
require 'stroke'
include CHISE
# 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
# testcase for KanjiNetwork by eto 2003-0227
require 'test/unit'
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
require 'network'
include CHISE
# by eto 2003-0112
require 'test/unit'
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
#!/usr/bin/env ruby
# by eto 2003-0117
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
#!/usr/bin/env ruby
# by eto 2003-0110
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
# IDSのテキストファイルを読み、bdbとして出力する
# 同時に、各種のIDS正規化作業も行う
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
# by eto 2003-0109
require 'find'
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
# by eto 2003-0219
# obsoleteである属性のBDBファイルを移動する
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
#!/usr/bin/env ruby
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
#!/usr/bin/env ruby
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
#!/usr/bin/env ruby
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
p "字" # "字"
#!/usr/bin/env ruby
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
p "字".decompose # "+宀子"
#!/usr/bin/env ruby
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
p "⿰木木".compose
#!/usr/bin/env ruby
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
#!/usr/bin/env ruby
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
require 'uconv'
#!/usr/bin/env ruby
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
include CHISE
#!/usr/bin/env ruby
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
require 'chise/kanjilist'
include CHISE
#!/usr/bin/env ruby
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
require 'chise/kanjilist'
include CHISE
#!/usr/bin/env ruby
-$LOAD_PATH << '../src'
+$LOAD_PATH << '../lib'
require 'chise'
require 'chise/kanjilist'
include CHISE