Re: Search & Replace
Aye, well, I stand corrected. On Wed, 12 Jan 2022, 23:07 Klaus major-k via use-livecode, < use-livecode@lists.runrev.com> wrote: > Hi Richmond, > > > Am 12.01.2022 um 20:11 schrieb Richmond Mathewson via use-livecode < > use-livecode@lists.runrev.com>: > > > > Everyone has misunderstood my Q over here on the use-list. > > Luckily Bernd, over in the Fora understood my Q perfectly, and because of > > his help I was able to do what I wanted. > > in the forum you asked for the "Find and Replace STACK"! > If you had mentioned STACK here in the mailing list, too, well... 8-) > > > Best, Richmond. > > >>>>>> I am trying to locate the Search & Replace dialog inwith the LC IDE > >>>>>> but seem unable to . . . > > Best > > Klaus > > > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > kl...@major-k.de > > > ___ > 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: Search & Replace
Hi Richmond, > Am 12.01.2022 um 20:11 schrieb Richmond Mathewson via use-livecode > : > > Everyone has misunderstood my Q over here on the use-list. > Luckily Bernd, over in the Fora understood my Q perfectly, and because of > his help I was able to do what I wanted. in the forum you asked for the "Find and Replace STACK"! If you had mentioned STACK here in the mailing list, too, well... 8-) > Best, Richmond. >>>>>> I am trying to locate the Search & Replace dialog inwith the LC IDE >>>>>> but seem unable to . . . Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass kl...@major-k.de ___ 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: Search & Replace
Klaus. Has to be the “ordinary" one in the IDE, also in the “Edit” menu, at the bottom. To be fair, that is in fact a stack, though that particular fact is not pertinent. Craig > On Jan 12, 2022, at 2:06 PM, Klaus major-k via use-livecode > wrote: > > Hi Craig, > >> Am 12.01.2022 um 20:00 schrieb Craig Newman via use-livecode >> mailto:use-livecode@lists.runrev.com>>: >> >> What Jacque said. If not on a Mac, it is in the “Edit” menu, “Find and >> Replace”. > > I saw in the forum that Richmond is looking for the "Find and Replace" STACK > file, > go figure. 8-) > >> Craig >> >>> On Jan 12, 2022, at 11:44 AM, J. Landman Gay via use-livecode >>> wrote: >>> >>> If you're in the script editor you'll see different menus and cmd-F will >>> bring up the editor's Find which appears between the script and the >>> variable pane. >>> -- >>> Jacqueline Landman Gay | jac...@hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> On January 12, 2022 3:15:19 AM Klaus major-k via use-livecode >>> wrote: >>> >>>> Hi Richmond, >>>> >>>>> Am 12.01.2022 um 10:08 schrieb Richmond via use-livecode >>>>> : >>>>> >>>>> I am trying to locate the Search & Replace dialog inwith the LC IDE >>>>> but seem unable to . . . >>>> >>>> new to LC? 8-) >>>> >>>> Last item in menu -> Edit >>>> Or CMD-F. >>>> >>>>> Best, Richmond. >>>> >>>> Best >>>> >>>> Klaus > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de <https://www.major-k.de/> > https://www.major-k.de/bass <https://www.major-k.de/bass> > kl...@major-k.de <mailto:kl...@major-k.de> > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com <mailto: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 > <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: Search & Replace
Everyone has misunderstood my Q over here on the use-list. Luckily Bernd, over in the Fora understood my Q perfectly, and because of his help I was able to do what I wanted. Best, Richmond. On Wed, 12 Jan 2022, 21:06 Klaus major-k via use-livecode, < use-livecode@lists.runrev.com> wrote: > Hi Craig, > > > Am 12.01.2022 um 20:00 schrieb Craig Newman via use-livecode < > use-livecode@lists.runrev.com>: > > > > What Jacque said. If not on a Mac, it is in the “Edit” menu, “Find and > Replace”. > > I saw in the forum that Richmond is looking for the "Find and Replace" > STACK file, > go figure. 8-) > > > Craig > > > >> On Jan 12, 2022, at 11:44 AM, J. Landman Gay via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> > >> If you're in the script editor you'll see different menus and cmd-F > will bring up the editor's Find which appears between the script and the > variable pane. > >> -- > >> Jacqueline Landman Gay | jac...@hyperactivesw.com > >> HyperActive Software | http://www.hyperactivesw.com > >> On January 12, 2022 3:15:19 AM Klaus major-k via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> > >>> Hi Richmond, > >>> > >>>> Am 12.01.2022 um 10:08 schrieb Richmond via use-livecode < > use-livecode@lists.runrev.com>: > >>>> > >>>> I am trying to locate the Search & Replace dialog inwith the LC IDE > >>>> but seem unable to . . . > >>> > >>> new to LC? 8-) > >>> > >>> Last item in menu -> Edit > >>> Or CMD-F. > >>> > >>>> Best, Richmond. > >>> > >>> Best > >>> > >>> Klaus > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > kl...@major-k.de > > > ___ > 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: Search & Replace
Hi Craig, > Am 12.01.2022 um 20:00 schrieb Craig Newman via use-livecode > : > > What Jacque said. If not on a Mac, it is in the “Edit” menu, “Find and > Replace”. I saw in the forum that Richmond is looking for the "Find and Replace" STACK file, go figure. 8-) > Craig > >> On Jan 12, 2022, at 11:44 AM, J. Landman Gay via use-livecode >> wrote: >> >> If you're in the script editor you'll see different menus and cmd-F will >> bring up the editor's Find which appears between the script and the variable >> pane. >> -- >> Jacqueline Landman Gay | jac...@hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On January 12, 2022 3:15:19 AM Klaus major-k via use-livecode >> wrote: >> >>> Hi Richmond, >>> >>>> Am 12.01.2022 um 10:08 schrieb Richmond via use-livecode >>>> : >>>> >>>> I am trying to locate the Search & Replace dialog inwith the LC IDE >>>> but seem unable to . . . >>> >>> new to LC? 8-) >>> >>> Last item in menu -> Edit >>> Or CMD-F. >>> >>>> Best, Richmond. >>> >>> Best >>> >>> Klaus Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass kl...@major-k.de ___ 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: Search & Replace
What Jacque said. If not on a Mac, it is in the “Edit” menu, “Find and Replace”. Craig > On Jan 12, 2022, at 11:44 AM, J. Landman Gay via use-livecode > wrote: > > If you're in the script editor you'll see different menus and cmd-F will > bring up the editor's Find which appears between the script and the variable > pane. > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On January 12, 2022 3:15:19 AM Klaus major-k via use-livecode > wrote: > >> Hi Richmond, >> >>> Am 12.01.2022 um 10:08 schrieb Richmond via use-livecode >>> : >>> >>> I am trying to locate the Search & Replace dialog inwith the LC IDE >>> but seem unable to . . . >> >> new to LC? 8-) >> >> Last item in menu -> Edit >> Or CMD-F. >> >>> Best, Richmond. >> >> Best >> >> Klaus >> >> -- >> Klaus Major >> https://www.major-k.de >> https://www.major-k.de/bass >> kl...@major-k.de >> >> >> ___ >> 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: Search & Replace
If you're in the script editor you'll see different menus and cmd-F will bring up the editor's Find which appears between the script and the variable pane. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On January 12, 2022 3:15:19 AM Klaus major-k via use-livecode wrote: Hi Richmond, Am 12.01.2022 um 10:08 schrieb Richmond via use-livecode : I am trying to locate the Search & Replace dialog inwith the LC IDE but seem unable to . . . new to LC? 8-) Last item in menu -> Edit Or CMD-F. Best, Richmond. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass kl...@major-k.de ___ 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: Search & Replace
Hi Richmond, > Am 12.01.2022 um 10:08 schrieb Richmond via use-livecode > : > > I am trying to locate the Search & Replace dialog inwith the LC IDE > but seem unable to . . . new to LC? 8-) Last item in menu -> Edit Or CMD-F. > Best, Richmond. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass kl...@major-k.de ___ 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
Search & Replace
I am trying to locate the Search & Replace dialog inwith the LC IDE but seem unable to . . . Best, 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: Search Replace with lf and/cr
On Tue, Aug 27, 2013 at 1:56 AM, Richmond richmondmathew...@gmail.com wrote: numToChar(2325)) break i.e. stripped out the linefeed. Obviously that is no good. I've always found it simplest to change the difficult character to ZZZ or myMagicString, make my changes, and move it back. . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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
Search Replace with lf and/cr
This is a really hard nut to crack: I have a very long script that features lines that end like this: numToChar(2325)) and lines that end like this numToChar(2325)) the top example is followed by a line that starts with set, and the lower example is followed by break: numToChar(2325)) set numToChar(2325)) break now I want to mess around with the lower type of script line and NOT the upper one. AS the script contains somewhere over 5000 lines, and about 50 of those sort of lines that need to be operated on I don't feel a high level of motivation to go through the thing line by line . . . . . . if I have to I will (the blasted thing is mission critical) . . . Tried to do the above in LibreOffice and as soon as I pasted the lower phrase into the search box it turned the thing into numToChar(2325)) break i.e. stripped out the linefeed. Obviously that is no good. I would be extremely grateful for any constructive help. [ for choice I would prefer to work on Linux; however I have access to Mac 10.6 and Windows XP and 7 should the need arise ]. 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: Search Replace with lf and/cr
Hey: nothing new round these parts: Richmond replying to his own message. This is one of those moments when I want to shout Hallelujah from the roof tops . . . I have just discovered KOMODO EDIT: http://www.activestate.com/komodo-edit and it really rocked my socks as it allows a multiline search and replace. Woo-Hoo, Yabba-Dabba-Do :) Cannot recommend it enough. Richmond. On 08/27/2013 11:56 AM, Richmond wrote: This is a really hard nut to crack: I have a very long script that features lines that end like this: numToChar(2325)) and lines that end like this numToChar(2325)) the top example is followed by a line that starts with set, and the lower example is followed by break: numToChar(2325)) set numToChar(2325)) break now I want to mess around with the lower type of script line and NOT the upper one. AS the script contains somewhere over 5000 lines, and about 50 of those sort of lines that need to be operated on I don't feel a high level of motivation to go through the thing line by line . . . . . . if I have to I will (the blasted thing is mission critical) . . . Tried to do the above in LibreOffice and as soon as I pasted the lower phrase into the search box it turned the thing into numToChar(2325)) break i.e. stripped out the linefeed. Obviously that is no good. I would be extremely grateful for any constructive help. [ for choice I would prefer to work on Linux; however I have access to Mac 10.6 and Windows XP and 7 should the need arise ]. 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: Search Replace with lf and/cr
Hi Richmond, I don't understand why this is a poblem and why you would try this in LibreOffice. put the script of myControl into myScript replace ) break with ) cr beep cr break in myScript set the script of myControl to myScript put the result into rslt if rslt is not empty then beep answer error rslt end if You could also put the script into a field and write more complex scripts to edit that script before you set the script of the control. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com We have time for new software development projects. Contact me for a quote. On 27 aug 2013, at 10:56, Richmond wrote: This is a really hard nut to crack: I have a very long script that features lines that end like this: numToChar(2325)) and lines that end like this numToChar(2325)) the top example is followed by a line that starts with set, and the lower example is followed by break: numToChar(2325)) set numToChar(2325)) break now I want to mess around with the lower type of script line and NOT the upper one. AS the script contains somewhere over 5000 lines, and about 50 of those sort of lines that need to be operated on I don't feel a high level of motivation to go through the thing line by line . . . . . . if I have to I will (the blasted thing is mission critical) . . . Tried to do the above in LibreOffice and as soon as I pasted the lower phrase into the search box it turned the thing into numToChar(2325)) break i.e. stripped out the linefeed. Obviously that is no good. I would be extremely grateful for any constructive help. [ for choice I would prefer to work on Linux; however I have access to Mac 10.6 and Windows XP and 7 should the need arise ]. 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: Search Replace with lf and/cr
On 08/27/2013 12:21 PM, Mark Schonewille wrote: Hi Richmond, I don't understand why this is a poblem and why you would try this in LibreOffice. put the script of myControl into myScript replace ) break with ) cr beep cr break in myScript set the script of myControl to myScript put the result into rslt if rslt is not empty then beep answer error rslt end if You could also put the script into a field and write more complex scripts to edit that script before you set the script of the control. Actually, in the light of what I have found I can do with Komodo Edit even that seems cumbersome. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com We have time for new software development projects. Contact me for a quote. On 27 aug 2013, at 10:56, Richmond wrote: This is a really hard nut to crack: I have a very long script that features lines that end like this: numToChar(2325)) and lines that end like this numToChar(2325)) the top example is followed by a line that starts with set, and the lower example is followed by break: numToChar(2325)) set numToChar(2325)) break now I want to mess around with the lower type of script line and NOT the upper one. AS the script contains somewhere over 5000 lines, and about 50 of those sort of lines that need to be operated on I don't feel a high level of motivation to go through the thing line by line . . . . . . if I have to I will (the blasted thing is mission critical) . . . Tried to do the above in LibreOffice and as soon as I pasted the lower phrase into the search box it turned the thing into numToChar(2325)) break i.e. stripped out the linefeed. Obviously that is no good. I would be extremely grateful for any constructive help. [ for choice I would prefer to work on Linux; however I have access to Mac 10.6 and Windows XP and 7 should the need arise ]. 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 ___ 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
Search, Replace and Unicode
'Tis very easy to do this: on mouseUp replace ZaX with XaZ in fld TEKST end mouseUp and ZaXbbdsfZvfghXaasn will magically become: XaZbbdsfZvfghXaasn. So, clutching at straws, I tried this: on mouseUp set the useUnicode to true replace (numToChar(2367)) with (numToChar(105)) end mouseUp and, kaboom-diddy-boom-diddy-boom . . . it replaced all the instances of Unicode char 2367 with an 'i' (whacko), BUT . . . it also did something awful with the rest of the text in the fld; as far as I can see it 'deUnicoded' it. tried the same sort of thing like this: on mouseUp set the useUnicode to true replace (numToChar(2367)) with (numToChar(2311)) end mouseUp and got a right whoreson's. So . . . the next 'trick' is how to preserve the unicodeText as unicodeText,. Cripes! 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: Search, Replace and Unicode
On 12/29/2012 04:35 PM, Richmond wrote: 'Tis very easy to do this: on mouseUp replace ZaX with XaZ in fld TEKST end mouseUp and ZaXbbdsfZvfghXaasn will magically become: XaZbbdsfZvfghXaasn. So, clutching at straws, I tried this: on mouseUp set the useUnicode to true replace (numToChar(2367)) with (numToChar(105)) end mouseUp and, kaboom-diddy-boom-diddy-boom . . . it replaced all the instances of Unicode char 2367 with an 'i' (whacko), BUT . . . snip Richmond has a short memory; searching on the internet he turned up a message HE posted about 2 years ago, which contained this: on mouseUp set the useUnicode to true if the unicodeText of fld FIRST contains (numToChar(57888) numToChar(57999)) then get the unicodeText of fld FIRST replace (numToChar(57888) numToChar(57999)) with (numToChar(57999) numToChar(57888)) in it set the unicodeText of fld FIRST to it end if end mouseUp which works completely. So Richmond is a bit of a 'twat', but a happy one at least. 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: Search, Replace and Unicode
Now, of course, the real fun starts when one wants to play around with wild-cards so that one can, say, swap Z and X around in a unicodeText field that contains stuff like this: ZaXddZfXabcdeZoX as I am unclear how to do that with a non-unicodeText field, the next step seems a bit problematic, and, quite frankly, churning through 'ZaX',ZbX', 'ZcX', etc. (and I'm working with an abugida that features about 4000 glyphs . . . joy) seems tedious in the extreme. I thought about churning through a list of unicode addresses like this; on mouseUp put 2200 into CLICKER repeat until CLICKER = 5 set the useUnicode to true if the unicodeText of fld FIRST contains (numToChar(57888) numToChar(CLICKER) numToChar(57999)) then get the unicodeText of fld FIRST replace (numToChar(57888) numToChar(CLICKER) numToChar(57999))) with (numToChar(105) numToChar(CLICKER) numToChar(105)) in it set the unicodeText of fld FIRST to it end if add 1 to CLICKER end mouseUp and, theoretically, it works. the only thing that slightly fusses me about that is what happens if a unicode address is empty and/or I land up against a control character? ___ 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: Search, Replace and Unicode
On 12/29/2012 05:48 PM, Richmond wrote: Now, of course, the real fun starts when one wants to play around with wild-cards so that one can, say, swap Z and X around in a unicodeText field that contains stuff like this: ZaXddZfXabcdeZoX as I am unclear how to do that with a non-unicodeText field, the next step seems a bit problematic, and, quite frankly, churning through 'ZaX',ZbX', 'ZcX', etc. (and I'm working with an abugida that features about 4000 glyphs . . . joy) seems tedious in the extreme. I thought about churning through a list of unicode addresses like this; on mouseUp put 2200 into CLICKER repeat until CLICKER = 5 set the useUnicode to true if the unicodeText of fld FIRST contains (numToChar(57888) numToChar(CLICKER) numToChar(57999)) then get the unicodeText of fld FIRST replace (numToChar(57888) numToChar(CLICKER) numToChar(57999))) with (numToChar(105) numToChar(CLICKER) numToChar(105)) in it set the unicodeText of fld FIRST to it end if add 1 to CLICKER end mouseUp and, theoretically, it works. the only thing that slightly fusses me about that is what happens if a unicode address is empty and/or I land up against a control character? This works: doesn't seem to fuss the think whether there is a glyph present or not, and no problems with any reserved chars that may be lying around somewhere within that range. ran it through unicode addresses from 2325 to 62738, which took about 90 seconds, which is rather too long, so will cut that down to run through several ranges of unicode addresses rather than the whole shebang. ___ 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: Search, Replace and Unicode
Hi Richmond, Just curious - does setting the lockMessages lockScreen to true speed it up any? Or hiding the field? (Sorry if these have already been answered; I'm not following the thread too closely) On 12/29/12 8:18 AM, Richmond wrote: ran it through unicode addresses from 2325 to 62738, which took about 90 seconds, which is rather too long, so will cut that down to run through several ranges of unicode addresses rather than the whole shebang. -- 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: Search, Replace and Unicode
On 12/29/2012 09:38 PM, Phil Davis wrote: Hi Richmond, Just curious - does setting the lockMessages lockScreen to true speed it up any? Or hiding the field? (Sorry if these have already been answered; I'm not following the thread too closely) I really don't know as I am so thick those possibilities had not occurred to me. However, I cracked open my monster Sanskrit font and looked at it FontForge and realised that I was being fairly bl**dy silly crunching through thousands of irrelevant unicode addresses, so chopped things up into 3 REPEAT UNTIL loops for the unicode ranges that were relevant to my work: 2325 - 2431 57354 - 58498 61952 - 62738 giving a saving of some 58371 interations and boiling the whole thing down to about 5 seconds . . . that is on the same sample text I previously used. HOWEVER . . . now I will play around with setting lockMessages and lockScreen as per your suggestions to see if there is any appreciable gain. Phil; you state that you are not following the thread too closely; is that because it is not something that interests you, or do you have a stake in Unicode text manipulation but have been busy elsewhere. I sometimes get the feeling (err . . . paranoid) that I am the only person using RR Livecode who is doing 'serious sh*t' with unicodeText; but, hey, why should I worry?; in 1985, at the University of Durham, I was the only student trying to process text with PASCAL 5 while all the Physics students were crunching numbers. On 12/29/12 8:18 AM, Richmond wrote: ran it through unicode addresses from 2325 to 62738, which took about 90 seconds, which is rather too long, so will cut that down to run through several ranges of unicode addresses rather than the whole shebang. ___ 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: Search, Replace and Unicode
On 12/29/2012 09:38 PM, Phil Davis wrote: Hi Richmond, Just curious - does setting the lockMessages lockScreen to true speed it up any? Or hiding the field? (Sorry if these have already been answered; I'm not following the thread too closely) I ran unicode replace script that took 8 seconds, with set the lockMessages to true in line 1 of the script and set the lockMessages to false in the last line the script took 7 seconds using lockScreen the script took 2 seconds (Wow!) --- using lockScreen lockMessages the script still took 2 seconds --- obviously lockScreen is a good thing Thank you very much for your suggestion! 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: Search, Replace and Unicode
On 12/29/12 11:52 AM, Richmond wrote: On 12/29/2012 09:38 PM, Phil Davis wrote: Hi Richmond, Just curious - does setting the lockMessages lockScreen to true speed it up any? Or hiding the field? (Sorry if these have already been answered; I'm not following the thread too closely) I really don't know as I am so thick those possibilities had not occurred to me. However, I cracked open my monster Sanskrit font and looked at it FontForge and realised that I was being fairly bl**dy silly crunching through thousands of irrelevant unicode addresses, so chopped things up into 3 REPEAT UNTIL loops for the unicode ranges that were relevant to my work: 2325 - 2431 57354 - 58498 61952 - 62738 giving a saving of some 58371 interations and boiling the whole thing down to about 5 seconds . . . that is on the same sample text I previously used. Wow! Nice gain. HOWEVER . . . now I will play around with setting lockMessages and lockScreen as per your suggestions to see if there is any appreciable gain. Phil; you state that you are not following the thread too closely; is that because it is not something that interests you, or do you have a stake in Unicode text manipulation but have been busy elsewhere. I am being dragged toward Unicode, kicking and screaming. It looms large in my future, as one client has asked me to add support for Arabic in his training system soon. But I don't have much experience with it. I'm hoping the improvements in LC 5.5 and beyond will make for a little smoother landing in UnicodeLand. I sometimes get the feeling (err . . . paranoid) that I am the only person using RR Livecode who is doing 'serious sh*t' with unicodeText; but, hey, why should I worry?; in 1985, at the University of Durham, I was the only student trying to process text with PASCAL 5 while all the Physics students were crunching numbers. On 12/29/12 8:18 AM, Richmond wrote: ran it through unicode addresses from 2325 to 62738, which took about 90 seconds, which is rather too long, so will cut that down to run through several ranges of unicode addresses rather than the whole shebang. ___ 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