2 # rbchise compatible ruby library by eto 2003-0317
6 class DataSource #======================================================================
9 #DEFAULT_CHAR_DB_DIR = "/usr/local/lib/chise/char-db"
10 DEFAULT_CHAR_DB_DIR = "d:/work/chise/char-db"
11 def initialize(type=Berkeley_DB, location = DEFAULT_CHAR_DB_DIR)
12 @type, @location = type, location
16 def open_decofing_table(ccs)
17 DecodingTable.new(self, ccs)
19 def open_feature_table(feature)
20 FeatureTable.new(self, feature)
24 class AttributeTable #======================================================================
25 def open(from, to, real_subtpe, accessmask, modemask)
27 def get_value(char_id)
34 class DecodingTable #======================================================================
35 def initialize(ds, ccs)
37 #
\82±
\82±
\82Åopen
\82·
\82é
40 def get_char(code_point)
47 class FeatureTable #======================================================================
48 def initialize(ds, feature)
49 @ds, @feature = ds, feature
50 #
\82±
\82±
\82Åopen
\82·
\82é
53 def get_value(char_id)
60 class Value #======================================================================
69 #----------------------------------------------------------------------end.