Skip to content

Instantly share code, notes, and snippets.

@syusui-s
Created April 21, 2014 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syusui-s/11130379 to your computer and use it in GitHub Desktop.
Save syusui-s/11130379 to your computer and use it in GitHub Desktop.
http://yowaken.dip.jp/sixamo/ をRuby2.1でもとりあえず使えるようにするpatchです.iconvで,euc-jp→utf-8に変換してやってからパッチ当ててください. $ iconv -f euc-jp -t utf-8 sixamo.rb -o sixamo-utf.rb
--- sixamo-utf.rb 2014-04-21 11:00:11.120860891 +0900
+++ sixamo-utf-fixed.rb 2014-04-21 11:01:17.724191103 +0900
@@ -4,7 +4,7 @@
# $Id: sixamo.rb,v 1.52 2007/03/05 08:31:23 hori Exp hori $
#
-$KCODE = 'e'
+# $KCODE = 'e'
# for ruby 1.6
unless [].respond_to?(:sort_by)
@@ -815,7 +815,7 @@
break if /^(exit|quit)?$/.match(str)
if opt[:m]
- sixamo.memorize(str)
+ sixamo.memorize([str])
res = sixamo.talk
else
res = sixamo.talk(str)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment