[Sugar-devel] [ASLO] Release Read ETexts-27

James Simmons nicestep at gmail.com
Mon Jan 25 12:29:39 EST 2016


James,

I'll have a look at the accelerator.

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.

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 activity.info.

Read ETexts has a collaboration feature (file transfer, not Tubes). I
haven't had the opportunity to check that yet. Hopefully it still works.

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.

James Simmons


On Sun, Jan 24, 2016 at 9:06 PM, James Cameron <quozl at laptop.org> wrote:

> G'day James,
>
> Line 476 of your ReadEtextsActivity.py changes the accelerator for the
> stop button to '<Ctrl><Shift>Q', but the default in Sugar is
> '<Ctrl>Q', and the only activities that ought not use the default are
> those where ctrl-q has special meaning, such as Terminal.
>
> References:
>
> https://wiki.sugarlabs.org/go/Hotkeys
>
> https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/activity/widgets.py#L87
>
> For speech, is there any reason you can't use the speech module in the
> sugar-toolkit-gtk3 package?
>
>
> https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/speech.py
>
> Thanks for the gitorious pointer, I wasn't aware which source control
> repository you were using.  Everybody else has moved to GitHub, but nobody
> has taken down Sugar Labs gitorious yet, perhaps there are others like
> you still using it.
>
> Your activity/activity.info file can have a new field for that;
>
> repository = <URL>
>
> On Sun, Jan 24, 2016 at 08:11:39PM -0600, James Simmons wrote:
> > James,
> >
> > I tested on Fedora 23 Workstation. The speech feature works OK there. I
> don't
> > think I'm doing anything with Ctrl-q.
> >
> > This is the code that I think is being complained about when it disables
> > speech:
> >
> > [1]http://git.sugarlabs.org/readetexts/mainline/blobs/master/speech.py
> >
> > The line is:
> >
> > Gst.ElementFactory.make('espeak')
> >
> > I see similar lines elsewhere where a second argument is used, specifying
> > source or sink.
> >
> > I'll give this another try later, probably tomorrow evening. Don't
> release this
> > version.
> >
> > I could use some clarification on what ctrl-q is supposed to do. I
> haven't done
> > Sugar coding for something like three years and this sounds new.
> >
> > James Simmons
> >
> > On Sun, Jan 24, 2016 at 6:18 PM, James Cameron <[2]quozl at laptop.org>
> wrote:
> >
> >     On Sun, Jan 24, 2016 at 04:28:50PM -0500, Sugar Labs Activities
> wrote:
> >     > [3]
> http://activities.sugarlabs.org/downloads/file/29159/read_etexts-27.xo
> >
> >     Tested briefly on Fedora 20.
> >
> >     1.  the ctrl-q short cut does not work, an older ctrl-shift-q does,
> >
> >     2.  no speech feature seen,
> >
> >     3.  functional test passed, downloaded Emma by Jane Austen,
> >
> >     Logs: [4]http://dev.laptop.org/~quozl/z/1aNUoS.txt
> >
> >     --
> >     James Cameron
> >     [5]http://quozl.netrek.org/
> >     _______________________________________________
> >     Sugar-devel mailing list
> >     [6]Sugar-devel at lists.sugarlabs.org
> >     [7]http://lists.sugarlabs.org/listinfo/sugar-devel
> >
> > References:
> >
> > [1] http://git.sugarlabs.org/readetexts/mainline/blobs/master/speech.py
> > [2] mailto:quozl at laptop.org
> > [3]
> http://activities.sugarlabs.org/downloads/file/29159/read_etexts-27.xo
> > [4] http://dev.laptop.org/~quozl/z/1aNUoS.txt
> > [5] http://quozl.netrek.org/
> > [6] mailto:Sugar-devel at lists.sugarlabs.org
> > [7] http://lists.sugarlabs.org/listinfo/sugar-devel
>
> --
> James Cameron
> http://quozl.netrek.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20160125/6f10e204/attachment.html>


More information about the Sugar-devel mailing list