Re: Script Only Stack Architecture

2016-04-02 Thread Earthednet-wp
I wonder how hard it would be to port max's Wikia wiki to a less commercial host. I am skeptical of those free sites dedicated to scraping user information for data mining purposes. Livecode could support it as part of their resources, as an experiment to see how it develops? Bill William

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread J. Landman Gay
On 4/2/2016 11:05 PM, Richard Gaskin wrote: put the EFFECTIVE formattedheight of \ char 1 to -1 of pObj into tFheight There it is! "EFFECTIVE"! Would be nice if that were documented. Hmph. Need user notes. -- Jacqueline Landman Gay | jac...@hyperactivesw.com

Re: Script Only Stack Architecture

2016-04-02 Thread Sannyasin Brahmanathaswami
I think I'm too bitten (happily so) now with the class/super/class behaviors hierarchy ( have already set the behavior of a behavior, fantastic!) In fact it's hard to stop envisioning all the ways to use this feature, and I don't want the bound up in a single binary file object... as the goal

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread Ralph DiMola
My best guess at the tme was that the effective modifier ignores the area reserved for the maximum ascenders and descenders. Also char 1 to -1 worked better than line 1 to -1 if I remember correctly.  Ralph DiMola IT Director Evergreen Information Services Original message

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread Ralph DiMola
This was when I was a newbie and developing my resizing library and I called it with the wrong control type. Ralph DiMola IT Director Evergreen Information Services Original message From: Richard Gaskin Date:04/02/2016 23:59 (GMT-05:00) To:

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread Richard Gaskin
Ralph DiMola wrote: put the EFFECTIVE formattedheight of \ char 1 to -1 of pObj into tFheight There it is! "EFFECTIVE"! Once I use Jacque's technique of omitting the margins by obtaining only the formattedHeight of the text itself, and Ralph's astute awareness that apparently it's

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread Richard Gaskin
Ralph DiMola wrote: try put item 1 of the margins of obj into item 1 of tMargins put item 3 of the margins of obj into item 3 of tMargins catch SomeError exit CenterVert -- Can't get margins?... do nothing end try Now I'm even more worried: is there a cirumstance in

Re: Script Only Stack Architecture

2016-04-02 Thread Richard Gaskin
Sannyasin Brahmanathaswami wrote: > Small addendum, now that I'm actually using them. Today, though I > had added them as stack files, my three external stack file > behaviors were still not in the message path. That's contrary to my own experience, which I'd tested again to make double-sure

Re: Script Only Stack Architecture

2016-04-02 Thread Sannyasin Brahmanathaswami
  Small addendum, now that I'm actually using them. Today, though I had added them as stack files, my three external stack file behaviors were still not in the message path. But, now, having added them it the stack files.. you can open them without declaring a path. command

Re: File exists

2016-04-02 Thread JB
Thanks for the code and info, Kay. JB > On Apr 2, 2016, at 10:53 AM, Kay C Lan wrote: > > On Sat, Apr 2, 2016 at 4:48 PM, JB wrote: >> If I open a file for read or write and the file does >> not exist it will be created. > > Just to clarify,

RE: Set Text to the Vertical Center of the field

2016-04-02 Thread Ralph DiMola
This is working for me but does fall apart when the field gets very small. Also the font baselines change from Windows to both iOS and Android. Bug 12176 I have had many many variations of this task and this one is the best I've found so far but I digress, I think there's bug because if the Yoda's

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread -hh
You are not talking about centering text vertically, which is solved, at least for me. You are talking about text measurement, what may be used for that but one is not forced to do so. Text measurement has changed several times since LC 6 and will change again with every new dot-release of LC 8

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread J. Landman Gay
On 4/2/2016 4:42 PM, Richard Gaskin wrote: That one's just a longer version of Jacque's algo, which gets the difference between the formatted height of the text from the field, and set the topMargin to half of that. That's logical and should work, but trying my version this morning and later

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread J. Landman Gay
On 4/2/2016 1:34 PM, Richard Gaskin wrote: IMNSO if this can't be done in three lines using Jacque's method it's a bug. put the formattedheight of line 1 to -1 of me into tTotalTextHt put ( ( the height of me - tTotalTextHt ) / 2) into tTopMargin set topmargin of me to tTopMargin

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread J. Landman Gay
On 4/2/2016 4:09 PM, Sannyasin Brahmanathaswami wrote: and this from Jacque >The formattedheight of the entire field apparently isn't the same as the >formattedheight of the totals of the lines. makes no sense to me... or at least it would be good to know the difference in precise terms.

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread Scott Rossi
This has already been submitted at least a couple of times: http://quality.livecode.com/show_bug.cgi?id=2707 http://quality.livecode.com/show_bug.cgi?id=9561 Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/2/16, 2:49 PM, "use-livecode on behalf of Sannyasin

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread Richard Gaskin
Sannyasin Brahmanathaswami wrote: > Can you submit? with your test stack? It's physically possible, but I'm currently tracking many bugs related to my own work. Is there something that prevents you from submitting a bug related to your work? -- Richard Gaskin Fourth World Systems

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread Sannyasin Brahmanathaswami
Can you submit? with your test stack? On April 2, 2016 at 11:42:43 AM, Richard Gaskin (ambassa...@fourthworld.com) wrote: So a bug report wouldn't be for any specific number of lines, but merely that either the topMargin and/or formattedHeight be fixed so it

Re: Script Only Stack Architecture

2016-04-02 Thread Richard Gaskin
Sannyasin Brahmanathaswami > Kay C Lan wrote: >> >> IMO the ideal solution would be the Dictionary act like a Wiki >> Editor. > > I had a parallel thought this morning. Many languages have their > "wiki space" > > Given the enormity of the task of turning the dictionary into > something like

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread Richard Gaskin
Sannyasin Brahmanathaswami wrote: > Someone sent me this solution off line.. > > on mouseUp > CenterTextVertically "field 2" > end mouseUp > > on CenterTextVertically myFld > put the effective textHeight of myFld into tTextHeight > put item 2 of the loc of myFld into tfield > put the

Re: Script Only Stack Architecture

2016-04-02 Thread Sannyasin Brahmanathaswami
Kay C Lan wrote: IMO the ideal solution would be the Dictionary act like a Wiki Editor. I had a parallel thought this morning. Many languages have their "wiki space" Given the enormity of the task of turning the dictionary into something like that...don't bother... let it be what it is. Just

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread Sannyasin Brahmanathaswami
  Someone sent me this solution off line.. on mouseUp CenterTextVertically "field 2" end mouseUp on CenterTextVertically myFld put the effective textHeight of myFld into tTextHeight put item 2 of the loc of myFld into tfield put the formattedRect of line 1 to - 1 of myFld into tFormatRect put

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread Richard Gaskin
Ive tried several of the methods discussed here and one of my own, and while some work at some field heights they break at others. I didn't use fixedLineHeight because that shouldn't be needed; indeed I can imagine many cases in which a field may have different sizes of text, so we need a

Re: File exists

2016-04-02 Thread RM
On 2.04.2016 20:53, Kay C Lan wrote: On Sat, Apr 2, 2016 at 4:48 PM, JB wrote: If I open a file for read or write and the file does not exist it will be created. Just to clarify, that statement is incorrect. If you open a file for 'write' and the file does not exist,

Re: LiveCode Video Display with QuickTime on a PC ?

2016-04-02 Thread Francis Nugent Dixon
Hi from Beautiful Brittany, Thanks to Mark and Jacqueline, and especially Panos for adding AVI clarification, and again to Stephen for completing the PC issue. I now know how to solve all elements of this problem ! If QT (V7) works on XP PC versions, that solves my immediate problem, but the

Re: Stripping

2016-04-02 Thread Klaus major-k
Hi Jaqueline, > Am 02.04.2016 um 20:00 schrieb J. Landman Gay : > > On 4/2/2016 12:44 PM, Klaus major-k wrote: >> yep, but the CRs had been in his database records and not (yet) in Livecode! >> So he did not understand the real problem at that point. > And he still

Re: Stripping

2016-04-02 Thread J. Landman Gay
On 4/2/2016 12:44 PM, Klaus major-k wrote: yep, but the CRs had been in his database records and not (yet) in Livecode! So he did not understand the real problem at that point. And he still doesn't. Maybe I'll go poke him a little bit more. -- Jacqueline Landman Gay |

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread J. Landman Gay
On 4/2/2016 12:54 PM, J. Landman Gay wrote: On 4/1/2016 11:08 PM, Sannyasin Brahmanathaswami wrote: on mouseup set the textsize of me to 28 put the formattedheight of me into tTotalTextHeight put ( ( the height of me - tTotalTextHeight ) / 2) into tTopBottomMargins set topmargin of me to

Re: Set Text to the Vertical Center of the field

2016-04-02 Thread J. Landman Gay
On 4/1/2016 11:08 PM, Sannyasin Brahmanathaswami wrote: on mouseup set the textsize of me to 28 put the formattedheight of me into tTotalTextHeight put ( ( the height of me - tTotalTextHeight ) / 2) into tTopBottomMargins set topmargin of me to tTopBottomMargins end mouseUp But it doesn't and

Re: File exists

2016-04-02 Thread Kay C Lan
On Sat, Apr 2, 2016 at 4:48 PM, JB wrote: > If I open a file for read or write and the file does > not exist it will be created. Just to clarify, that statement is incorrect. If you open a file for 'write' and the file does not exist, it will be created. if you open a

Re: Stripping

2016-04-02 Thread Klaus major-k
Hi Richmond, > ... reading the thread may help! 8-) >>> I read the thread. The method in my stack can just as easily be used with >>> a string that is going into a datagrid. >> yep, but that really has nothing to do with the problem discussed in the >> thread. > > I answered the

Re: Stripping

2016-04-02 Thread RM
On 2.04.2016 20:33, Klaus major-k wrote: Hi Richmond, Am 02.04.2016 um 19:30 schrieb RM : On 2.04.2016 20:27, Klaus major-k wrote: Hi Richmond, Am 02.04.2016 um 19:20 schrieb RM : There's been a bit of a "Hoo Haa" on the Forum

Re: Stripping

2016-04-02 Thread Klaus major-k
Hi Richmond, > Am 02.04.2016 um 19:30 schrieb RM : > > On 2.04.2016 20:27, Klaus major-k wrote: >> Hi Richmond, >> >>> Am 02.04.2016 um 19:20 schrieb RM : >>> >>> There's been a bit of a "Hoo Haa" on the Forum about stripping out

Re: Stripping

2016-04-02 Thread RM
On 2.04.2016 20:27, Klaus major-k wrote: Hi Richmond, Am 02.04.2016 um 19:20 schrieb RM : There's been a bit of a "Hoo Haa" on the Forum about stripping out carriage returns: http://forums.livecode.com/viewtopic.php?f=7=26929=140516#p140516 I'm not sure why.

Re: Stripping

2016-04-02 Thread Klaus major-k
Hi Richmond, > Am 02.04.2016 um 19:20 schrieb RM : > > There's been a bit of a "Hoo Haa" on the Forum about stripping out carriage > returns: > http://forums.livecode.com/viewtopic.php?f=7=26929=140516#p140516 > I'm not sure why. reading the thread may help! 8-) >

Stripping

2016-04-02 Thread RM
There's been a bit of a "Hoo Haa" on the Forum about stripping out carriage returns: http://forums.livecode.com/viewtopic.php?f=7=26929=140516#p140516 I'm not sure why. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: PDF text extraction?

2016-04-02 Thread RM
On 2.04.2016 20:03, Dr. Hawkins wrote: On Sat, Apr 2, 2016 at 8:55 AM, RM wrote: I know that Supercard has been around for donkey's ages (recall playing with it [and finding it rather awkward compared with Hypercard 2.4.1] about 20 years ago), I switched my

Re: PDF text extraction?

2016-04-02 Thread Dr. Hawkins
On Sat, Apr 2, 2016 at 8:55 AM, RM wrote: > I know that Supercard has been around for donkey's ages (recall playing > with it [and finding it > rather awkward compared with Hypercard 2.4.1] about 20 years ago), > I switched my projects from Hypercard 1 to Supercard

Re: PDF text extraction?

2016-04-02 Thread RM
On 2.04.2016 19:17, Richard Gaskin wrote: Richmond wrote: > On 2.04.2016 18:38, Richard Gaskin wrote: >> Thanks. Yes, Mark Lucas has been doing some outstanding work on >> SuperCard 4.8. > > Well, outstanding is as outstanding does, I really wonder how > Supercard keeps going in the face of

Re: PDF text extraction?

2016-04-02 Thread Richard Gaskin
Richmond wrote: > On 2.04.2016 18:38, Richard Gaskin wrote: >> Thanks. Yes, Mark Lucas has been doing some outstanding work on >> SuperCard 4.8. > > Well, outstanding is as outstanding does, I really wonder how > Supercard keeps going in the face of competition of Livecode. > I know that

Re: Script Only Stack Architecture

2016-04-02 Thread Richard Gaskin
Kay C Lan wrote: And now stepping on very thin ice I will go against the grain of 'User Notes' as previously implemented and currently re-suggested. Again, as an interim step I see them as very useful for capturing nuggets of information. The great thing about them is, as stated by Jacque, you

Re: PDF text extraction?

2016-04-02 Thread RM
On 2.04.2016 18:38, Richard Gaskin wrote: Richmond wrote: I see that Supercard, in their 4.8 Beta have introduced these: rtfToText - extracts text from an RTF or RTFD file pdfToText - extracts text from a PDF file docToText - extracts text from a Microsoft Word file docxToText - extracts

Re: Design Challenge -- Round Corner mask on images

2016-04-02 Thread Alejandro Tejada
Hi Richmond, RM wrote > Why bother? Frankly the process is no more difficult using > GIMP: https://www.gimp.org/downloads/ or > Photoshop: http://www.adobe.com/products/photoshop.html > and there are quite a few other image editing software packages > available that can do that job as well.

Re: PDF text extraction?

2016-04-02 Thread RM
I see that Supercard, in their 4.8 Beta have introduced these: rtfToText - extracts text from an RTF or RTFD file pdfToText - extracts text from a PDF file docToText - extracts text from a Microsoft Word file docxToText - extracts text from a Microsoft Word XML file htmlToText - extracts

Re: PDF text extraction?

2016-04-02 Thread RM
http://use-livecode.runrev.narkive.com/1agaImsm/in-search-of-the-lonesome-yodel-pdf Another old chestnut . . . Richmond. On 1.04.2016 03:47, Richard Gaskin wrote: I may need to extract text from a fair number of PDFs (hundreds). I can find all sorts of third-party tools to do that, many of

Re: Difficulty using Livecode.com

2016-04-02 Thread Sri
I wish LC would consider reorganizing its website to display a multi-stage nested menu on its main page. It may be complex to create (and maintain), but it would give visitors (new and repeat) a bird's eye view and a way to quickly go where they want. I know nested menus are frowned upon by web

Re: Design Challenge -- Round Corner mask on images

2016-04-02 Thread RM
Why bother? Frankly the process is no more difficult using GIMP: https://www.gimp.org/downloads/ or Photoshop: http://www.adobe.com/products/photoshop.html and there are quite a few other image editing software packages available that can do that job as well. Richmond. On 1.04.2016 02:46,

Re: File exists

2016-04-02 Thread JB
Thank you, Richmond! Your help is always appreciated. JB > On Apr 2, 2016, at 2:03 AM, RM wrote: > > Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: File exists

2016-04-02 Thread JB
I LIKE THAT! thank you very much. JB > On Apr 2, 2016, at 2:00 AM, Thierry Douez wrote: > > Hi, > > there is a file ".." > > HTH, > > Thierry > > > 2016-04-02 10:48 GMT+02:00 JB : > >> If I open a file for read or write and the file does >>

Re: File exists

2016-04-02 Thread RM
Naively I tried this in a button: on mouseUp if exists(file "HereWeGo.txt") then open file "HereWeGo.txt" for write else put "no such file" end if end mouseUp AND the thing didn't work because 'exists' only works for objects within Livecode. BUT this seems a

Re: File exists

2016-04-02 Thread Thierry Douez
Hi, there is a file ".." HTH, Thierry 2016-04-02 10:48 GMT+02:00 JB : > If I open a file for read or write and the file does > not exist it will be created. Is there a way to see > if the file exists before opening it? I do not want > a file to be created if it does

Re: File exists

2016-04-02 Thread -=>JB<=-
Files will do it; I forget so easily. JB > On Apr 2, 2016, at 1:48 AM, JB wrote: > > If I open a file for read or write and the file does > not exist it will be created. Is there a way to see > if the file exists before opening it? I do not want > a file to be created

File exists

2016-04-02 Thread JB
If I open a file for read or write and the file does not exist it will be created. Is there a way to see if the file exists before opening it? I do not want a file to be created if it does not exist. I guess I could check the creation date and if it was just created then delete it but I was

Re: Why isn't isoToMac anymore needed with LC 8 custom props?

2016-04-02 Thread Kay C Lan
On Fri, Apr 1, 2016 at 5:42 PM, Tiemo Hollmann TB wrote: > Am I right, that the text now is stored in Unicode in the > custom property, when I save the file on windows and therefore I don't have > to translate it anymore on Mac, If by file you mean LC stack file then you're

Re: Script Only Stack Architecture

2016-04-02 Thread Kay C Lan
On Sat, Apr 2, 2016 at 9:45 AM, Sannyasin Brahmanathaswami wrote: > How do we do that. Via Git hub? we pull the entry edit and then push back > with changes? > Those who want to contribute will find Ali's guide essential: