Re: callbacks in Mac video player?

2019-10-28 Thread Richard Gaskin via use-livecode

hh wrote:

>> Richard G. wrote:
>> Thanks. Unfortunately the reason I'm looking into this is to replace
>> an old component dependent on 32-bit macOS, now that many are
>> "upgrading" to Catalina.
>
> Richard, 9.0.5 WORKS, also its standalones (check 64 bit), on
> Catalina...

Indeed it does.  And I stand corrected: callbacks apparently work in 
v9.5 under Catalina as well.


Man, sure would be nice to be able to do that on Linux


>> I searched the bug DB, but couldn't find the report for this.  Do you
>> know offhand what it's titled?
>
> I gave up to report all the regressions I suffer from with 9.5 on
> Catalina ...

That callbacks are working in 9.5 explains why I wasn't able to find a 
bug report against them. :)



> I'm not a beta tester. At least as long as not even my tiniest wishes
> for HTML5 and LCB (incl. Browser widget) are fulfilled.

What do you need from LCB that's missing?

--
 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


OCR-Lite_v100

2019-10-28 Thread hh via use-livecode
The stack OCR-Lite is a GUI to the JS library by Kevin Kwok
https://github.com/antimatter15/ocrad.js
which is in turn an emscripten port to GNU Ocrad by Antonio Diaz Diaz
https://www.gnu.org/software/ocrad/ocrad.html
The library is included in the stack, so you can use it offline.
The License is GNU GENERAL PUBLIC v3.0
https://www.gnu.org/licenses/gpl-3.0.en.html

Of course, tesseract has better results but it needs around 10 MByte
of trainingData for each language.
Ocrad.js has < 1 MByte size and yields, TMHO, in average good results.

The stack runs (offline) using LC 8.1.10/9.0.5/9.5 on MacOS > 10.12
and using LC 9.0.5, on win 7/10 and linux (ubuntu1604). Be patient on
windows, it's a bit slower than on Mac.

You only have to import your images and hit the "OCR" button.

Download OCR-Lite it from "SampleStacks" of the LC toolbar or from
http://livecodeshare.runrev.com/stack/953/


___
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: identifying text chars in an image

2019-10-28 Thread hh via use-livecode
> Phil D. wrote:
> So maybe I should first be asking about detecting the grid
> established by the scrabble letters. 

You need some criteria to find the topleft of the grid and the
size of one letter: color/transparency/a marker(fixed image part)...
You could also use pattern recognition for that.

Then it's the easy part to get all possible letters by computing the
grid and crop (get from imageData) the grid elements by script.
Then doing the OCR for each single char.

If you need that for a standalone, then 'tesseract' with its huge
language packs is probably not appropriate and 'ocrad' could be
good enough for that.

___
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: callbacks in Mac video player?

2019-10-28 Thread hh via use-livecode
> Richard G. wrote:
> Thanks. Unfortunately the reason I'm looking into this is to replace an 
> old component dependent on 32-bit macOS, now that many are "upgrading" 
> to Catalina.

Richard, 9.0.5 WORKS, also its standalones (check 64 bit), on Catalina...
Even 8.1.10 can build (experimental) 64bit standalones.

> I searched the bug DB, but couldn't find the report for this.  Do you 
> know offhand what it's titled?

I gave up to report all the regressions I suffer from with 9.5 on Catalina ...
I'm not a beta tester. At least as long as not even my tiniest wishes for HTML5
and LCB (incl. Browser widget) are fulfilled.

> If we can't find a way to do video callbacks in LC our plan is to rewrite the
> app in HTML for the web.

It would be easy to do that in a HTML5 standalone, even if you need webRTC/
getUserMedia. But the rest of your shining layout is probably rather unfinished
in the HTML5 standalone builder.
___
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: drag'n'drop in text fields

2019-10-28 Thread hh via use-livecode
Hi Klaus.

>> I wrote:
>> on dragDrop
>>   if "files" is among the keys of the dragData then
>> put line 1 of the dragData["files"] -- or whatever
>>   end if
>> end dragDrop
>>
>> on dragEnter
>>   set the dragAction to "copy"
>> end dragenter

> You wrote:
> .. also tried that, but then the pathname does not appear in the field.
> I want to:
> Drag'n'Drop a file into the field -> works without scripting
> The pathname appears in the field and is definitively selected!

Three remarks.

1. the filename ends up in the message box if you dont use the "whatever" ;-)
2. textchanged is also a script ;-)
3. Your method doesn't work for locked fields, the following does:

on dragDrop
  if "files" is among the keys of the dragData then
put line 1 of the dragData["files"] into fn
focus on me; put the selectedChunk into sc
put fn into the selection
if sc is not empty then select char (word 2 of sc) to \
  (word 2 of sc +len(fn)-1) of me
  end if
end dragDrop

on dragEnter
  set the dragAction to "copy"
end dragenter


___
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: No internet!

2019-10-28 Thread Mark Wieder via use-livecode

On 10/28/19 3:34 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

The internet  cable 15 miles off Kapahi on the bottom of the ocean was cut last 
night! Because our Island has  the most important Missile range of the Pacific 
, we wonder if North Korean divers did it. Hehe just joking. But how does a 
cable half mile down under the surface get cut?


Makes an appointment at local barber shop?

--
 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


Re: callbacks in Mac video player?

2019-10-28 Thread Richard Gaskin via use-livecode

hh wrote:
>> Richard G. wrote:
>> The Dictionary says callbacks still work on macOS, but it
>> also says they're supported on Linux, where I don't recall
>> callbacks ever being supported, and for several years video
>> playback doesn't work at all.
>> I can't make callbacks work on macOS Catalina using v9.5.
>> Should they?
>
> Yes. But they don't. Use 8.1.10 or 9.0.5.

Thanks.  Unfortunately the reason I'm looking into this is to replace an 
old component dependent on 32-bit macOS, now that many are "upgrading" 
to Catalina.


::sigh::

I searched the bug DB, but couldn't find the report for this.  Do you 
know offhand what it's titled?


If we can't find a way to do video callbacks in LC our plan is to 
rewrite the app in HTML for the web.




I hear FileMaker users think video callbacks are really important

;)

--
 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: drag'n'drop in text fields

2019-10-28 Thread Bob Sneidar via use-livecode
If the field is locked you may have to set the dragActio to Copy on mouseEnter

Bob S


___
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: drag'n'drop in text fields

2019-10-28 Thread Bob Sneidar via use-livecode
on dragDrop doesn't trigger? 

on dragDrop
  put the dragData ["text"] into tDragText
end dragDrop

Bob S


> On Oct 28, 2019, at 14:03 , Klaus major-k via use-livecode 
>  wrote:
> 
> Hi all,
> 
> quick question LC 9.5 on macOS 10.14.6:
> 
> We can drag'n'drop text into textfields and 
> this works without any scripting.
> 
> We can also drag'n'drop one or more files into 
> a textfield and the filepath appears in the field 
> where we dropped the file(s).
> 
> However there does not seem to be any message 
> send to the field when dropping a file, but I want 
> to catch it.
> 
> I tried something like:
> 
> on selectionChanged
>  send "doit" to me in 10
> end selectionChanged
> 
> command doit
>  put the selection
> end doit
> 
> However I can see the pathname is selected but nothing
> appears in the messagebox.
> 
> What am I missing or what should I do instead?
> 
> Thanks in advance!
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> 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


No internet!

2019-10-28 Thread Sannyasin Brahmanathaswami via use-livecode
The internet  cable 15 miles off Kapahi on the bottom of the ocean was cut last 
night! Because our Island has  the most important Missile range of the Pacific 
, we wonder if North Korean divers did it. Hehe just joking. But how does a 
cable half mile down under the surface get cut?

Very interesting to watch my app try to ping for a connection

Put uRL “https://www.himalayanacademy.com/ping.txt” into tConnection

Should return “true” right awaybut takes forever with cable cut. I think it 
is looking for DNS first, can’t get dns first.

What the best way to set up a timeout for this scenario?

It probably a good thing. As connectivity in our app needs more work

(Sent for my mobile)


Satchiai Iru - Be a Witness
___
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: Merge PDF

2019-10-28 Thread Paul McClernan via use-livecode
Not to my knowledge, but I'm sure it's completely doable. I once created an
LC script that could extract embedded JPEGs from inside PDFs. The PDF File
Format docs have been made available by Adobe (back in 2011 I think).

Another option would be to use Shell() function with one of the PDF
command-line tools that are around, like the free PDFtk for example.

On Thu, Oct 17, 2019 at 12:28 PM FlexibleLearning.com via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Has anyone got an LC-based method to merge pdf files?
>
> Just asking...
>
> Hugh Senior
>
> ___
> 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: drag'n'drop in text fields

2019-10-28 Thread Klaus major-k via use-livecode
Hi Paul,

> Am 28.10.2019 um 22:47 schrieb Paul Dupuis via use-livecode 
> :
> 
> On 10/28/2019 5:40 PM, Klaus major-k via use-livecode wrote:
>> Hi Paul.
>> 
>>> It sounds like a bug that should be reported. If there is text in a field 
>>> (regardless of how it go there (paste, drag drop, typing, or by script) and 
>>> it is selected, the the selection, selectedChunk,a dn all related 
>>> properties should be set. If the text as placed in a field by any means 
>>> other than script (paste, typing, drag drop) a textChanged message should 
>>> be sent. I don't think textChanged is sent if a script changes the text.
>> YEAH, TEXTCHANGED is what I should use!
>> This does what I need:
>> --
>> command doit
>>   put the selectedtext of me
>> end doit
>> 
>> on textChanged
>>   send "doit" to me in 10
>> end textChanged
>> 
>> Thank you very much! :-)
>> 
>> However "selectionchanged" should also be triggered, not?
> 
> If there was not a selection in the field and now there is a visible 
> selection (as you described) then, yes, a selectionChanged message and, to 
> me, more importantly, functions like:
> 
> However "the selectedtext of fld xyz" is reported to be empty
> so is "the selection" and "the selectedchunk" returns the insertion point
> right BEFORE the file has been dropped -> char 75 to 74 of fld xyz
> 
> Should reflect the visible selection. If this is not the case, this should be 
> reported as a bug - one that I would CC myself on since it could impact my 
> apps.

Sure, will report this tomorrow!
Again, thanks for pointing me to "textchanged"! :-)


Best

Klaus

--
Klaus Major
https://www.major-k.de
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: identifying text chars in an image

2019-10-28 Thread Phil Davis via use-livecode
One thing I found is when I cropped my test image to include only one 
horizontal word, tesseract handled that fine. So... if I could detect 
the grid pattern in which all the letters are laid out, maybe I could 
feed the letters to an OCR tool one word or char at a time and get the 
results I'm looking for. That would also give me clear info about 
spatial relations between the letters, so I could group them correctly 
into words.


So maybe I should first be asking about detecting the grid established 
by the scrabble letters.


(It's actually Bananagrams letters. My nerdy grandkids like to use 
Scrabble letters when playing Bananagrams so they can see who gets high 
score.)


Thanks -
Phil


On 10/28/19 2:23 PM, Phil Davis via use-livecode wrote:
Thanks for the followup on this. I experimented some with tesseract 
and came to the same conclusion.


Since the values assigned to each character are standard wthin 
Scrabble, I don't really need to detect those tiny numerals. But the 
alpha chars are of course essential.


I believe there must be a way to get there. Thankfully no one is 
pressuring me to finish it, so I can explore.


Phil


On 10/28/19 1:57 PM, hh via use-livecode wrote:

After a second read I think it will be hard to find a service to do that
for you. And this is not doable using tesseract or similar from 
LiveCode:


AFAIK, no "ordinary" OCR software is able to detect and read horizontal
*and* vertical text and distinguish clearly between the board's "Score
text" and the "Scrabble letters". You (or your service) would have to
write an own "learning routine" for that.

E.g. the algorithm described here:
http://rasdasd.com/projects/Scrabble_Detector/Scrabble_Paper.pdf

There are also approaches for own specialized boards like here
https://github.com/eladj/ScrabbleOCR
You could try to use the java from there via LC Builder's FFI.


Phil D. wrote:
I want to [programmatically] take a picture of a Scrabble board and 
then

take from that image the characters displayed in it, and maintain the
organization of the text. In other words, I want to convert the text
displayed in the image to text strings.

Any ideas where I should start?

I would love to be able to do it in my app. However I'm not completely
against uploading the image to a service that would do it for me; I am
only mostly against it.


___
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
503-307-4363


___
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: drag'n'drop in text fields

2019-10-28 Thread Paul Dupuis via use-livecode

On 10/28/2019 5:40 PM, Klaus major-k via use-livecode wrote:

Hi Paul.


Am 28.10.2019 um 22:34 schrieb Paul Dupuis via use-livecode 
:
...

on dragDrop
  if "files" is among the keys of the dragData then
put line 1 of the dragData["files"] -- or whatever
  end if
end dragDrop

on dragEnter
  set the dragAction to "copy"
end dragenter

thank you, also tried that, but then the pathname does not appear in the field.

I want to:
Drag'n'Drop a file into the field -> works without scripting
The pathname appears in the field and is definitively selected!

However "the selectedtext of fld xyz" is reported to be empty
so is "the selection" and "the selectedchunk" returns the insertion point
right BEFORE the file has been dropped -> char 75 to 74 of fld xyz

I want to get that pathname from inside of the field = AFTER the file has been 
dropped.

It sounds like a bug that should be reported. If there is text in a field 
(regardless of how it go there (paste, drag drop, typing, or by script) and it 
is selected, the the selection, selectedChunk,a dn all related properties 
should be set. If the text as placed in a field by any means other than script 
(paste, typing, drag drop) a textChanged message should be sent. I don't think 
textChanged is sent if a script changes the text.

YEAH, TEXTCHANGED is what I should use!
This does what I need:
--
command doit
   put the selectedtext of me
end doit

on textChanged
   send "doit" to me in 10
end textChanged

Thank you very much! :-)

However "selectionchanged" should also be triggered, not?




If there was not a selection in the field and now there is a visible 
selection (as you described) then, yes, a selectionChanged message and, 
to me, more importantly, functions like:


However "the selectedtext of fld xyz" is reported to be empty
so is "the selection" and "the selectedchunk" returns the insertion point
right BEFORE the file has been dropped -> char 75 to 74 of fld xyz

Should reflect the visible selection. If this is not the case, this 
should be reported as a bug - one that I would CC myself on since it 
could impact my 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: drag'n'drop in text fields

2019-10-28 Thread Klaus major-k via use-livecode
Hi Paul.

> Am 28.10.2019 um 22:34 schrieb Paul Dupuis via use-livecode 
> :
> ...
>> 
>>> on dragDrop
>>>  if "files" is among the keys of the dragData then
>>>put line 1 of the dragData["files"] -- or whatever
>>>  end if
>>> end dragDrop
>>> 
>>> on dragEnter
>>>  set the dragAction to "copy"
>>> end dragenter
>> thank you, also tried that, but then the pathname does not appear in the 
>> field.
>> 
>> I want to:
>> Drag'n'Drop a file into the field -> works without scripting
>> The pathname appears in the field and is definitively selected!
>> 
>> However "the selectedtext of fld xyz" is reported to be empty
>> so is "the selection" and "the selectedchunk" returns the insertion point
>> right BEFORE the file has been dropped -> char 75 to 74 of fld xyz
>> 
>> I want to get that pathname from inside of the field = AFTER the file has 
>> been dropped.
> It sounds like a bug that should be reported. If there is text in a field 
> (regardless of how it go there (paste, drag drop, typing, or by script) and 
> it is selected, the the selection, selectedChunk,a dn all related properties 
> should be set. If the text as placed in a field by any means other than 
> script (paste, typing, drag drop) a textChanged message should be sent. I 
> don't think textChanged is sent if a script changes the text.

YEAH, TEXTCHANGED is what I should use!
This does what I need:
--
command doit
  put the selectedtext of me
end doit

on textChanged
  send "doit" to me in 10
end textChanged

Thank you very much! :-)

However "selectionchanged" should also be triggered, not?


Best

Klaus
--
Klaus Major
https://www.major-k.de
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: drag'n'drop in text fields

2019-10-28 Thread Paul Dupuis via use-livecode

On 10/28/2019 5:25 PM, Klaus major-k via use-livecode wrote:

Hi Hermann,


Am 28.10.2019 um 22:15 schrieb hh via use-livecode 
:

on dragDrop
  if "files" is among the keys of the dragData then
put line 1 of the dragData["files"] -- or whatever
  end if
end dragDrop

on dragEnter
  set the dragAction to "copy"
end dragenter

thank you, also tried that, but then the pathname does not appear in the field.

I want to:
Drag'n'Drop a file into the field -> works without scripting
The pathname appears in the field and is definitively selected!

However "the selectedtext of fld xyz" is reported to be empty
so is "the selection" and "the selectedchunk" returns the insertion point
right BEFORE the file has been dropped -> char 75 to 74 of fld xyz

I want to get that pathname from inside of the field = AFTER the file has been 
dropped.




It sounds like a bug that should be reported. If there is text in a 
field (regardless of how it go there (paste, drag drop, typing, or by 
script) and it is selected, the the selection, selectedChunk,a dn all 
related properties should be set. If the text as placed in a field by 
any means other than script (paste, typing, drag drop) a textChanged 
message should be sent. I don't think textChanged is sent if a script 
changes the text.



___
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: drag'n'drop in text fields

2019-10-28 Thread Klaus major-k via use-livecode
Hi Hermann,

> Am 28.10.2019 um 22:15 schrieb hh via use-livecode 
> :
> 
> on dragDrop
>  if "files" is among the keys of the dragData then
>put line 1 of the dragData["files"] -- or whatever
>  end if
> end dragDrop
> 
> on dragEnter
>  set the dragAction to "copy"
> end dragenter

thank you, also tried that, but then the pathname does not appear in the field.

I want to:
Drag'n'Drop a file into the field -> works without scripting
The pathname appears in the field and is definitively selected!

However "the selectedtext of fld xyz" is reported to be empty
so is "the selection" and "the selectedchunk" returns the insertion point
right BEFORE the file has been dropped -> char 75 to 74 of fld xyz

I want to get that pathname from inside of the field = AFTER the file has been 
dropped.


Best

Klaus
--
Klaus Major
https://www.major-k.de
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: identifying text chars in an image

2019-10-28 Thread Phil Davis via use-livecode
Thanks for the followup on this. I experimented some with tesseract and 
came to the same conclusion.


Since the values assigned to each character are standard wthin Scrabble, 
I don't really need to detect those tiny numerals. But the alpha chars 
are of course essential.


I believe there must be a way to get there. Thankfully no one is 
pressuring me to finish it, so I can explore.


Phil


On 10/28/19 1:57 PM, hh via use-livecode wrote:

After a second read I think it will be hard to find a service to do that
for you. And this is not doable using tesseract or similar from LiveCode:

AFAIK, no "ordinary" OCR software is able to detect and read horizontal
*and* vertical text and distinguish clearly between the board's "Score
text" and the "Scrabble letters". You (or your service) would have to
write an own "learning routine" for that.

E.g. the algorithm described here:
http://rasdasd.com/projects/Scrabble_Detector/Scrabble_Paper.pdf

There are also approaches for own specialized boards like here
https://github.com/eladj/ScrabbleOCR
You could try to use the java from there via LC Builder's FFI.


Phil D. wrote:
I want to [programmatically] take a picture of a Scrabble board and then
take from that image the characters displayed in it, and maintain the
organization of the text. In other words, I want to convert the text
displayed in the image to text strings.

Any ideas where I should start?

I would love to be able to do it in my app. However I'm not completely
against uploading the image to a service that would do it for me; I am
only mostly against it.


___
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
503-307-4363


___
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: drag'n'drop in text fields

2019-10-28 Thread Klaus major-k via use-livecode
Hi Richmond,

> Am 28.10.2019 um 22:19 schrieb Richmond via use-livecode 
> :
> 
> |local fldState on mouseEnter if fld "fff" is empty then put "0" into 
> fldState end mouseEnter on mouseWithin if fld "fff" is empty then -- do 
> nothing else put "1" into fldState end if if fldState > 0 then set the 
> textColor of fld "fff" to red end if end mouseWithin |

sorry, Bulgaria: Zero points 8-)
Definitvely NOT what I am after...

> On 28.10.19 23:03, Klaus major-k via use-livecode wrote:
>> Hi all,
>> 
>> quick question LC 9.5 on macOS 10.14.6:
>> 
>> We can drag'n'drop text into textfields and
>> this works without any scripting.
>> 
>> We can also drag'n'drop one or more files into
>> a textfield and the filepath appears in the field
>> where we dropped the file(s).
>> 
>> However there does not seem to be any message
>> send to the field when dropping a file, but I want
>> to catch it.
>> 
>> I tried something like:
>> 
>> on selectionChanged
>>   send "doit" to me in 10
>> end selectionChanged
>> 
>> command doit
>>   put the selection
>> end doit
>> 
>> However I can see the pathname is selected but nothing
>> appears in the messagebox.
>> 
>> What am I missing or what should I do instead?
--
Klaus Major
https://www.major-k.de
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: drag'n'drop in text fields

2019-10-28 Thread Richmond via use-livecode
|local fldState on mouseEnter if fld "fff" is empty then put "0" into 
fldState end mouseEnter on mouseWithin if fld "fff" is empty then -- do 
nothing else put "1" into fldState end if if fldState > 0 then set the 
textColor of fld "fff" to red end if end mouseWithin |




On 28.10.19 23:03, Klaus major-k via use-livecode wrote:

Hi all,

quick question LC 9.5 on macOS 10.14.6:

We can drag'n'drop text into textfields and
this works without any scripting.

We can also drag'n'drop one or more files into
a textfield and the filepath appears in the field
where we dropped the file(s).

However there does not seem to be any message
send to the field when dropping a file, but I want
to catch it.

I tried something like:

on selectionChanged
   send "doit" to me in 10
end selectionChanged

command doit
   put the selection
end doit

However I can see the pathname is selected but nothing
appears in the messagebox.

What am I missing or what should I do instead?

Thanks in advance!


Best

Klaus
--
Klaus Major
https://www.major-k.de
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: drag'n'drop in text fields

2019-10-28 Thread hh via use-livecode
on dragDrop
  if "files" is among the keys of the dragData then
put line 1 of the dragData["files"] -- or whatever
  end if
end dragDrop

on dragEnter
  set the dragAction to "copy"
end dragenter

___
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: callbacks in Mac video player?

2019-10-28 Thread hh via use-livecode
> Richard G. wrote:
> The Dictionary says callbacks still work on macOS, but it
> also says they're supported on Linux, where I don't recall
> callbacks ever being supported, and for several years video
> playback doesn't work at all.
> I can't make callbacks work on macOS Catalina using v9.5.
> Should they?

Yes. But they don't. Use 8.1.10 or 9.0.5.
TMHO 9.5.0 has effectively "beta" status.


___
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


The Roadmap

2019-10-28 Thread Richmond via use-livecode

The Roadmap is more than a year out of date.

https://livecode.com/resources/roadmap/

Is there any chance of it being updated?

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


drag'n'drop in text fields

2019-10-28 Thread Klaus major-k via use-livecode
Hi all,

quick question LC 9.5 on macOS 10.14.6:

We can drag'n'drop text into textfields and 
this works without any scripting.

We can also drag'n'drop one or more files into 
a textfield and the filepath appears in the field 
where we dropped the file(s).

However there does not seem to be any message 
send to the field when dropping a file, but I want 
to catch it.

I tried something like:

on selectionChanged
  send "doit" to me in 10
end selectionChanged

command doit
  put the selection
end doit

However I can see the pathname is selected but nothing
appears in the messagebox.

What am I missing or what should I do instead?

Thanks in advance!


Best

Klaus
--
Klaus Major
https://www.major-k.de
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: identifying text chars in an image

2019-10-28 Thread hh via use-livecode
After a second read I think it will be hard to find a service to do that
for you. And this is not doable using tesseract or similar from LiveCode:

AFAIK, no "ordinary" OCR software is able to detect and read horizontal
*and* vertical text and distinguish clearly between the board's "Score
text" and the "Scrabble letters". You (or your service) would have to
write an own "learning routine" for that.

E.g. the algorithm described here:
http://rasdasd.com/projects/Scrabble_Detector/Scrabble_Paper.pdf

There are also approaches for own specialized boards like here
https://github.com/eladj/ScrabbleOCR
You could try to use the java from there via LC Builder's FFI.

> Phil D. wrote:
> I want to [programmatically] take a picture of a Scrabble board and then 
> take from that image the characters displayed in it, and maintain the 
> organization of the text. In other words, I want to convert the text 
> displayed in the image to text strings.
> 
> Any ideas where I should start?
> 
> I would love to be able to do it in my app. However I'm not completely 
> against uploading the image to a service that would do it for me; I am 
> only mostly against it.


___
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


callbacks in Mac video player?

2019-10-28 Thread Richard Gaskin via use-livecode
The Dictionary says callbacks still work on macOS, but it also says 
they're supported on Linux, where I don't recall callbacks ever being 
supported, and for several years video playback doesn't work at all.


I can't make callbacks work on macOS Catalina using v9.5.

Should they?

--
 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: Red Dot Breakpoint Crashes

2019-10-28 Thread doc hawk via use-livecode
I *am* truly fascinated that for once, I’m the one not having problems while 
others are being terrorized by the dreaded Pirate Code Dots . . . .

They sill move around the script in odd ways at times, but the ones that stay 
put do indeed stop execution where they’re supposed to . . . 
___
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: past unformatted & inspector field "styled text"

2019-10-28 Thread Bob Sneidar via use-livecode
Yeah that was one of my gripes about the Tree View widget, which is what the 
property inspector uses now. There are a few other beefs, but one I have is 
that when you create a new node, it does not SELECT the node you just created 
so you can name it. You have to CLICK ON IT, because if you don't you can end 
up killing a node with sub-nodes by typing in a string. 

I tried looking into the widget itself to see if I could change it's behavior, 
but I gave up, partly because I don't do this for a living and don't really 
have the time or wherewithal to do so, and partly because learning to develop 
widgets appeared to me to be non-trivial. 

Bob S


> On Oct 28, 2019, at 11:32 , Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Craig,
> 
>> Am 28.10.2019 um 19:24 schrieb dunbarx--- via use-livecode 
>> :
>> 
>> Klaus.
>> All works for me here.
>> It is possible you have not placed a blinking cursor into the inspector 
>> field?
> 
> I can SEE the pasted (unformatted) text in the field, but the text does not 
> make it into
> the field on the cqard. When I switch the TABs in the inspector and get back 
> to "styled text" 
> no text in the field in the inspector.
> 
> One minute later...
> 
> AHA, looks like I need to hit ENTER to "confirm" my pasting!?
> Yep, after hitting ENTER it works as exspected, sheeesh... :-)


___
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: past unformatted & inspector field "styled text"

2019-10-28 Thread dunbarx--- via use-livecode
Klaus.
Now I see what you see. I cannot be sure I did not mess up the procedure 
earlier because I am getting mixed results. Sometimes the paste is formatted, 
and sometimes not. . But now when using the menu, if the formatting is indeed 
plain, nothing appears in the card field. 


-Original Message-
From: dunbarx--- via use-livecode 
To: use-livecode 
Cc: dunbarx 
Sent: Mon, Oct 28, 2019 2:25 pm
Subject: Re: past unformatted & inspector field "styled text"

Klaus.
All works for me here.
It is possible you have not placed a blinking cursor into the inspector field?


-Original Message-
From: Klaus major-k via use-livecode 
To: How to use LiveCode 
Cc: Klaus major-k 
Sent: Mon, Oct 28, 2019 1:51 pm
Subject: Re: past unformatted & inspector field "styled text"

Hi Craig,

> Am 28.10.2019 um 18:43 schrieb dunbarx--- via use-livecode 
> :
> 
> Klaus.
> Yes, from the menu. Works the same as CMD-V.
> I get something each way. But it is NOT unformatted, each way.

??? 
That works here as advertized, no formatted text after using the shortcut or 
menu!
Problem, the text does not get into the field on the card!

And when I switch back to the "stacled text" tab of the inspector, the pasted 
text is also gone!?
Too funky!?

Someone else seeing this?

> Craig

Best

Klaus

--
Klaus Major
https://www.major-k.de
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: past unformatted & inspector field "styled text"

2019-10-28 Thread Klaus major-k via use-livecode
Hi Craig,

> Am 28.10.2019 um 19:24 schrieb dunbarx--- via use-livecode 
> :
> 
> Klaus.
> All works for me here.
> It is possible you have not placed a blinking cursor into the inspector field?

I can SEE the pasted (unformatted) text in the field, but the text does not 
make it into
the field on the cqard. When I switch the TABs in the inspector and get back to 
"styled text" 
no text in the field in the inspector.

One minute later...

AHA, looks like I need to hit ENTER to "confirm" my pasting!?
Yep, after hitting ENTER it works as exspected, sheeesh... :-)

> -Original Message-
> From: Klaus major-k via use-livecode 
> To: How to use LiveCode 
> Cc: Klaus major-k 
> Sent: Mon, Oct 28, 2019 1:51 pm
> Subject: Re: past unformatted & inspector field "styled text"
> 
> Hi Craig,
> 
>> Am 28.10.2019 um 18:43 schrieb dunbarx--- via use-livecode 
>> :
>> 
>> Klaus.
>> Yes, from the menu. Works the same as CMD-V.
>> I get something each way. But it is NOT unformatted, each way.
> 
> ??? 
> That works here as advertized, no formatted text after using the shortcut or 
> menu!
> Problem, the text does not get into the field on the card!
> 
> And when I switch back to the "stacled text" tab of the inspector, the pasted 
> text is also gone!?
> Too funky!?
> 
> Someone else seeing this?

Best

Klaus

--
Klaus Major
https://www.major-k.de
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: Close oddness

2019-10-28 Thread Richmond via use-livecode

Using the menu.

On 28.10.19 16:55, Bob Sneidar via use-livecode wrote:

programmatically or using the menu?

Bob S



On Oct 26, 2019, at 07:45 , Richmond via use-livecode 
 wrote:

When I try to close a stack via

Close and Remove from Memory

[ MacOS 10.14.6, LC 9.5.0 ]

the stack does not close, but I get the

"Standalone application saved successfully"

announcement window.

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


Re: past unformatted & inspector field "styled text"

2019-10-28 Thread dunbarx--- via use-livecode
Klaus.
All works for me here.
It is possible you have not placed a blinking cursor into the inspector field?


-Original Message-
From: Klaus major-k via use-livecode 
To: How to use LiveCode 
Cc: Klaus major-k 
Sent: Mon, Oct 28, 2019 1:51 pm
Subject: Re: past unformatted & inspector field "styled text"

Hi Craig,

> Am 28.10.2019 um 18:43 schrieb dunbarx--- via use-livecode 
> :
> 
> Klaus.
> Yes, from the menu. Works the same as CMD-V.
> I get something each way. But it is NOT unformatted, each way.

??? 
That works here as advertized, no formatted text after using the shortcut or 
menu!
Problem, the text does not get into the field on the card!

And when I switch back to the "stacled text" tab of the inspector, the pasted 
text is also gone!?
Too funky!?

Someone else seeing this?

> Craig

Best

Klaus

--
Klaus Major
https://www.major-k.de
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: identifying text chars in an image

2019-10-28 Thread Phil Davis via use-livecode
Thanks Richmond and hh - really appreciate these ideas. I'll be looking 
into them.


Phil


On 10/28/19 7:26 AM, hh via use-livecode wrote:

There are also emscripten ports to javascript you could use via
a browser widget (and a CDN if online).

https://tesseract.projectnaptha.com
https://antimatter15.com/ocrad.js/demo.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




--
Phil Davis
503-307-4363


___
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: past unformatted & inspector field "styled text"

2019-10-28 Thread Klaus major-k via use-livecode
Hi Craig,

> Am 28.10.2019 um 18:43 schrieb dunbarx--- via use-livecode 
> :
> 
> Klaus.
> Yes, from the menu. Works the same as CMD-V.
> I get something each way. But it is NOT unformatted, each way.

??? 
That works here as advertized, no formatted text after using the shortcut or 
menu!
Problem, the text does not get into the field on the card!

And when I switch back to the "stacled text" tab of the inspector, the pasted 
text is also gone!?
Too funky!?

Someone else seeing this?

> Craig

Best

Klaus

--
Klaus Major
https://www.major-k.de
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: past unformatted & inspector field "styled text"

2019-10-28 Thread dunbarx--- via use-livecode
Klaus.
Yes, from the menu. Works the same as CMD-V.
I get something each way. But it is NOT unformatted, each way.
Craig


-Original Message-
From: Klaus major-k via use-livecode 
To: How to use LiveCode 
Cc: Klaus major-k 
Sent: Mon, Oct 28, 2019 1:26 pm
Subject: Re: past unformatted & inspector field "styled text"

Hi Craig,

> Am 28.10.2019 um 18:01 schrieb dunbarx--- via use-livecode 
> :
> 
> Klaus.
> I get whatever I copied into that inspector field. But it retains the 
> formatting of the source.

sure you did "past UNformatted"?

> Craig
> 
> 
> -Original Message-
> From: Klaus major-k via use-livecode 
> To: How to use LiveCode 
> Cc: Klaus major-k 
> Sent: Mon, Oct 28, 2019 12:53 pm
> Subject: past unformatted & inspector field "styled text"
> 
> Hi all,
> 
> when I "paste unformatted"*** into the field "styled text"
> in the inspector for a field, nothing gets into that namely 
> field in the end!?
> 
> ***Via menu or shortcut
> 
> As if I did not paste anything!
> 
> Can someone please confirm this before I report this as a bug?
> Or is this an undocumented feature? 8-)
> 
> Thank you!

Best

Klaus

--
Klaus Major
https://www.major-k.de
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: past unformatted & inspector field "styled text"

2019-10-28 Thread Klaus major-k via use-livecode
Hi Craig,

> Am 28.10.2019 um 18:01 schrieb dunbarx--- via use-livecode 
> :
> 
> Klaus.
> I get whatever I copied into that inspector field. But it retains the 
> formatting of the source.

sure you did "past UNformatted"?

> Craig
> 
> 
> -Original Message-
> From: Klaus major-k via use-livecode 
> To: How to use LiveCode 
> Cc: Klaus major-k 
> Sent: Mon, Oct 28, 2019 12:53 pm
> Subject: past unformatted & inspector field "styled text"
> 
> Hi all,
> 
> when I "paste unformatted"*** into the field "styled text"
> in the inspector for a field, nothing gets into that namely 
> field in the end!?
> 
> ***Via menu or shortcut
> 
> As if I did not paste anything!
> 
> Can someone please confirm this before I report this as a bug?
> Or is this an undocumented feature? 8-)
> 
> Thank you!

Best

Klaus

--
Klaus Major
https://www.major-k.de
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: past unformatted & inspector field "styled text"

2019-10-28 Thread dunbarx--- via use-livecode
Klaus.
I get whatever I copied into that inspector field. But it retains the 
formatting of the source.
Craig


-Original Message-
From: Klaus major-k via use-livecode 
To: How to use LiveCode 
Cc: Klaus major-k 
Sent: Mon, Oct 28, 2019 12:53 pm
Subject: past unformatted & inspector field "styled text"

Hi all,

when I "paste unformatted"*** into the field "styled text"
in the inspector for a field, nothing gets into that namely 
field in the end!?

***Via menu or shortcut

As if I did not paste anything!

Can someone please confirm this before I report this as a bug?
Or is this an undocumented feature? 8-)

Thank you!


Best

Klaus

--
Klaus Major
https://www.major-k.de
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


past unformatted & inspector field "styled text"

2019-10-28 Thread Klaus major-k via use-livecode
Hi all,

when I "paste unformatted"*** into the field "styled text"
in the inspector for a field, nothing gets into that namely 
field in the end!?

***Via menu or shortcut

As if I did not paste anything!

Can someone please confirm this before I report this as a bug?
Or is this an undocumented feature? 8-)

Thank you!


Best

Klaus

--
Klaus Major
https://www.major-k.de
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: Close oddness

2019-10-28 Thread Bob Sneidar via use-livecode
programmatically or using the menu?

Bob S


> On Oct 26, 2019, at 07:45 , Richmond via use-livecode 
>  wrote:
> 
> When I try to close a stack via
> 
> Close and Remove from Memory
> 
> [ MacOS 10.14.6, LC 9.5.0 ]
> 
> the stack does not close, but I get the
> 
> "Standalone application saved successfully"
> 
> announcement window.
> 
> 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: identifying text chars in an image

2019-10-28 Thread hh via use-livecode
There are also emscripten ports to javascript you could use via
a browser widget (and a CDN if online).

https://tesseract.projectnaptha.com
https://antimatter15.com/ocrad.js/demo.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: identifying text chars in an image

2019-10-28 Thread hh via use-livecode
The sample stack "DePerspective/Undistort Images 1.0.1"
http://livecodeshare.runrev.com/stack/824/DePerspective-Undistort-Images-1-0-1

uses for a given image tesseract if installed on the system (mac/win/linux).
___
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: Learning from scratch - any recommendations?

2019-10-28 Thread dunbarx--- via use-livecode
Hi.
I have taught several newbies. I always start with a simple app, like an 
address book. I show how controls are created, and how scripts are built. 
During that process, I am off in the weeds, writing short handlers showing how 
the cursor can trigger things like mouseEnter or mouseMove, these messages 
having nothing to do with the task at hand, but  rather similar to what we are 
working on.
This is all way before the message hierarchy or anything intermediate like 
that. The point is to get them hooked, and that can only happen if the basic 
simple things appear accessible and comfortable. If you are good at this, it 
will also appear to be fun.
Craig


-Original Message-
From: Graham Samuel via use-livecode 
To: How to use LiveCode 
Cc: Graham Samuel 
Sent: Mon, Oct 28, 2019 8:53 am
Subject: Learning from scratch - any recommendations?

Hi all

I have been approached by one of my family to ask what would be the first steps 
for someone (a young adult) to enable them to enter the world of app design and 
programming. Obviously I need to ask more questions myself, such as whether 
this would be to get a job, or simply as an educational exercise, or maybe to 
provide a launchpad for a startup idea. However, even at this stage, of course 
my thoughts turned to LiveCode.

So my question to the community is, how would such a person start off - 
assuming they’re intelligent, very familiar with consumer-level technology such 
as smart phones, tablets, laptop computers for study etc. and social media, but 
probably have never seen or thought about what is involved in designing, 
implementing and publishing an app (I would just say “a program”, but that 
shows how old I am) on any platform? If it is LC (and why not?), are the 
published lessons sufficient? What is the view of those on this list who do 
actually teach this stuff? 

The trouble for me is that I have been around all this for 50 years (more, to 
be truthful) and so can’t project myself well into the mind of that kind of 
newbie. One guess is that one way to start would be to find a cheap hardware 
platform (probably an Android tablet) and try to use the LC Community Edition 
to allow me to create something for that; but that idea may be stupid, 
particularly as one would need a different platform to actually do the 
development work.

Hoping for some insights

Graham
___
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


Learning from scratch - any recommendations?

2019-10-28 Thread Graham Samuel via use-livecode
Hi all

I have been approached by one of my family to ask what would be the first steps 
for someone (a young adult) to enable them to enter the world of app design and 
programming. Obviously I need to ask more questions myself, such as whether 
this would be to get a job, or simply as an educational exercise, or maybe to 
provide a launchpad for a startup idea. However, even at this stage, of course 
my thoughts turned to LiveCode.

So my question to the community is, how would such a person start off - 
assuming they’re intelligent, very familiar with consumer-level technology such 
as smart phones, tablets, laptop computers for study etc. and social media, but 
probably have never seen or thought about what is involved in designing, 
implementing and publishing an app (I would just say “a program”, but that 
shows how old I am) on any platform? If it is LC (and why not?), are the 
published lessons sufficient? What is the view of those on this list who do 
actually teach this stuff? 

The trouble for me is that I have been around all this for 50 years (more, to 
be truthful) and so can’t project myself well into the mind of that kind of 
newbie. One guess is that one way to start would be to find a cheap hardware 
platform (probably an Android tablet) and try to use the LC Community Edition 
to allow me to create something for that; but that idea may be stupid, 
particularly as one would need a different platform to actually do the 
development work.

Hoping for some insights

Graham
___
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: identifying text chars in an image

2019-10-28 Thread Antti Ilola via use-livecode
Is this any help.
https://github.com/tesseract-ocr/tesseract

Antti

ma 28. lokak. 2019 klo 11.38 Richmond Mathewson via use-livecode (
use-livecode@lists.runrev.com) kirjoitti:

> Well, that'd involve some sort of OCR . . . So you've either got to wrap
> some code up from elsewhere, or roll your own OCR routine in LiveCode.
>
> Tough call.
>
> On Mon, Oct 28, 2019, 9:45 AM Phil Davis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > I want to [programmatically] take a picture of a Scrabble board and then
> > take from that image the characters displayed in it, and maintain the
> > organization of the text. In other words, I want to convert the text
> > displayed in the image to text strings.
> >
> > Any ideas where I should start?
> >
> > I would love to be able to do it in my app. However I'm not completely
> > against uploading the image to a service that would do it for me; I am
> > only mostly against it.
> >
> > Thanks for any ideas to may have.
> >
> > --
> > Phil Davis
> > 503-307-4363
> >
> >
> > ___
> > 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: identifying text chars in an image

2019-10-28 Thread Richmond Mathewson via use-livecode
Well, that'd involve some sort of OCR . . . So you've either got to wrap
some code up from elsewhere, or roll your own OCR routine in LiveCode.

Tough call.

On Mon, Oct 28, 2019, 9:45 AM Phil Davis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I want to [programmatically] take a picture of a Scrabble board and then
> take from that image the characters displayed in it, and maintain the
> organization of the text. In other words, I want to convert the text
> displayed in the image to text strings.
>
> Any ideas where I should start?
>
> I would love to be able to do it in my app. However I'm not completely
> against uploading the image to a service that would do it for me; I am
> only mostly against it.
>
> Thanks for any ideas to may have.
>
> --
> Phil Davis
> 503-307-4363
>
>
> ___
> 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: Livecodeshare/SampleStacks

2019-10-28 Thread Erik Beugelaar via use-livecode
Richard, no problem checking. It looks promising.

A little bit of myself and a very late introduction ;-)  
I have been following LiveCode from 2010 resulting in a license of 5.5. Because 
of my professional work (Visual Basic 6/T-SQL followed up by C#/SQL Server/ASP 
.NET until now and a bit of Dart/Flutter) I had not enough time to put my hands 
really on it but reading the docs, the forum and RunRev Magazine (!) was a 
pleasant hobby in my spare time. In 2014 I was contacted by Packt Publishing if 
I was interested in reviewing a new book called LiveCode Mobile Development 
Cook Book written by Dr. Edward Lavieri, https://www.shorturl.at/bMR27  If you 
scroll down you can read why I was interested doing the review. I like to do 
programming using visual development tools because it was a blessing after 
developing business apps with good old Clipper (5.x using OO libraries) so many 
years in qEdit (!). I knew from Kevin in 2014 that HQ was working hard to 
implement an open standard as replacement of the old way extensions were built 
in 5.5. That process took some time so I didn't renew my license. When it 
became interesting (FFi implementation) I renewed my license from 6.x up till 
now (Indy). 
Because of a professional switch in my career, I now have more time to dive 
really deep in the philosophy of LiveCode and become a contributing member 
starting first to refresh my knowledge about the messaging system, design 
patterns (Levure!) etc, LiveCode Script ending with LiveCode Builder. My hands 
are burning!
I have collected an intensive folder with libraries, scripts etc from die hard 
LiveCode developers I followed all the years so I hope within a period of 6 
months to be comfortable writing programs in LiveCode and help fixing the bug 
list ;-)

All the best,
Erik Beugelaar
https://www.solidit.nl
Amsterdam, The Netherlands




On 28/10/2019, 03:11, "use-livecode on behalf of Richard Gaskin via 
use-livecode"  wrote:

Erik Beugelaar wrote:
> Me too no problems loading GoLiveNet  (LiveCode 9.5 Indy)

Thanks for checking that, Erik.  If you do come across an issue please 
let me know. I have contact info in LiveNet, and of course you can 
always write me at the address below.

LiveNet is fairly simple today, mostly serving as an example of the ease 
and utility of downloaded stack files. But I have some plans for 
expanding it if I can get the time, so keeping the current underpinnings 
working well through LC changes remains a keen interest.

-- 
   Richard Gaskin
   Fourth World Systems
   Software Design and Development for the Desktop, Mobile, and the Web
   
   Ambassador at FourthWorld.com
http://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


identifying text chars in an image

2019-10-28 Thread Phil Davis via use-livecode
I want to [programmatically] take a picture of a Scrabble board and then 
take from that image the characters displayed in it, and maintain the 
organization of the text. In other words, I want to convert the text 
displayed in the image to text strings.


Any ideas where I should start?

I would love to be able to do it in my app. However I'm not completely 
against uploading the image to a service that would do it for me; I am 
only mostly against it.


Thanks for any ideas to may have.

--
Phil Davis
503-307-4363


___
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