import from http://rmmseg.rubyforge.org/svn/, revision 79