<div dir="ltr">James,<div><br></div><div>I'll have a look at the accelerator.</div><div><br></div><div>My code needs its own speech function because I highlight each word as it is being spoken. That function never worked that well, but I'd like to keep it. Read ETexts is the first application to use the gstreamer espeak plugin. I'll need to update the MYOSA TTS chapter to include the speech module.</div><div><br></div><div>I had no idea that everyone moved from Gitorious to GitHib. The MYOSA book describes using GitHub, so it looks like I'll need to move all my code and rewrite that chapter. I won't be able to do either one for awhile, but I'll get to it. In the interim I'll put the new entry in <a href="http://activity.info">activity.info</a>.</div><div><br></div><div>Read ETexts has a collaboration feature (file transfer, not Tubes). I haven't had the opportunity to check that yet. Hopefully it still works.</div><div><br></div><div>This Activity is an old one, from the days when a Kindle was more expensive than an XO and Project Gutenberg did not have much support for PDF (the only format the Read Activity could use at the time). I had a lot more time to work on Sugar code and documentation back then. I don't remember how.</div><div><br></div><div>James Simmons</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 24, 2016 at 9:06 PM, James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">G'day James,<br>
<br>
Line 476 of your ReadEtextsActivity.py changes the accelerator for the<br>
stop button to '<Ctrl><Shift>Q', but the default in Sugar is<br>
'<Ctrl>Q', and the only activities that ought not use the default are<br>
those where ctrl-q has special meaning, such as Terminal.<br>
<br>
References:<br>
<br>
<a href="https://wiki.sugarlabs.org/go/Hotkeys" rel="noreferrer" target="_blank">https://wiki.sugarlabs.org/go/Hotkeys</a><br>
<a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/activity/widgets.py#L87" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/activity/widgets.py#L87</a><br>
<br>
For speech, is there any reason you can't use the speech module in the<br>
sugar-toolkit-gtk3 package?<br>
<br>
<a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/speech.py" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/speech.py</a><br>
<br>
Thanks for the gitorious pointer, I wasn't aware which source control<br>
repository you were using.  Everybody else has moved to GitHub, but nobody<br>
has taken down Sugar Labs gitorious yet, perhaps there are others like<br>
you still using it.<br>
<br>
Your activity/<a href="http://activity.info" rel="noreferrer" target="_blank">activity.info</a> file can have a new field for that;<br>
<br>
repository = <URL><br>
<span class=""><br>
On Sun, Jan 24, 2016 at 08:11:39PM -0600, James Simmons wrote:<br>
> James,<br>
><br>
> I tested on Fedora 23 Workstation. The speech feature works OK there. I don't<br>
> think I'm doing anything with Ctrl-q.<br>
><br>
> This is the code that I think is being complained about when it disables<br>
> speech:<br>
><br>
</span>> [1]<a href="http://git.sugarlabs.org/readetexts/mainline/blobs/master/speech.py" rel="noreferrer" target="_blank">http://git.sugarlabs.org/readetexts/mainline/blobs/master/speech.py</a><br>
<span class="">><br>
> The line is:<br>
><br>
> Gst.ElementFactory.make('espeak')<br>
><br>
> I see similar lines elsewhere where a second argument is used, specifying<br>
> source or sink.<br>
><br>
> I'll give this another try later, probably tomorrow evening. Don't release this<br>
> version.<br>
><br>
> I could use some clarification on what ctrl-q is supposed to do. I haven't done<br>
> Sugar coding for something like three years and this sounds new.<br>
><br>
> James Simmons<br>
><br>
</span><span class="">> On Sun, Jan 24, 2016 at 6:18 PM, James Cameron <[2]<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>> wrote:<br>
><br>
>     On Sun, Jan 24, 2016 at 04:28:50PM -0500, Sugar Labs Activities wrote:<br>
</span>>     > [3]<a href="http://activities.sugarlabs.org/downloads/file/29159/read_etexts-27.xo" rel="noreferrer" target="_blank">http://activities.sugarlabs.org/downloads/file/29159/read_etexts-27.xo</a><br>
<span class="">><br>
>     Tested briefly on Fedora 20.<br>
><br>
>     1.  the ctrl-q short cut does not work, an older ctrl-shift-q does,<br>
><br>
>     2.  no speech feature seen,<br>
><br>
>     3.  functional test passed, downloaded Emma by Jane Austen,<br>
><br>
</span>>     Logs: [4]<a href="http://dev.laptop.org/~quozl/z/1aNUoS.txt" rel="noreferrer" target="_blank">http://dev.laptop.org/~quozl/z/1aNUoS.txt</a><br>
><br>
>     --<br>
>     James Cameron<br>
>     [5]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
>     _______________________________________________<br>
>     Sugar-devel mailing list<br>
>     [6]<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
>     [7]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
><br>
> References:<br>
><br>
> [1] <a href="http://git.sugarlabs.org/readetexts/mainline/blobs/master/speech.py" rel="noreferrer" target="_blank">http://git.sugarlabs.org/readetexts/mainline/blobs/master/speech.py</a><br>
> [2] mailto:<a href="mailto:quozl@laptop.org">quozl@laptop.org</a><br>
> [3] <a href="http://activities.sugarlabs.org/downloads/file/29159/read_etexts-27.xo" rel="noreferrer" target="_blank">http://activities.sugarlabs.org/downloads/file/29159/read_etexts-27.xo</a><br>
> [4] <a href="http://dev.laptop.org/~quozl/z/1aNUoS.txt" rel="noreferrer" target="_blank">http://dev.laptop.org/~quozl/z/1aNUoS.txt</a><br>
> [5] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> [6] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
> [7] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
James Cameron<br>
<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
</div></div></blockquote></div><br></div>