Re: how to include Apple's SF Pro font in an iOS app?
I don't know why it wouldn't be allowed. Apple provides the fonts on their developer site and says you can download and use them: https://developer.apple.com/fonts/ Fonts are often named one thing but listed differently in the font files. This post mentions it's named "SFUI-Regular" on iOS 13: https://developer.apple.com/forums/thread/126548 If that's the case then you probably do have the font on the iPad and assigning LC's "system" font will automatically use it. In fat, that seems to be the preferred method according to that post. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 29, 2021 11:19:06 PM Phil Davis via use-livecode wrote: Functionally speaking, I understand how to include it, but... will Apple let me release the app with that font included? I don't speak their brand of legalese very well. I can see the list of fonts that reside on my iPad and the SF fonts are not there. (I'm running iOS 14.6. ) But Apple makes it sound like they're ready for use. So I don't know what I'm supposed to do if I want to use the font in my app. Do you have experience with this issue? I could use some guidance. Many thanks - Phil Davis -- 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 ___ 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
how to include Apple's SF Pro font in an iOS app?
Functionally speaking, I understand how to include it, but... will Apple let me release the app with that font included? I don't speak their brand of legalese very well. I can see the list of fonts that reside on my iPad and the SF fonts are not there. (I'm running iOS 14.6. ) But Apple makes it sound like they're ready for use. So I don't know what I'm supposed to do if I want to use the font in my app. Do you have experience with this issue? I could use some guidance. Many thanks - Phil Davis -- 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
Re: Jim Lambert is not crazy!
浪 Jim Lambert ___ 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: Most streamlined method to get data
Hi put replacetext(varlist,quote,numtochar(29)) into varlist2 set the itemdelimiter to numtochar(29) go each second item numtochar(29) to extract the komma or do whatever wirth it which does not interfer with other char the comma to another char put replacetext (valist2,numtochar(29),quote) into varlist set the itemdelimiter to komma ..continue to work instead of 29 use 28, 30 or 31 , rsp one of them which you are not using within your list. replacetext is very fast Jean-Jacques Wagner ___ 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: Most streamlined method to get data
On 7/29/21 9:24 AM, Ben Rubinstein via use-livecode wrote: As grepophile, I'd go for some variation on While I heartily approve of Ben's use of grep, here's another approach using an array. Note that is somewhat specific to your data set, and from the looks of the data my guess is that you're heading down the path of csv madness. on mouseUp pMouseBtnNo local tVar, tHeader, tCount, tOriginal put field 1 into tVar put line 1 of tVar into tHeader delete line 1 of tVar split tVar by cr repeat for each key tKey in tVar # transform "$8,303.32" into "$8303.32" repeat for each trueword tTrueWord in tVar[tKey] put tTrueWord into tOriginal replace comma with empty in tTrueWord replace tOriginal with tTrueWord in tVar[tKey] end repeat # now we can deal with commas as itemDelimiters put 1 into tCount repeat for each item tWord in tVar[tKey] put tWord into tVar[tKey][tCount] add 1 to tCount end repeat end repeat # for each key tKey in tVar # now pick out the desired total local tTotal, tOffset put itemoffset("Total", tHeader) into tOffset put tVar[5][tOffset] into tTotal breakpoint end mouseUp -- 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: Most streamlined method to get data
As grepophile, I'd go for some variation on get matchText(last line of myVar, \ ",+Total,.*\"\$(\d*,?\d+\.\d\d)\",+", \ myTotal) obviously details depend on what variations you expect within the data. Note that there's a nasty aspect of LC parsing: in order to have quotation marks inside your string (the pattern) you have to precede them with a backslash. So the pattern is really: ,+Total,.*"\$(\d*,?\d+\.\d\d)",+ but to represent it as a string in the script, you have to escape the internal quotes ",+Total,.*\"\$(\d*,?\d+\.\d\d)\",+" But the version of the parser that deals with colouring and indentation in the script editor doesn't know about this, so it colours it funny, and indents the next line in the script wrong; and in some circumstances gives you a spurious syntax error (you can get round that by just adding a blank line). So much so that the single line of code I quoted above works. But when I tried to make it neater: put ",+Total,.*\"\$(\d*,?\d+\.\d\d)x\",+" into kPattern -- blank line get matchText(myVar, kPattern, myTotal) It doesn't work: kPattern is actually an empty string. I don't know why. So the parser allows \" inside a string within a function call, but misinterprets it in a variable assignment. When I do this sort of thing now I often use format to make it neater - with a continuation backslash for the second line, which fixes the indentation problem). But there's a gotcha: put format(",+Total,.*\"\\$(\\d*,?\\d+\\.\\d\\d)\",+" \ ) into kPattern get matchText(last line of fld "data", kPattern, tFine) The basic string parsing interprets \" as quote (except when it doesn't); but doesn't attempt to interpret the rest of the slashes. But when a string is entered as a parameter to format, format interprets slash as a general escape character (so that, e.g. "\t" can be transformed to tab). So when we actually need a slash in the string, in order to represent grep items like "\d", we have to use two slashes before the string gets to format. All this makes it harder to read the grep pattern. And grep patterns are often hard enough to read already. But I love them. Ben On 29/07/2021 13:42, Skip Kimpel via use-livecode wrote: I have a variable that contains: ,Name,,,Quantity,Total,,,Percent ,Dine In,,,189,"$4,812.71",,,57.96% ,Take Out,,,72,"$1,676.43",,,20.19% ,3rd Party,,,54,"$1,779.35",,,21.43% ,Bakery,,,3,$34.83,,,0.42% ,Total,,,318,"$8,303.32",,, What is the best way to get 8303.32 from that last line. Obviously, the complexity is the commas and getting rid of the dollar sign as well. I know I am going to kick myself when somebody answers I am blank this morning. (NEED MORE COFFEE!) SKIP ___ 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: Most streamlined method to get data
"Nice solution Colin!” Agreed. Have to get down with these fancy new gadgets. Craig > On Jul 29, 2021, at 10:22 AM, Rick Harrison via use-livecode > wrote: > > Nice solution Colin! ___ 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: Most streamlined method to get data
Nice solution Colin! Rick > On Jul 29, 2021, at 9:10 AM, Colin Kelly via use-livecode > wrote: > > Put the last trueword of yourVariable ___ 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: Most streamlined method to get data
Put the last trueword of yourVariable That should do what you need ☺ Col. From: use-livecode on behalf of Craig Newman via use-livecode Date: Thursday, 29 July 2021 at 13:56 To: How to use LiveCode Cc: Craig Newman Subject: Re: Most streamlined method to get data Ugh. I really do not like the format of the use-list. Anyway, don’t just replace comma with empty. Do it to the trailing commas only. This can be done in several ways. Craig > On Jul 29, 2021, at 8:42 AM, Skip Kimpel via use-livecode > wrote: > > I have a variable that contains: > > ,Name,,,Quantity,Total,,,Percent > > ,Dine In,,,189,"$4,812.71",,,57.96% > > ,Take Out,,,72,"$1,676.43",,,20.19% > > ,3rd Party,,,54,"$1,779.35",,,21.43% > > ,Bakery,,,3,$34.83,,,0.42% > > ,Total,,,318,"$8,303.32",,, > > > What is the best way to get 8303.32 from that last line. Obviously, the > complexity is the commas and getting rid of the dollar sign as well. > > > I know I am going to kick myself when somebody answers I am blank this > morning. (NEED MORE COFFEE!) > > > SKIP > ___ > 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: Most streamlined method to get data
Ugh. I really do not like the format of the use-list. Anyway, don’t just replace comma with empty. Do it to the trailing commas only. This can be done in several ways. Craig > On Jul 29, 2021, at 8:42 AM, Skip Kimpel via use-livecode > wrote: > > I have a variable that contains: > > ,Name,,,Quantity,Total,,,Percent > > ,Dine In,,,189,"$4,812.71",,,57.96% > > ,Take Out,,,72,"$1,676.43",,,20.19% > > ,3rd Party,,,54,"$1,779.35",,,21.43% > > ,Bakery,,,3,$34.83,,,0.42% > > ,Total,,,318,"$8,303.32",,, > > > What is the best way to get 8303.32 from that last line. Obviously, the > complexity is the commas and getting rid of the dollar sign as well. > > > I know I am going to kick myself when somebody answers I am blank this > morning. (NEED MORE COFFEE!) > > > SKIP > ___ > 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: Most streamlined method to get data
Looking at this again, two seconds later, you may also want to; replace comma with empty in eureka Craig > On Jul 29, 2021, at 8:42 AM, Skip Kimpel via use-livecode > wrote: > > I have a variable that contains: > > ,Name,,,Quantity,Total,,,Percent > > ,Dine In,,,189,"$4,812.71",,,57.96% > > ,Take Out,,,72,"$1,676.43",,,20.19% > > ,3rd Party,,,54,"$1,779.35",,,21.43% > > ,Bakery,,,3,$34.83,,,0.42% > > ,Total,,,318,"$8,303.32",,, > > > What is the best way to get 8303.32 from that last line. Obviously, the > complexity is the commas and getting rid of the dollar sign as well. > > > I know I am going to kick myself when somebody answers I am blank this > morning. (NEED MORE COFFEE!) > > > SKIP > ___ > 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: Most streamlined method to get data
Hi. I s the value you want always in the last line? If so, that dollar sign is always in a place that can be referenced: set the itemDel to “$” put the last item of the last line of yourCommaInfestedData into eureka replace quote with empty in eureka Craig > On Jul 29, 2021, at 8:42 AM, Skip Kimpel via use-livecode > wrote: > > I have a variable that contains: > > ,Name,,,Quantity,Total,,,Percent > > ,Dine In,,,189,"$4,812.71",,,57.96% > > ,Take Out,,,72,"$1,676.43",,,20.19% > > ,3rd Party,,,54,"$1,779.35",,,21.43% > > ,Bakery,,,3,$34.83,,,0.42% > > ,Total,,,318,"$8,303.32",,, > > > What is the best way to get 8303.32 from that last line. Obviously, the > complexity is the commas and getting rid of the dollar sign as well. > > > I know I am going to kick myself when somebody answers I am blank this > morning. (NEED MORE COFFEE!) > > > SKIP > ___ > 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
Most streamlined method to get data
I have a variable that contains: ,Name,,,Quantity,Total,,,Percent ,Dine In,,,189,"$4,812.71",,,57.96% ,Take Out,,,72,"$1,676.43",,,20.19% ,3rd Party,,,54,"$1,779.35",,,21.43% ,Bakery,,,3,$34.83,,,0.42% ,Total,,,318,"$8,303.32",,, What is the best way to get 8303.32 from that last line. Obviously, the complexity is the commas and getting rid of the dollar sign as well. I know I am going to kick myself when somebody answers I am blank this morning. (NEED MORE COFFEE!) SKIP ___ 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