Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Mark Waddingham via use-livecode
On 2018-08-31 19:47, Tore Nilsen via use-livecode wrote: This information is useful if you want to implement changes to the styles of the selected text, where textStyles report mixed. In a selection with mixed styles, setting the textStyle has to be done on a word by word basis (or char by char

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread hh via use-livecode
You could try: on mouseUp put the selectedChunk into sc put word 2 of sc into strt put word 4 of sc into stp put fld word 7 of sc into txt put selectedWords(strt,stp,txt) into fld "out" end mouseUp function selectedWords strt,stp,txt put the num of words in char 1 to strt of txt into

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Tore Nilsen via use-livecode
Microsoft Word seems to behave the way you suggest, in the sense that if any given text style is present among the words in the selection then it is removed. Pages behaves differently. If a given text style is true for some of the words in the selection, Pages will initially keep this style for

Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Tore Nilsen via use-livecode
I am struggling with a problem related to the selection of parts of a text in a field. I would like to know which words are selected, that is, I would like to know the range of words selected. None of the functions available in LiveCode will do this. If I use selectedChunkI will get the range

Re: On Performance of Array Access

2018-08-31 Thread Curry Kenworthy via use-livecode
Mark W: > 6.7.11: 1117ms > 9.0.1: 4020ms > PR6671: 1017ms Now THAT'S the kind of news that makes a Friday special! Honestly I was quite disappointed lately in 9's array speed, but this gives me a lot of hope, and it also helps in the practical details of code planning for projects. Thank

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Tore Nilsen via use-livecode
I got a bit confused there. Pages behaves as you say, Microsoft Word would turn off bold on the initial push of the button, then adding bold to the styles the next time. This is why I thought I needed to find the style of each word in a group of words when the the textStyles is mixed. And I

Re: Deleting a char inside a textField via code

2018-08-31 Thread Richmond Mathewson via use-livecode
Thanks On 31/8/2018 9:30 pm, Paul Dupuis via use-livecode wrote: If you want to delete the last characters by script, why not something like: delete last char of fld X This works, of course, if it is the last char in the field. Or a more complex version might be put the selectedChunk into

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Tore Nilsen via use-livecode
Beats "looping around» all the text any day! I think I can use this with my students in a couple of months time. For now, I think I have to stick to the more basic tasks of just altering fonts, text size, text color and text styles for single word selections. Best Regards Tore Nilsen >

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Tore Nilsen via use-livecode
We certainly are. I can already think of several sarcastic phrases to use, should the situation call for it! :) And since my students all know me well enough from earlier years, they will expect as much. Tore > 31. aug. 2018 kl. 22:13 skrev Mark Waddingham via use-livecode > : > > P.S.

Re: Android Audio Recorder Woes

2018-08-31 Thread Dan Friedman via use-livecode
Panos. Thank you for the reply! I am using LC 9.0.1 (rc 2). Thank you! Dan Friedman CEO, ClearVision Technologies, LLC Voice: 909/484-2052 http://www.clearvisiontech.com From: panagiotis merakos Date: Friday, August 31, 2018 at 1:27 PM To: How to use LiveCode Cc: Dan Friedman Subject:

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Mark Waddingham via use-livecode
On 2018-08-31 20:57, Tore Nilsen via use-livecode wrote: The array form may well be what I need. I do think I still will have to wait some time before I introduce it to my students. Perhaps - certainly 'textFont' and 'textSize' have less syntactic baggage. However, the actual underlying

Re: Android Audio Recorder Woes

2018-08-31 Thread panagiotis merakos via use-livecode
Hello Dan, Ok, so since 9.0.1 uses the new android permissions model, you might have to ask for permission to record audio first. See the command androidRequestPermission in the dictionary. Best, Panos On Fri, Aug 31, 2018, 23:30 Dan Friedman wrote: > Panos. > > > > Thank you for the reply!

Re: On Performance of Array Access

2018-08-31 Thread jbv via use-livecode
Mark, Thank you so much for following up on this thread. Once something "suitable for including in a 9.0.x maintenance release" is available, could you please include it to LC server, and especially the version of LC9 server installed on on-rev sage server ? I'm in the process of improving for a

Re: Deleting a char inside a textField via code

2018-08-31 Thread Paul Dupuis via use-livecode
If you want to delete the last characters by script, why not something like: delete last char of fld X Or a more complex version might be put the selectedChunk into tWhere put word 2 of tWhere into tStart -- staring char position of the cursor put word 4 of tWhere into tEnd -- ending char

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Mark Waddingham via use-livecode
On 2018-08-31 20:33, Tore Nilsen via use-livecode wrote: Microsoft Word seems to behave the way you suggest, in the sense that if any given text style is present among the words in the selection then it is removed. Pages behaves differently. If a given text style is true for some of the words in

Re: Android Audio Recorder Woes

2018-08-31 Thread panagiotis merakos via use-livecode
Hello Dan, Which LC version are you using? Best, Panos On Fri, Aug 31, 2018, 18:51 Dan Friedman via use-livecode < use-livecode@lists.runrev.com> wrote: > Hello! I am trying to implement the Android Audio Recorder options in my > project, but it’s not working. I have checked the “Android

Re: On Performance of Array Access

2018-08-31 Thread Mark Talluto via use-livecode
I have only one complaint…You should have told me to put a diaper on before reading this. Aside from my inability to control myself with all this wonderful news…Thank you! Best regards, Mark Talluto livecloud.io nursenotes.net canelasoftware.com

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Tore Nilsen via use-livecode
It worked as advertised, provided I also check for the instance of the given textStyle to be false, this works a charm. The code I need to show to my students is easy enough for them to understand, without the need to actually understand arrays. Thank you! Best regards, Tore > 31. aug. 2018

Re: Mobile Rotation Redux

2018-08-31 Thread J. Landman Gay via use-livecode
On 8/30/18 8:46 PM, Brian Milby via use-livecode wrote: I'll post the stack file if anyone wants to see it. On the one Android device I have available it works correctly. Resizestack handlers fire correctly. So I guess I need to find something with a later OS to test against to see the

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Tore Nilsen via use-livecode
The array form may well be what I need. I do think I still will have to wait some time before I introduce it to my students. Best regards Tore > 31. aug. 2018 kl. 21:39 skrev Mark Waddingham via use-livecode > : > > The key thing here is that using the array form of textStyle treats each >

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Mark Waddingham via use-livecode
On 2018-08-31 20:51, Tore Nilsen via use-livecode wrote: I got a bit confused there. Pages behaves as you say, Microsoft Word would turn off bold on the initial push of the button, then adding bold to the styles the next time. This is why I thought I needed to find the style of each word in a

Re: How to get word offset all instances of a string in a chunk of text?

2018-08-31 Thread Mike Kerner via use-livecode
Since the topic of processes came up a few weeks ago I've been thinking about what it would take to build a process/threading framework. I wonder if a text processing subprocessor, written and copiled in 6 would be worth everyone's time. The main app would hand off the data and the command to

Re: Android Audio Recorder Woes

2018-08-31 Thread Dan Friedman via use-livecode
Panos, Ug! Yes, that was it. I feel especially stupid because I already did it for Location Access. Must be Friday!?! Thank you! -Dan From: panagiotis merakos Date: Friday, August 31, 2018 at 1:34 PM To: Dan Friedman Cc: How to use LiveCode Subject: Re: Android Audio Recorder Woes

Re: What do we know about LC 10?

2018-08-31 Thread Bob Sneidar via use-livecode
It's been talked about. But I'm with that other guy over there who thinks a bit more refinement needs doing before going down the New Feature path. Bob S > On Aug 30, 2018, at 22:26 , Geoff Canyon via use-livecode > wrote: > > Maybe? I haven't explored LCB at all. I'm much more interested

Re: On Performance of Array Access

2018-08-31 Thread Tom Glod via use-livecode
Great work Mark! ...great news! On Fri, Aug 31, 2018 at 5:41 PM Mark Talluto via use-livecode < use-livecode@lists.runrev.com> wrote: > I have only one complaint…You should have told me to put a diaper on > before reading this. Aside from my inability to control myself with all > this wonderful

Trouble with iOS Logos/No Appearing on Home Screen

2018-08-31 Thread Sannyasin Brahmanathaswami via use-livecode
I have tried everything, the logos in the standalone maker are as they are supposed to be, according to SA. And so are my splash screen images. So I went to developer.apple.com And the HIG for app icons (and splash screens) give a different set of sizes. So I downloaded "Icon Set Creator"

Re: fullscreenmode and rect of a substack on mobile device ?

2018-08-31 Thread Sannyasin Brahmanathaswami via use-livecode
@Brian That was interesting an experiment. I reduced all geometry to this *on*openCard *put*mobileRectGet() intotStackRect #mobileRectSet get the screenrect on app init *if* isMobile() *then* *if* theplatformisandroid *then* *

Re: On Performance of Array Access

2018-08-31 Thread Richard Gaskin via use-livecode
jbv wrote: > Once something "suitable for including in a 9.0.x maintenance release" > is available, could you please include it to LC server, and especially > the version of LC9 server installed on on-rev sage server ? Here's a potentially quick CPU and RAM reduction opportunity for LC Server:

Searching for a word when it's more than one word

2018-08-31 Thread Stephen MacLean via use-livecode
Hi All, First, followed Keith Clarke’s thread and got a lot out of it, thank you all. That’s gone into my code snippets! Now I know, the title is not technically true, if it’s 2 words, they are distinct and different. Maybe it’s because I’ve been banging my head against this and some other

Re: How to get word offset all instances of a string in a chunk of text?

2018-08-31 Thread Richard Gaskin via use-livecode
Mike Kerner wrote: > Since the topic of processes came up a few weeks ago I've been > thinking about what it would take to build a process/threading > framework. I wonder if a text processing subprocessor, written > and copiled... I haven't yet come across good use cases for the desktop, but

On Performance of Array Access

2018-08-31 Thread Mark Waddingham via use-livecode
Generally, I don't tend to like to 'jump the gun' on anything related to optimization lest it is not what it seems when running in the real world but... I'm becoming increasingly confident that a recent foray of mine into yet another attempt to improve the speed of array access in LC9 might

am I regexing by mistake?

2018-08-31 Thread David V Glasgow via use-livecode
Hello, folks. I am undertaking keyword searches of chat logs. The keywords are stored as themed lists in fields. One of the things I am interested in is finding lines where one contributor asks another about where they live, shop, go to school etc etc. So, (among other phrases) I filter for

Re: What do we know about LC 10?

2018-08-31 Thread Mark Waddingham via use-livecode
On 2018-08-30 21:42, Mike Kerner via use-livecode wrote: Mark tends to complain about the engine, but they also inherited the engine when they bought it from MetaCard. He has said that it is difficult to work on. Heh - any complaints are more 'frustration' over the effort/time to make

Android text-to-Speech?

2018-08-31 Thread Peter Reid via use-livecode
Does anyone have a way of converting text to speech for Android, i.e. the equivalent to revSpeak for Android (& iOS)? I came across a suggestion that involved Google's translation service but this doesn't seem to work now and I'd prefer it if I didn't have to use a Google service. revSpeak

Re: Deleting a char inside a textField via code

2018-08-31 Thread Richmond Mathewson via use-livecode
To make things more complicated: if one has this: put numToCodePoint(7418) after the selectedText put numToCodePoint(7418) after the selectedText delete the last char of fld "XYZ" it is the target glyph that is deleted and NOT the useless square (ie. it is NOT the last char that is deleted).

Re: Datagrid substack question

2018-08-31 Thread Sannyasin Brahmanathaswami via use-livecode
Aha! that why a data grid on a cloned stack won't work! On 8/28/18 6:14 AM, Knapp Martin via use-livecode wrote: > Thanks zryip - I’ll give that a try! > > Marty > >> On Aug 28, 2018, at 12:31 AM, zryip theSlug via use-livecode >> wrote: >> >> Marty, >> >> You have to change the row template

Re: fullscreenmode and rect of a substack on mobile device ?

2018-08-31 Thread Ludovic THEBAULT via use-livecode
> Le 30 août 2018 à 20:44, Ludovic THEBAULT via use-livecode > a écrit : > > You can download my test stack here : > https://www.dropbox.com/s/iwwm2syiqzqamtg/testsubstack2.livecode?dl=1 > > Note : my script doesn’t work properly : i tested it on an android tablet and > the result is not

Android Audio Recorder Woes

2018-08-31 Thread Dan Friedman via use-livecode
Hello! I am trying to implement the Android Audio Recorder options in my project, but it’s not working. I have checked the “Android Audio Recorder” in the Standalone Application Settings, and the called this: androidRecorderSetRecordFormat "MPEG-4" put (specialFolderPath("documents") & "/

Re: Deleting a char inside a textField via code

2018-08-31 Thread Richmond Mathewson via use-livecode
Digging further . . . I found out that the problem appearas: 1. NOT to be with LiveCode. 2. NOT to be with MacOS. Because using a font other than my one works well. So? What hidden aspects of my Devawriter.ttf font are gumming up the works? Richmond. On 31/8/2018 6:44 pm, Richmond

Deleting a char inside a textField via code

2018-08-31 Thread Richmond Mathewson via use-livecode
Normally, if one were typing into a textField and made a mistake one would hit the back delete key and the mistake would vanish. How does one do this "programmatically"? Here's the (admittedly odd scenario): Unicode behaves inconsistently in various marginal cases with Devanagari script,

Re: On Performance of Array Access

2018-08-31 Thread Richard Gaskin via use-livecode
Impressive. Thank you. -- Richard Gaskin Fourth World Systems Mark Waddingham wrote: Generally, I don't tend to like to 'jump the gun' on anything related to optimization lest it is not what it seems when running in the real world but... I'm becoming increasingly confident that a recent

Re: fullscreenmode and rect of a substack on mobile device ?

2018-08-31 Thread Brian Milby via use-livecode
I still think you are working too hard. I just put this on my Fire. (I had to manually code the FSM). This short handler sets everything properly: on fixBackground local tCardW, tScreenW, tScreenH, tNewH, tRect put the width of this card into tCardW put the effective working

Re: On Performance of Array Access

2018-08-31 Thread Brian Milby via use-livecode
Cool. I subscribed to the PR :) I’ll need to run this on the array stress test I did last week. Thanks, Brian On Aug 31, 2018, 8:58 AM -0500, Mark Waddingham via use-livecode , wrote: > Generally, I don't tend to like to 'jump the gun' on anything related to > optimization lest it is not what

Re: How to get word offset all instances of a string in a chunk of text?

2018-08-31 Thread Keith Clarke via use-livecode
Thanks Alex, HH & Jim for all the help & ideas. Just to close out the thread with a solution for future reference, the code below now extracts from a text source a list of unique words, cleaned up against a noise-word list, with word frequency, word & and a comma-delimited string of the word

Re: am I regexing by mistake?

2018-08-31 Thread Brian Milby via use-livecode
Need to put question mark in brackets “[?]” when using wildcard filters if you want to match a literal question mark. Otherwise it signifies a single character match to anything. Thanks, Brian On Aug 31, 2018, 9:12 AM -0500, David V Glasgow via use-livecode , wrote: > Hello, folks. > > I am

Re: am I regexing by mistake?

2018-08-31 Thread David V Glasgow via use-livecode
Ah! So its just a wildcard! Brilliant. Why didn’t I think of that? I was wrongly barking up the Regex tree, and making things more complicated than needed. Thank you Brian. Cheers David G > On 31 Aug 2018, at 3:35 pm, Brian Milby via use-livecode > wrote: > > Need to put question mark