2 # 'rbchise.so' ext compatible library by eto 2003-0317
3 # $Id: rbchise.rb,v 1.1 2003-11-10 08:11:47 eto Exp $
4 # Copyright (C) 2002-2003 Kouichirou Eto, All rights reserved.
5 # This is free software with ABSOLUTELY NO WARRANTY.
6 # You can redistribute it and/or modify it under the terms of the GNU GPL2.
12 class DataSource #======================================================================
15 #DEFAULT_CHAR_DB_DIR = "/usr/local/lib/chise/char-db"
16 DEFAULT_CHAR_DB_DIR = "d:/work/chise/char-db"
17 def initialize(type=Berkeley_DB, location = DEFAULT_CHAR_DB_DIR)
18 @type, @location = type, location
22 def open_decofing_table(ccs)
23 DecodingTable.new(self, ccs)
25 def open_feature_table(feature)
26 FeatureTable.new(self, feature)
30 class AttributeTable #======================================================================
31 def open(from, to, real_subtpe, accessmask, modemask)
33 def get_value(char_id)
40 class DecodingTable #======================================================================
41 def initialize(ds, ccs)
43 #
\82±
\82±
\82Åopen
\82·
\82é
46 def get_char(code_point)
53 class FeatureTable #======================================================================
54 def initialize(ds, feature)
55 @ds, @feature = ds, feature
56 #
\82±
\82±
\82Åopen
\82·
\82é
59 def get_value(char_id)
66 class Value #======================================================================
75 #----------------------------------------------------------------------end.