Re: HTML entity escaping?

2019-01-22 Thread Richard Gaskin via use-livecode

David Bovill wrote:

> Richard - thanks for the tip regarding using the template field - I
> was wondering if that would work on the server (see my latest post)

Oh yes.  You made that requirement clear.

You can read and write to LC object properties in a faceless 
command-line environment like CGI just as you can in a GUI.  The only 
difference of course is that you won't be able to see anything. :)



If you missed it, you may enjoy this tip: many versions ago (<7?) the 
team added graphics export support.  That's right: it will render a card 
into an internal buffer, and you can then export the card, or any object 
on the card, to any of the export formats LC supports (PNG, JPEG, GIF, 
etc.).


The simplest application for this might be a custom postcard generator, 
but I've used it for medical procedure diagrams.


The ability to generate custom graphics on the fly based on input coming 
from the user's browser is super-cool, and AFAIK has not been widely 
used in our community.


--
 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: HTML entity escaping?

2019-01-22 Thread David Bovill via use-livecode
Yes - sorry about that - copy and paste from Script Editor to Chrome now
seems to bring across all the formatting - I'll get rid of it next time.

Richard - thanks for the tip regarding using the template field - I was
wondering if that would work on the server (see my latest post) - I think
it's a direction I should go into as why code it when the engine can do it
for you :)


On Thu, 10 Jan 2019 at 15:35, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Something about copy/paste into Thunderbird.
>
> Bob S
>
>
> > On Jan 10, 2019, at 04:50 , Matthias Rebbe via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hi,
> >
> > is there a reason for all the * in the script?
> >
> > Makes it difficult  to read and uneeded work to get it correct in the SE.
> >
> > Matthias Rebbe
>
>
> ___
> 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: HTML entity escaping?

2019-01-10 Thread Bob Sneidar via use-livecode
Something about copy/paste into Thunderbird. 

Bob S


> On Jan 10, 2019, at 04:50 , Matthias Rebbe via use-livecode 
>  wrote:
> 
> Hi,
> 
> is there a reason for all the * in the script?
> 
> Makes it difficult  to read and uneeded work to get it correct in the SE.
> 
> Matthias Rebbe


___
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: HTML entity escaping?

2019-01-10 Thread Matthias Rebbe via use-livecode
Hi,

is there a reason for all the * in the script?

Makes it difficult  to read and uneeded work to get it correct in the SE.

Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de
https://winsignhelper.dermattes.de

> Am 10.01.2019 um 00:56 schrieb David Bovill via use-livecode 
> :
> 
> Hi Devin, yes that would work for an app - but this is for Livecode server
> - I'm not sure but is there a way to do that with revIgniter - ie create a
> field by script and use the functionality that way - this is the old hack
> I'm using / found - if anyone finds it useful / can improve on it ( i
> should probably use arrays):
> 
> *command* text_HtmlEntityEscape @someText, pNotQuotes
>> *local* sNum, eNum
>> *put* 0 into countNum
>> *put* "(&[^;]+;)" into someReg
>> *put* html_EntityList (pNotQuotes) into htmlEntities
>> *put* html_EntityCharNums (pNotQuotes) into entityCharNums
>> *set* the wholematches to true
>> 
>> *repeat**get* matchchunk (someText, someReg, sNum, eNum)
>> *if* sNum is not a number *then* *return* empty
>> *-- breakpoint -- bug**if* it is false *then* *return* countNum
>> *put* char sNum to eNum of someText into foundEntity
>> *if* char 1 to 2 of foundEntity = 

Re: HTML entity escaping?

2019-01-09 Thread Richard Gaskin via use-livecode

David Bovill wrote:

> yes that would work for an app - but this is for Livecode server

You can use a stack with a field in it for converting to htmlText, or 
run the html through the templateField.


--
 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: HTML entity escaping?

2019-01-09 Thread David Bovill via use-livecode
Hi Devin, yes that would work for an app - but this is for Livecode server
- I'm not sure but is there a way to do that with revIgniter - ie create a
field by script and use the functionality that way - this is the old hack
I'm using / found - if anyone finds it useful / can improve on it ( i
should probably use arrays):

*command* text_HtmlEntityEscape @someText, pNotQuotes
> *local* sNum, eNum
> *put* 0 into countNum
> *put* "(&[^;]+;)" into someReg
> *put* html_EntityList (pNotQuotes) into htmlEntities
> *put* html_EntityCharNums (pNotQuotes) into entityCharNums
> *set* the wholematches to true
>
> *repeat**get* matchchunk (someText, someReg, sNum, eNum)
> *if* sNum is not a number *then* *return* empty
> *-- breakpoint -- bug**if* it is false *then* *return* countNum
> *put* char sNum to eNum of someText into foundEntity
> *if* char 1 to 2 of foundEntity = 

Re: HTML entity escaping?

2019-01-08 Thread Devin Asay via use-livecode
David, I assume you mean you want to render the named entity as the proper 
glyph? The way to do that is with the htmlText property.

  set the htmlText of fld “foo” to “The book costs 30."

Devin

On Jan 8, 2019, at 6:53 AM, David Bovill via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Is there a way / anyone have a handler to escape named html entities in
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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

HTML entity escaping?

2019-01-08 Thread David Bovill via use-livecode
Is there a way / anyone have a handler to escape named html entities in
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