3 # rbchise compatible ruby library by eto 2003-0317
4 # Copyright (C) 2002-2003 Kouichirou Eto
6 # This is free software with ABSOLUTELY NO WARRANTY.
8 # You can redistribute it and/or modify it under the terms of
9 # the GNU General Public License version 2.
14 class DataSource #======================================================================
17 #DEFAULT_CHAR_DB_DIR = "/usr/local/lib/chise/char-db"
18 DEFAULT_CHAR_DB_DIR = "d:/work/chise/char-db"
19 def initialize(type=Berkeley_DB, location = DEFAULT_CHAR_DB_DIR)
20 @type, @location = type, location
24 def open_decofing_table(ccs)
25 DecodingTable.new(self, ccs)
27 def open_feature_table(feature)
28 FeatureTable.new(self, feature)
32 class AttributeTable #======================================================================
33 def open(from, to, real_subtpe, accessmask, modemask)
35 def get_value(char_id)
42 class DecodingTable #======================================================================
43 def initialize(ds, ccs)
45 #
\82±
\82±
\82Åopen
\82·
\82é
48 def get_char(code_point)
55 class FeatureTable #======================================================================
56 def initialize(ds, feature)
57 @ds, @feature = ds, feature
58 #
\82±
\82±
\82Åopen
\82·
\82é
61 def get_value(char_id)
68 class Value #======================================================================
77 #----------------------------------------------------------------------end.