format.rb: Written by Tadayoshi Funaba 1999-2007 $Id: format.rb,v 2.30 2007-01-07 09:16:24+09 tadf Exp $