Unicode inconsistency

Want to talk about something that isn't covered by another category?

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

bwmilby
Posts: 145
Joined: Wed Jun 07, 2017 5:37 am
Contact:

Re: Unicode inconsistency

Post by bwmilby » Sat Mar 10, 2018 6:28 pm

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)

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2511
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Unicode inconsistency

Post by richmond62 » Sat Mar 10, 2018 6:35 pm

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2511
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Unicode inconsistency

Post by richmond62 » Sat Mar 10, 2018 7:25 pm

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?"

bwmilby
Posts: 145
Joined: Wed Jun 07, 2017 5:37 am
Contact:

Re: Unicode inconsistency

Post by bwmilby » Sat Mar 10, 2018 7:41 pm

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.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2511
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Unicode inconsistency

Post by richmond62 » Sat Mar 10, 2018 7:45 pm

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.

bogs
Posts: 1816
Joined: Sat Feb 25, 2017 10:45 pm

Re: Unicode inconsistency

Post by bogs » Wed Mar 14, 2018 4:56 pm

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:
Image

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2511
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Unicode inconsistency

Post by richmond62 » Wed Mar 14, 2018 7:29 pm

Hmm.

When I was in the UAE one of the "tea boys" from Kerala was give "special release" 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.

bogs
Posts: 1816
Joined: Sat Feb 25, 2017 10:45 pm

Re: Unicode inconsistency

Post by bogs » Wed Mar 14, 2018 10:41 pm

Yah, family can be fun...or not...depending on your point of view :mrgreen:
Image

Post Reply

Return to “Off-Topic”