move file to chise/
[chise/ruby.git] / src / kageserver.rb
index 69dc095..2e3ad46 100755 (executable)
@@ -1,4 +1,13 @@
 #!/usr/bin/env ruby
+#
+# KageServer - access and fetch the Kage glyph data files
+# Copyright (C) 2002-2003 Kouichirou Eto
+#     All rights reserved.
+#     This is free software with ABSOLUTELY NO WARRANTY.
+#
+# You can redistribute it and/or modify it under the terms of 
+# the GNU General Public License version 2.
+#
 
 $LOAD_PATH << '../ruby/src'
 require 'chise'
@@ -22,10 +31,10 @@ class KageServer #==============================================================
     @glyphs = []
     @use_cache = true #デフォルト: cacheに存在する場合はcacheから引き出す。
     @offline = false #テスト用
-    #@offline = true #テスト用
+    @offline = true #テスト用
     Dir.mkdir(CACHE_DIR) unless FileTest.directory?(CACHE_DIR)
   end
-  attr_accessor :url, :use_cache
+  attr_accessor :url, :use_cache, :offline
   def filename(num, type=SKELETON) sprintf("u%04x.%s", num, TYPES[type]) end
   def cache_file(num, type=SKELETON) CACHE_DIR+"/"+filename(num, type)+".svg" end