Re: submitting to apple store and google store ... how much of that process can be automated?

2017-12-28 Thread Tom Glod via use-livecode
geethanks for that .. I must say I couldn't be happier.  I've had
iOS crossed off my list of supported platforms since starting to do this
work..support OS X but no apple mobile for this guy...too much
apple to deal with ...Its hard to support a company with such closed
and sometimes shady policies and approaches.  maybe one day it will change.

Appreciate the thoughts as alwaysclears things right up for me.



On Thu, Dec 28, 2017 at 9:03 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Tom Glod wrote:
>
> > Hi, can someone with experience of submitting LC apps to the mobile
> > stores tell me whether the process can be made automatic? assuming
> > that the TOS are met and everything is kocher?
> >
> > I'm writing a proposal for a company to offer branded courtesy apps
> > to their business customers ...i would be responsible for building a
> > system that makes this possible for themand I am confident that
> > can be done using LC and LC Server together.
> >
> > Thanks in advance for any thoughts on this subject
>
>
> Bad news: "Apple’s widened ban on templated apps is wiping small
> businesses from the App Store"
>  plated-apps-is-wiping-small-businesses-from-the-app-store/>
>
>
> Good news:  Deploying to Android exclusively cuts the work in half. :)
>
> Or deploy to the web and have it all, with no deployment hassle or
> additional 30% "distribution tax".
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  
>  ambassa...@fourthworld.comhttp://www.FourthWorld.com
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: DG2: How much is mobile-only?

2017-12-28 Thread panagiotis merakos via use-livecode
Hi all,

Swiping in DG2 is NOT mobile-only. Just click and drag in the desktop, and
it should work.

Best,
Panos
--

On Fri, Dec 29, 2017 at 1:49 AM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Tom Glod wrote:
>
> >> On Thu, Dec 28, 2017 at 1:22 AM, Richard Gaskin wrote:
> >>
> >> > It seems the swiping in DG2 is mobile only - is that correct?
> >> >  What other DG2 goodies are currently only usable on a mobile
> >> > device?
> ...
> > from what I know the LC engine does not yet do touch in desktop
> > standalones. so its not "the grid" that is limitedits the
> > engine right now.
>
> Swipe can be done with a single finger, whether on a mobile screen or a
> laptop trackpad.
>
> > seems like it be important to solve this sooner than later.
>
> For those things requiring multi-touch, yes, it would be nice to see the
> engine support that on the desktop too.
> http://quality.livecode.com/show_bug.cgi?id=8446
>
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  
>  ambassa...@fourthworld.comhttp://www.FourthWorld.com
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Optimizing for small Android devices

2017-12-28 Thread J. Landman Gay via use-livecode
That's a different model than Google gave me. This one has better specs. 
I'm not sure how the CPU compares to the Snapdragon but in general it seems 
sufficient.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On December 28, 2017 7:05:08 PM Sannyasin Brahmanathaswami via use-livecode 
 wrote:



This is the Galaxy Samung A7 2017

http://www.samsung.com/in/smartphones/galaxy-a7-2017-sm-a720f/SM-A720FZDDINS/

pertainly doesn't seem under powered…how is a "2017" two years old?... do 
they just pump out the same device and slap new date on it? but the 
hardward/components are the same as they were?



On 12/28/17, 1:22 PM, "use-livecode on behalf of J. Landman Gay via 
use-livecode"  wrote:


On 12/28/17 4:50 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
>So, "weird" … Galaxy Samsung  A7 in India running Android version 7.0… --- 
problems

>Moto G4 Plus, London Android 7 -- users says it works just fine

The Moto is 2 years newer, has a faster CPU, and double or triple the
memory depending on configuration. That's got to help.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: submitting to apple store and google store ... how much of that process can be automated?

2017-12-28 Thread Richard Gaskin via use-livecode

Tom Glod wrote:

> Hi, can someone with experience of submitting LC apps to the mobile
> stores tell me whether the process can be made automatic? assuming
> that the TOS are met and everything is kocher?
>
> I'm writing a proposal for a company to offer branded courtesy apps
> to their business customers ...i would be responsible for building a
> system that makes this possible for themand I am confident that
> can be done using LC and LC Server together.
>
> Thanks in advance for any thoughts on this subject


Bad news: "Apple’s widened ban on templated apps is wiping small 
businesses from the App Store"




Good news:  Deploying to Android exclusively cuts the work in half. :)

Or deploy to the web and have it all, with no deployment hassle or 
additional 30% "distribution tax".


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: DG2: How much is mobile-only?

2017-12-28 Thread Richard Gaskin via use-livecode

Tom Glod wrote:

>> On Thu, Dec 28, 2017 at 1:22 AM, Richard Gaskin wrote:
>>
>> > It seems the swiping in DG2 is mobile only - is that correct?
>> >  What other DG2 goodies are currently only usable on a mobile
>> > device?
...
> from what I know the LC engine does not yet do touch in desktop
> standalones. so its not "the grid" that is limitedits the
> engine right now.

Swipe can be done with a single finger, whether on a mobile screen or a 
laptop trackpad.


> seems like it be important to solve this sooner than later.

For those things requiring multi-touch, yes, it would be nice to see the 
engine support that on the desktop too.

http://quality.livecode.com/show_bug.cgi?id=8446

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Optimizing for small Android devices

2017-12-28 Thread Sannyasin Brahmanathaswami via use-livecode
This is the Galaxy Samung A7 2017 

http://www.samsung.com/in/smartphones/galaxy-a7-2017-sm-a720f/SM-A720FZDDINS/

pertainly doesn't seem under powered…how is a "2017" two years old?... do they 
just pump out the same device and slap new date on it? but the 
hardward/components are the same as they were?
 

On 12/28/17, 1:22 PM, "use-livecode on behalf of J. Landman Gay via 
use-livecode"  wrote:

On 12/28/17 4:50 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
>So, "weird" … Galaxy Samsung  A7 in India running Android version 7.0… --- 
problems
>Moto G4 Plus, London Android 7 -- users says it works just fine

The Moto is 2 years newer, has a faster CPU, and double or triple the 
memory depending on configuration. That's got to help.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Mapping Field Text Ranges (was Re: Interprocess Communication (IPC) under OSX)

2017-12-28 Thread Paul Dupuis via use-livecode
Mark,

Thank you so much


On 12/28/2017 12:45 PM, Mark Waddingham via use-livecode wrote:
> On 2017-12-19 19:43, Mark Waddingham via use-livecode wrote:
>> I'm pretty sure it would be possible to write a handler which takes
>> the styledText array of a field in 6.7.11 and a list of old indicies,
>> returning a list of new char indicies... Would that help?
>
> Paul expressed an interest in how this might work - and he provided
> some more background:
>
> -*-
>
> Our main application, HyperRESEARCH, a tool for academics and others
> doing qualitative research, relies completely on chunk ranges. It is
> essentially a bookmarking tool where users can select some content from
> a document, the character position (chunk) is grabbed and the user gives
> it a text label and HyperRESEARCH remembers that label "Early Childhood
> Behavior X" points to char S to T of document "ABC". All documents,
> native text, unicode (utf8 or utf16), rtf, docx, odt, etc. are read into
> a LiveCode field, from which the selection is made and the chunk
> obtained. HyoperRESEARCH saves a "Study" file that contains a LOT of
> these labels and chunks and documents names.
>
> As part of our migration from LC464, which is what the current release
> of HyperRESEARCH is based on, we needed a way to convert a character
> range created under LC4.6.4 to a range under LC6.7.11 that point to the
> exact same string for the same file. Curry Kenworthy, whose libraries we
> license for reading MS-Word and Open Office documents built a library
> based on an algorithm I came up with to send the original LC464 ranges
> to a helper application using sockets or IPC. The helper application
> retrieves the strings associated with each chunk, strips white space and
> passes the string back to the LC6.7.11 version of the main app, which
> then finds the whitespace stripped strings in the same file loaded under
> LC6.7.11 with an indexing mechanism to adjust the positions for the
> stripped whitespace. It is a bit complicated, but it works reliably.
>
> -*-
>
> From this I infer the following:
>
> 1) The study file is a list of triples - label, char chunk, document
> filename
>
> 2) When using the study file, the original document is loaded into a
> field, and the char chunks are used to display labels which the user
> can jump to.
>
> 3) The char chunks are old-style (pre-5.5) byte indicies not codeunit
> indicies
>
> The crux of the problem Paul is having comes down to (3) which has
> some background to explain.
>
> Before 7.0, the field was the only part of the engine which naturally
> handled Unicode. In these older versions the field stored text as
> mixed sequence of style runs of either single bytes (native text) or
> double bytes (unicode text).
>
> Between 5.5 and 7.0, indicies used when referencing chars in fields
> corresponded to codeunits - this meant that the indicies were
> independent of the encoding of the runs in the field. In this case
> char N referred to the Nth codeunit in the field, whether up until
> that point was all unicode, all native or a mixture of both.
>
> Before 5.5, indicies used when referencing chars in fields
> corresponded to bytes - this meant that you had to take into account
> the encoding of the runs in the field. In this case, char N referred
> to the Nth byte in the field. So if your field had:
>
>  abcXYZabc (where XYZ are two byte unicode chars)
>
> Then char 4 would refer to the first byte of the X unicode char and
> *not* the two bytes it would have actually taken up.
>
> Now, importantly, the internal structure of the field did not change
> between 4.6.4 and 5.5, just how the 'char' chunk worked - in 6.7.11,
> the internal structure of the field is still the mixed runs of
> unicode/native bytes just as it was in 4.6.4 - the only difference is
> what happens if you reference char X to Y of the field.
>
> So solving this problem comes down to finding a means to 'get at' the
> internal encoding style runs of a field in 6.7.11. We want a handler:
>
>   mapByteRangeToCharRange(pFieldId, pByteFrom, pByteTo)
>
> Returning a pair pCharFrom, pCharTo - where pByteFrom, pByteTo are a
> char X to Y range from 4.6.4 and pCharFrom, pCharTo are a char X to Y
> range *for the same range* in 6.7.11.
>
> -*-
>
> Before going into the details, an easy way to see the internal mixed
> encoding of a field containing unicode in 6.7.11, is to put some text
> which is a mixture of native text and unicode text in a field and then
> look at its 'text' property. Putting:
>
> Лорем ипсум Lorem ipsum dolor sit amet, pr долор сит амет, вел татион
> игнота сцрибентур еи. Вих еа феугиат doctus necessitatibus ассентиор
> пхилосопхиа. Феугаитconsulatu disputando comprehensam  вивендум вис
> ет, мел еррем малорум ат. Хас но видерер лобортис, suscipit detraxit
> interesset eum аппетере инсоленс салутатус усу не. Еи дуо лудус
> яуаеяуе, ет елитр цорпора пер.
>
> Into a 6.7.11 field and then doing 'put the text of field 1' gives:
>
> ? 

Re: Voice Comparison in LiveCode?

2017-12-28 Thread Paul Dupuis via use-livecode
I have had an interest in getting a speech-to-text component created for
LiveCode, either as an old fashion External or, these days as a LC8/9 Widget

My skill at grabbing Sphinx and building it and figuring out how to wrap
and LCB interface around it is poor enough that it would take me a long
time to do.

Since this has come up, I'd like to pose two questions to the list:

1) is there someone out there with the expertise to create an LC8/9
Widget that wrapped Sphinx who would like to take this on?
AND
2) Are there others out there interested in having such a widget that
might co-fund this with me?

And I suppose a 3rd question to LiveCode, would this widget be a
candidate for the Feature Request crowd funding thing LiveCode has done
in the past?

Paul Dupuis
Researchware

On 12/28/2017 7:40 PM, Sean Cole (Pi) via use-livecode wrote:
> Hi Peter,
>
> I'm going to recommend to you this code source from CMUSphinx. Head for the
> main Github source and look at the Android build (link also below). Because
> this is in Java, you should be able to write something using the FFS in
> LCB. Ignore all the Gradle stuff. Just load in
> the pocketsphinx-android/src/main/java/)edu/cmu/pocketsphinx files and bind
> to the 'SpeechRecognizer' class and then the various handlers. Also check
> out the Sphinx4 project, particularly the allPhone stuff (
> https://github.com/cmusphinx/sphinx4/tree/master/sphinx4-core/src/main/java/edu/cmu/sphinx/linguist/allphone
> )
>
> https://cmusphinx.github.io/wiki/phonemerecognition/
>
> https://github.com/cmusphinx/pocketsphinx-android/
>
> Sean Cole
> *Pi Digital Productions Ltd*
>
>
>
>>> i'm developing an app for cheap Android tablets (e.g. Amazon Fire 7in)
>> that allows a user to practice speaking a set of words.  The app plays a
>> sample of a word and the user then tries to say the same word.  So far the
>> app can play sample words and capture the user's attempts for the same
>> words.  The sample words and user attempts are uncompressed WAV files.
>>> I'm trying to find the code to do the comparison of 2 WAV files.
>> Ideally, the code will be in the following formats (best first):
>>> 1. LiveCode
>>> 2. Pseudocode
>>> 3. Other code (Python, Java, C++ etc.)
>>> 4. Academic papers
>>>
>>> I'm considering 2 general methods:
>>>
>>> a. Compare 2 voice clips directly
>>> b. Convert 2 voice clips to text (using voice-to-text) and then compare
>> the words in text format
>>> Note that Ali Lloyd from the LiveCode team has developed various things
>> to help.  However I've hit problems as follows:
>>> a. Ali has wrapped a standard Android sound library that compares 2 WAV
>> files and gives a percentage match. However the comparison is either far
>> too forgiving or far too strict, i.e. highly unreliable.
>>> b. Ali has wrapped a standard Android voice-to-text library which works
>> well with the devices he's tried it on.  However, the Amazon tablets do not
>> support this Android library!
>>> Given the two developments from Ali both relied on preformed blackbox
>> code (Android Java libraries), i may have to implement a comparison
>> algorithm from scratch. A solution that's completely in LiveCode would have
>> several benefits:
>>> i. it may work!
>>> ii. it may work cross-platform
>>> iii. it may be understandable!
>>>
>>> General reading around this subject produces recommendations such as
>> using FFTs (Fast Fourier Transforms), MFCCs (Mel Frequency Cepstral
>> Coefficient), etc. but I can't find anything that gives an end-to-end
>> method, from sound in to comparative score out!
>>> Any help with this would be gratefully received!
>>>
>>> Peter
>>> --
>>> Peter Reid
>>> Loughborough, UK
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Voice Comparison in LiveCode?

2017-12-28 Thread Sean Cole (Pi) via use-livecode
Hi Peter,

I'm going to recommend to you this code source from CMUSphinx. Head for the
main Github source and look at the Android build (link also below). Because
this is in Java, you should be able to write something using the FFS in
LCB. Ignore all the Gradle stuff. Just load in
the pocketsphinx-android/src/main/java/)edu/cmu/pocketsphinx files and bind
to the 'SpeechRecognizer' class and then the various handlers. Also check
out the Sphinx4 project, particularly the allPhone stuff (
https://github.com/cmusphinx/sphinx4/tree/master/sphinx4-core/src/main/java/edu/cmu/sphinx/linguist/allphone
)

https://cmusphinx.github.io/wiki/phonemerecognition/

https://github.com/cmusphinx/pocketsphinx-android/

Sean Cole
*Pi Digital Productions Ltd*



> > i'm developing an app for cheap Android tablets (e.g. Amazon Fire 7in)
> that allows a user to practice speaking a set of words.  The app plays a
> sample of a word and the user then tries to say the same word.  So far the
> app can play sample words and capture the user's attempts for the same
> words.  The sample words and user attempts are uncompressed WAV files.
> >
> > I'm trying to find the code to do the comparison of 2 WAV files.
> Ideally, the code will be in the following formats (best first):
> >
> > 1. LiveCode
> > 2. Pseudocode
> > 3. Other code (Python, Java, C++ etc.)
> > 4. Academic papers
> >
> > I'm considering 2 general methods:
> >
> > a. Compare 2 voice clips directly
> > b. Convert 2 voice clips to text (using voice-to-text) and then compare
> the words in text format
> >
> > Note that Ali Lloyd from the LiveCode team has developed various things
> to help.  However I've hit problems as follows:
> >
> > a. Ali has wrapped a standard Android sound library that compares 2 WAV
> files and gives a percentage match. However the comparison is either far
> too forgiving or far too strict, i.e. highly unreliable.
> >
> > b. Ali has wrapped a standard Android voice-to-text library which works
> well with the devices he's tried it on.  However, the Amazon tablets do not
> support this Android library!
> >
> > Given the two developments from Ali both relied on preformed blackbox
> code (Android Java libraries), i may have to implement a comparison
> algorithm from scratch. A solution that's completely in LiveCode would have
> several benefits:
> >
> > i. it may work!
> > ii. it may work cross-platform
> > iii. it may be understandable!
> >
> > General reading around this subject produces recommendations such as
> using FFTs (Fast Fourier Transforms), MFCCs (Mel Frequency Cepstral
> Coefficient), etc. but I can't find anything that gives an end-to-end
> method, from sound in to comparative score out!
> >
> > Any help with this would be gratefully received!
> >
> > Peter
> > --
> > Peter Reid
> > Loughborough, UK
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Optimizing for small Android devices

2017-12-28 Thread J. Landman Gay via use-livecode

On 12/28/17 4:50 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

So, "weird" … Galaxy Samsung  A7 in India running Android version 7.0… --- 
problems

Moto G4 Plus, London Android 7 -- users says it works just fine


The Moto is 2 years newer, has a faster CPU, and double or triple the 
memory depending on configuration. That's got to help.



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

hhTextEdit-Basic 1.0.2

2017-12-28 Thread hh via use-livecode
hhTextEdit-Basic 1.0.2

Uses a browser widget as "text field" extending by that LC's htmltext of fields 
to
a larger set of text styling (e.g. justified textAlign), 
2D-transforms/3D-rotations and
filters (blur, sepia etc.). Of course you can edit the 
transformed/rotated/filtered
text _while_ it is transformed/rotated/filtered -- a training for your 
imagination...

** You edit, just as with fields, the 'output' and only optionally the 
HTML-source! **
It has NO dependencies, uses HTML5, JavaScript, CSS3 and some features of 
LiveCode.

Tested to work using LC 8.1.8 on Mac 10.13, Win 7/10 and Ubuntu.
Works moreover using LC 9.0.0-dp11 on Mac and Win7/10.
(The browser widget is 'buggy' on linux/LC 9 up to dp11).

Use LC toolbar > Sample Stacks > hhTextEditBasic
or
http://livecodeshare.runrev.com/stack/860/HHTextEditBasic

The stack contains also hhTextEdit-Zero (a one-liner) and hhTextEdit-Mini (very 
basic
textEdit only). More features in hhTextEdit-Full (to appear in 2018).

Have fun!
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mapping Field Text Ranges (was Re: Interprocess Communication (IPC) under OSX)

2017-12-28 Thread J. Landman Gay via use-livecode

On 12/28/17 2:42 PM, Mark Wieder via use-livecode wrote:

On 12/28/2017 09:45 AM, Mark Waddingham via use-livecode wrote:

3) The char chunks are old-style (pre-5.5) byte indicies not codeunit 
indicies


The crux of the problem Paul is having comes down to (3) which has 
some background to explain.


OMG! This is what Mr. Waddingham comes up with while on break!?



He can't help it, it's the only way his brain works... For which we are 
all grateful.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Optimizing for small Android devices

2017-12-28 Thread Sannyasin Brahmanathaswami via use-livecode
Great pointer's Andy, I will try those browser checks… TS Net does not interact 
with either the browser or a mobile play that streams audio, so we are "on our 
own… " to Monitor those.


Meanwhile this is from London, happy new user

---
"So far so good. No problems, everything running smoothly. … I am on a Moto G4 
plus. Android version 7.0"


So, "weird" … Galaxy Samsung  A7 in India running Android version 7.0… --- 
problems

Moto G4 Plus, London Android 7 -- users says it works just fine

??  Hmm, yes, this could be related to the browser because our London "market" 
has very high speed access to our content which is served from Cloud Flare./ 
not so in Cochin… 

  wrote:

Also are you making sure the destroyStack to true. 
This should be automatically done but there is no harm in forcing it.

set the destroyStack of this stack to true

It might also be useful to monitor these events in the browser widget
and set a timer between the browserDocumentLoadBegin and
browserDocumentLoadComplete to see if there is a bottle neck?

browserDocumentLoadBegin pUrl
browserDocumentLoadComplete pUrl
browserDocumentLoadFailed pUrl, pError



-
Andy Piddock 


My software never has bugs. It just develops random features. 

TinyIDE  a Free alternative minimalist IDE Plugin for LiveCode 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: screenloc not actually centered after changing scalefactor (was Screen Resolution for Desktop Apps)

2017-12-28 Thread J. Landman Gay via use-livecode

On 12/27/17 9:19 PM, Nicolas Cueto via use-livecode wrote:

Problem is, after opening the standalone on different PCs the rescaling
fits the monitor, but the window is not centered despite the "set the loc
to screenloc" command.


It looks like the stack loc is being calculated at scalefactor 1, 
regardless of the actual scalefactor of the stack. You may have to do 
some calculations based on the scalefactor, in order to adjust the 
visual location.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mapping Field Text Ranges (was Re: Interprocess Communication (IPC) under OSX)

2017-12-28 Thread Mark Wieder via use-livecode

On 12/28/2017 09:45 AM, Mark Waddingham via use-livecode wrote:

3) The char chunks are old-style (pre-5.5) byte indicies not codeunit 
indicies


The crux of the problem Paul is having comes down to (3) which has some 
background to explain.


OMG! This is what Mr. Waddingham comes up with while on break!?

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


submitting to apple store and google store ... how much of that process can be automated?

2017-12-28 Thread Tom Glod via use-livecode
Hi, can someone with experience of submitting LC apps to the mobile stores
tell me whether the process can be made automatic? assuming that the TOS
are met and everything is kocher?

I'm writing a proposal for a company to offer branded courtesy apps to
their business customers ...i would be responsible for building a system
that makes this possible for themand I am confident that can be done
using LC and LC Server together.

Thanks in advance for any thoughts on this subject
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Voice Comparison in LiveCode?

2017-12-28 Thread Dave Kilroy via use-livecode

Hi Peter

Yep what you are trying to do is indeed not easy if you want it to work on your 
friend’s Amazon tablet

Are you not tempted to use ‘standard’ voice-to-text on Android or iOS as per 
your method b and then buying your friend a non-crippled droid tablet?

If the answer is “no i want to stretch the envelope” then I like Phil’s 
stackoverflow link the best :)
https://stackoverflow.com/questions/17010516/how-to-detect-how-similar-a-speech-recording-is-to-another-speech-recording
 


Kind regards

Dave



> i'm developing an app for cheap Android tablets (e.g. Amazon Fire 7in) that 
> allows a user to practice speaking a set of words.  The app plays a sample of 
> a word and the user then tries to say the same word.  So far the app can play 
> sample words and capture the user's attempts for the same words.  The sample 
> words and user attempts are uncompressed WAV files. 
> 
> I'm trying to find the code to do the comparison of 2 WAV files.  Ideally, 
> the code will be in the following formats (best first): 
> 
> 1. LiveCode 
> 2. Pseudocode 
> 3. Other code (Python, Java, C++ etc.) 
> 4. Academic papers 
> 
> I'm considering 2 general methods: 
> 
> a. Compare 2 voice clips directly 
> b. Convert 2 voice clips to text (using voice-to-text) and then compare the 
> words in text format 
> 
> Note that Ali Lloyd from the LiveCode team has developed various things to 
> help.  However I've hit problems as follows: 
> 
> a. Ali has wrapped a standard Android sound library that compares 2 WAV files 
> and gives a percentage match. However the comparison is either far too 
> forgiving or far too strict, i.e. highly unreliable. 
> 
> b. Ali has wrapped a standard Android voice-to-text library which works well 
> with the devices he's tried it on.  However, the Amazon tablets do not 
> support this Android library! 
> 
> Given the two developments from Ali both relied on preformed blackbox code 
> (Android Java libraries), i may have to implement a comparison algorithm from 
> scratch. A solution that's completely in LiveCode would have several 
> benefits: 
> 
> i. it may work! 
> ii. it may work cross-platform 
> iii. it may be understandable! 
> 
> General reading around this subject produces recommendations such as using 
> FFTs (Fast Fourier Transforms), MFCCs (Mel Frequency Cepstral Coefficient), 
> etc. but I can't find anything that gives an end-to-end method, from sound in 
> to comparative score out! 
> 
> Any help with this would be gratefully received! 
> 
> Peter 
> -- 
> Peter Reid 
> Loughborough, UK 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Mapping Field Text Ranges (was Re: Interprocess Communication (IPC) under OSX)

2017-12-28 Thread Mark Waddingham via use-livecode

On 2017-12-19 19:43, Mark Waddingham via use-livecode wrote:

I'm pretty sure it would be possible to write a handler which takes
the styledText array of a field in 6.7.11 and a list of old indicies,
returning a list of new char indicies... Would that help?


Paul expressed an interest in how this might work - and he provided some 
more background:


-*-

Our main application, HyperRESEARCH, a tool for academics and others
doing qualitative research, relies completely on chunk ranges. It is
essentially a bookmarking tool where users can select some content from
a document, the character position (chunk) is grabbed and the user gives
it a text label and HyperRESEARCH remembers that label "Early Childhood
Behavior X" points to char S to T of document "ABC". All documents,
native text, unicode (utf8 or utf16), rtf, docx, odt, etc. are read into
a LiveCode field, from which the selection is made and the chunk
obtained. HyoperRESEARCH saves a "Study" file that contains a LOT of
these labels and chunks and documents names.

As part of our migration from LC464, which is what the current release
of HyperRESEARCH is based on, we needed a way to convert a character
range created under LC4.6.4 to a range under LC6.7.11 that point to the
exact same string for the same file. Curry Kenworthy, whose libraries we
license for reading MS-Word and Open Office documents built a library
based on an algorithm I came up with to send the original LC464 ranges
to a helper application using sockets or IPC. The helper application
retrieves the strings associated with each chunk, strips white space and
passes the string back to the LC6.7.11 version of the main app, which
then finds the whitespace stripped strings in the same file loaded under
LC6.7.11 with an indexing mechanism to adjust the positions for the
stripped whitespace. It is a bit complicated, but it works reliably.

-*-

From this I infer the following:

1) The study file is a list of triples - label, char chunk, document 
filename


2) When using the study file, the original document is loaded into a 
field, and the char chunks are used to display labels which the user can 
jump to.


3) The char chunks are old-style (pre-5.5) byte indicies not codeunit 
indicies


The crux of the problem Paul is having comes down to (3) which has some 
background to explain.


Before 7.0, the field was the only part of the engine which naturally 
handled Unicode. In these older versions the field stored text as mixed 
sequence of style runs of either single bytes (native text) or double 
bytes (unicode text).


Between 5.5 and 7.0, indicies used when referencing chars in fields 
corresponded to codeunits - this meant that the indicies were 
independent of the encoding of the runs in the field. In this case char 
N referred to the Nth codeunit in the field, whether up until that point 
was all unicode, all native or a mixture of both.


Before 5.5, indicies used when referencing chars in fields corresponded 
to bytes - this meant that you had to take into account the encoding of 
the runs in the field. In this case, char N referred to the Nth byte in 
the field. So if your field had:


 abcXYZabc (where XYZ are two byte unicode chars)

Then char 4 would refer to the first byte of the X unicode char and 
*not* the two bytes it would have actually taken up.


Now, importantly, the internal structure of the field did not change 
between 4.6.4 and 5.5, just how the 'char' chunk worked - in 6.7.11, the 
internal structure of the field is still the mixed runs of 
unicode/native bytes just as it was in 4.6.4 - the only difference is 
what happens if you reference char X to Y of the field.


So solving this problem comes down to finding a means to 'get at' the 
internal encoding style runs of a field in 6.7.11. We want a handler:


  mapByteRangeToCharRange(pFieldId, pByteFrom, pByteTo)

Returning a pair pCharFrom, pCharTo - where pByteFrom, pByteTo are a 
char X to Y range from 4.6.4 and pCharFrom, pCharTo are a char X to Y 
range *for the same range* in 6.7.11.


-*-

Before going into the details, an easy way to see the internal mixed 
encoding of a field containing unicode in 6.7.11, is to put some text 
which is a mixture of native text and unicode text in a field and then 
look at its 'text' property. Putting:


Лорем ипсум Lorem ipsum dolor sit amet, pr долор сит амет, вел татион 
игнота сцрибентур еи. Вих еа феугиат doctus necessitatibus ассентиор 
пхилосопхиа. Феугаитconsulatu disputando comprehensam  вивендум вис ет, 
мел еррем малорум ат. Хас но видерер лобортис, suscipit detraxit 
interesset eum аппетере инсоленс салутатус усу не. Еи дуо лудус яуаеяуе, 
ет елитр цорпора пер.


Into a 6.7.11 field and then doing 'put the text of field 1' gives:

? ? Lorem ipsum dolor sit amet, pr ? ??? , ??? ?? 
?? ?? ??. ??? ?? ??? doctus necessitatibus ? 
???. ???consulatu disputando comprehensam   ??? ??, 
??? ? ??? ??. ??? 

Re: DG2: How much is mobile-only?

2017-12-28 Thread Tom Glod via use-livecode
from what I know the LC engine does not yet do touch in desktop
standalones. so its not "the grid" that is limitedits the engine
right now.seems like it be important to solve this sooner than later.

On Thu, Dec 28, 2017 at 12:08 PM, Roger Eller via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I don't like presumptiously imposed limits like that.  Many Windows laptops
> and tablets are touch capable, and apps could benefit from swipe gestures.
> Heck, even with a mouse, as the pointer is merely an extension of your
> finger.
>
> ~Roger
>
>
> On Thu, Dec 28, 2017 at 1:22 AM, Richard Gaskin via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > It seems the swiping in DG2 is mobile only - is that correct?  What other
> > DG2 goodies are currently only usable on a mobile device?
> >
> > The desktop has become very influenced by mobile design trends.  Apple's
> > even begun the move to integrate the two.  And the desktop is still where
> > businesses bet on workhorses, and where developers make more money.
> >
> > Much of the new DG would be great on the desktop.  So I hope I'm just
> > missing something...
> >
> > --
> >  Richard Gaskin
> >  Fourth World Systems
> >  Software Design and Development for the Desktop, Mobile, and the Web
> >  
> >  ambassa...@fourthworld.comhttp://www.FourthWorld.com
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DG2: How much is mobile-only?

2017-12-28 Thread Roger Eller via use-livecode
I don't like presumptiously imposed limits like that.  Many Windows laptops
and tablets are touch capable, and apps could benefit from swipe gestures.
Heck, even with a mouse, as the pointer is merely an extension of your
finger.

~Roger


On Thu, Dec 28, 2017 at 1:22 AM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> It seems the swiping in DG2 is mobile only - is that correct?  What other
> DG2 goodies are currently only usable on a mobile device?
>
> The desktop has become very influenced by mobile design trends.  Apple's
> even begun the move to integrate the two.  And the desktop is still where
> businesses bet on workhorses, and where developers make more money.
>
> Much of the new DG would be great on the desktop.  So I hope I'm just
> missing something...
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  
>  ambassa...@fourthworld.comhttp://www.FourthWorld.com
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Aphasia

2017-12-28 Thread Rick Harrison via use-livecode
Hi Peter,

Have you already looked at all of the iOS Speech Therapy
apps in the Apple App Store to see if any of them do what 
you are trying to accomplish?  There are bunch of them out 
there!

Hope it helps!

Rick

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Aphasia

2017-12-28 Thread Peter Reid via use-livecode
Hi David

Thanks for the feedback.  You may be right, I'm just going on the description 
given by the family.  As I've replied to Richmond, I'm not a medic.  
Nevertheless, I'll continue anyway as the family are very positive about it and 
how it helps them engage with the problem as a whole family. I don't really 
mind if the result is a placebo effect, just as long as the family feel it is 
of some benefit.

But you're correct in general, I should make sure I'm coding towards the 
correct target!

Peter
--
Peter Reid
Loughborough, UK

> Date: Thu, 28 Dec 2017 09:04:07 +
> From: David Glasgow 
> To: How to use LiveCode 
> Subject: "Aphasia" (was Re: use-livecode Digest, Vol 171, Issue 44)
> 
> Unfortunately, it is all rather more complicated than either Richmond or 
> Peter suggest. There are many more contributing areas than Brocas, and what 
> Peter describes doesn't appear to be aphasia at all, but rather a pathology 
> of semantics or word finding. 
> 
> It's not possible to be more specific without more information, and my advice 
> would be to speak with a neuropsychologist before coding. You could spend a 
> lot of time comparing wavs and coming up with a solution to the wrong 
> problem. 
> 
> Best wishes 
> 
> David Glasgow
> Sent from my iBrain via iFingers & iPad


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Audio Processing in LiveCode

2017-12-28 Thread Peter Reid via use-livecode
Hi Richmond

My aim is to provide a trainer app to help the person improve their speaking 
(i.e. NOT 2 at this stage). This is what the family wanted and they (including 
the sufferer) are happy with its function and intended purpose so far.

However, I'm not a medic, so I accept what you say.  Nevertheless, I'll 
continue anyway as the family are very positive about it and how it helps them 
engage with the problem as a whole family. I don't really mind if the result is 
a placebo effect, just as long as the family feel it is of some benefit.

Thanks.

Peter
--
Peter Reid
Loughborough, UK

> Date: Thu, 28 Dec 2017 10:26:43 +0200
> From: Richmond Mathewson 
> To: How to use LiveCode 
> Subject: Re: use-livecode Digest, Vol 171, Issue 44
> 
> If we start to unpack your post we can come to a slightly simpler 
> conclusion than what you set out as your goal initially.
> 
> 1. Is your main idea to have a program where the device can "do the 
> talking" for the patient?
> 
> 2. As the "owner" of a 94 year old Mother-in-law who suffers from some 
> sort of selective dementia I realise that
> pointing out to her that her hallucinations are hallucinations (rather 
> than reality) is both an uphill struggle
> and causes her a lot of distress: oddly enough she's far happier inside 
> the comfort zone of her hallucinations.
> 
> If "Granny" suffers from Aphasia she has permanent damage in the Broca's 
> Area of her brain, normally due to
> a stroke: this cannot be sorted out, unfortunately.
> 
> She could, also, suffer from a type of dementia that has similar 
> symptoms to aphasia.
> 
> Doesn't really matter which; the end result is just as bad and bl**dy 
> awful for all concerned.
> 
> If you are going for #1 then there is absolutely no need for any 
> speech-recognition stuff or comparison
> between recorded sounds and those on the device.
> 
> Richmond.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: "Aphasia"

2017-12-28 Thread Rick Harrison via use-livecode
Hi Peter,

Sorry to hear about your friend’s grandmother’s aphasia problem.

While you are taking on a noble endeavor here with your app,
I would suggest doing a trial run with your software first without
the waveform comparison with your friend’s grandmother.

Instead of having the computer do the comparison, have a human
like you, sit in the room, and as you listen to what she says, type in
a score with your iPad or some other device, give it a - bing 80% etc.
Send that information to the other device that she is looking at so
it all appears as though the computer was doing all of the processing.
(Mimic that everything works as you would want it to perform.)

See how she does with your test with her.  Give her a few trial
runs and see if she improves at all or not.  (Score each trial.)

If it works well, and you see a great improvement, then perhaps
you might be onto something.  Perhaps in your second test you
can do it more remotely so that your presence is not detected
in the room.  (The presence of some person in the room paying
attention to her may have been the motivator for the improvement,
and you need to be able to rule it out.)

Basically you are trying to have your app take the place of
a speech therapist.  If she doesn’t improve with the app
functioning as you envision it, then you will have saved
yourself a lot of time and aggravation.  You will have also
learned something in the process which might help you 
in the future with such apps.

Good luck!

Rick


> On Dec 27, 2017, at 7:26 PM, Peter Reid via use-livecode 
>  wrote:
> 
> Hi Marc, Paul, Phil, Rick and Richmond
> 
> Thanks for your various thoughts.
> 
> To put a bit more flesh on this, here's what I'm developing and why...
> 
> In the first instance I'm doing this development for a friend who's 
> grandmother suffers from aphasia (saying completely the wrong word).  The 
> idea is that her family can put together sets of words where each word is 
> spoken by the app whilst displaying a relevant picture and optionally a short 
> video clip illustrating the correct mouth shape when saying the word.  The 
> app displays the word in a very large font with a picture, then the app says 
> the word (with the option to see a mouth shape video clip).  The user 
> responds by trying to say the same word and (the thing I can't do yet!) the 
> app gives the user a percentage score that represents how closely the user 
> matched the sample word. If the user's score is above a variable threshold, 
> the user sees a smiley face, otherwise a sad face!
> 
> I tried contacting Mark Smith as suggested by Paul but his email address 
> m...@maseurope.net no longer works.
> 
> So far I have everything working apart from the comparison of 2 WAV files, in 
> particular the following is working:
> 
> - the app checks for the presence of a micro SD card as the source of a 
> collection of word packs
> - a word pack consists of a collection of words in sound (WAV) and picture 
> (JPG) form, optionally with supporting video clips (MP4)
> - the app lets the user select a word pack at start up and loads the pack 
> into RW file space
> - the user taps a large arrow icon to go forwards/backwards through the 
> chosen list of words
> - for each word, the word is displayed in a large font at the top of the 
> landscape screen, with its associated picture occupying the lower half of the 
> screen
> - as the word is displayed, it is spoken
> - the user can tap a microphone icon and record their attempt at the word
> - currently I simulate the comparison of the 2 WAV files
> - the app gives a percentage score and displays a smiley or sad face 
> accordingly
> 
> To be honest, my main aim is to help a friend.  At this stage I'm not looking 
> beyond this, so licensing, etc. is not on the horizon at the moment.
> 
> Thanks again
> 
> Peter
> --
> Peter Reid
> Loughborough, UK
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Audio Processing in LiveCode

2017-12-28 Thread Peter Reid via use-livecode
Thanks Phil, I'm sorry to hear of Mark's demise.

I've grabbed Mark's libraries and will take a look at them for use in general, 
with acknowledgements as appropriate.

Peter
--
Peter Reid
Loughborough, UK

> Date: Wed, 27 Dec 2017 20:10:08 -0800
> From: Phil Davis 
> To: Peter Reid via use-livecode 
> Subject: Re: use-livecode Digest, Vol 171, Issue 44
> 
> This Mark Smith was a list member who passed away in 2012. There is/was 
> another Mark Smith on this list after that.
> 
> Mark created several fine code libraries. We see inquiries here about 
> his stuff every now and then, so I just added a page to my web site 
> where you can download them:
> 
>http://www.pdslabs.net/the-mark-smith-collection/
> 
> If you have a lib of his that isn't listed on this page, please feel 
> free to forward it to me and I'll add it.
> 
> FWIW, my set includes his 'AudioWaveformMin1.0.rev.zip' file.
> 
> Phil Davis
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: use-livecode Digest, Vol 171, Issue 44

2017-12-28 Thread Bob Sneidar via use-livecode
Thanks Phil that was good of you. 

Bob S


> On Dec 27, 2017, at 20:10 , Phil Davis via use-livecode 
>  wrote:
> 
> Mark created several fine code libraries. We see inquiries here about his 
> stuff every now and then, so I just added a page to my web site where you can 
> download them:


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Appendicitis

2017-12-28 Thread Richmond Mathewson via use-livecode

The only thing that is odd is RunRev 8-)

Richmond.

On 28/12/2017 5:24 pm, Mark Waddingham via use-livecode wrote:

On 2017-12-28 16:21, Richmond Mathewson via use-livecode wrote:
Here I am trying to install LiveCode 9.0.0 dp-11 for Windows with 
Wine on

Mac OS 10.7.5 because:

1. I'm slightly daft.

2. The Mac version won't install under 10.7.5.

and I notice that the installer "wants" to install here:

C:/Program Files/RunRev/LiveCode Community 9.0 (dp 11)

Odd.


Why is it odd?

You are running the Windows installer under a Windows emulation 
environment, so from its point of view it is running on Windows and so 
would choose the default path which is currently as it appears above :)


That being said, we should probably update RunRev to LiveCode in that 
path ;)


Warmest Regards,

Mark.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Appendicitis

2017-12-28 Thread Mark Waddingham via use-livecode

On 2017-12-28 16:21, Richmond Mathewson via use-livecode wrote:
Here I am trying to install LiveCode 9.0.0 dp-11 for Windows with Wine 
on

Mac OS 10.7.5 because:

1. I'm slightly daft.

2. The Mac version won't install under 10.7.5.

and I notice that the installer "wants" to install here:

C:/Program Files/RunRev/LiveCode Community 9.0 (dp 11)

Odd.


Why is it odd?

You are running the Windows installer under a Windows emulation 
environment, so from its point of view it is running on Windows and so 
would choose the default path which is currently as it appears above :)


That being said, we should probably update RunRev to LiveCode in that 
path ;)


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Appendicitis

2017-12-28 Thread Richmond Mathewson via use-livecode

Here I am trying to install LiveCode 9.0.0 dp-11 for Windows with Wine on
Mac OS 10.7.5 because:

1. I'm slightly daft.

2. The Mac version won't install under 10.7.5.

and I notice that the installer "wants" to install here:

C:/Program Files/RunRev/LiveCode Community 9.0 (dp 11)

Odd.

Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: C-Strings and LCB

2017-12-28 Thread Richmond Mathewson via use-livecode

Thank you very much.

http://forums.livecode.com/viewtopic.php?f=8=30352

Richmond.

On 28/12/2017 3:37 pm, Mark Waddingham via use-livecode wrote:

In LCB a string is a string and a number is a number - there's an operator 
which tests whether a string 'looks like' a number and can optionally convert 
it.

Strings in LCB are the same as in LCS - counted and not nul terminated (so they 
can contain the NUL 'char' - i.e. Code 0). It does have 'bridging' string types 
which are nul terminated - they are there to support calling a foreign 
functions which use such strings.

Warmest Regards,

Mark.

Sent from my iPhone


On 28 Dec 2017, at 11:36, Richmond Mathewson via use-livecode 
 wrote:

Return-path: 
Envelope-to: m...@livecode.com
Delivery-date: Thu, 28 Dec 2017 12:37:11 +0100
Received: from localhost ([127.0.0.1]:34664 helo=meg.on-rev.com)
by meg.on-rev.com with esmtp (Exim 4.85)
(envelope-from )
id 1eUWUe-mS-CH; Thu, 28 Dec 2017 12:37:00 +0100
Received: from mail-wm0-f48.google.com ([74.125.82.48]:44070)
by meg.on-rev.com with esmtps (TLSv1.2:AES128-GCM-SHA256:128)
(Exim 4.85) (envelope-from )
id 1eUWUc-m8-J1
for use-livecode@lists.runrev.com; Thu, 28 Dec 2017 12:36:58 +0100
Received: by mail-wm0-f48.google.com with SMTP id t8so43447200wmc.3
for ;
Thu, 28 Dec 2017 03:36:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=to:from:subject:message-id:date:user-agent:mime-version;
bh=eSbYftgjjTzxXn5Il7a1Uigxxm0cdIfAFIsFsFVYSjI=;
b=OIEL4yoFfUOHFAIa8rf5Mvdn/MGFkGw26BTNjW360KKY/+tjXUQfx4SJ0gH0Orvfty
esQP7omZ6F0SwVFxQB3C9szyaRL+qojSdqM4jKMxWsJ7lpbgqFTDeLqSnP+oqyx2o2WF
Dqz/Ox5wTA34MTid7XiqnvcUEjc5XIjTcA2VX8LPZOGRYXbK0kbmVRzRBgOPuL1Yoe8f
eW3LA84QOti8Oo2tq95b3MkXTzFqTG7nHLpgBHLSbdqhWyNcNVeAvfWrEbyJMXxMIoPg
6BeUcyx6wfL+yil0JubbXG+P61t1PaRMo3BOVUjVN0rdcgpijVEyluazOwifj9Uj+kdH
VSww==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:to:from:subject:message-id:date:user-agent
:mime-version;
bh=eSbYftgjjTzxXn5Il7a1Uigxxm0cdIfAFIsFsFVYSjI=;
b=LnAZ1TMoOT/k1AnQueTQWxrg8lypBXlObv9cGlSE0csvVIBPsI2MNxsDCDbMSrGA9U
uLf+SU37tqHYnkf2Sq+axtVWfEWsaaSjh31rz3an3//QtoLTh51NeypvMeKXAGzBk9gi
aUpF5WwZTBy1sGIk/QKG4ANwe6FJbVVP53RA+8XU41KqxuOiRpWrDvHH5yq6BwuRh2ZI
IOU0fPiKN+45N5pmaSlKNZE19KqeCZNrVM1o0nZVun8ufROY3Fxvri4hCCUlT65KGntz
o5PREp8yNAgRiN1V5JBrudSGeDsVm/ijVV1Ygsi4CnhVYuKSyi8lKiGqDV6C/iAd3oNY
EVww==
X-Gm-Message-State: AKGB3mKhvTSnJXeEYKqHGe+f6DB1WmmZKLxwB3HhZkXra0kS6d7ak8XS
vLgGTo3qz25XBkgwxlHSURZIC4T8
X-Google-Smtp-Source: 
ACJfBothivSy3G1shInQ9+2IJc7/poqx6XAxD0viU3aWwTA4MnEnZ5QyVjTqzVuRCOn8RKX4gIJqcQ==
X-Received: by 10.80.139.203 with SMTP id n11mr39211890edn.200.151446101;   
 Thu, 28 Dec 2017 03:36:57 -0800 (PST)
Received: from Richmond-Mathewsons-iMac.local ([5.53.208.66])
by smtp.gmail.com with ESMTPSA id
y1sm30194472edl.39.2017.12.28.03.36.56
for 
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Thu, 28 Dec 2017 03:36:57 -0800 (PST)
To: How to use LiveCode 
Subject: C-Strings and LCB
Message-ID: <57917b53-15dc-7f96-cb39-fd92faa47...@gmail.com>
Date: Thu, 28 Dec 2017 13:36:55 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:45.0)
Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
X-Content-Filtered-By: Mailman/MimeDel 2.1.20
X-BeenThere: use-livecode@lists.runrev.com
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: How to use LiveCode 
List-Unsubscribe: ,

List-Archive: 
List-Post: 
List-Help: 
List-Subscribe: ,

From: Richmond Mathewson via use-livecode 
Reply-To: How to use LiveCode 
Cc: Richmond Mathewson 
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: use-livecode-boun...@lists.runrev.com
Sender: "use-livecode" 

I'm not sure why I'm asking these questions because I don't think I really 
understand them . . .

1. Does LCB differentiate between numeric variable and string variables (those 
that contain text)?

2. If so, are LCB string variables null-terminated?

Richmond.
___
use-livecode mailing 

Re: use-livecode Digest, Vol 171, Issue 44

2017-12-28 Thread Mark Waddingham via use-livecode

Hi Peter,

On 2017-12-28 01:26, Peter Reid via use-livecode wrote:

So far I have everything working apart from the comparison of 2 WAV
files, in particular the following is working:


I can't really speak to the domain of application (not knowing very 
much, if anything about it). However, in terms of comparisons of audio 
clips in the way you suggest, then software like Rosetta Stone do this 
'kind of thing: Rosetta Stone has a section where you have to speak 
words and snippets in the language you are attempting to learn and it 
then determines 'how close' you are to how it should be said. How 
accurate this is I'm not entirely sure - but I think it sounds like 
exactly the same problem you are trying to solve.


Now, I'm not sure how Rosetta Stone actually does the analysis and 
comparisons - there obviously has to be some sort of normalization 
process, accounting for speed, pitch, volume etc.; and presumably to 
make it in any way 'useful' the individual syllables / vocalisations 
would have to be split up and then compared individually (trying to find 
out how many pieces of the spoken audio match up to the reference audio) 
- the latter would be what a percentage score could be based on.


I wonder if one of the online speech-to-text services could be used as 
the engine here. Both google and microsoft offer a cloud based service - 
you send it a clip of audio and it sends back a list of possible 
recognitions with confidence percentage. You could potentially use this:


  1) You submit the captured audio for the word/phrase which is being 
tested for, from this you will get a translation or list of potential 
translations all with a confidence percentage.


  2) For each potential translation returned, use the Levenshtein 
distance (https://en.wikipedia.org/wiki/Levenshtein_distance) algorithm 
to work out which is the 'most similar' to the reference word/phrase


  3) The percentage score for the test is then the confidence percentage 
of the closest match measured using the distance calculated in 2 
modulated using a suitable function (which would probably require some 
empirical testing) of the computed distance.


It sounds like an interesting small app - whilst there appears to be 
some dubiety (in the responses on the list) about potential 
effectiveness, seeing if it can help can't hurt, can it?


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: C-Strings and LCB

2017-12-28 Thread Mark Waddingham via use-livecode
In LCB a string is a string and a number is a number - there's an operator 
which tests whether a string 'looks like' a number and can optionally convert 
it.

Strings in LCB are the same as in LCS - counted and not nul terminated (so they 
can contain the NUL 'char' - i.e. Code 0). It does have 'bridging' string types 
which are nul terminated - they are there to support calling a foreign 
functions which use such strings.

Warmest Regards,

Mark.

Sent from my iPhone

> On 28 Dec 2017, at 11:36, Richmond Mathewson via use-livecode 
>  wrote:
> 
> Return-path: 
> Envelope-to: m...@livecode.com
> Delivery-date: Thu, 28 Dec 2017 12:37:11 +0100
> Received: from localhost ([127.0.0.1]:34664 helo=meg.on-rev.com)
>by meg.on-rev.com with esmtp (Exim 4.85)
>(envelope-from )
>id 1eUWUe-mS-CH; Thu, 28 Dec 2017 12:37:00 +0100
> Received: from mail-wm0-f48.google.com ([74.125.82.48]:44070)
>by meg.on-rev.com with esmtps (TLSv1.2:AES128-GCM-SHA256:128)
>(Exim 4.85) (envelope-from )
>id 1eUWUc-m8-J1
>for use-livecode@lists.runrev.com; Thu, 28 Dec 2017 12:36:58 +0100
> Received: by mail-wm0-f48.google.com with SMTP id t8so43447200wmc.3
>for ;
>Thu, 28 Dec 2017 03:36:58 -0800 (PST)
> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
>h=to:from:subject:message-id:date:user-agent:mime-version;
>bh=eSbYftgjjTzxXn5Il7a1Uigxxm0cdIfAFIsFsFVYSjI=;
>b=OIEL4yoFfUOHFAIa8rf5Mvdn/MGFkGw26BTNjW360KKY/+tjXUQfx4SJ0gH0Orvfty
>esQP7omZ6F0SwVFxQB3C9szyaRL+qojSdqM4jKMxWsJ7lpbgqFTDeLqSnP+oqyx2o2WF
>Dqz/Ox5wTA34MTid7XiqnvcUEjc5XIjTcA2VX8LPZOGRYXbK0kbmVRzRBgOPuL1Yoe8f
>eW3LA84QOti8Oo2tq95b3MkXTzFqTG7nHLpgBHLSbdqhWyNcNVeAvfWrEbyJMXxMIoPg
>6BeUcyx6wfL+yil0JubbXG+P61t1PaRMo3BOVUjVN0rdcgpijVEyluazOwifj9Uj+kdH
>VSww==
> X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
>d=1e100.net; s=20161025;
>h=x-gm-message-state:to:from:subject:message-id:date:user-agent
>:mime-version;
>bh=eSbYftgjjTzxXn5Il7a1Uigxxm0cdIfAFIsFsFVYSjI=;
>b=LnAZ1TMoOT/k1AnQueTQWxrg8lypBXlObv9cGlSE0csvVIBPsI2MNxsDCDbMSrGA9U
>uLf+SU37tqHYnkf2Sq+axtVWfEWsaaSjh31rz3an3//QtoLTh51NeypvMeKXAGzBk9gi
>aUpF5WwZTBy1sGIk/QKG4ANwe6FJbVVP53RA+8XU41KqxuOiRpWrDvHH5yq6BwuRh2ZI
>IOU0fPiKN+45N5pmaSlKNZE19KqeCZNrVM1o0nZVun8ufROY3Fxvri4hCCUlT65KGntz
>o5PREp8yNAgRiN1V5JBrudSGeDsVm/ijVV1Ygsi4CnhVYuKSyi8lKiGqDV6C/iAd3oNY
>EVww==
> X-Gm-Message-State: AKGB3mKhvTSnJXeEYKqHGe+f6DB1WmmZKLxwB3HhZkXra0kS6d7ak8XS
>vLgGTo3qz25XBkgwxlHSURZIC4T8
> X-Google-Smtp-Source: 
> ACJfBothivSy3G1shInQ9+2IJc7/poqx6XAxD0viU3aWwTA4MnEnZ5QyVjTqzVuRCOn8RKX4gIJqcQ==
> X-Received: by 10.80.139.203 with SMTP id n11mr39211890edn.200.151446101; 
>Thu, 28 Dec 2017 03:36:57 -0800 (PST)
> Received: from Richmond-Mathewsons-iMac.local ([5.53.208.66])
>by smtp.gmail.com with ESMTPSA id
>y1sm30194472edl.39.2017.12.28.03.36.56
>for 
>(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
>Thu, 28 Dec 2017 03:36:57 -0800 (PST)
> To: How to use LiveCode 
> Subject: C-Strings and LCB
> Message-ID: <57917b53-15dc-7f96-cb39-fd92faa47...@gmail.com>
> Date: Thu, 28 Dec 2017 13:36:55 +0200
> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:45.0)
>Gecko/20100101 Thunderbird/45.8.0
> MIME-Version: 1.0
> X-Content-Filtered-By: Mailman/MimeDel 2.1.20
> X-BeenThere: use-livecode@lists.runrev.com
> X-Mailman-Version: 2.1.20
> Precedence: list
> List-Id: How to use LiveCode 
> List-Unsubscribe: ,
>
> List-Archive: 
> List-Post: 
> List-Help: 
> List-Subscribe: ,
>
> From: Richmond Mathewson via use-livecode 
> Reply-To: How to use LiveCode 
> Cc: Richmond Mathewson 
> Content-Transfer-Encoding: 7bit
> Content-Type: text/plain; charset="us-ascii"; Format="flowed"
> Errors-To: use-livecode-boun...@lists.runrev.com
> Sender: "use-livecode" 
> 
> I'm not sure why I'm asking these questions because I don't think I really 
> understand them . . .
> 
> 1. Does LCB differentiate between numeric variable and string variables 
> (those that contain text)?
> 
> 2. If so, are LCB string variables null-terminated?
> 
> Richmond.
> ___
> use-livecode mailing list
> 

C-Strings and LCB

2017-12-28 Thread Richmond Mathewson via use-livecode
I'm not sure why I'm asking these questions because I don't think I 
really understand them . . .


1. Does LCB differentiate between numeric variable and string variables 
(those that contain text)?


2. If so, are LCB string variables null-terminated?

Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: "Aphasia" (was Re: use-livecode Digest, Vol 171, Issue 44)

2017-12-28 Thread Richmond Mathewson via use-livecode
Indeed, it is more complicated as we all, to one extent or another, 
suffer from a "pathology of semantics or word finding"
as, this morning, I couldn't for the life of me remember what part of 
the brain was supposedly connected with aphasia

and had to go and look the thing up.

I do not adhere to a Brain-Mind Identity theory, so tend to think that 
any sort of mental problem involves more than

just the physical state of the "cauliflower" inside our heads.

I don't know about neuropsychologists, but I would suggest going to meet 
"Granny" and having a chat with her to get
a feel for what might be the symptoms (after all, who really cares WHY 
and whether its the brain, the mind (ouch - J.J.C.Smart),

or something else) and how they can, possibly, be alleviated.

We've dragged my Mother-in-law to various "quacks" who have offered 
various accounts of what is going on, with varying
degrees of plausability: she has played around with various course of 
tablets to little or no effect beyond making various
drug companies richer. Probably the answer is something like "She's not 
a teenager any more."


I have just had a most entertaining chat with her about why we have 2 
cleaning ladies who look identical, but one is good
and one is evil. There really didn't seem any point in explaining that 
our cleaning lady is human, and like all humans, has
bad moods as well as good moods, and is not the best person in the world 
at covering her bad moods up: mainly because
I've explained that twice before and it just hasn't "gelled". Doesn't 
stop my Mother-in-law from making very sharp, pertinent
remarks in other subject areas. What is rather "fun" is how she keeps 
injecting Albanian words into conversations nowadays,
not because she speaks Albanian but because her grandparents on one side 
used to speak it at home: really serves to confuse
us, and I sometimes have a sneaking suspicion my ma-in-law is actually 
pulling our legs.


Richmond.


On 28/12/17 11:04 am, David Glasgow via use-livecode wrote:

Unfortunately, it is all rather more complicated than either Richmond or Peter 
suggest. There are many more contributing areas than Brocas, and what Peter 
describes doesn't appear to be aphasia at all, but rather a pathology of 
semantics or word finding.

It's not possible to be more specific without more information, and my advice 
would be to speak with a neuropsychologist before coding. You could spend a lot 
of time comparing wavs and coming up with a solution to the wrong problem.

Best wishes

David Glasgow
Sent from my iBrain via iFingers & iPad


LinkedIn


On 28 Dec 2017, at 08:26, Richmond Mathewson via use-livecode 
 wrote:

If we start to unpack your post we can come to a slightly simpler conclusion 
than what you set out as your goal initially.

1. Is your main idea to have a program where the device can "do the talking" 
for the patient?

2. As the "owner" of a 94 year old Mother-in-law who suffers from some sort of 
selective dementia I realise that
pointing out to her that her hallucinations are hallucinations (rather than 
reality) is both an uphill struggle
and causes her a lot of distress: oddly enough she's far happier inside the 
comfort zone of her hallucinations.

If "Granny" suffers from Aphasia she has permanent damage in the Broca's Area 
of her brain, normally due to
a stroke: this cannot be sorted out, unfortunately.

She could, also, suffer from a type of dementia that has similar symptoms to 
aphasia.

Doesn't really matter which; the end result is just as bad and bl**dy awful for 
all concerned.

If you are going for #1 then there is absolutely no need for any 
speech-recognition stuff or comparison
between recorded sounds and those on the device.

Richmond.


On 28/12/17 2:26 am, Peter Reid via use-livecode wrote:
Hi Marc, Paul, Phil, Rick and Richmond

Thanks for your various thoughts.

To put a bit more flesh on this, here's what I'm developing and why...

In the first instance I'm doing this development for a friend who's grandmother 
suffers from aphasia (saying completely the wrong word).  The idea is that her 
family can put together sets of words where each word is spoken by the app 
whilst displaying a relevant picture and optionally a short video clip 
illustrating the correct mouth shape when saying the word.  The app displays 
the word in a very large font with a picture, then the app says the word (with 
the option to see a mouth shape video clip).  The user responds by trying to 
say the same word and (the thing I can't do yet!) the app gives the user a 
percentage score that represents how closely the user matched the sample word. 
If the user's score is above a variable threshold, the user sees a smiley face, 
otherwise a sad face!

I tried contacting Mark Smith as suggested by Paul but his email address 
m...@maseurope.net no longer works.

So far I have everything working apart from the comparison of 2 WAV files, in 
particular the 

Re: Optimizing for small Android devices

2017-12-28 Thread AndyP via use-livecode
Also are you making sure the destroyStack to true. 
This should be automatically done but there is no harm in forcing it.

set the destroyStack of this stack to true

It might also be useful to monitor these events in the browser widget
and set a timer between the browserDocumentLoadBegin and
browserDocumentLoadComplete to see if there is a bottle neck?

browserDocumentLoadBegin pUrl
browserDocumentLoadComplete pUrl
browserDocumentLoadFailed pUrl, pError



-
Andy Piddock 


My software never has bugs. It just develops random features. 

TinyIDE  a Free alternative minimalist IDE Plugin for LiveCode 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Optimizing for small Android devices

2017-12-28 Thread AndyP via use-livecode
I don't think its such an issue targeting the latest Android versions as
Google's new developer rules as August 2018 will require that apps will be
targeted at the last latest build.

http://developers.googleblog.com/2017/12/improving-app-security-and-performance.html

  





-
Andy Piddock 


My software never has bugs. It just develops random features. 

TinyIDE  a Free alternative minimalist IDE Plugin for LiveCode 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


"Aphasia" (was Re: use-livecode Digest, Vol 171, Issue 44)

2017-12-28 Thread David Glasgow via use-livecode
Unfortunately, it is all rather more complicated than either Richmond or Peter 
suggest. There are many more contributing areas than Brocas, and what Peter 
describes doesn't appear to be aphasia at all, but rather a pathology of 
semantics or word finding. 

It's not possible to be more specific without more information, and my advice 
would be to speak with a neuropsychologist before coding. You could spend a lot 
of time comparing wavs and coming up with a solution to the wrong problem. 

Best wishes 

David Glasgow
Sent from my iBrain via iFingers & iPad


LinkedIn

> On 28 Dec 2017, at 08:26, Richmond Mathewson via use-livecode 
>  wrote:
> 
> If we start to unpack your post we can come to a slightly simpler conclusion 
> than what you set out as your goal initially.
> 
> 1. Is your main idea to have a program where the device can "do the talking" 
> for the patient?
> 
> 2. As the "owner" of a 94 year old Mother-in-law who suffers from some sort 
> of selective dementia I realise that
> pointing out to her that her hallucinations are hallucinations (rather than 
> reality) is both an uphill struggle
> and causes her a lot of distress: oddly enough she's far happier inside the 
> comfort zone of her hallucinations.
> 
> If "Granny" suffers from Aphasia she has permanent damage in the Broca's Area 
> of her brain, normally due to
> a stroke: this cannot be sorted out, unfortunately.
> 
> She could, also, suffer from a type of dementia that has similar symptoms to 
> aphasia.
> 
> Doesn't really matter which; the end result is just as bad and bl**dy awful 
> for all concerned.
> 
> If you are going for #1 then there is absolutely no need for any 
> speech-recognition stuff or comparison
> between recorded sounds and those on the device.
> 
> Richmond.
> 
>> On 28/12/17 2:26 am, Peter Reid via use-livecode wrote:
>> Hi Marc, Paul, Phil, Rick and Richmond
>> 
>> Thanks for your various thoughts.
>> 
>> To put a bit more flesh on this, here's what I'm developing and why...
>> 
>> In the first instance I'm doing this development for a friend who's 
>> grandmother suffers from aphasia (saying completely the wrong word).  The 
>> idea is that her family can put together sets of words where each word is 
>> spoken by the app whilst displaying a relevant picture and optionally a 
>> short video clip illustrating the correct mouth shape when saying the word.  
>> The app displays the word in a very large font with a picture, then the app 
>> says the word (with the option to see a mouth shape video clip).  The user 
>> responds by trying to say the same word and (the thing I can't do yet!) the 
>> app gives the user a percentage score that represents how closely the user 
>> matched the sample word. If the user's score is above a variable threshold, 
>> the user sees a smiley face, otherwise a sad face!
>> 
>> I tried contacting Mark Smith as suggested by Paul but his email address 
>> m...@maseurope.net no longer works.
>> 
>> So far I have everything working apart from the comparison of 2 WAV files, 
>> in particular the following is working:
>> 
>> - the app checks for the presence of a micro SD card as the source of a 
>> collection of word packs
>> - a word pack consists of a collection of words in sound (WAV) and picture 
>> (JPG) form, optionally with supporting video clips (MP4)
>> - the app lets the user select a word pack at start up and loads the pack 
>> into RW file space
>> - the user taps a large arrow icon to go forwards/backwards through the 
>> chosen list of words
>> - for each word, the word is displayed in a large font at the top of the 
>> landscape screen, with its associated picture occupying the lower half of 
>> the screen
>> - as the word is displayed, it is spoken
>> - the user can tap a microphone icon and record their attempt at the word
>> - currently I simulate the comparison of the 2 WAV files
>> - the app gives a percentage score and displays a smiley or sad face 
>> accordingly
>> 
>> To be honest, my main aim is to help a friend.  At this stage I'm not 
>> looking beyond this, so licensing, etc. is not on the horizon at the moment.
>> 
>> Thanks again
>> 
>> Peter
>> --
>> Peter Reid
>> Loughborough, UK
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:

Re: preloading an mages dimensions

2017-12-28 Thread Phil Davis via use-livecode

What platform?

On a Mac, you can use sips. It's included with the OS. Example - typed 
on the command line:


   sips -g pixelHeight -g pixelWidth /Users/pdslabs/Desktop/IMG_4411.jpg

The output:

   /Users/pdslabs/Desktop/IMG_4411.jpg
  pixelHeight: 750
  pixelWidth: 1000

Phil Davis


On 12/27/17 9:02 PM, Nicolas Cueto via use-livecode wrote:

Before setting the filename of an image object, how do I get the original
dimensions of an image (jpg)?

Thank you.

--
Nicolas Cueto
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



--
Phil Davis

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: use-livecode Digest, Vol 171, Issue 44

2017-12-28 Thread Richmond Mathewson via use-livecode
If we start to unpack your post we can come to a slightly simpler 
conclusion than what you set out as your goal initially.


1. Is your main idea to have a program where the device can "do the 
talking" for the patient?


2. As the "owner" of a 94 year old Mother-in-law who suffers from some 
sort of selective dementia I realise that
pointing out to her that her hallucinations are hallucinations (rather 
than reality) is both an uphill struggle
and causes her a lot of distress: oddly enough she's far happier inside 
the comfort zone of her hallucinations.


If "Granny" suffers from Aphasia she has permanent damage in the Broca's 
Area of her brain, normally due to

a stroke: this cannot be sorted out, unfortunately.

She could, also, suffer from a type of dementia that has similar 
symptoms to aphasia.


Doesn't really matter which; the end result is just as bad and bl**dy 
awful for all concerned.


If you are going for #1 then there is absolutely no need for any 
speech-recognition stuff or comparison

between recorded sounds and those on the device.

Richmond.

On 28/12/17 2:26 am, Peter Reid via use-livecode wrote:

Hi Marc, Paul, Phil, Rick and Richmond

Thanks for your various thoughts.

To put a bit more flesh on this, here's what I'm developing and why...

In the first instance I'm doing this development for a friend who's grandmother 
suffers from aphasia (saying completely the wrong word).  The idea is that her 
family can put together sets of words where each word is spoken by the app 
whilst displaying a relevant picture and optionally a short video clip 
illustrating the correct mouth shape when saying the word.  The app displays 
the word in a very large font with a picture, then the app says the word (with 
the option to see a mouth shape video clip).  The user responds by trying to 
say the same word and (the thing I can't do yet!) the app gives the user a 
percentage score that represents how closely the user matched the sample word. 
If the user's score is above a variable threshold, the user sees a smiley face, 
otherwise a sad face!

I tried contacting Mark Smith as suggested by Paul but his email address 
m...@maseurope.net no longer works.

So far I have everything working apart from the comparison of 2 WAV files, in 
particular the following is working:

- the app checks for the presence of a micro SD card as the source of a 
collection of word packs
- a word pack consists of a collection of words in sound (WAV) and picture 
(JPG) form, optionally with supporting video clips (MP4)
- the app lets the user select a word pack at start up and loads the pack into 
RW file space
- the user taps a large arrow icon to go forwards/backwards through the chosen 
list of words
- for each word, the word is displayed in a large font at the top of the 
landscape screen, with its associated picture occupying the lower half of the 
screen
- as the word is displayed, it is spoken
- the user can tap a microphone icon and record their attempt at the word
- currently I simulate the comparison of the 2 WAV files
- the app gives a percentage score and displays a smiley or sad face accordingly

To be honest, my main aim is to help a friend.  At this stage I'm not looking 
beyond this, so licensing, etc. is not on the horizon at the moment.

Thanks again

Peter
--
Peter Reid
Loughborough, UK


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: preloading an mages dimensions

2017-12-28 Thread Peter Bogdanoff via use-livecode
Hi Nick,
Look in the dictionary for
formattedWidth formattedHeight
Peter Bogdanoff 

> On Dec 27, 2017, at 9:02 PM, Nicolas Cueto via use-livecode 
>  wrote:
> 
> Before setting the filename of an image object, how do I get the original
> dimensions of an image (jpg)?
> 
> Thank you.
> 
> --
> Nicolas Cueto
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode