Re: directory tree -> array

2020-02-04 Thread Alex Tweedly via use-livecode
Hey Bob, there's a problem in directoryListingToArray in some cases. Wen I run it on my home directory, I get an error message    ...: execution error at line 119 (repeat: error in statement), char 1 The 'repeat' error is misleading - that's just the line following the 'do tCommand'. It's

the fontnames and special names like (Menu)

2020-02-04 Thread Paul Dupuis via use-livecode
The fontnames() function returns certain special font names like: (Default) (Styled Text) (Menu) (Text) (Message) (Tooltip) (System) How do I find out what fonts these really are on a given platform. The effective textFont does not seem to work. For example the following code on Windows 10,

Re: the fontnames and special names like (Menu)

2020-02-04 Thread dunbarx--- via use-livecode
Here is some unhelpful information from the dictionary: The list of font names includes a set of special-purpose names which automatically select the matching font for the platform. You can use these to request "the font used for buttons" without having to hard-code platform-specific font

Re: the fontnames and special names like (Menu)

2020-02-04 Thread Paul Dupuis via use-livecode
Exactly, but this does not answer my question, which is: if I set the textFont of an object , say a button to "(Menu)" and the look at the effective textFont of that same object, I get "(Menu"), so how do I find out what the actual font really is? For example, the default field font on

Re: html5Player

2020-02-04 Thread Richard Gaskin via use-livecode
Sannyasin Brahmanathaswami wrote: "Can you save" To which you supplied a lengthy answer, thank you. I have a real use case: I looked at all the collaborative "white boards" on the market. There are 10 that only have free version that allows a limit number of people participating. All too

Re: OMG text processing performance 6.7 - 9.5

2020-02-04 Thread Richard Gaskin via use-livecode
J. Landman Gay wrote: On 2/3/20 2:19 PM, hh via use-livecode wrote: Parse1 is here always at least 30% faster than Parse2. I'm seeing the same thing, only more so. I searched for "the" in a 424K text file: parse1 = 11 ms parse2 = 111 ms Hmmm It may be that Mark Waddingham was wrong

Re: directory tree -> array

2020-02-04 Thread Bob Sneidar via use-livecode
Good points. I'll make some changes and resubmit. It never dawned on me that someone would intentionally send an empty path, but it *might* happen accidentally. Also, a path like /Users/BobSneidar being repeated would be very edge case, and as an IT guy I would probably take the computer away

Re: directory tree -> array

2020-02-04 Thread Alex Tweedly via use-livecode
Hi Bob. I have a couple of other suggestions (driven by my paranoia :-) 1. There is a problem with passing empty for 'whatfolder' Currently, if you pass in an empty folder, it  returns very misleading results - the files in the current directory when the function is called, plus the folders

Re: OMG text processing performance 6.7 - 9.5

2020-02-04 Thread J. Landman Gay via use-livecode
On 2/4/20 12:43 PM, Richard Gaskin via use-livecode wrote: J. Landman Gay wrote: On 2/3/20 2:19 PM, hh via use-livecode wrote: Parse1 is here always at least 30% faster than Parse2. I'm seeing the same thing, only more so. I searched for "the" in a 424K text file: parse1 = 11 ms parse2 =

Re: OMG text processing performance 6.7 - 9.5

2020-02-04 Thread Bob Sneidar via use-livecode
Heresy! Burn the cretan!!! ;-) Bob S > On Feb 4, 2020, at 10:43 , Richard Gaskin via use-livecode > wrote: > > Hmmm It may be that Mark Waddingham was wrong in the guidance he gave > earlier about Unicode vs memcopy, but I wonder if there may be something else > here.

Displaying & caching PDF files

2020-02-04 Thread jbv via use-livecode
Hello list, I have a request from a client for a mobile app that would display pdf files. I know I can use a browser object to display those files, I've done that numerous times. My question is more about caching the files, and displaying them again later without having to download them each

Re: OMG text processing performance 6.7 - 9.5

2020-02-04 Thread Richard Gaskin via use-livecode
Ralph DiMola wrote: > My initial timings was with an earlier v9 version. I will do some > timings on 9.5.1. In the meanwhile I wonder if doing a "delete char > 1 to n of myVar" is more expensive then "put char n to -1 of myVar > into myVar" as I do. I had thought the exercise was to obtain a

RE: Displaying & caching PDF files

2020-02-04 Thread Ralph DiMola via use-livecode
Android will not natively display a pdf in the browser. The PDF Widget is supported on all platforms. You can watch for a pdf in the browser and download and cache it to the device then display it in the PDF Widget. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net

RE: OMG text processing performance 6.7 - 9.5

2020-02-04 Thread Ralph DiMola via use-livecode
My initial timings was with an earlier v9 version. I will do some timings on 9.5.1. In the meanwhile I wonder if doing a "delete char 1 to n of myVar" is more expensive then "put char n to -1 of myVar into myVar" as I do. Ralph DiMola IT Director Evergreen Information Services

RE: OMG text processing performance 6.7 - 9.5

2020-02-04 Thread Neville via use-livecode
The recent testing of the Parse1 and Parse2 algorithms I think must have been on ascii not utf-8 text I tested on the English translation of Les Miserables, to ensure at least a sprinkling of multi-bite characters in the text, and a longish file: 3.4 MB. I tested for the search string

Re: HyperCard: the Myst story

2020-02-04 Thread Mark Wieder via use-livecode
On 2/4/20 6:00 PM, Roger Guay via use-livecode wrote: Just curious, Mark… I loved Hypercard as well, but do you mean to say you would choose Hypercard over Livecode today? Heh. Not my quote... that's from Rand Miller's talk. -- Mark Wieder ahsoftw...@gmail.com

Re: OMG text processing performance 6.7 - 9.5

2020-02-04 Thread Colin Holgate via use-livecode
Would have been neat if it took 24601 milliseconds. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: OMG text processing performance 6.7 - 9.5

2020-02-04 Thread Richard Gaskin via use-livecode
Super thorough work there, Neville. Thanks. Could I trouble you to post code listings for the various algos? I'd like to try them on my MBOX archives, and they may also be useful for others looking for parsing routines in the archives. -- Richard Gaskin Fourth World Systems Neville

Re: HyperCard: the Myst story

2020-02-04 Thread Roger Guay via use-livecode
Just curious, Mark… I loved Hypercard as well, but do you mean to say you would choose Hypercard over Livecode today? Roger > On Feb 4, 2020, at 5:41 PM, Mark Wieder via use-livecode > wrote: > > > https://boingboing.net/2020/02/02/myst-co-creator-rand-mill.html > > "...to this day I would

Re: HyperCard: the Myst story

2020-02-04 Thread Roger Guay via use-livecode
Ah yes, of course. I see that now. > On Feb 4, 2020, at 7:07 PM, Mark Wieder via use-livecode > wrote: > > On 2/4/20 6:00 PM, Roger Guay via use-livecode wrote: >> Just curious, Mark… I loved Hypercard as well, but do you mean to say you >> would choose Hypercard over Livecode today? > >

Re: HyperCard: the Myst story

2020-02-04 Thread Colin Holgate via use-livecode
In 1993 Mac User magazine had a review of the top 50 CD-ROMs, and of those there was an overall winner. The A Hard Day’s Night CD-ROM I made in HyperCard was the overall winner. I was lucky that it was before Myst was released. It would have easily won!

RE: OMG text processing performance 6.7 - 9.5

2020-02-04 Thread Neville via use-livecode
Just for interest, and to see just how slow lineOffset is, I added a couple of more tests to the search for occurrences of “Valjean” in the Gutenberg English translation of Les Miserables. I also wanted find how filter performs. The searches were first applied to the raw binary text as read

Re: OMG text processing performance 6.7 - 9.5

2020-02-04 Thread Mark Wieder via use-livecode
On 2/4/20 6:43 PM, Colin Holgate via use-livecode wrote: Would have been neat if it took 24601 milliseconds. Chortle -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: HyperCard: the Myst story

2020-02-04 Thread Mark Wieder via use-livecode
On 2/4/20 6:19 PM, Colin Holgate via use-livecode wrote: In 1993 Mac User magazine ...them was the days, eh? -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: directory tree -> array

2020-02-04 Thread Alex Tweedly via use-livecode
On 04/02/2020 17:20, Bob Sneidar via use-livecode wrote: Good points. I'll make some changes and resubmit. It never dawned on me that someone would intentionally send an empty path, but it *might* happen accidentally. Also, a path like /Users/BobSneidar being repeated would be very edge

HyperCard: the Myst story

2020-02-04 Thread Mark Wieder via use-livecode
https://boingboing.net/2020/02/02/myst-co-creator-rand-mill.html "...to this day I would be doing projects in Hypercard if it were still available..." ...think someone should give Rand Miller a hint? -- Mark Wieder ahsoftw...@gmail.com ___

Re: OMG text processing performance 6.7 - 9.5

2020-02-04 Thread Alex Tweedly via use-livecode
On 04/02/2020 22:12, Richard Gaskin via use-livecode wrote: The code I was using was similar to Alex' itemDel solution, but playing with all three together shows itemDel only slightly faster than delete, and both much faster than traversing in-place with "start at". You know I'm always