Page 1 of 2

Unicode inconsistency

Posted: Sat Mar 10, 2018 11:26 am
by richmond62
This is being posted in the "Off Topic" area because these forums do NOT supply a section for text and language representation.

LiveCode 8.1.8, Mac OS 10.7.5

Doing this:

put numToCodePoint(0xA8FD)
displays a Jain Om in the Message box:
Screen Shot 2018-03-10 at 12.23.33 pm.png
Screen Shot 2018-03-10 at 12.23.33 pm.png (33.33 KiB) Viewed 2090 times
But doing this:

put numToCodePoint(0xA8FD) into fld "gg"
does this:
Screen Shot 2018-03-10 at 12.25.23 pm.png
Screen Shot 2018-03-10 at 12.25.23 pm.png (3.95 KiB) Viewed 2090 times
Which is NBG.

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 11:42 am
by richmond62
Jain OM.png
Jain OM.png (82.24 KiB) Viewed 2085 times
The Mac OS 10.7.5 Calculator manages to display the Jain OM as well, so
anyone who wants to try the "Mac OS Lion cannot cope with parts of Unicode"
shouldn't bother.
svetambara.jpg
svetambara.jpg (5.74 KiB) Viewed 2085 times
Oh, look! Here's a Jain who's taken a vow NOT to make funny remarks about Unicode.

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 12:14 pm
by bogs
Dunno, all that puts into my message box is a small square :mrgreen:
Selection_003.png
Selection_003.png (10.25 KiB) Viewed 2081 times

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 12:39 pm
by richmond62
"bogs": is that Windows?

Do you have at least one Unicode compliant font that displays the Devanagari extended glyph set?

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 12:59 pm
by bogs
Windows? BITE YOUR TONGUE! :evil:

j/k, 'nix LMDE. hmmm, Devanagari eh? I'll have to go look it up...checking...checking...

Well, apparently I have some form of it, the only two I saw in the repositories are both installed already...
Selection_004.png
but probably not an extended set.

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 1:02 pm
by richmond62
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.

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 1:04 pm
by richmond62
"nakula", "sahadeva": Hmpf: I'd be a bit careful about using fonts named after the Pandavas.

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 1:16 pm
by bogs
richmond62 wrote:
Sat Mar 10, 2018 1:04 pm
Hmpf: I'd be a bit careful about using fonts named after the Pandavas.
I'd be more than a bit careful about using this stuff, so careful in fact that I have never used it. I don't generally type in languages I don't understand at least a little about, so for me that excludes all of these :P

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 1:22 pm
by richmond62
The Pandavas went in for Polyandry: the 5 brothers shared a wife between them . . .
-
draupadi-1_1484638731.jpg
-
and because God's sense of humour is LARGE, she ended up with 5.

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 1:49 pm
by bogs
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.

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 2:46 pm
by richmond62
I'm not sure about that, but Tibetan Buddhists go in for polyandry.

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 2:49 pm
by bogs
Will look for it later for completeness, book the article is in is upstairs.

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 2:51 pm
by richmond62
HOWEVER, there is an obvious problem with LiveCode insofar as some Unicode addresses can be "pulled" using Hexadecimal, while some can only be "pulled" using Decimal.

I'm going out for a walk to the vegetable and fruit market, and will think of a reasonably sensible way to frame a bug report.
Market.jpg
This is the fellow I buy tatties and neeps from. He normally "sets me straight" when I have a programming problem.

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 4:58 pm
by richmond62
Screen Shot 2018-03-10 at 5.57.33 pm.png
Screen Shot 2018-03-10 at 5.57.33 pm.png (11.38 KiB) Viewed 2011 times

Bug report 21055

Re: Unicode inconsistency

Posted: Sat Mar 10, 2018 6:27 pm
by richmond62
Actually, The Unicode inconsistency goes further in LiveCode, as for instance:
Screen Shot 2018-03-10 at 7.23.08 pm.png
Screen Shot 2018-03-10 at 7.23.08 pm.png (23.81 KiB) Viewed 2001 times
Screen Shot 2018-03-10 at 7.22.50 pm.png
Screen Shot 2018-03-10 at 7.22.50 pm.png (23.95 KiB) Viewed 2001 times
Both of these (regardless of whether one uses Decimal or Hex) show up properly in the Message Box, but show up as silly squares in fields.