Re: Counting Syllables

2022-03-20 Thread Rick Harrison via use-livecode
I found this:

https://www.dcc-cde.ca.gov/professionaldev/events/documents/syllabication-packet-2021-04.pdf
 


I’m not sure how comprehensive it is yet, but it has me thinking!

I tried looking up syllable in wikipedia and read more about it then I could 
ever practically use.
You might want to take a look at the article just for fun anyway.

https://en.wikipedia.org/wiki/Syllable 

Rick


___
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: Counting Syllables

2022-03-20 Thread Rick Harrison via use-livecode
Hi Richmond,

Yes, I came across syllablecounter.net which only intrigued me more.

Unfortunately it reports the word triangle has 2 syllables which is incorrect.
Any dictionary will tell you triangle has 3 syllables.  Is there a rule for that
or is it just an exception to some rule?

Perhaps there are other examples out there I can find.

Whatever happened to our pocket English Teacher App?
(Oh sorry, I forgot, that one hasn’t been invented yet to my knowledge.)

Thanks,

Rick

> On Mar 20, 2022, at 3:57 PM, Richmond via use-livecode 
>  wrote:
> 
> Frankly I'd go for isolated vowels (I, A), Vowel+ Consonant (In, On, An), and 
> Consonant+ Vowel (La, Lo, Fi), you
> also have a problem with the semi-vowel Y, and the semi-vowel U ( 'yu' as un 
> Union, and 'u' as in Utter).
> 
> This is pretty impressive: https://syllablecounter.net/count 
> 
> 
> I gave it 'Beautiful aesthetic foetuses' and it came up, correctly, with 9 
> syllables . . . the Q is what's the code:
> probably time to download the webpage and poke around a bit.

___
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: Counting Syllables

2022-03-20 Thread Rick Harrison via use-livecode
Hi Colin,

Thanks for sharing this.  I’m reading it now!

Rick

> On Mar 20, 2022, at 3:12 PM, Colin Holgate via use-livecode 
>  wrote:
> 
> This post goes over some techniques:
> 
> https://mholtzscher.github.io/2018/05/29/syllables/ 
>  
>  >
> 
> 

___
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: Emojis in Text

2022-03-20 Thread doc hawk via use-livecode

curry culled,


>I love Unicode Emojis. 

bah.

If you can’t express yourself in ascii, you should keep your emotions to 
y0ourself!

:_)



___
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: Counting Syllables

2022-03-20 Thread Richmond via use-livecode
Frankly I'd go for isolated vowels (I, A), Vowel+ Consonant (In, On, 
An), and Consonant+ Vowel (La, Lo, Fi), you
also have a problem with the semi-vowel Y, and the semi-vowel U ( 'yu' 
as un Union, and 'u' as in Utter).


This is pretty impressive: https://syllablecounter.net/count

I gave it 'Beautiful aesthetic foetuses' and it came up, correctly, with 
9 syllables . . . the Q is what's the code:

probably time to download the webpage and poke around a bit.

On 20.03.22 21:12, Colin Holgate via use-livecode wrote:

This post goes over some techniques:

https://mholtzscher.github.io/2018/05/29/syllables/ 





On Mar 20, 2022, at 12:51 PM, Rick Harrison via use-livecode 
 wrote:

Hi Richmond,

Yes, English. Sorry I forgot to be specific, I thought it was implied.

Yes, I have been counting vowels, but there appear to be a lot of exceptions,
so there must be a lot more rules.

I need to know what all the rules are to make it work if possible.

There are websites out there on the internet that will count
syllables in whatever text given to them so it must be possible.
How are they doing it?  Is it an algorithm ,or are they comparing
the words to a database table that has all the dictionary information?

Thanks,

Rick



On Mar 20, 2022, at 2:29 PM, Richmond via use-livecode 
 wrote:

Well, syllables are language dependent, so let's suppose for the moment that
you are ONLY working with English, the, presumably, you can set up vowels
as item-delimiters: although you might get a bit mixed up with words sucj
as 'beautiful' which, while having 5 vowels only has 3 syllables.

Basically you have to work out how to detect V+C and open vowels at the
end of words.

___
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: Counting Syllables

2022-03-20 Thread Colin Holgate via use-livecode
This post goes over some techniques:

https://mholtzscher.github.io/2018/05/29/syllables/ 




> On Mar 20, 2022, at 12:51 PM, Rick Harrison via use-livecode 
>  wrote:
> 
> Hi Richmond,
> 
> Yes, English. Sorry I forgot to be specific, I thought it was implied.
> 
> Yes, I have been counting vowels, but there appear to be a lot of exceptions,
> so there must be a lot more rules.
> 
> I need to know what all the rules are to make it work if possible.
> 
> There are websites out there on the internet that will count
> syllables in whatever text given to them so it must be possible.
> How are they doing it?  Is it an algorithm ,or are they comparing
> the words to a database table that has all the dictionary information?
> 
> Thanks,
> 
> Rick
> 
> 
>> On Mar 20, 2022, at 2:29 PM, Richmond via use-livecode 
>>  wrote:
>> 
>> Well, syllables are language dependent, so let's suppose for the moment that
>> you are ONLY working with English, the, presumably, you can set up vowels
>> as item-delimiters: although you might get a bit mixed up with words sucj
>> as 'beautiful' which, while having 5 vowels only has 3 syllables.
>> 
>> Basically you have to work out how to detect V+C and open vowels at the
>> end of words.
> 
> ___
> 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: Counting Syllables

2022-03-20 Thread Rick Harrison via use-livecode
Hi Richmond,

Yes, English. Sorry I forgot to be specific, I thought it was implied.

Yes, I have been counting vowels, but there appear to be a lot of exceptions,
so there must be a lot more rules.

I need to know what all the rules are to make it work if possible.

There are websites out there on the internet that will count
syllables in whatever text given to them so it must be possible.
How are they doing it?  Is it an algorithm ,or are they comparing
the words to a database table that has all the dictionary information?

Thanks,

Rick


> On Mar 20, 2022, at 2:29 PM, Richmond via use-livecode 
>  wrote:
> 
> Well, syllables are language dependent, so let's suppose for the moment that
> you are ONLY working with English, the, presumably, you can set up vowels
> as item-delimiters: although you might get a bit mixed up with words sucj
> as 'beautiful' which, while having 5 vowels only has 3 syllables.
> 
> Basically you have to work out how to detect V+C and open vowels at the
> end of words.

___
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: Counting Syllables

2022-03-20 Thread Richmond via use-livecode

Well, syllables are language dependent, so let's suppose for the moment that
you are ONLY working with English, the, presumably, you can set up vowels
as item-delimiters: although you might get a bit mixed up with words sucj
as 'beautiful' which, while having 5 vowels only has 3 syllables.

Basically you have to work out how to detect V+C and open vowels at the
end of words.

On 20.03.22 19:41, Rick Harrison via use-livecode wrote:

I’m working on a project that requires an LC program to count
the number of syllables in a paragraph.

I don’t want to have to re-invent the wheel here if there
is an existing solution to the problem.

If not, what are all the rules I need to check?

Suggestions?

Thanks,

Rick
___
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: (area used by) Keyboard in iOS 15.x

2022-03-20 Thread Mark Smith via use-livecode
Hi Sean, I finally got around to doing some further testing on this. Initial 
results were confusing so I used the “Mobile Orientations” LC lesson to do some 
testing with iPhoneSafeAreaInsets()

This is a very simple stack with one button. The idea is it demonstrates how if 
you “allow” certain orientations the screen will redraw and the button will be 
repositioned (not appropriately, but it is suggested you can refine this 
further). 

So using this very simple stack I added a handler to my previous demo to get 
the iPhoneSafeAreaInset() values if the device orientationChanged and then 
displayed these with the button. 

I tested on both the sim and real device (iPhone12) and the results are not 
encouraging. 

on a 6S in the sim:

  portrait (0,20,0,0)
  L right (0,0,0,0)
  L left (0,0,0,0)
  P UD (0,0,0,0)

iPhone 12 sim

  portrait (0,47,0,34) 
  L right (0,47,0,34)
  L left (47,0,47,21)
  P UD (didn’t allow though it was included as allowable)

iPhone 12 real

 portrait (0,47,0,34)
 L right (0,47,0,34)
 L left (0,47,0,47) (??)
 P UD (47,0,47,21) (again didn’t rotate screen but I copied the reported values 
anyway)

I did lots more testing of course, which I won’t bore you with. Conclusion: 
even the initial results reported for the 12 are not ideal. The “34” you see 
for “bottom" on the 12 should really be 21. I tested this by manually inserting 
21 and it looks much better than 34.

Honestly, I don’t think iPhoneSafeAreaInset() returns realistic values for all 
coordinates, and therefore can’t really be depended on. Since I am only 
interested in portrait (at the moment), I will do some further testing to see 
if I can get reasonable results for most devices using this orientation 
(including inserting hard coded values where necessary). 

All the best,
Mark



> On Feb 11, 2022, at 12:31 PM, Pi Digital via use-livecode 
>  wrote:
> 
> Hi Mark
> 
> This is really useful to know. Thanks for all your testing and research. 
> 
> Just a note about what iPhoneSafeAreaInsets is for. It returns the number of 
> pixels from the top (the second item, 47 in your case) to allow for the top 
> notch and from the bottom (4th item, 34) to allow for the onscreen app 
> switcher bar at the bottom of the screen. This is in portrait mode. This 
> changes to be the 1st and 4th items (47,0,0,34) or 3rd and 4th (0,0,47,34) in 
> landscape mode because the notch will be on the left or right but the app 
> switcher remains at the bottom. If the phone is upside down and your app 
> allows for this the you could have the notch at the bottom which will make it 
> something like 0,0,0,81. 
> 
> Thanks and all the best
> 
> Sean Cole
> Pi Digital
> 
> 
>> On 10 Feb 2022, at 22:13, Mark Smith  wrote:
>> 
>> Sorry, it appears I attached the wrong link. Hopefully this one works 
>> better!!
>> 
>> https://www.dropbox.com/s/2igqdbroxy5onf7/Test%20Layout%2013.livecode.zip?dl=0
>> 
>> 
>> 
>>> On Feb 10, 2022, at 10:08 PM, Mark Smith  wrote:
>>> 
>>> Hello everyone, 
>>> 
>>> Once again thanks to the many of you who provided advice and suggestions. 
>>> They were really very helpful in coding up this full working example. In 
>>> the interests of sharing I have posted an example into a dropbox account, 
>>> and will upload a copy to the forums at some point. This example takes a 
>>> “dummy” layout of my Organize app (nothing is being saved, most features 
>>> are not included) and redraws the main screen to fit the target device 
>>> using just iPhoneSafeAreaInsets() and "the effective working screenRect" 
>>> and nothing else (no fullscreenmode for example). It works remarkably well. 
>>> I have tested it on a physical SE, 6S, 11, 12 and 13 mini and it adapts to 
>>> each screen as you would expect. It is remarkably satisfying to see it 
>>> adapt to changes in the keyboard size (predictive, not predictive) on the 
>>> fly. No special code was required to do this. 
>>> 
>>> You’ll need to compile the example for iPhone and use a developer profile 
>>> to install it on an iPhone device. The simulator does not really provide a 
>>> useful simulation primarily because it does not simulate the behaviour of 
>>> the keyboard very well (however, if you just want to see how the layout 
>>> adapts, it is perfectly fine for that). Its possible I have not developed 
>>> the most efficient method of coding the layout. If you have any 
>>> suggestions, I’d be most grateful to receive them.
>>> 
>>> UI tips:
>>> 1. tapping once on white space below the dg entries dismisses the keyboard 
>>> (so does the “down arrow” when it appears in the header bar).
>>> 2. tapping twice adds a new blank line (or inserts the cursor into an 
>>> existing one) (so does the “+” sign in the header bar).
>>> 
>>> The rest should be obvious, I hope. All of the layout is in the card 
>>> script. All of the dg code is in the dg handler and behavior script. 
>>> Finally, if you have any questions, please feel free to send them on.
>>> 
>>> All the best,
>>> Mark

Counting Syllables

2022-03-20 Thread Rick Harrison via use-livecode
I’m working on a project that requires an LC program to count
the number of syllables in a paragraph.

I don’t want to have to re-invent the wheel here if there
is an existing solution to the problem.

If not, what are all the rules I need to check?

Suggestions?

Thanks,

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


OT Re: What happens if an Indy license renews these days?

2022-03-20 Thread David V Glasgow via use-livecode
Matthias, please could you also start reminding me of all the things I misread 
and forget in my emails   ;-)

Best wishes,

David Glasgow

> On 19 Mar 2022, at 5:21 pm, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Andre,
> didn‘t you get an email from LC some time ago.
> 
> If i recall it correctly then the Indy license was transitioned to a Pro 
> license but you keep your „old“ subscription price.
> 
> Matthias
> 
> Von meinem iPad gesendet
> 
>> Am 19.03.2022 um 17:26 schrieb Andre Garzia via use-livecode 
>> :
>> 
>> Hi Folks,
>> 
>> My Indy license is up for renewal on Monday and given the new licensing
>> scheme, I have no idea what will happen if I let it renew. Anyone has a
>> clue?
>> 
>> -- 
>> https://www.andregarzia.com 
>> Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia
>> ___
>> 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: How to extract a video clip...

2022-03-20 Thread Phil Davis via use-livecode

Hi Paul,

Your app doesn't have to install ffmpeg on the user's system - your app 
can run it from where it resides in your app's bundle. (Just reference 
it in your command line using its full path, not just 'ffmpeg'.)


Phil Davis


On 3/19/22 12:18 PM, Paul Dupuis via use-livecode wrote:

On 3/19/2022 2:55 PM, Matthias Rebbe via use-livecode wrote:

You could use ffmpeg for this.

Here‘s a post where it is described how to do it

https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg 






I have (and still am) considering ffmpeg. It was what I was alluding 
to with the mention of a command line utility called by shell() in my 
original post. To bundle the macOS (~35mb) and Windows (~77mb) adds 
that size (or that compressed) to my Standalone, so my app can install 
it on the users system (I have the sort of computer novice customers 
that you do NOT want to ask to download additional software of). 
That's not too bad a size increase as my App sits at about 200-230mb 
currently.


Still, I asked the USE-LIST as you never know whether some one out 
there has made a widget that could just be part of the standalone app 
or someone knows of a clever technique or a smaller utility


Thank you.

___
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