Page 2 of 2

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 6:28 pm
by bwmilby
richmond62 wrote:
Sat Mar 10, 2018 1:02 pm
Had some lunch . . .

and tried this:

put numToCodePoint(43261) into fld "gg"

And, before you ask: 43261 is the decimal way of expressing hex A8FD

and that worked!

So, obviously LiveCode is having a problem with Hexadecimal.
So if you do:

Code: Select all

put numToCodePoint(0xA8FD) into fld "gg"
put codePointToNum(char 1 of fld "gg")
Do you get 43261? I don't have an appropriate font installed so I get the box with a question mark either place. If I type the above statements, I do get the proper decimal for that character. If that works, then it could be something about the font that LC is choosing to render that character (I'm guessing here).

(I also tried 7411 and 7413 and get boxes either way)

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 6:35 pm
by richmond62
I don't have an appropriate font installed
Now is your chance to live dangerously 8)

https://www.dropbox.com/s/hadqewhlbhzuj ... f.zip?dl=0

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 7:25 pm
by richmond62
admittedly my Devawriter Pro does "push the envelope" with what LiveCode CAN do with Unicode,

BUT, "CAN" is NOT the word that is always on my lips: it's "SHOULD", and the question is "WHY DOESN'T IT?"

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 7:41 pm
by bwmilby
And after installing the font (without even relaunching LC 9DP11), everything works as expected. I see the proper glyph in both the message box and the stack field. I tried the hex version and the 3 decimal versions presented. I also tried in LC7.0.6 with similar results. All of my tests were on Mac Sierra.

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 7:45 pm
by richmond62
That's interesting.

I'll have to wrestle my wife for her laptop that runs Mac OS 10.12.

But, before that, I'll see what Xubuntu and MX Linux have to say for themselves.

Although . . . it would be nice if this could be sorted out for LC 8.1.10.

It would also be nice to know if this is an underlying problem with Mac OS 10.7 or not . . .

I am inclined to believe that is NOT the case because of LiveCode's ability
to deliver the glyphs in the Message Box.

Re: Unicode inconsistency

Posted: Wed Mar 14, 2018 4:56 pm
by bogs
bogs wrote:
Sat Mar 10, 2018 1:49 pm
Now that I've heard something similar about, although I forget the country, when a girl 'marries' she marries into the family. At the first birth, all of the brothers get together and decide who the 'father' is. after that, and even beyond his death, he is still the 'father' to any children born.
I did (finally) have time to dig up that reference, it was the Tondas tribe of the Nilgiris, a district of Madras. My time flies when your having fun eh? :mrgreen:

Re: Unicode inconsistency

Posted: Wed Mar 14, 2018 7:29 pm
by richmond62
Hmm.

When I was in the UAE one of the "tea boys" from Kerala was give "special release" to have a home visit
after only 2 years (!!!) because his wife had given birth: he told me how excited he was that
he was going to see his son.

I did not have the heart to disabuse him.

Re: Unicode inconsistency

Posted: Wed Mar 14, 2018 10:41 pm
by bogs
Yah, family can be fun...or not...depending on your point of view :mrgreen:

Re: Unicode inconsistency

Posted: Sun Mar 03, 2019 11:04 am
by richmond62
The example I cited above now works . . .

Well, with LiveCode 9.0.3 rc-1 and macOS 10.14.4 beta.

But that isn't much cop as not everyone has access too the "latest and greatest".