Re: Quick Challenge
Stop showing off Richmond! ;-P Bob S On Aug 27, 2015, at 08:39 , Richmond richmondmathew...@gmail.com wrote: Lots of clever answers . . . Now try with this text: Քրիստոնէութեան սկիզբը Հայոց համար եղաւ նաեւ մտքի լուսաւորութեան սկիզբնաւորութիւնը. Մեր մէջ առաջին դպրոցները Լուսաւորչի աշխատանքով հաստատուեցան: Սակայն Սուրբ Գրիգորի հիմնած դպրոցները ազգային կրթութեան համար չէին եւ չէին ալ կրնար ըլլալ, նախ այն պատճառով` որ այնտեղ տրուած ուսումը օտար (ասորերէն եւ յունարէն) լեզուներով էր, եւ երկրորդ` անոր համար որ անոնց գլխաւոր նպատակն էր Աւետարանի քարոզիչներ եւ եկեղեցական պաշտօնեաներ պատրաստել Before anyone asks, this is Armenian. 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: Quick Challenge
COOL!!! I just learned a new thing! Thanks Mike. On Thu, Aug 27, 2015 at 11:15 AM, Mike Bonner bonnm...@gmail.com wrote: Rogers, using truewords on mouseUp set the caseSensitive to true put Mary had a little LAMB. Its fleece was WHITE as cocaine. Everywhere that Mary went, she would shout, WINNING! into tWords repeat for each trueword thisWord in tWords if thisWord is toUpper(thisWord) then put thisWord cr after tCapWords end repeat set the caseSensitive to false answer tCapWords end mouseUp ___ 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: Quick Challenge
Hi David, off the top of my head: function text_is_Caps pText set the caseSensitive to true return pText = toUpper(pText) end text_is_Caps Cheers, Malte -- derbrill IT-service Malte Pfaff-Brill Alsenstr. 15, d-24768 Rendsburg Tel: +49 4331-337 640 0 eMail: i...@derbrill.de web: http://www.derbrill.de Steuernummer: 28 015 03865 VAT ID: DE223571286 Bankverbindung: BIC: GENODEF1KIL IBAN: DE87 2109 0007 0088 2849 05 Kieler Volksbank e.G. Kontoinhaber Malte Pfaff-Brill ___ 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: Quick Challenge
Almost typed fast enough to post the same answer! On Aug 27, 2015, at 10:47 AM, Malte Brill revolut...@derbrill.de wrote: Hi David, off the top of my head: function text_is_Caps pText set the caseSensitive to true return pText = toUpper(pText) end text_is_Caps Cheers, Malte -- derbrill IT-service Malte Pfaff-Brill Alsenstr. 15, d-24768 Rendsburg Tel: +49 4331-337 640 0 eMail: i...@derbrill.de web: http://www.derbrill.de Steuernummer: 28 015 03865 VAT ID: DE223571286 Bankverbindung: BIC: GENODEF1KIL IBAN: DE87 2109 0007 0088 2849 05 Kieler Volksbank e.G. Kontoinhaber Malte Pfaff-Brill ___ 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: Quick Challenge
On 08/27/2015 06:39 PM, Richmond wrote: Lots of clever answers . . . Now try with this text: Քրիստոնէութեան սկիզբը Հայոց համար եղաւ նաեւ մտքի լուսաւորութեան սկիզբնաւորութիւնը. Մեր մէջ առաջին դպրոցները Լուսաւորչի աշխատանքով հաստատուեցան: Սակայն Սուրբ Գրիգորի հիմնած դպրոցները ազգային կրթութեան համար չէին եւ չէին ալ կրնար ըլլալ, նախ այն պատճառով` որ այնտեղ տրուած ուսումը օտար (ասորերէն եւ յունարէն) լեզուներով էր, եւ երկրորդ` անոր համար որ անոնց գլխաւոր նպատակն էր Աւետարանի քարոզիչներ եւ եկեղեցական պաշտօնեաներ պատրաստել Before anyone asks, this is Armenian. Richmond. Surprisingly enough Roger's, with trueWord and reversed (toLower) [as there are NO words in the Armenian text all in capitals] worked a treat: on mouseUp set the caseSensitive to true put fld armenian into tWords repeat for each trueword thisWord in tWords if thisWord is toLower(thisWord) then put thisWord cr after fld resultF end repeat set the caseSensitive to false end mouseUp https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0 file: lowerCase.zip 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: Quick Challenge
A silly variation... on mouseUp set the caseSensitive to true put Mary had a little LAMB. Its fleece was WHITE as cocaine. Everywhere that Mary went, she would shout, WINNING! into tWords replace . with empty in tWords replace , with empty in tWords replace ! with empty in tWords repeat for each word thisWord in tWords if thisWord is toUpper(thisWord) then put thisWord cr after tCapWords end repeat set the caseSensitive to false answer tCapWords end mouseUp On Thu, Aug 27, 2015 at 10:39 AM, David Bovill david@viral.academy wrote: So what's the quickest way to tell is a word is all caps in Livecode? I guess there are a lot of ways to skin a cat with this one. This is what I'm tinkering with: function text_IsCaps someText put \b[A-Z]+\b into someReg return matchtext (word 1 to -1 of someText, someReg, anyThing) repeat for each char testChar in someText put chartonum (testChar) into someCharNum if someCharNum = 65 and someCharNum = 90 then return false end if end repeat return true end text_IsCaps ___ 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: Quick Challenge
On 08/27/2015 05:39 PM, David Bovill wrote: So what's the quickest way to tell is a word is all caps in Livecode? I guess there are a lot of ways to skin a cat with this one. This is what I'm tinkering with: function text_IsCaps someText put \b[A-Z]+\b into someReg return matchtext (word 1 to -1 of someText, someReg, anyThing) repeat for each char testChar in someText put chartonum (testChar) into someCharNum if someCharNum = 65 and someCharNum = 90 then return false end if end repeat return true end text_IsCaps IFF you are just working within the ASCII set that should be dead easy: if you are using anything within the UniCode standard I suspect you have no chance at all. 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: Quick Challenge
Lots of clever answers . . . Now try with this text: Քրիստոնէութեան սկիզբը Հայոց համար եղաւ նաեւ մտքի լուսաւորութեան սկիզբնաւորութիւնը. Մեր մէջ առաջին դպրոցները Լուսաւորչի աշխատանքով հաստատուեցան: Սակայն Սուրբ Գրիգորի հիմնած դպրոցները ազգային կրթութեան համար չէին եւ չէին ալ կրնար ըլլալ, նախ այն պատճառով` որ այնտեղ տրուած ուսումը օտար (ասորերէն եւ յունարէն) լեզուներով էր, եւ երկրորդ` անոր համար որ անոնց գլխաւոր նպատակն էր Աւետարանի քարոզիչներ եւ եկեղեցական պաշտօնեաներ պատրաստել Before anyone asks, this is Armenian. 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: Quick Challenge
Rogers, using truewords on mouseUp set the caseSensitive to true put Mary had a little LAMB. Its fleece was WHITE as cocaine. Everywhere that Mary went, she would shout, WINNING! into tWords repeat for each trueword thisWord in tWords if thisWord is toUpper(thisWord) then put thisWord cr after tCapWords end repeat set the caseSensitive to false answer tCapWords end mouseUp On Thu, Aug 27, 2015 at 9:09 AM, Roger Eller roger.e.el...@sealedair.com wrote: A silly variation... on mouseUp set the caseSensitive to true put Mary had a little LAMB. Its fleece was WHITE as cocaine. Everywhere that Mary went, she would shout, WINNING! into tWords replace . with empty in tWords replace , with empty in tWords replace ! with empty in tWords repeat for each word thisWord in tWords if thisWord is toUpper(thisWord) then put thisWord cr after tCapWords end repeat set the caseSensitive to false answer tCapWords end mouseUp On Thu, Aug 27, 2015 at 10:39 AM, David Bovill david@viral.academy wrote: So what's the quickest way to tell is a word is all caps in Livecode? I guess there are a lot of ways to skin a cat with this one. This is what I'm tinkering with: function text_IsCaps someText put \b[A-Z]+\b into someReg return matchtext (word 1 to -1 of someText, someReg, anyThing) repeat for each char testChar in someText put chartonum (testChar) into someCharNum if someCharNum = 65 and someCharNum = 90 then return false end if end repeat return true end text_IsCaps ___ 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: Quick Challenge
Ah yes... I should think that's the fastest On Thursday, August 27, 2015, Colin Holgate colinholg...@gmail.com wrote: Almost typed fast enough to post the same answer! On Aug 27, 2015, at 10:47 AM, Malte Brill revolut...@derbrill.de javascript:; wrote: Hi David, off the top of my head: function text_is_Caps pText set the caseSensitive to true return pText = toUpper(pText) end text_is_Caps Cheers, Malte -- derbrill IT-service Malte Pfaff-Brill Alsenstr. 15, d-24768 Rendsburg Tel: +49 4331-337 640 0 eMail: i...@derbrill.de javascript:; web: http://www.derbrill.de Steuernummer: 28 015 03865 VAT ID: DE223571286 Bankverbindung: BIC: GENODEF1KIL IBAN: DE87 2109 0007 0088 2849 05 Kieler Volksbank e.G. Kontoinhaber Malte Pfaff-Brill ___ use-livecode mailing list use-livecode@lists.runrev.com javascript:; 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 javascript:; 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