Re: Displaying Stars (was Superscript)

2007-04-25 Thread Arnaud Nicolet
Le 25 avr. 07 à 16:43 Soir, Norman Palardy a écrit: > On 25-Apr-07, at 4:43 AM, Arnaud Nicolet wrote: > >> Le 24 avr. 07 à 19:03 Soir, [EMAIL PROTECTED] a écrit: >> >>> On Apr 24, 2007, at 16:58 UTC, Kirk Gray wrote: >>> Having slept on our encoding discussion from yesterday, I'm wonderi

Re: Displaying Stars (was Superscript)

2007-04-25 Thread Norman Palardy
On 25-Apr-07, at 4:43 AM, Arnaud Nicolet wrote: > Le 24 avr. 07 à 19:03 Soir, [EMAIL PROTECTED] a écrit: > >> On Apr 24, 2007, at 16:58 UTC, Kirk Gray wrote: >> >>> Having slept on our encoding discussion from yesterday, I'm >>> wondering >>> if what you want to do is simply display special cha

Re: Displaying Stars (was Superscript)

2007-04-25 Thread Arnaud Nicolet
Le 24 avr. 07 à 19:03 Soir, [EMAIL PROTECTED] a écrit: > On Apr 24, 2007, at 16:58 UTC, Kirk Gray wrote: > >> Having slept on our encoding discussion from yesterday, I'm wondering >> if what you want to do is simply display special characters rather >> than defining your own encoding. > > I'm not

Re: Displaying Stars (was Superscript)

2007-04-24 Thread joe
On Apr 24, 2007, at 16:58 UTC, Kirk Gray wrote: > Having slept on our encoding discussion from yesterday, I'm wondering > if what you want to do is simply display special characters rather > than defining your own encoding. I'm not Arnaud, but I don't think he ever seriously wanted to define hi

Displaying Stars (was Superscript)

2007-04-24 Thread Kirk Gray
On Apr 23, 2007, at 11:39 AM, Arnaud Nicolet wrote: > Do you know how one can make an encoding? > Say I want to make an encoding named "Arnaud" (a really strange > encoding where letters are animated and in half-blue and half-green), > how could I start? On Apr 23, 2007, at 1:24 PM, Arnaud Nicole

Re: Superscript

2007-04-23 Thread joe
On Apr 23, 2007, at 19:35 UTC, Arnaud Nicolet wrote: > So I modify my question: if I want to create my own encoding, how do > I create my new mapping containing, say, only vowels with and without > accents? How will my application (passing from RB and the OS) be > aware that my encoding has bee

Re: Superscript

2007-04-23 Thread Norman Palardy
On 23-Apr-07, at 2:22 PM, [EMAIL PROTECTED] wrote: > norman said: >>UTF-8 has a variable sized encoding and >>uses 1, 2, 3 or 4 bytes depending on the code point. > > does this have an effect on realbasic commands > which deal with strings, such as len() or instr()? > or are those adjustm

Re: Superscript

2007-04-23 Thread Charles Yeomans
On Apr 23, 2007, at 4:22 PM, [EMAIL PROTECTED] wrote: > norman said: >>UTF-8 has a variable sized encoding and >>uses 1, 2, 3 or 4 bytes depending on the code point. > > does this have an effect on realbasic commands > which deal with strings, such as len() or instr()? > or are those adju

re: Superscript

2007-04-23 Thread Bowerbird
norman said: >UTF-8 has a variable sized encoding and >uses 1, 2, 3 or 4 bytes depending on the code point. does this have an effect on realbasic commands which deal with strings, such as len() or instr()? or are those adjustments made automatically? what about if i stuff a string into a

Re: Superscript

2007-04-23 Thread Arnaud Nicolet
Le 23 avr. 07 à 21:46 Soir, Norman Palardy a écrit: > On 23-Apr-07, at 10:52 AM, Arnaud Nicolet wrote: > >> Le 23 avr. 07 à 18:43 Soir, [EMAIL PROTECTED] a écrit: >> >>> No, legacy encodings were defined all over the world. Unicode was >>> defined by an international consortium. >> >> Thank you.

Re: Superscript

2007-04-23 Thread Kirk Gray
On Apr 23, 2007, at 1:07 PM, Norman Palardy wrote: > > On 23-Apr-07, at 11:39 AM, Arnaud Nicolet wrote: > >> I agree that a world without needing to specify an encoding on each >> string manipulation would be a dream. > > If you can get everyone to use UTF-8 it should handle pretty much > everythin

Re: Superscript

2007-04-23 Thread Norman Palardy
On 23-Apr-07, at 10:52 AM, Arnaud Nicolet wrote: > Le 23 avr. 07 à 18:43 Soir, [EMAIL PROTECTED] a écrit: > >> No, legacy encodings were defined all over the world. Unicode was >> defined by an international consortium. > > Thank you. > I wonder, then, why those encodings also include the ASCII

Re: Superscript

2007-04-23 Thread Arnaud Nicolet
Le 23 avr. 07 à 21:34 Soir, Kirk Gray a écrit: > On Apr 23, 2007, at 1:24 PM, Arnaud Nicolet wrote: >> Could I invent such a "character", but that automatically appears >> blue by definition? >> (well, I admit I'm too curious). > > Characters in fonts and font rendering programs like TrueType and

Re: Superscript

2007-04-23 Thread Arnaud Nicolet
Le 23 avr. 07 à 21:34 Soir, [EMAIL PROTECTED] a écrit: > On Apr 23, 2007, at 19:26 UTC, Arnaud Nicolet wrote: > >> I remember there is an encoding named "ASCII". I'm curious to >> discover what is, in that encoding, the character numbered 128 > > There is none. ASCII values range only from 0 to 1

Re: Superscript

2007-04-23 Thread Arnaud Nicolet
Le 23 avr. 07 à 21:32 Soir, Kirk Gray a écrit: > On Apr 23, 2007, at 1:15 PM, Arnaud Nicolet wrote: >> So, in RB, we have to compute every byte read. >> There is no way of having the encoding predefined? >> Like when we say: ConvertEncoding(MyText,Encodings.UTF8), RB knows >> UTF8 and does not com

Re: Superscript

2007-04-23 Thread Arnaud Nicolet
Le 23 avr. 07 à 21:28 Soir, [EMAIL PROTECTED] a écrit: > This has nothing to do with RB. This has purely to do with > information. If I give you the bytes 3D FA C4 B6, along with (to make > it even easier!) the clue that each byte corresponds to one character, > can you tell me what the text is

Re: Superscript

2007-04-23 Thread Kirk Gray
On Apr 23, 2007, at 1:24 PM, Arnaud Nicolet wrote: > Could I invent such a "character", but that automatically appears > blue by definition? > (well, I admit I'm too curious). Characters in fonts and font rendering programs like TrueType and Postscript generally are monochrome. Leaving it to th

Re: Superscript

2007-04-23 Thread joe
On Apr 23, 2007, at 19:26 UTC, Arnaud Nicolet wrote: > I remember there is an encoding named "ASCII". I'm curious to > discover what is, in that encoding, the character numbered 128 There is none. ASCII values range only from 0 to 127. It is like asking how many days are in the 13th month of

Re: Superscript

2007-04-23 Thread Kirk Gray
On Apr 23, 2007, at 1:15 PM, Arnaud Nicolet wrote: > So, in RB, we have to compute every byte read. > There is no way of having the encoding predefined? > Like when we say: ConvertEncoding(MyText,Encodings.UTF8), RB knows > UTF8 and does not compute the bytes itself (there is something that I > don

Re: Superscript

2007-04-23 Thread joe
On Apr 23, 2007, at 19:15 UTC, Arnaud Nicolet wrote: > > Of course, since we live in an ASCII/Unicode world, you'd have to > > make ASCII/Unicode to Arnaud and Arnaud to ASCII/Unicode conversion > > routines. > > So, in RB, we have to compute every byte read. > There is no way of having the encod

Re: Superscript

2007-04-23 Thread Arnaud Nicolet
Le 23 avr. 07 à 21:17 Soir, [EMAIL PROTECTED] a écrit: > On Apr 23, 2007, at 16:52 UTC, Arnaud Nicolet wrote: > >> Le 23 avr. 07 à 18:43 Soir, [EMAIL PROTECTED] a écrit: >> >>> No, legacy encodings were defined all over the world. Unicode was >>> defined by an international consortium. >> >> Than

Re: Superscript

2007-04-23 Thread Arnaud Nicolet
Le 23 avr. 07 à 21:07 Soir, Norman Palardy a écrit: > On 23-Apr-07, at 11:39 AM, Arnaud Nicolet wrote: > >> Le 23 avr. 07 à 19:29 Soir, Kirk Gray a écrit: >> >> Just a question here: why did other encodings start from a base (the >> ascii)? >> They could keep a 7 bits scheme and be a completely-in

Re: Superscript

2007-04-23 Thread joe
On Apr 23, 2007, at 16:52 UTC, Arnaud Nicolet wrote: > Le 23 avr. 07 à 18:43 Soir, [EMAIL PROTECTED] a écrit: > > > No, legacy encodings were defined all over the world. Unicode was > > defined by an international consortium. > > Thank you. > I wonder, then, why those encodings also include t

Re: Superscript

2007-04-23 Thread Arnaud Nicolet
Le 23 avr. 07 à 20:43 Soir, Kirk Gray a écrit: > On Apr 23, 2007, at 11:39 AM, Arnaud Nicolet wrote: > >> Just a question here: why did other encodings start from a base (the >> ascii)? >> They could keep a 7 bits scheme and be a completely-independent >> encoding. >> > Lots of people refer to the

Re: Superscript

2007-04-23 Thread Norman Palardy
On 23-Apr-07, at 11:39 AM, Arnaud Nicolet wrote: > Le 23 avr. 07 à 19:29 Soir, Kirk Gray a écrit: > >> Computing spread from the U.S. outward. Since U.S. encodings had a >> standard, it was easy to use it as a base for other encodings in >> other countries, adding need characters in the unused (

Re: Superscript

2007-04-23 Thread Kirk Gray
On Apr 23, 2007, at 11:39 AM, Arnaud Nicolet wrote: > Just a question here: why did other encodings start from a base (the > ascii)? > They could keep a 7 bits scheme and be a completely-independent > encoding. > > By the way, 8 bits is not required for an encoding, right? Exactly. In fact ASCII

Re: Superscript

2007-04-23 Thread Arnaud Nicolet
Le 23 avr. 07 à 19:29 Soir, Kirk Gray a écrit: > Computing spread from the U.S. outward. Since U.S. encodings had a > standard, it was easy to use it as a base for other encodings in > other countries, adding need characters in the unused (and non- > existent) "high-ASCII" range. Just a question

Re: Superscript

2007-04-23 Thread Kirk Gray
On Apr 23, 2007, at 10:52 AM, Arnaud Nicolet wrote: > Le 23 avr. 07 à 18:43 Soir, [EMAIL PROTECTED] a écrit: > >> No, legacy encodings were defined all over the world. Unicode was >> defined by an international consortium. > > Thank you. > I wonder, then, why those encodings also include the ASCII

Re: Superscript

2007-04-23 Thread Arnaud Nicolet
Le 23 avr. 07 à 18:43 Soir, [EMAIL PROTECTED] a écrit: > No, legacy encodings were defined all over the world. Unicode was > defined by an international consortium. Thank you. I wonder, then, why those encodings also include the ASCII part. Should not the ASCII be an independent encoding?

Re: Superscript

2007-04-23 Thread joe
On Apr 23, 2007, at 15:51 UTC, Arnaud Nicolet wrote: > Le 23 avr. 07 à 17:39 Soir, Norman Palardy a écrit: > > >> Then, if they are other encodings, why do they also contain, most > of > >> the time, the ascii list? > >> (I'm not speaking about the 7 bits vs 8 bits). > > > > Because that's the

Re: Superscript

2007-04-23 Thread Arnaud Nicolet
Le 23 avr. 07 à 17:39 Soir, Norman Palardy a écrit: >> Then, if they are other encodings, why do they also contain, most of >> the time, the ascii list? >> (I'm not speaking about the 7 bits vs 8 bits). > > Because that's the way the other encodings are defined Thanks. So I assume the other enco

Re: Superscript

2007-04-23 Thread Norman Palardy
On 23-Apr-07, at 6:52 AM, Arnaud Nicolet wrote: > Le 22 avr. 07 à 03:17 Matin, Norman Palardy a écrit: > >> On 21-Apr-07, at 6:25 PM, Lennox Jacob wrote: >> >>> Hello, >>> Could someone please let me know the ASCII character for the >>> superscript

Re: Superscript

2007-04-23 Thread Arnaud Nicolet
Le 22 avr. 07 à 03:17 Matin, Norman Palardy a écrit: > On 21-Apr-07, at 6:25 PM, Lennox Jacob wrote: > >> Hello, >> Could someone please let me know the ASCII character for the >> superscript values 0 to 9 and + ? >> Thanks. >> Lennox. > > Beyond that

Re: Superscript

2007-04-22 Thread Lennox Jacob
Any suggestions/ Just do it! Decide what the main fontsize is to be and how much smaller you want the superscripts to be (maybe 2/3rds or 3/4ths the main text size) Decide what Y offset you want for the Superscript. I like: SuperScriptDeltaY = MainTextAscent + SuperScriptTextHeight/2 - Sus

Re: Superscript

2007-04-21 Thread Lennox Jacob
h the + > and 3 as superscripts. > Any suggestions/ Just do it! Decide what the main fontsize is to be and how much smaller you want the superscripts to be (maybe 2/3rds or 3/4ths the main text size) Decide what Y offset you want for the Superscript. I like: SuperScriptDeltaY = MainTextAscent

Re: Superscript

2007-04-21 Thread Karen
and how much smaller you want the superscripts to be (maybe 2/3rds or 3/4ths the main text size) Decide what Y offset you want for the Superscript. I like: SuperScriptDeltaY = MainTextAscent + SuperScriptTextHeight/2 - SusperScriptTextAscent Brake the string into sections of regular text and

Re: Superscript

2007-04-21 Thread Lennox Jacob
a way to make (Superscript 1,2,3 and 4) > > Encodings.UTF8.Chr(&hB9) > Encodings.UTF8.Chr(&hB2) > Encodings.UTF8.Chr(&hB3) > Encodings.UTF8.Chr(&h2074) > > have the same vertical offset as these (Superscript 0,5,6,7,8 and 9) Do you really need this in a editfield? If

Re: Superscript

2007-04-21 Thread Karen
On Apr 21, 2007, at 11:01 PM, Lennox Jacob wrote: > Is there a way to make (Superscript 1,2,3 and 4) > > Encodings.UTF8.Chr(&hB9) > Encodings.UTF8.Chr(&hB2) > Encodings.UTF8.Chr(&hB3) > Encodings.UTF8.Chr(&h2074) > > have the same vertical offset as the

Re: Superscript

2007-04-21 Thread Lennox Jacob
Hello, Is there a way to make (Superscript 1,2,3 and 4) Encodings.UTF8.Chr(&hB9) Encodings.UTF8.Chr(&hB2) Encodings.UTF8.Chr(&hB3) Encodings.UTF8.Chr(&h2074) have the same vertical offset as these (Superscript 0,5,6,7,8 and 9) Encodings.UTF8.Chr(&h2070) Encod

Re: Superscript

2007-04-21 Thread Lennox Jacob
Thanks Norman, I see. Lennox. Norman Palardy <[EMAIL PROTECTED]> wrote: On 21-Apr-07, at 6:25 PM, Lennox Jacob wrote: > Hello, > Could someone please let me know the ASCII character for the > superscript values 0 to 9 and + ? > Thanks. > Lennox. There are no ASCI

Re: Superscript

2007-04-21 Thread Norman Palardy
On 21-Apr-07, at 6:25 PM, Lennox Jacob wrote: > Hello, > Could someone please let me know the ASCII character for the > superscript values 0 to 9 and + ? > Thanks. > Lennox. There are no ASCII characters like you describe. ASCII is only a very basic set of character from

Re: Superscript

2007-04-21 Thread Lennox Jacob
I know that Encodings.utf.chr(178) works for 2, but what about the rest? Lennox. Lennox Jacob <[EMAIL PROTECTED]> wrote: Hello, Could someone please let me know the ASCII character for the superscript values 0 to 9 and + ? Thanks. Lennox.

Superscript

2007-04-21 Thread Lennox Jacob
Hello, Could someone please let me know the ASCII character for the superscript values 0 to 9 and + ? Thanks. Lennox. - Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Ya