Re: Speaking of Plane 1 characters...

2002-11-12 Thread Doug Ewell
Dominikus Scherkl wrote: > utf16high = 0xD7C0 + (utf32 >> 10); > utf16low = 0xDC00 + (utf32 & 1023); > > this is very easy to invert: > > utf32 = ((utf16high - 0xD7C0) <<10) + (utf16low & 1023); This is good, but I'd write hexadecimal 0x3FF instead of decimal 1023, as it shows the purpose of th

Re: Speaking of Plane 1 characters...

2002-11-12 Thread Andrew C. West
On Tue, 12 Nov 2002 06:13:07 -0800 (PST), John Cowan wrote: > The Right Thing in HTML terms is to say #&x10312; and *not* use the > surrogate pair representation. > Or #&66322; Or #&55296;#&57106; Or #&xD800;#&xDF12; (where I've followed John in deliberately reversing the ampersand and the has

RE: Speaking of Plane 1 characters...

2002-11-12 Thread Dominikus Scherkl
Hi! For those of you who _are_ programmers (or at least know a little C), there is a somewhat easier formaula to convert between utf16 and utf32 for plane1 and above (the offset 0x1 in the high surraogate can be fix shifted and included in the constant term): utf16high = 0xD7C0 + (utf32 >> 10

Re: Speaking of Plane 1 characters...

2002-11-11 Thread jameskass
Michael Kaplan wrote, > Glad you like it, John -- I am sure James Kass remembers when I put it up, Indeed. John Cowan wrote, > The Right Thing in HTML terms is to say #&x10312; and *not* use the > surrogate pair representation. How about 𐌒 (or xF0,x90,x8C,x92) ? Tex Texin wrote, > Hmmm. I j

Re: Speaking of Plane 1 characters...

2002-11-11 Thread Markus Scherer
Michael (michka) Kaplan wrote: Michael, in answer to your request for a UTF-8 converter, that will have to be another day (its a bit more complicated, and I spend most of my time in UTF-16 and UTF-32 so I can't really pretend its work related). If you wanted to provide the code in VBScript or JScr

Re: Speaking of Plane 1 characters...

2002-11-11 Thread Jungshik Shin
On Mon, 11 Nov 2002, John Cowan wrote: > On *ix systems, use the "bc" command; type "obase=16" and "ibase=16". Thank you for this. I should have read the man page of bc more carefully. (or I used to know it but forgot...) > For this program, you must use capital letters for the hex digits. >

Re: Speaking of Plane 1 characters...

2002-11-11 Thread Barry Caplan
At 05:47 PM 11/11/2002 -0500, John Cowan wrote: >Michael Everson scripsit: > >> >The scale in question is analogous to a temperature scale, not a >> >reptilian one. >> >> Now I very *seriously* don't get it. > >A temperature scale enumerates the degrees -273, -272, -271, ..., 0, 1, 2, ... >in orde

Re: Speaking of Plane 1 characters...

2002-11-11 Thread Mark Davis
hael Everson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 11, 2002 13:37 Subject: Re: Speaking of Plane 1 characters... > At 13:20 -0800 2002-11-11, Mark Davis wrote: > >If you look http://www.macchiato.com/ under "Unicode Charts", you

Re: Speaking of Plane 1 characters...

2002-11-11 Thread John Cowan
Michael Everson scripsit: > >The scale in question is analogous to a temperature scale, not a > >reptilian one. > > Now I very *seriously* don't get it. A temperature scale enumerates the degrees -273, -272, -271, ..., 0, 1, 2, ... in order. When you ask "What is the temperature?", you are actu

Re: Speaking of Plane 1 characters...

2002-11-11 Thread Michael Everson
At 16:31 -0500 2002-11-11, John Cowan wrote: Michael Everson scripsit: Perhaps it is just me, but terms like scalar value just don't mean anything to me. It rather reminds me of reptilian skin shedding. The scale in question is analogous to a temperature scale, not a reptilian one. Now I v

Re: Speaking of Plane 1 characters...

2002-11-11 Thread Michael Everson
At 13:34 -0800 2002-11-11, Michael \(michka\) Kaplan wrote: Michael, in answer to your request for a UTF-8 converter, that will have to be another day (its a bit more complicated, and I spend most of my time in UTF-16 and UTF-32 so I can't really pretend its work related). If you wanted to pro

Re: Speaking of Plane 1 characters...

2002-11-11 Thread Michael \(michka\) Kaplan
From: "John Hudson" <[EMAIL PROTECTED]> > At 13:50 11/11/2002, Michael Everson wrote: > > >By the way MichKa if you make the boxes a bit wider the whole string of > >numbers would display. > > I noticed the same problem in Opera. It's okay in IE. Ah, if I called *that* by design, someone might ac

Re: Speaking of Plane 1 characters...

2002-11-11 Thread Michael Everson
At 13:20 -0800 2002-11-11, Mark Davis wrote: If you look http://www.macchiato.com/ under "Unicode Charts", you can type in the code point (scalar value) for a character, then Enter, and you will get a chart. The UTF-8, 16, and 32 numbers are given in the chart for each value. Why do you call it

Re: Speaking of Plane 1 characters...

2002-11-11 Thread John Colby
At 13:18 11/11/2002 -0700, John Hudson wrote: At 13:50 11/11/2002, Michael Everson wrote: By the way MichKa if you make the boxes a bit wider the whole string of numbers would display. I noticed the same problem in Opera. It's okay in IE. That's the default font size mismatch - IE do things

Re: Speaking of Plane 1 characters...

2002-11-11 Thread John Cowan
Michael Everson scripsit: > Perhaps it is just me, but terms like scalar value just don't mean > anything to me. It rather reminds me of reptilian skin shedding. The scale in question is analogous to a temperature scale, not a reptilian one. > I visited MichKa's page and tried typing in 10312 (

Re: Speaking of Plane 1 characters...

2002-11-11 Thread John Hudson
At 13:50 11/11/2002, Michael Everson wrote: By the way MichKa if you make the boxes a bit wider the whole string of numbers would display. I noticed the same problem in Opera. It's okay in IE. John Hudson Tiro Typeworks www.tiro.com Vancouver, BC [EMAIL PROTECTED] It is necessary that by a

Re: Speaking of Plane 1 characters...

2002-11-11 Thread Michael \(michka\) Kaplan
From: "Michael Everson" <[EMAIL PROTECTED]> > At 12:10 -0700 2002-11-11, John Hudson wrote: > >Many thanks to the various people who recommended Michael Kaplan's > >calculator at http://trigeminal.com/16to32AndBack.asp > > > >This is excellent and solves my problem. Glad you like it, John -- I am

Re: Speaking of Plane 1 characters...

2002-11-11 Thread Mark Davis
chiato.com ► “Eppur si muove” ◄ - Original Message - From: "John Hudson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 11, 2002 10:08 Subject: Speaking of Plane 1 characters... > One of the tools I use for building fonts requires that cod

Re: Speaking of Plane 1 characters...

2002-11-11 Thread Michael Everson
At 13:11 -0800 2002-11-11, Michael \(michka\) Kaplan wrote: > Perhaps it is just me, but terms like scalar value just don't mean > anything to me. It rather reminds me of reptilian skin shedding. Since I do not use that term on my site, I assume you are referring to someone else's resource? :-

Re: Speaking of Plane 1 characters...

2002-11-11 Thread Michael Everson
At 13:55 -0700 2002-11-11, Tom Gewecke wrote: >On the Macintosh, I have no clue. On Mac OS X, the Character Palette or the add-on UnicodeChecker will give the surrogates for any given codepoint. If you can get it to work. It still breaks for me so constantly I don't even try to use it. :-( --

Re: Speaking of Plane 1 characters...

2002-11-11 Thread Tom Gewecke
>On the Macintosh, I have no clue. On Mac OS X, the Character Palette or the add-on UnicodeChecker will give the surrogates for any given codepoint. For a web page that calculates both ways, see http://www.trigeminal.com/16to32AndBack.asp

Re: Speaking of Plane 1 characters...

2002-11-11 Thread Michael Everson
At 12:10 -0700 2002-11-11, John Hudson wrote: Many thanks to the various people who recommended Michael Kaplan's calculator at http://trigeminal.com/16to32AndBack.asp This is excellent and solves my problem. Perhaps it is just me, but terms like scalar value just don't mean anything to me. It

Re: Speaking of Plane 1 characters...

2002-11-11 Thread John Hudson
Many thanks to the various people who recommended Michael Kaplan's calculator at http://trigeminal.com/16to32AndBack.asp This is excellent and solves my problem. John Hudson Tiro Typeworks www.tiro.com Vancouver, BC [EMAIL PROTECTED] It is necessary that by all means and cunning, the cursed

Re: Speaking of Plane 1 characters...

2002-11-11 Thread John Cowan
John Hudson scripsit: > > One of the tools I use for building fonts requires that codepoints for > Plane 1 characters be expressed as surrogate pairs, rather than as scalar > values. I'm hoping this will change on the next release, since the scalar > I need to figure > out the easiest way to f

Speaking of Plane 1 characters...

2002-11-11 Thread John Hudson
One of the tools I use for building fonts requires that codepoints for Plane 1 characters be expressed as surrogate pairs, rather than as scalar values. I'm hoping this will change on the next release, since the scalar values are a lot easier to work with, but in the meantime I need to figure o