Home Screen Icon Not Rendered on iOS

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Home Screen Icon Not Rendered on iOS

Clarence Martin via use-livecode
Apple continues to give us grief…Anyone else have this context.

Mac OS High Sierra 10.13.6
LC: 9.0.1 RC1
Xcode 9.4.1
iOS (on phone) 11.4.1

No matter what I do, I can't get the Home screen icon to render on the phone. It always "generic"

All icons are entered into SA at correct dimensions. Whether  we use "prerendered" on not, still doesn't work.
No entitlements issues, build goes through with no error. Just no proper icon.

Previously, in Xcode 9.3 this same problem was solved by saying  "Yes" to Apple's Dialog on Xcode start up

"Do You Want to Install Additional Components?"

After that, restarting Xcode, restart LC and the icon rendered.

But Xcode 9.3 will not build for iOS 11.4.1. AND XCode 9.4.1. invokes no dialog for "Additional Components"  -- it opens "silently" and on Apple's developer site there are no additional component for 9.4.1? (in downloads) I tried manually adding the 9.3 Components (little applications that I put the Xcode applications folder). but still no go…

I am stumped.

I can still build and get my beta testers to check the app - minus a proper home screen icons. But sure would be nice to solve this one.

BR
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Home Screen Icon Not Rendered on iOS

Clarence Martin via use-livecode
Yes, I've had a similar problem, but I haven't figured it out.  I went back
and found a couple of icons we had used several years ago.  They do work,
so I'm also baffled.

On Mon, Jul 30, 2018 at 10:11 AM Sannyasin Brahmanathaswami via
use-livecode <[hidden email]> wrote:

> Apple continues to give us grief…Anyone else have this context.
>
> Mac OS High Sierra 10.13.6
> LC: 9.0.1 RC1
> Xcode 9.4.1
> iOS (on phone) 11.4.1
>
> No matter what I do, I can't get the Home screen icon to render on the
> phone. It always "generic"
>
> All icons are entered into SA at correct dimensions. Whether  we use
> "prerendered" on not, still doesn't work.
> No entitlements issues, build goes through with no error. Just no proper
> icon.
>
> Previously, in Xcode 9.3 this same problem was solved by saying  "Yes" to
> Apple's Dialog on Xcode start up
>
> "Do You Want to Install Additional Components?"
>
> After that, restarting Xcode, restart LC and the icon rendered.
>
> But Xcode 9.3 will not build for iOS 11.4.1. AND XCode 9.4.1. invokes no
> dialog for "Additional Components"  -- it opens "silently" and on Apple's
> developer site there are no additional component for 9.4.1? (in downloads)
> I tried manually adding the 9.3 Components (little applications that I put
> the Xcode applications folder). but still no go…
>
> I am stumped.
>
> I can still build and get my beta testers to check the app - minus a
> proper home screen icons. But sure would be nice to solve this one.
>
> BR
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Home Screen Icon Not Rendered on iOS

Clarence Martin via use-livecode
Do the icons have an alpha channel? I *think* they are not allowed to have
one.

Best,
Panos
--


On Mon, Jul 30, 2018 at 4:01 PM, Mike Kerner via use-livecode <
[hidden email]> wrote:

> Yes, I've had a similar problem, but I haven't figured it out.  I went back
> and found a couple of icons we had used several years ago.  They do work,
> so I'm also baffled.
>
> On Mon, Jul 30, 2018 at 10:11 AM Sannyasin Brahmanathaswami via
> use-livecode <[hidden email]> wrote:
>
> > Apple continues to give us grief…Anyone else have this context.
> >
> > Mac OS High Sierra 10.13.6
> > LC: 9.0.1 RC1
> > Xcode 9.4.1
> > iOS (on phone) 11.4.1
> >
> > No matter what I do, I can't get the Home screen icon to render on the
> > phone. It always "generic"
> >
> > All icons are entered into SA at correct dimensions. Whether  we use
> > "prerendered" on not, still doesn't work.
> > No entitlements issues, build goes through with no error. Just no proper
> > icon.
> >
> > Previously, in Xcode 9.3 this same problem was solved by saying  "Yes" to
> > Apple's Dialog on Xcode start up
> >
> > "Do You Want to Install Additional Components?"
> >
> > After that, restarting Xcode, restart LC and the icon rendered.
> >
> > But Xcode 9.3 will not build for iOS 11.4.1. AND XCode 9.4.1. invokes no
> > dialog for "Additional Components"  -- it opens "silently" and on Apple's
> > developer site there are no additional component for 9.4.1? (in
> downloads)
> > I tried manually adding the 9.3 Components (little applications that I
> put
> > the Xcode applications folder). but still no go…
> >
> > I am stumped.
> >
> > I can still build and get my beta testers to check the app - minus a
> > proper home screen icons. But sure would be nice to solve this one.
> >
> > BR
> > _______________________________________________
> > use-livecode mailing list
> > [hidden email]
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>    and did a little diving.
> And God said, "This is good."
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Home Screen Icon Not Rendered on iOS

Clarence Martin via use-livecode
Do you all know about the Assets.car requirement in iOS 11? Instead of including individual icons (which you have to do to support older iOS), you now include an Assets.car file, that has all of the icon sizes. It would be an included file.

It is possible to make the file using Xcode, but I found that some icon sizes were being left out, and Apple rejects apps like that. Fortunately someone made an online tool, you give it your 1024x1024 icon, it gives you back the Assets.car file:

http://www.applicationloader.net/appuploader/icontool.php

It also makes the needed Android icons.


> On Jul 30, 2018, at 8:52 AM, panagiotis merakos via use-livecode <[hidden email]> wrote:
>
> Do the icons have an alpha channel? I *think* they are not allowed to have
> one.
>
> Best,
> Panos
> --
>
>
> On Mon, Jul 30, 2018 at 4:01 PM, Mike Kerner via use-livecode <
> [hidden email]> wrote:
>
>> Yes, I've had a similar problem, but I haven't figured it out.  I went back
>> and found a couple of icons we had used several years ago.  They do work,
>> so I'm also baffled.
>>
>> On Mon, Jul 30, 2018 at 10:11 AM Sannyasin Brahmanathaswami via
>> use-livecode <[hidden email]> wrote:
>>
>>> Apple continues to give us grief…Anyone else have this context.
>>>
>>> Mac OS High Sierra 10.13.6
>>> LC: 9.0.1 RC1
>>> Xcode 9.4.1
>>> iOS (on phone) 11.4.1
>>>
>>> No matter what I do, I can't get the Home screen icon to render on the
>>> phone. It always "generic"
>>>
>>> All icons are entered into SA at correct dimensions. Whether  we use
>>> "prerendered" on not, still doesn't work.
>>> No entitlements issues, build goes through with no error. Just no proper
>>> icon.
>>>
>>> Previously, in Xcode 9.3 this same problem was solved by saying  "Yes" to
>>> Apple's Dialog on Xcode start up
>>>
>>> "Do You Want to Install Additional Components?"
>>>
>>> After that, restarting Xcode, restart LC and the icon rendered.
>>>
>>> But Xcode 9.3 will not build for iOS 11.4.1. AND XCode 9.4.1. invokes no
>>> dialog for "Additional Components"  -- it opens "silently" and on Apple's
>>> developer site there are no additional component for 9.4.1? (in
>> downloads)
>>> I tried manually adding the 9.3 Components (little applications that I
>> put
>>> the Xcode applications folder). but still no go…
>>>
>>> I am stumped.
>>>
>>> I can still build and get my beta testers to check the app - minus a
>>> proper home screen icons. But sure would be nice to solve this one.
>>>
>>> BR
>>> _______________________________________________
>>> use-livecode mailing list
>>> [hidden email]
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>>
>> --
>> On the first day, God created the heavens and the Earth
>> On the second day, God created the oceans.
>> On the third day, God put the animals on hold for a few hours,
>>   and did a little diving.
>> And God said, "This is good."
>> _______________________________________________
>> use-livecode mailing list
>> [hidden email]
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Home Screen Icon Not Rendered on iOS

Clarence Martin via use-livecode
The problem I've had is that older icons work (from a couple of years ago),
but newer icons that were working before this situation started happening
do not work.

On Mon, Jul 30, 2018 at 1:24 PM Colin Holgate via use-livecode <
[hidden email]> wrote:

> Do you all know about the Assets.car requirement in iOS 11? Instead of
> including individual icons (which you have to do to support older iOS), you
> now include an Assets.car file, that has all of the icon sizes. It would be
> an included file.
>
> It is possible to make the file using Xcode, but I found that some icon
> sizes were being left out, and Apple rejects apps like that. Fortunately
> someone made an online tool, you give it your 1024x1024 icon, it gives you
> back the Assets.car file:
>
> http://www.applicationloader.net/appuploader/icontool.php
>
> It also makes the needed Android icons.
>
>
> > On Jul 30, 2018, at 8:52 AM, panagiotis merakos via use-livecode <
> [hidden email]> wrote:
> >
> > Do the icons have an alpha channel? I *think* they are not allowed to
> have
> > one.
> >
> > Best,
> > Panos
> > --
> >
> >
> > On Mon, Jul 30, 2018 at 4:01 PM, Mike Kerner via use-livecode <
> > [hidden email]> wrote:
> >
> >> Yes, I've had a similar problem, but I haven't figured it out.  I went
> back
> >> and found a couple of icons we had used several years ago.  They do
> work,
> >> so I'm also baffled.
> >>
> >> On Mon, Jul 30, 2018 at 10:11 AM Sannyasin Brahmanathaswami via
> >> use-livecode <[hidden email]> wrote:
> >>
> >>> Apple continues to give us grief…Anyone else have this context.
> >>>
> >>> Mac OS High Sierra 10.13.6
> >>> LC: 9.0.1 RC1
> >>> Xcode 9.4.1
> >>> iOS (on phone) 11.4.1
> >>>
> >>> No matter what I do, I can't get the Home screen icon to render on the
> >>> phone. It always "generic"
> >>>
> >>> All icons are entered into SA at correct dimensions. Whether  we use
> >>> "prerendered" on not, still doesn't work.
> >>> No entitlements issues, build goes through with no error. Just no
> proper
> >>> icon.
> >>>
> >>> Previously, in Xcode 9.3 this same problem was solved by saying  "Yes"
> to
> >>> Apple's Dialog on Xcode start up
> >>>
> >>> "Do You Want to Install Additional Components?"
> >>>
> >>> After that, restarting Xcode, restart LC and the icon rendered.
> >>>
> >>> But Xcode 9.3 will not build for iOS 11.4.1. AND XCode 9.4.1. invokes
> no
> >>> dialog for "Additional Components"  -- it opens "silently" and on
> Apple's
> >>> developer site there are no additional component for 9.4.1? (in
> >> downloads)
> >>> I tried manually adding the 9.3 Components (little applications that I
> >> put
> >>> the Xcode applications folder). but still no go…
> >>>
> >>> I am stumped.
> >>>
> >>> I can still build and get my beta testers to check the app - minus a
> >>> proper home screen icons. But sure would be nice to solve this one.
> >>>
> >>> BR
> >>> _______________________________________________
> >>> use-livecode mailing list
> >>> [hidden email]
> >>> Please visit this url to subscribe, unsubscribe and manage your
> >>> subscription preferences:
> >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> >>
> >>
> >> --
> >> On the first day, God created the heavens and the Earth
> >> On the second day, God created the oceans.
> >> On the third day, God put the animals on hold for a few hours,
> >>   and did a little diving.
> >> And God said, "This is good."
> >> _______________________________________________
> >> use-livecode mailing list
> >> [hidden email]
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> > _______________________________________________
> > use-livecode mailing list
> > [hidden email]
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Home Screen Icon Not Rendered on iOS

Clarence Martin via use-livecode
In reply to this post by Clarence Martin via use-livecode
All the icons have RGB change, Red, Green, Blue

I found one (1024x1024) that was set to "index"
I re-exported from Illustrator,

Still did  help

Brahmanathaswami
 

On 7/30/18, 5:53 AM, "use-livecode on behalf of panagiotis merakos via use-livecode" <[hidden email] on behalf of [hidden email]> wrote:

    Do the icons have an alpha channel? I *think* they are not allowed to have
    one.
   
   

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Home Screen Icon Not Rendered on iOS

Clarence Martin via use-livecode
Hi all,

Could you attach a couple of icons that don't work for you, in this bug
report?

https://quality.livecode.com/show_bug.cgi?id=21451

If the icons are confidential feel free to send them to panos (dot) merakos
at livecode (dot) com

Best,
Panos
--

On Mon, Jul 30, 2018 at 7:43 PM, Sannyasin Brahmanathaswami via
use-livecode <[hidden email]> wrote:

> All the icons have RGB change, Red, Green, Blue
>
> I found one (1024x1024) that was set to "index"
> I re-exported from Illustrator,
>
> Still did  help
>
> Brahmanathaswami
>
>
> On 7/30/18, 5:53 AM, "use-livecode on behalf of panagiotis merakos via
> use-livecode" <[hidden email] on behalf of
> [hidden email]> wrote:
>
>     Do the icons have an alpha channel? I *think* they are not allowed to
> have
>     one.
>
>
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



--
Panagiotis Merakos <[hidden email]>
LiveCode Software Developer

Everyone Can Create Apps <https://livecode.com>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Newbie Regex confusion

Clarence Martin via use-livecode

I am just dipping my toes in the shallows of regex, and have already stubbed my toe on a rock.  Well two, actually.

I am looking to identify the lines of a field (that contain lots of words and symbols with no particular structure or separator ) finding age related terms, which can be in a variety of forms.  I made a list of the terms that I want to use.

First problem:

I use the following filter line

filter lines of it with regex pattern i

… where i is a keyword lifted from my list.  Oddly, where i is just ordinary characters, it works fine.  However if it includes a wildcard symbol, it chokes with “execution error at line 9 (matchChunk: error in pattern expression), char 1”.  For example, if i = child* (intending to match child, childlike, childhood, childish etc).  I know that’s a bad example, because just ‘child' will do the trick.  However, there seems to be some voodoo needed to put a regex expression into a variable, is that right?

Second problem is the sheer brain ache from trying to work out how to efficiently  match lines containing 8 yo, 8 yr, 8yr, 8yo, 8 year and 8year, but not 18 year, 38yo etc etc.

The simplest way would be to include all variants in the keyword list.  However, that means more sweeps through the repeat loop.  And it wouldn’t solve the problem of excluding  18 yo, 28 yo matching, unless I can construct a regex expression which will test the absence of any number between 1 and 9 immediately before the actual string I am finding.  

Am I on a wild goose chase here?  




Best Wishes,
David Glasgow


 <http://www.i-psych.co.uk/> <https://twitter.com/iPsychApps>

 <https://twitter.com/iPsychApps> <http://uk.linkedin.com/in/davidvglasgow>
 <http://uk.linkedin.com/in/davidvglasgow>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Newbie Regex confusion

Clarence Martin via use-livecode
Hi David,

While no expert on Regex, there are some online tools and libraries that you can use to work out the appropriate regex before putting it into your LC script.

Some sites I use:

https://www.regextester.com

https://regex101.com

https://www.rexegg.com/regex-quickstart.html

and

http://www.regexlib.com

which has a lot of pre-built regex codes and examples. Most work without issue when putting them into LCS.

You can also take a look, if you haven’t already, at an example that I made using LCS and LCB, rsIsValid: https://forums.livecode.com/viewtopic.php?t=26653

HTH!

Steve MacLean

> On Aug 1, 2018, at 12:34 PM, David V Glasgow via use-livecode <[hidden email]> wrote:
>
>
> I am just dipping my toes in the shallows of regex, and have already stubbed my toe on a rock.  Well two, actually.
>
> I am looking to identify the lines of a field (that contain lots of words and symbols with no particular structure or separator ) finding age related terms, which can be in a variety of forms.  I made a list of the terms that I want to use.
>
> First problem:
>
> I use the following filter line
>
> filter lines of it with regex pattern i
>
> … where i is a keyword lifted from my list.  Oddly, where i is just ordinary characters, it works fine.  However if it includes a wildcard symbol, it chokes with “execution error at line 9 (matchChunk: error in pattern expression), char 1”.  For example, if i = child* (intending to match child, childlike, childhood, childish etc).  I know that’s a bad example, because just ‘child' will do the trick.  However, there seems to be some voodoo needed to put a regex expression into a variable, is that right?
>
> Second problem is the sheer brain ache from trying to work out how to efficiently  match lines containing 8 yo, 8 yr, 8yr, 8yo, 8 year and 8year, but not 18 year, 38yo etc etc.
>
> The simplest way would be to include all variants in the keyword list.  However, that means more sweeps through the repeat loop.  And it wouldn’t solve the problem of excluding  18 yo, 28 yo matching, unless I can construct a regex expression which will test the absence of any number between 1 and 9 immediately before the actual string I am finding.  
>
> Am I on a wild goose chase here?  
>
>
>
>
> Best Wishes,
> David Glasgow
>
>
> <http://www.i-psych.co.uk/> <https://twitter.com/iPsychApps>
>
> <https://twitter.com/iPsychApps> <http://uk.linkedin.com/in/davidvglasgow>
> <http://uk.linkedin.com/in/davidvglasgow>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Newbie Regex confusion

Clarence Martin via use-livecode
Don’t have time to test right now but something along these lines:

\b[0-9] ?(yr|yo|year)

\b is a word break
? Means 0 or 1 of previous char (space)
| is alternate separator

Thanks,
Brian
On Aug 1, 2018, 11:58 AM -0500, Stephen MacLean via use-livecode <[hidden email]>, wrote:

> Hi David,
>
> While no expert on Regex, there are some online tools and libraries that you can use to work out the appropriate regex before putting it into your LC script.
>
> Some sites I use:
>
> https://www.regextester.com
>
> https://regex101.com
>
> https://www.rexegg.com/regex-quickstart.html
>
> and
>
> http://www.regexlib.com
>
> which has a lot of pre-built regex codes and examples. Most work without issue when putting them into LCS.
>
> You can also take a look, if you haven’t already, at an example that I made using LCS and LCB, rsIsValid: https://forums.livecode.com/viewtopic.php?t=26653
>
> HTH!
>
> Steve MacLean
>
> > On Aug 1, 2018, at 12:34 PM, David V Glasgow via use-livecode <[hidden email]> wrote:
> >
> >
> > I am just dipping my toes in the shallows of regex, and have already stubbed my toe on a rock. Well two, actually.
> >
> > I am looking to identify the lines of a field (that contain lots of words and symbols with no particular structure or separator ) finding age related terms, which can be in a variety of forms. I made a list of the terms that I want to use.
> >
> > First problem:
> >
> > I use the following filter line
> >
> > filter lines of it with regex pattern i
> >
> > … where i is a keyword lifted from my list. Oddly, where i is just ordinary characters, it works fine. However if it includes a wildcard symbol, it chokes with “execution error at line 9 (matchChunk: error in pattern expression), char 1”. For example, if i = child* (intending to match child, childlike, childhood, childish etc). I know that’s a bad example, because just ‘child' will do the trick. However, there seems to be some voodoo needed to put a regex expression into a variable, is that right?
> >
> > Second problem is the sheer brain ache from trying to work out how to efficiently match lines containing 8 yo, 8 yr, 8yr, 8yo, 8 year and 8year, but not 18 year, 38yo etc etc.
> >
> > The simplest way would be to include all variants in the keyword list. However, that means more sweeps through the repeat loop. And it wouldn’t solve the problem of excluding 18 yo, 28 yo matching, unless I can construct a regex expression which will test the absence of any number between 1 and 9 immediately before the actual string I am finding.
> >
> > Am I on a wild goose chase here?
> >
> >
> >
> >
> > Best Wishes,
> > David Glasgow
> >
> >
> > <http://www.i-psych.co.uk/> <https://twitter.com/iPsychApps>
> >
> > <https://twitter.com/iPsychApps> <http://uk.linkedin.com/in/davidvglasgow>
> > <http://uk.linkedin.com/in/davidvglasgow>
> > _______________________________________________
> > use-livecode mailing list
> > [hidden email]
> > Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Newbie Regex confusion

Clarence Martin via use-livecode
Thank you both.  Wow.  Looks like it really is worth the effort!  I played around on regex101.com, but the problem is if you don’t know the terms for what you want to do, its really hard to find the appropriate symbol.

Thanks again.

> On 1 Aug 2018, at 6:24 pm, Brian Milby via use-livecode <[hidden email]> wrote:
>
> Don’t have time to test right now but something along these lines:
>
> \b[0-9] ?(yr|yo|year)
>
> \b is a word break
> ? Means 0 or 1 of previous char (space)
> | is alternate separator
>
> Thanks,
> Brian
> On Aug 1, 2018, 11:58 AM -0500, Stephen MacLean via use-livecode <[hidden email]>, wrote:
>> Hi David,
>>
>> While no expert on Regex, there are some online tools and libraries that you can use to work out the appropriate regex before putting it into your LC script.
>>
>> Some sites I use:
>>
>> https://www.regextester.com
>>
>> https://regex101.com
>>
>> https://www.rexegg.com/regex-quickstart.html
>>
>> and
>>
>> http://www.regexlib.com
>>
>> which has a lot of pre-built regex codes and examples. Most work without issue when putting them into LCS.
>>
>> You can also take a look, if you haven’t already, at an example that I made using LCS and LCB, rsIsValid: https://forums.livecode.com/viewtopic.php?t=26653
>>
>> HTH!
>>
>> Steve MacLean
>>
>>> On Aug 1, 2018, at 12:34 PM, David V Glasgow via use-livecode <[hidden email]> wrote:
>>>
>>>
>>> I am just dipping my toes in the shallows of regex, and have already stubbed my toe on a rock. Well two, actually.
>>>
>>> I am looking to identify the lines of a field (that contain lots of words and symbols with no particular structure or separator ) finding age related terms, which can be in a variety of forms. I made a list of the terms that I want to use.
>>>
>>> First problem:
>>>
>>> I use the following filter line
>>>
>>> filter lines of it with regex pattern i
>>>
>>> … where i is a keyword lifted from my list. Oddly, where i is just ordinary characters, it works fine. However if it includes a wildcard symbol, it chokes with “execution error at line 9 (matchChunk: error in pattern expression), char 1”. For example, if i = child* (intending to match child, childlike, childhood, childish etc). I know that’s a bad example, because just ‘child' will do the trick. However, there seems to be some voodoo needed to put a regex expression into a variable, is that right?
>>>
>>> Second problem is the sheer brain ache from trying to work out how to efficiently match lines containing 8 yo, 8 yr, 8yr, 8yo, 8 year and 8year, but not 18 year, 38yo etc etc.
>>>
>>> The simplest way would be to include all variants in the keyword list. However, that means more sweeps through the repeat loop. And it wouldn’t solve the problem of excluding 18 yo, 28 yo matching, unless I can construct a regex expression which will test the absence of any number between 1 and 9 immediately before the actual string I am finding.
>>>
>>> Am I on a wild goose chase here?
>>>
>>>
>>>
>>>
>>> Best Wishes,
>>> David Glasgow
>>>
>>>
>>> <http://www.i-psych.co.uk/> <https://twitter.com/iPsychApps>
>>>
>>> <https://twitter.com/iPsychApps> <http://uk.linkedin.com/in/davidvglasgow>
>>> <http://uk.linkedin.com/in/davidvglasgow>
>>> _______________________________________________
>>> use-livecode mailing list
>>> [hidden email]
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> [hidden email]
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Newbie Regex confusion

Clarence Martin via use-livecode
In reply to this post by Clarence Martin via use-livecode
Wait until you get to the rapids.

Bob S


> On Aug 1, 2018, at 09:34 , David V Glasgow via use-livecode <[hidden email]> wrote:
>
> I am just dipping my toes in the shallows of regex, and have already stubbed my toe on a rock.  Well two, actually.


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode