Created
April 21, 2014 02:07
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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