5 #DB_DIR = "/usr/local/lib/chise/char-db"
6 DB_DIR = "/cygdrive/d/work/chise/char-db"
7 ds = DataSource.new(DataSource::Berkeley_DB , DB_DIR)
9 dt = ds.open_decoding_table("ideograph-daikanwa")
10 char_id = dt.get_char(364) # 大漢和番号364の文字を持ってくる
12 ft = ds.open_feature_table("ideographic-structure")
13 value = ft.get_value(char_id)
14 printf ("#x%X => %s\n", char_id, value.to_s)