2 # 'rbchise.so' ext compatible library by eto 2003-0317
3 # $Id: rbchise.rb,v 1.2 2003-11-30 13:16:38 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.
13 class DataSource #======================================================================
16 #DEFAULT_CHAR_DB_DIR = "/usr/local/lib/chise/char-db"
17 #DEFAULT_CHAR_DB_DIR = "d:/chise/char-db"
18 def initialize(type=Berkeley_DB, location = nil)
19 @type, @location = type, location
20 @location = Config.instance.db_dir.to_s if @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.