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

James Cameron quozl at laptop.org
Mon Jan 25 23:16:04 EST 2016


Hmm, that's odd.  No apparent change.  Because the version hasn't
changed (27 to 27), I'm going to have to wait for the mirror site to
notice the file contents have changed.

On Mon, Jan 25, 2016 at 06:50:07PM -0600, James Simmons wrote:
> James,
> 
> I've made the changes. It works on the latest Fedora. Accelerator for Stop
> button is fixed.
> 
> James Simmons
> 
> On Mon, Jan 25, 2016 at 5:30 PM, James Simmons <[1]nicestep at gmail.com> wrote:
> 
>     James,
> 
>     At the moment the highlighting code doesn't work that well. What it does is
>     to insert tags into your text, then create a list of tuples containing
>     start and end positions of the words in the text area. The gstreamer code
>     gives me the sequence number of each word, I look up the tuple and
>     highlight the word. The highlighting skips over words or lags behind much
>     of the time. Not really robust enough to share with anyone at this point.
>    
>     James Simmons
>    
> 
>     On Mon, Jan 25, 2016 at 3:01 PM, James Cameron <[2]quozl at laptop.org> wrote:
> 
>         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][3]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][4]
>         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][5]https://wiki.sugarlabs.org/go/Hotkeys
>         >     [4][6]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][7]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][8]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][9]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][10]
>         quozl at laptop.org>
>         >     wrote:
>         >     >
>         >     >     On Sun, Jan 24, 2016 at 04:28:50PM -0500, Sugar Labs
>         Activities
>         >     wrote:
>         >     >     > [3][9][11]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][12]http://dev.laptop.org/~quozl/z/1aNUoS.txt
>         >     >
>         >     >     --
>         >     >     James Cameron
>         >     >     [5][11][13]http://quozl.netrek.org/
>         >     >     _______________________________________________
>         >     >     Sugar-devel mailing list
>         >     >     [6][12][14]Sugar-devel at lists.sugarlabs.org
>         >     >     [7][13][15]http://lists.sugarlabs.org/listinfo/sugar-devel
>         >     >
>         >     > References:
>         >     >
>         >     > [1] [14][16]http://git.sugarlabs.org/readetexts/mainline/blobs/
>         master/
>         >     speech.py
>         >     > [2] mailto:[15][17]quozl at laptop.org
>         >     > [3] [16][18]http://activities.sugarlabs.org/downloads/file/
>         29159/
>         >     read_etexts-27.xo
>         >     > [4] [17][19]http://dev.laptop.org/~quozl/z/1aNUoS.txt
>         >     > [5] [18][20]http://quozl.netrek.org/
>         >     > [6] mailto:[19][21]Sugar-devel at lists.sugarlabs.org
>         >     > [7] [20][22]http://lists.sugarlabs.org/listinfo/sugar-devel
>         >
>         >     --
>         >     James Cameron
>         >     [21][23]http://quozl.netrek.org/
>         >
>         > References:
>         >
>         > [1] [24]http://activity.info/
>         > [2] mailto:[25]quozl at laptop.org
>         > [3] [26]https://wiki.sugarlabs.org/go/Hotkeys
>         > [4] [27]https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/
>         src/sugar3/activity/widgets.py#L87
>         > [5] [28]https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/
>         src/sugar3/speech.py
>         > [6] [29]http://activity.info/
>         > [7] [30]http://git.sugarlabs.org/readetexts/mainline/blobs/master/
>         speech.py
>         > [8] mailto:[31]quozl at laptop.org
>         > [9] [32]http://activities.sugarlabs.org/downloads/file/29159/
>         read_etexts-27.xo
>         > [10] [33]http://dev.laptop.org/~quozl/z/1aNUoS.txt
>         > [11] [34]http://quozl.netrek.org/
>         > [12] mailto:[35]Sugar-devel at lists.sugarlabs.org
>         > [13] [36]http://lists.sugarlabs.org/listinfo/sugar-devel
>         > [14] [37]http://git.sugarlabs.org/readetexts/mainline/blobs/master/
>         speech.py
>         > [15] mailto:[38]quozl at laptop.org
>         > [16] [39]http://activities.sugarlabs.org/downloads/file/29159/
>         read_etexts-27.xo
>         > [17] [40]http://dev.laptop.org/~quozl/z/1aNUoS.txt
>         > [18] [41]http://quozl.netrek.org/
>         > [19] mailto:[42]Sugar-devel at lists.sugarlabs.org
>         > [20] [43]http://lists.sugarlabs.org/listinfo/sugar-devel
>         > [21] [44]http://quozl.netrek.org/
> 
>         > _______________________________________________
>         > Sugar-devel mailing list
>         > [45]Sugar-devel at lists.sugarlabs.org
>         > [46]http://lists.sugarlabs.org/listinfo/sugar-devel
> 
>         --
>         James Cameron
>         [47]http://quozl.netrek.org/
> 
> References:
> 
> [1] mailto:nicestep at gmail.com
> [2] mailto:quozl at laptop.org
> [3] http://activity.info/
> [4] mailto:quozl at laptop.org
> [5] https://wiki.sugarlabs.org/go/Hotkeys
> [6] https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/
> [7] https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/
> [8] http://activity.info/
> [9] http://git.sugarlabs.org/readetexts/mainline/blobs/master/speech.py
> [10] mailto:quozl at laptop.org
> [11] http://activities.sugarlabs.org/downloads/file/29159/
> [12] http://dev.laptop.org/~quozl/z/1aNUoS.txt
> [13] http://quozl.netrek.org/
> [14] mailto:Sugar-devel at lists.sugarlabs.org
> [15] http://lists.sugarlabs.org/listinfo/sugar-devel
> [16] http://git.sugarlabs.org/readetexts/mainline/blobs/master/
> [17] mailto:quozl at laptop.org
> [18] http://activities.sugarlabs.org/downloads/file/29159/
> [19] http://dev.laptop.org/~quozl/z/1aNUoS.txt
> [20] http://quozl.netrek.org/
> [21] mailto:Sugar-devel at lists.sugarlabs.org
> [22] http://lists.sugarlabs.org/listinfo/sugar-devel
> [23] http://quozl.netrek.org/
> [24] http://activity.info/
> [25] mailto:quozl at laptop.org
> [26] https://wiki.sugarlabs.org/go/Hotkeys
> [27] https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/activity/widgets.py#L87
> [28] https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/speech.py
> [29] http://activity.info/
> [30] http://git.sugarlabs.org/readetexts/mainline/blobs/master/speech.py
> [31] mailto:quozl at laptop.org
> [32] http://activities.sugarlabs.org/downloads/file/29159/read_etexts-27.xo
> [33] http://dev.laptop.org/~quozl/z/1aNUoS.txt
> [34] http://quozl.netrek.org/
> [35] mailto:Sugar-devel at lists.sugarlabs.org
> [36] http://lists.sugarlabs.org/listinfo/sugar-devel
> [37] http://git.sugarlabs.org/readetexts/mainline/blobs/master/speech.py
> [38] mailto:quozl at laptop.org
> [39] http://activities.sugarlabs.org/downloads/file/29159/read_etexts-27.xo
> [40] http://dev.laptop.org/~quozl/z/1aNUoS.txt
> [41] http://quozl.netrek.org/
> [42] mailto:Sugar-devel at lists.sugarlabs.org
> [43] http://lists.sugarlabs.org/listinfo/sugar-devel
> [44] http://quozl.netrek.org/
> [45] mailto:Sugar-devel at lists.sugarlabs.org
> [46] http://lists.sugarlabs.org/listinfo/sugar-devel
> [47] http://quozl.netrek.org/

-- 
James Cameron
http://quozl.netrek.org/


More information about the Sugar-devel mailing list