Re: char as word boundary

2022-06-13 Thread Paul Dupuis via use-livecode
On 6/13/2022 12:13 PM, Mark Waddingham via use-livecode wrote: Hypercard and livecode 6.7:  the number of chars (numtochar(32)& numtochar(202)(32)& numtochar(202)(32)) = 2 livecode 9.67  :   the number of chars (numtochar(32)& numtochar(202)(32)& numtochar(202)(32)) = 0 LC

Re: char as word boundary

2022-06-13 Thread Bob Sneidar via use-livecode
"dirty hack" is my middle name! :-) Bob S > On Jun 13, 2022, at 09:13 , Mark Waddingham via use-livecode > wrote: > > This was primarily a very dirty hack (which was done before my time!) ___ use-livecode mailing list

Re: char as word boundary

2022-06-13 Thread Mark Waddingham via use-livecode
Hi Jean-Jacques, On 2022-06-03 14:56, Jean-Jacques Wagner via use-livecode wrote: Hi, Version 6.7word boudary are char number 09,10,11,12,13,32 version 9.67 word boudary are char number 09,10,11,12,13,32,202 Hypercard and livecode 6.7: the number of chars (numtochar(32)&

Re: char as word boundary

2022-06-07 Thread Neville Smythe via use-livecode
Still jumping without thinking… If native char 202 or unicode char 202 is a word boundary in Windows it is a real bug — but is that the case? Native char 202, a non-breaking space, should (or maybe shouldn’t) be a word boundary in Mac - the docs say word boundaries are space, tab and return.

Re: char as word boundary

2022-06-07 Thread Neville Smythe via use-livecode
Hmm. I jumped without thinking…I was thinking if unicode char 2029 which is the paragraph separator. Unicode Char 202 is supposed to be Latin Capital Letter E With Circumflex. But 202 is beyond the standard ascii range so the deprecated numtochar(202) will return an extended ascii character

Re: char as word boundary

2022-06-06 Thread Craig Newman via use-livecode
Apart from omitting the “of” in any of your posted lines of code, I am confused.. The number of chars of any string of concatenated “numToChar” functions will be the number of those functions, that is, 5, since each returns a single character. How did you get any of the other results? Craig

Re: char as word boundary

2022-06-03 Thread Neville Smythe via use-livecode
Jean-Jacques In 9.6.8 the number of chars of (numtochar(32)& numtochar(202)(32)& numtochar(202)(32)) = 5 As it should be. Did you mean the number of words? But then the number of words of (numtochar(32)& numtochar(202)(32)& numtochar(202)(32)) = 0 (in 9.6.8) As it should be. Char

Re: char as word boundary

2022-06-03 Thread Bob Sneidar via use-livecode
I get a compile error when using your syntax. If I insert the word "of" after "chars" I get 5 for version 9.6.8 as you would expect. Do you have the *actual* syntax that is causing you the problem? . Bob S > On Jun 3, 2022, at 06:56 , Jean-Jacques Wagner via use-livecode > wrote: > > Hi,

Re: char as word boundary

2022-06-03 Thread Ian McKnight via use-livecode
Hi Look up numToChar in the dictionary. It's been deprecated since v7 0 because of unicode. This might explain things. Hope that helps Ian McKnight On Fri, 3 Jun 2022, 14:57 Jean-Jacques Wagner via use-livecode, < use-livecode@lists.runrev.com> wrote: > Hi, > Version 6.7word boudary are

char as word boundary

2022-06-03 Thread Jean-Jacques Wagner via use-livecode
Hi, Version 6.7word boudary are char number 09,10,11,12,13,32 version 9.67 word boudary are char number 09,10,11,12,13,32,202 Hypercard and livecode 6.7: the number of chars (numtochar(32)& numtochar(202)(32)& numtochar(202)(32)) = 2 livecode 9.67 : the number of