use-livecode Digest, Vol 225, Issue 4

Jean-Jacques Wagner Info at dicod.com
Tue Jun 7 09:01:57 EDT 2022


Hi
Sorry, I ment  the number of words.

Since numtochar has been depreciated with version 7.0, the closest would be now  numtonativechar. 
However with numtonativechar () for the words boundaries the following chars number “09,10,11,12,13,32,202” are used.

Therefore a feature has been depreciated with introduction of version 7.0, it is a long time ago. Originally it was not so,
eg. (“numtochar(32)&numtochar(202)&numtochar(32)) was a word, which was not visible on the screen, but visible for
the script. Now it makes very little sense to use the special char 202 instead of numtochar(32).

Sincerely,

Jean-Jacques Wagner.


> Hypercard and livecode 6.7:  the number of chars (numtochar(32)&
> Hypercard and livecode 6.7:  the number of chars (numtochar(32)&


> Hypercard and livecode 6.7:  the number of chars (numtochar(32)&
> numtochar(202)&numtochar(32)& numtochar(202)&numtochar(32)) = 2


> Hypercard and livecode 6.7:  the number of chars (numtochar(32)&
> numtochar(202)&numtochar(32)& numtochar(202)&numtochar(32)) = 2
> livecode 9.67                      :   the number of chars (numtonativer(32)&
> numtochar(202)&numtochar(32)& numtochar(202)&numtochar(32)) = 0


> Version 6.7    word 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




> Am 04.06.2022 um 18:00 schrieb use-livecode-request at lists.runrev.com:
> 
> Jean-Jacques
> 
> In 9.6.8
> 
> the number of chars of (numtochar(32)& numtochar(202)&numtochar(32)& numtochar(202)&numtochar(32)) = 5
> 
> As it should be.
> 
> Did you mean the number of words?
> 
> But then 
> 
> the number of words of (numtochar(32)& numtochar(202)&numtochar(32)& numtochar(202)&numtochar(32)) = 0 (in 9.6.8)
> 
> As it should be.
> 
> Char 202 is unicode for an invisible char marking a paragraph end I believe, I think rarely used until recently. It has been turning up in web sites causing difficulty for old parsers.
> 
> 
> Neville
> 
>> 
>> Hypercard and livecode 6.7:  the number of chars (numtochar(32)& numtochar(202)&numtochar(32)& numtochar(202)&numtochar(32)) = 2
>> livecode 9.67                      :   the number of chars (numtochar(32)& numtochar(202)&numtochar(32)& numtochar(202)&numtochar(32)) = 0
>> 
>> Is it a change or a bug considering now numtochar(202) as word boundary, as it is with numtochar(32)
>> 
> 



More information about the use-livecode mailing list