plamoni / SiriProxy

A (tampering) proxy server for Apple's Siri
GNU General Public License v3.0
2.12k stars 343 forks source link

Lost Letters #404

Closed TonyLianLong closed 11 years ago

TonyLianLong commented 11 years ago

Sorry,my English is bad. I use Siriproxy's default plugin. And I use Chinese. Lost letters. I say 最近好吗 it process 最好吗。 But on iPhone,it's right. Just wrong on my siriproxy. English is all OK. How do I want to do?

EricInBj commented 11 years ago

哈哈,编码问题,修改那个plugin文件,第一行 # encoding: utf-8

TonyLianLong commented 11 years ago

不是编码问题……你是有坑?我修好了,删了一行

EricInBj commented 11 years ago

我这儿之前一样的情况,编码设置完就好

发自我的 iPhone

在 2013-1-6,19:22,"TonyLianLong" notifications@github.com 写道:

不是编码问题……你是有坑?我修好了,删了一行

— Reply to this email directly or view it on GitHub.

galenzhao commented 11 years ago

@TonyLianLong please tell me how to fix that, i already add the "# encoding: utf-8", but it doesnt work,

plamoni commented 11 years ago

I think this is fixed now. I believe it was a problem with a field in the objects being passed from guzzoni. It was saying that things were ending with a space, but they weren't really, causing it to delete characters unnecessarily. Do a siriproxy update and see if that resolves the issue.

galenzhao commented 11 years ago

@plamoni Hi, the console output is correct now, but still can not match Chinese characters, in plugin:

listen_for /中文测试/i do
say "中文测试成功!" #say something to the user!
request_completed #always complete your request! Otherwise the phone will "spin" at the user!
end

console output:

[Info - Guzzoni] Received Object: SpeechRecognized
[Info - Plugin Manager] Processing '中文测试 '
[Info - Plugin Manager] Processing plugin #<SiriProxy::Plugin::Example:0x898a014>
[Info - Plugin Manager] No matches for '中文测试 '
[Info - Guzzoni] Received Object: AddViews

is it a bug or something else?

galenzhao commented 11 years ago

@plamoni it works, the match rules should delete the space

elvisimprsntr commented 11 years ago

fixed in latest SP