update.
authoreto <eto>
Wed, 7 Jul 2004 15:30:03 +0000 (15:30 +0000)
committereto <eto>
Wed, 7 Jul 2004 15:30:03 +0000 (15:30 +0000)
test/test-defkanji.rb [new file with mode: 0755]
tools/define-kanji-meaning.rb [new file with mode: 0755]
tools/make-ids-database.rb

diff --git a/test/test-defkanji.rb b/test/test-defkanji.rb
new file mode 100755 (executable)
index 0000000..0f3ceef
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/env ruby
+# Copyright (C) 2002-2004 Kouichirou Eto, All rights reserved.
+
+require "common"
+require "chise/defkanji"
+
+class TestDefKanji < Test::Unit::TestCase
+  def test_defkanji
+    idsdef = CHISE::IDS_Definition.instance
+    assert_instance_of(CHISE::IDS_Definition, idsdef)
+    #idsdef.define_all
+  end
+end
diff --git a/tools/define-kanji-meaning.rb b/tools/define-kanji-meaning.rb
new file mode 100755 (executable)
index 0000000..3a73bff
--- /dev/null
@@ -0,0 +1,9 @@
+#!/usr/bin/env ruby
+# Copyright (C) 2002-2004 Kouichirou Eto, All rights reserved.
+
+$LOAD_PATH.unshift("..")
+require "chise/char"
+require "chise/defkanji"
+
+idsdef = CHISE::IDS_Definition.instance
+idsdef.define_all
index e53f872..e36cb7d 100755 (executable)
@@ -7,17 +7,13 @@ $LOAD_PATH.unshift("..")
 require "chise/idsdb"
 
 man = CHISE::IDS_DB_Management.new
-man.store_ids_to_bdb # 9\95ª
-
-=begin
-db = IDS_DB.instance
-db.make_ids_db #1\8e\9e\8aÔ12\95ª
-IDS_TEXT_DB.instance.make_ids_error #4\95ª
-db.make_ids_reverse #2\95ª
-db.dump_ids_duplicated #1\95ª
-db.make_ids_aggregated #5\95ª
-db.dump_ids_aggregated #1\95ª
-db.make_ids_parts #30\95ª
-db.make_ids_contained #2\95ª
-#db.make_ids_decomposed #2\95ª\81¨\82¨\82í\82ç\82È\82©\82Á\82½\81c\81B
-=end
+# make sure there is no conflict   ruby    : ext
+man.check_conflict_of_ids_text #  151.633 : 150.287
+man.store_ids_as_text          #  172.024 : 177.618    86470
+man.store_ids_de_er            #   47.99  :  38.926    81899
+man.check_integrity_of_ids_tree        #   58.185 :  48.015    79417
+man.make_by_ids_db_org         #   29.572 :  24.511    75562
+man.store_ids_aggregated       #   66.609 :  51.832    79417
+man.store_ids_subparts         # 1638.966 : 959.413    79417
+man.store_ids_contained                #  773.808 : 696.374
+man.make_by_ids_db             #   28.071 :  31.0