<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,4 @@
-== 1.0.0 / 2008-06-07
+== 0.2.5 / 2008-06-07
 
-* 1 major enhancement
-  * Birthday!
+* Created homepage on Rubyforge.
+* Gem can be installed directly from Rubyforge now.</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,4 @@
-# Look in the tasks/setup.rb file for the various options that can be
-# configured in this Rakefile. The .rake files in the tasks directory
-# are where the options are used.
+# -*- Ruby -*-
 
 load 'tasks/setup.rb'
 
@@ -10,7 +8,7 @@ require 'rmmseg'
 task :default =&gt; 'spec:run'
 
 PROJ.name = 'rmmseg-cpp'
-PROJ.version = '0.2.4'
+PROJ.version = '0.2.5'
 PROJ.authors = 'pluskid'
 PROJ.email = 'pluskid@gmail.com'
 PROJ.url = 'http://rmmseg-cpp.rubyforge.org'</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,61 @@
 require File.expand_path(
     File.join(File.dirname(__FILE__), '..', 'lib', 'rmmseg'))
 
-# Put your code here
+require 'getoptlong'
+
+def print_usage
+  puts &lt;&lt;EOF
+#{__FILE__}  Segment Chinese text. Read from stdin and print to stdout.
+
+Options:
+  -h
+  --help      Print this message
+
+  -s
+  --separator Select the separator of the segmented text. Default is
+              space.
+EOF
+  exit 0
+end
+
+separator = &quot; &quot;
+
+optparser = GetoptLong.new
+optparser.set_options([&quot;-s&quot;, &quot;--separator&quot;, GetoptLong::REQUIRED_ARGUMENT],
+                      [&quot;-h&quot;, &quot;--help&quot;, GetoptLong::NO_ARGUMENT])
+
+loop do
+  begin
+    opt, arg = optparser.get
+    break if not opt
+
+    case opt
+    when &quot;-h&quot;
+      print_usage
+      
+    when &quot;-s&quot;
+      separator = arg
+    end
+    
+  rescue =&gt; err
+    puts err
+    exit 1
+  end
+end
+
+RMMSeg::Dictionary.load_dictionaries
+algor = RMMSeg::Algorithm.new(STDIN.read)
+tok = algor.next_token
+unless tok.nil?
+  print tok.text
+
+  loop do
+    tok = algor.next_token
+    break if tok.nil?
+    print separator
+    print tok.text
+  end
+  puts
+end
 
 # EOF</diff>
      <filename>bin/rmmseg</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
-require 'rmmseg/dictionary'
+require File.join(File.dirname(__FILE__), 'rmmseg', 'dictionary')
 require File.join(File.dirname(__FILE__), '..',
                   'ext', 'rmmseg', 'rmmseg')</diff>
      <filename>lib/rmmseg.rb</filename>
    </modified>
    <modified>
      <diff>@@ -74,7 +74,7 @@ PROJ = OpenStruct.new(
   # Rdoc
   :rdoc =&gt; OpenStruct.new(
     :opts =&gt; [],
-    :include =&gt; %w(^lib/ ^bin/ ^ext/ \.txt$),
+    :include =&gt; %w(^lib/ ^bin/ ^ext/rmmseg/rmmseg.cpp \.txt$),
     :exclude =&gt; %w(extconf\.rb$),
     :main =&gt; nil,
     :dir =&gt; 'doc',</diff>
      <filename>tasks/setup.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f843edfd03dbd1192275a45f709b855a3f4af5dd</id>
    </parent>
  </parents>
  <author>
    <name>pluskid</name>
    <email>pluskid@gmail.com</email>
  </author>
  <url>http://github.com/pluskid/rmmseg-cpp/commit/81d4c94af5b7e91862cb914204ebfb501e4e920c</url>
  <id>81d4c94af5b7e91862cb914204ebfb501e4e920c</id>
  <committed-date>2008-06-07T12:50:09-07:00</committed-date>
  <authored-date>2008-06-07T12:50:09-07:00</authored-date>
  <message>Added bin/rmmseg.</message>
  <tree>2fa43bbe148ab0df63d966e649933b04db902c37</tree>
  <committer>
    <name>pluskid</name>
    <email>pluskid@gmail.com</email>
  </committer>
</commit>
