[Sugar-devel] [PATCH] PATCH for Words Activity that fix https://dev.laptop.org.au/issues/1078 Speak option says the word twice in words activity.

Rafael Ortiz rafael at activitycentral.com
Tue Apr 17 11:53:37 EDT 2012


On Tue, Apr 17, 2012 at 10:41 AM, Ariel Calzada <ariel.calzada at gmail.com>wrote:

> On 04/17/2012 10:31 AM, Ariel Calzada wrote:
>
>> PATCH for Words Activity that fix https://dev.laptop.org.au/**issues/1078<https://dev.laptop.org.au/issues/1078>Speak option says the  word twice in words activity.
>>
>> ---
>>  wordsactivity.py |    9 ++-------
>>  1 files changed, 2 insertions(+), 7 deletions(-)
>>
>> diff --git a/wordsactivity.py b/wordsactivity.py
>> index 5c241f7..cfb8794 100644
>> --- a/wordsactivity.py
>> +++ b/wordsactivity.py
>> @@ -201,20 +201,15 @@ class WordsActivity(activity.**Activity):
>>          # No Portuguese accent yet.
>>          if lang == "portuguese":
>>              lang = "spanish"
>> -        tmpfile = "/tmp/something.wav"
>> -        subprocess.call(["espeak", text, "-w", tmpfile, "-v", lang])
>> -        subprocess.call(["aplay", tmpfile])
>> -        os.unlink(tmpfile)
>> -
>>          #AU costumization
>> -        if lang == "english":
>> +        elif lang == "english":
>>              lang = "english_rp"
>> +
>>          tmpfile = "/tmp/something.wav"
>>          subprocess.call(["espeak", text, "-w", tmpfile, "-v", lang])
>>          subprocess.call(["aplay", tmpfile])
>>          os.unlink(tmpfile)
>>
>> -
>>      def lang1combo_cb(self, combo):
>>          pass
>>
>>
> Thanks for the catch, applied as


http://git.sugarlabs.org/words-activity/words-activity/commit/fb3819774867c814a65d201d5b8cdb9d4767702e

Will be in next version.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120417/c3464776/attachment.html>


More information about the Sugar-devel mailing list