2 # Copyright (C) 2002-2004 Kouichirou Eto, All rights reserved.
7 db_dir = "/cygdrive/c/chise/char-db"
8 ds = CHISE::DataSource.new(CHISE::DataSource::Berkeley_DB, db_dir)
10 dt = ds.open_decoding_table("=daikanwa")
11 char_id = dt.get_char(364) # get a character by Daikanwa number 364.
13 ft = ds.open_feature_table("ideographic-structure")
14 value = ft.get_value(char_id)
15 printf("#x%X => %s\n", char_id, value.to_s)