Re: Can LC read QR-Code?

2020-12-08 Thread Mark Wieder via use-livecode



On 12/8/20 7:15 PM, Richard Gaskin via use-livecode wrote:

> - Where is the documentation for QR *decoding* for both iOS and Android?

Ah. The QR library is for *generating* QR codes, not for reading them.

> - The Dictionary appears in my browser, not in a LiveCode window,
>so it appears the browser widget is still as dead as audio and
>video playback in LiveCode's Linux edition.

FWIW I can control wither mplayer or SMPlayer from LC on linux *as long 
as they're in separate windows*. Or I can play videos in the entire 
stack frame. Just not within a player rect.


>
>
> I have no deep affection for CEF.  How is this done without CEF on 
other platforms?  Does neither Firefox nor Chrome offer an embedded option?


Can't speak for Firefox... maybe Andre will chime in on this. But CEF is 
spawned from the Chrome codebase, so that's the option. The "problem" as 
I understand it, is that you're supposed to embed your application 
within the framework, and we're embedding the framework inside the LC 
engine. Somehow it works on Windows.


>
> Do you know offhand what Ubuntu was using when they were using an 
embedded browser a couple years ago for their dockable web apps?

>

Hey - *you're* the ubuntu expert here. Don't know these things.
AFAIK web apps are just browser launcher shortcuts.
https://www.maketecheasier.com/turn-website-to-app-linux/

--
 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: Can LC read QR-Code?

2020-12-08 Thread Richard Gaskin via use-livecode

Mark Wieder wrote:
> But eh? If I click on the Dictionary link in the IDE toolbar in the
> Indy version I get my local dictionary:
>
> file:///home/mwieder/.runrev/documentationcache/9_6_1_commercial
> /api.html
>
> and from there searching for "qr" brings up the correct entries.
> Are you seeing something different?

Only because of my environment customization.  But what remains are:

- Where is the documentation for QR *decoding* for both iOS and Android?

- If this adds value to the product, why hide it from the public?

- The Dictionary appears in my browser, not in a LiveCode window,
  so it appears the browser widget is still as dead as audio and
  video playback in LiveCode's Linux edition.


I have no deep affection for CEF.  How is this done without CEF on other 
platforms?  Does neither Firefox nor Chrome offer an embedded option?


Do you know offhand what Ubuntu was using when they were using an 
embedded browser a couple years ago for their dockable web apps?


--
 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: Can LC read QR-Code?

2020-12-08 Thread Mark Wieder via use-livecode

On 12/8/20 11:08 AM, Richard Gaskin via use-livecode wrote:

Thanks. I'm familiar with tindyDictionary and admire Bernd's work, but 
had hoped there would be documentation available on the web. I can 
download tinyDictionary, or just look at my Mac, so if the only 
documentation for the QR code reader is in the not-online-Dictionary at 
least I know where to go.



As for separate matter of the IDE-provided Dictionary, that it's broken 
in the Linux edition is the smaller problem, the bigger being that the 
reason there's no Dictionary is that there's no working browser widget.


I find Bernd's plugin much preferable to the browser-based dictionary. 
But YMMV, of course.


But eh? If I click on the Dictionary link in the IDE toolbar in the Indy 
version I get my local dictionary:


file:///home/mwieder/.runrev/documentationcache/9_6_1_commercial/api.html

and from there searching for "qr" brings up the correct entries.
Are you seeing something different?

--
 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: Can LC read QR-Code?

2020-12-08 Thread Richard Gaskin via use-livecode

Mark Weider wrote:

On 12/7/20 6:07 PM, Richard Gaskin via use-livecode wrote:


Where is LC's QR code plugin documented?

I have Indy, but LiveCode has no functioning browser widget for Linux, 
and so it has no Dictionary; instead it opens the Dictionary from the 
public site, which apparently only documents things in the Community 
Edition.




If you use Bernd Niggeman's tinyDictionary plugin you'll have access to 
the documentation on linux, and in a much more usable and readable form.


Thanks. I'm familiar with tindyDictionary and admire Bernd's work, but 
had hoped there would be documentation available on the web. I can 
download tinyDictionary, or just look at my Mac, so if the only 
documentation for the QR code reader is in the not-online-Dictionary at 
least I know where to go.



As for separate matter of the IDE-provided Dictionary, that it's broken 
in the Linux edition is the smaller problem, the bigger being that the 
reason there's no Dictionary is that there's no working browser widget.


I understand that there are legitimate challenges with that.  But I find 
it difficult to believe that it's technically impossible to embed a 
browser instance in another app on Linux.


I don't mind admitting that I speak naively on that; I can't recall 
offhand seeing another native Linux app that embeds a browser.  But 
given the increasing role of the browser widget as a solution in LC, if 
it's not going to be supported then at a minimum marking it and all 
things dependent on it (like the AOuth lib) as deprecated would at least 
provide clarity about what LC does and doesn't provide.


I guess one upside is that the combination of the browser's 
ever-increasing importance and not having that available in LC (along 
with audio and video playback and others), has prompted me to reconsider 
the role of the desktop and devote more time to exclusively-web 
deployments, the market for which is far from slowing down.



Hint: you can set 4Wdevolution's 'Dictionary' button to address it, and 
then you don't have to deal with the browser version any more.


Thanks for the plug. :)

--
 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: Can LC read QR-Code?

2020-12-08 Thread Mark Wieder via use-livecode

On 12/7/20 6:07 PM, Richard Gaskin via use-livecode wrote:


Where is LC's QR code plugin documented?

I have Indy, but LiveCode has no functioning browser widget for Linux, 
and so it has no Dictionary; instead it opens the Dictionary from the 
public site, which apparently only documents things in the Community 
Edition.




If you use Bernd Niggeman's tinyDictionary plugin you'll have access to 
the documentation on linux, and in a much more usable and readable form.


Hint: you can set 4Wdevolution's 'Dictionary' button to address it, and 
then you don't have to deal with the browser version any more.


--
 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: Can LC read QR-Code?

2020-12-07 Thread Sean Cole (Pi) via use-livecode
Hi Richard

This isn't quite what you was asking for (I have to have LC open on my Mac
to get the dictionary when coding in Linux), but here are the two library
bits from the dictionary:



*qrCreate*

Type

command

Syntax

qrCreate pImg,pData,pECC,pSize,pMask,pMinVersion,pMaxVersion

Associations

QR Code GeneratorSummaryCreate a QR codeParameters

NameType Description

pImg  The name of an image object on the card, a filename
or the special code "!" which will return the image data in the result.
pDataThe data to be encoded.
pECCThe error correction level

"L" : 7% error correction

"M" : 15% error correction

"Q" : 25% error correction

"H" : 30% error correction

pSize

Module size you can make the code larger/smaller. You can also just rescale
the image after the code has been created.

pMask

An integer value between 0 and 7. When encoding a QR code, there are eight
mask patterns that you can use to change the outputted matrix. Each mask
pattern changes the bits according to their coordinates in the QR matrix.
The purpose of a mask pattern is to make the QR code easier for a QR
scanner to read.

pMinVersion

An integer value between 1 and 40. It must be lower or equal to
pMaxVersion. If pMinVersion is not specified then the default value of 1 is
used.

pMaxVersion

An integer value between 1 and 40. It must be higher or equal to
pMinVersion. If pMaxVersion is not specified then the default value of 40
is used.


• Examples
qrCreate "MyImage", "QR data", "M", 3
--creating QR Code with ECC level M, Size 3, Mask 7 and version 14
qrCreate "MyImage", "QR data", "M", 3, 7, 14, 14
-- example how to use qrCreate with LiveCode server
qrCreate "!", tData, tECC, tSize
put the result into tData
if tData begins with "Error" then
   put tData
else
   # line 1 of the result contains some info
   # the remaining lines contain the png image data
   put line 1 of tData into tInfo
   delete line 1 of tData
   put "Qr code info" & LF
   put "Version: " & item 1 of tInfo & "" & LF
   put "ECC: " & item 2 of tInfo & "" & LF
   put "Mode: " & item 3 of tInfo & "" & LF
   put "Mask: " & item 4 of tInfo & "" & LF
   # show the image
   put base64Encode(tData) into tData
   replace LF with empty in tData
   put "" & LF
end if

Value

Name Type Description

the result

If successful, the first line of the result will be the following values:

QR version

ECC

Mode

Mask
Image size with quiet zone (based on module size 1)


If there was an error the result will contain "Error:" and then an error
description.

If the special character '!' is used for pImg, then the result also
contains the raw output of a png image. You can use this data, for example,
with LiveCode server to generate QR codes on web pages.


Description

Set the text of an image to a QR code or get the PMG data of the QR code
image.



*qrSetColors*

Type

command

Syntax

qrSetColors pForeground,pBackground

Associations

QR Code Generator

Summary

Set colors other than the default black and white

Parameters

NameTypeDescription

pForeground

A color name or RGB triplet

pBackground

A color name or RGB triplet

Examples

qrSetColors "Blue", "Yellow"

Description

Optionally use colors other than black and white there must be a high
enough contrast between colors for scanning the foreground color should be
darker than the background color.




Sean Cole
*Pi Digital *

On Tue, 8 Dec 2020 at 02:07, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Klaus wrote:
>
>  > Question, the dictionary says the "Android Barcode Library" works with
>  > LC INDY. But I remember there was one feature falsely reported as
>  > supported by INDY, but was BUSINESS only in the end. Was it this
>  > library?
>
> Where is LC's QR code plugin documented?
>
> I have Indy, but LiveCode has no functioning browser widget for Linux,
> and so it has no Dictionary; instead it opens the Dictionary from the
> public site, which apparently only documents things in the Community
> Edition.
>
> --
>   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
>
___
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: Can LC read QR-Code?

2020-12-07 Thread Richard Gaskin via use-livecode

Klaus wrote:

> Question, the dictionary says the "Android Barcode Library" works with
> LC INDY. But I remember there was one feature falsely reported as
> supported by INDY, but was BUSINESS only in the end. Was it this
> library?

Where is LC's QR code plugin documented?

I have Indy, but LiveCode has no functioning browser widget for Linux, 
and so it has no Dictionary; instead it opens the Dictionary from the 
public site, which apparently only documents things in the Community 
Edition.


--
 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: Can LC read QR-Code?

2020-11-18 Thread JeeJeeStudio via use-livecode

Geen dank Klaus.

Schone abend noch!

Gruessen,

Jerry

Op 18-11-2020 om 15:41 schreef Klaus major-k via use-livecode:

Dag JeeJee,


Am 18.11.2020 um 15:34 schrieb JeeJeeStudio via use-livecode 
:

It works in INDY, mein freund :)

dat is mooi, hartelijk bedankt, beste vriend! :-)


Op 18-11-2020 om 15:29 schreef Klaus major-k via use-livecode:

Hi all,

Am 18.11.2020 um 13:15 schrieb Klaus major-k via use-livecode 
:
Hi friends,

I know that LC can generate QR-Codes, but can it also read them?
On mobile? Thanks for any hint.

found it under BARCODE! 8-)

Question, the dictionary says the "Android Barcode Library" works with LC INDY.
But I remember there was one feature falsely reported as supported by INDY, but
was BUSINESS only in the end. Was it this library?

Groetjes

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: Can LC read QR-Code?

2020-11-18 Thread Klaus major-k via use-livecode
Dag JeeJee,

> Am 18.11.2020 um 15:34 schrieb JeeJeeStudio via use-livecode 
> :
> 
> It works in INDY, mein freund :)

dat is mooi, hartelijk bedankt, beste vriend! :-)

> Op 18-11-2020 om 15:29 schreef Klaus major-k via use-livecode:
>> Hi all,
>>> Am 18.11.2020 um 13:15 schrieb Klaus major-k via use-livecode 
>>> :
>>> Hi friends,
>>> 
>>> I know that LC can generate QR-Codes, but can it also read them?
>>> On mobile? Thanks for any hint.
>> found it under BARCODE! 8-)
>> 
>> Question, the dictionary says the "Android Barcode Library" works with LC 
>> INDY.
>> But I remember there was one feature falsely reported as supported by INDY, 
>> but
>> was BUSINESS only in the end. Was it this library?

Groetjes

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: Can LC read QR-Code?

2020-11-18 Thread JeeJeeStudio via use-livecode

It works in INDY, mein freund :)

Op 18-11-2020 om 15:29 schreef Klaus major-k via use-livecode:

Hi all,


Am 18.11.2020 um 13:15 schrieb Klaus major-k via use-livecode 
:

Hi friends,

I know that LC can generate QR-Codes, but can it also read them?
On mobile? Thanks for any hint.

found it under BARCODE! 8-)

Question, the dictionary says the "Android Barcode Library" works with LC INDY.
But I remember there was one feature falsely reported as supported by INDY, but
was BUSINESS only in the end. Was it this library?

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: Can LC read QR-Code?

2020-11-18 Thread Klaus major-k via use-livecode
Hi all,

> Am 18.11.2020 um 13:15 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi friends,
> 
> I know that LC can generate QR-Codes, but can it also read them?
> On mobile? Thanks for any hint.

found it under BARCODE! 8-)

Question, the dictionary says the "Android Barcode Library" works with LC INDY.
But I remember there was one feature falsely reported as supported by INDY, but 
was BUSINESS only in the end. Was it this library?

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


Can LC read QR-Code?

2020-11-18 Thread Klaus major-k via use-livecode
Hi friends,

I know that LC can generate QR-Codes, but can it also read them?
On mobile?

Thanks for any hint.


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