From: eto Date: Wed, 7 Jul 2004 15:30:03 +0000 (+0000) Subject: update. X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=977b521e92a8c084161225ab7a624f3c7026fa11;p=chise%2Fruby.git update. --- diff --git a/test/test-defkanji.rb b/test/test-defkanji.rb new file mode 100755 index 0000000..0f3ceef --- /dev/null +++ b/test/test-defkanji.rb @@ -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 index 0000000..3a73bff --- /dev/null +++ b/tools/define-kanji-meaning.rb @@ -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 diff --git a/tools/make-ids-database.rb b/tools/make-ids-database.rb index e53f872..e36cb7d 100755 --- a/tools/make-ids-database.rb +++ b/tools/make-ids-database.rb @@ -7,17 +7,13 @@ $LOAD_PATH.unshift("..") require "chise/idsdb" man = CHISE::IDS_DB_Management.new -man.store_ids_to_bdb # 9•ª - -=begin -db = IDS_DB.instance -db.make_ids_db #1ŽžŠÔ12•ª -IDS_TEXT_DB.instance.make_ids_error #4•ª -db.make_ids_reverse #2•ª -db.dump_ids_duplicated #1•ª -db.make_ids_aggregated #5•ª -db.dump_ids_aggregated #1•ª -db.make_ids_parts #30•ª -db.make_ids_contained #2•ª -#db.make_ids_decomposed #2•ª¨‚¨‚í‚ç‚È‚©‚Á‚½cB -=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