[Sugar-devel] [ASLO] Release Read ETexts-27
James Cameron
quozl at laptop.org
Mon Jan 25 16:01:33 EST 2016
Thanks.
How practical is it to add a word highlight callback to the sugar3
speech module? It might be useful for other activities.
On Mon, Jan 25, 2016 at 11:29:39AM -0600, James Simmons wrote:
> 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 [1]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 <[2]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:
>
> [3]https://wiki.sugarlabs.org/go/Hotkeys
> [4]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?
>
> [5]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/[6]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][7]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][8]quozl at laptop.org>
> wrote:
> >
> > On Sun, Jan 24, 2016 at 04:28:50PM -0500, Sugar Labs Activities
> wrote:
> > > [3][9]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][10]http://dev.laptop.org/~quozl/z/1aNUoS.txt
> >
> > --
> > James Cameron
> > [5][11]http://quozl.netrek.org/
> > _______________________________________________
> > Sugar-devel mailing list
> > [6][12]Sugar-devel at lists.sugarlabs.org
> > [7][13]http://lists.sugarlabs.org/listinfo/sugar-devel
> >
> > References:
> >
> > [1] [14]http://git.sugarlabs.org/readetexts/mainline/blobs/master/
> speech.py
> > [2] mailto:[15]quozl at laptop.org
> > [3] [16]http://activities.sugarlabs.org/downloads/file/29159/
> read_etexts-27.xo
> > [4] [17]http://dev.laptop.org/~quozl/z/1aNUoS.txt
> > [5] [18]http://quozl.netrek.org/
> > [6] mailto:[19]Sugar-devel at lists.sugarlabs.org
> > [7] [20]http://lists.sugarlabs.org/listinfo/sugar-devel
>
> --
> James Cameron
> [21]http://quozl.netrek.org/
>
> References:
>
> [1] http://activity.info/
> [2] mailto:quozl at laptop.org
> [3] https://wiki.sugarlabs.org/go/Hotkeys
> [4] https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/activity/widgets.py#L87
> [5] https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/speech.py
> [6] http://activity.info/
> [7] http://git.sugarlabs.org/readetexts/mainline/blobs/master/speech.py
> [8] mailto:quozl at laptop.org
> [9] http://activities.sugarlabs.org/downloads/file/29159/read_etexts-27.xo
> [10] http://dev.laptop.org/~quozl/z/1aNUoS.txt
> [11] http://quozl.netrek.org/
> [12] mailto:Sugar-devel at lists.sugarlabs.org
> [13] http://lists.sugarlabs.org/listinfo/sugar-devel
> [14] http://git.sugarlabs.org/readetexts/mainline/blobs/master/speech.py
> [15] mailto:quozl at laptop.org
> [16] http://activities.sugarlabs.org/downloads/file/29159/read_etexts-27.xo
> [17] http://dev.laptop.org/~quozl/z/1aNUoS.txt
> [18] http://quozl.netrek.org/
> [19] mailto:Sugar-devel at lists.sugarlabs.org
> [20] http://lists.sugarlabs.org/listinfo/sugar-devel
> [21] http://quozl.netrek.org/
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
--
James Cameron
http://quozl.netrek.org/
More information about the Sugar-devel
mailing list