Re: Crossplatform EURO sign?

2009-06-11 Thread Robert Brenstein
On 11.06.09 at 21:59 +0300 Richmond Mathewson apparently wrote: BUT, if I put: on mouseUp put quote & fld "fHEX" & quote into FHEX put baseConvert(FHEX,16,10) into fld "fDEC" end mouseUp where fld "fHEX" contains 20Ac (or any other Hexadecimal number) it screws up and I get 133824 POO! T

Re: Crossplatform EURO sign?

2009-06-11 Thread Richmond Mathewson
Ugh! If I put: put baseConvert("20AC",16,10) in the message box it obliges. if I put: on mouseUp put baseConvert("20AC",16,10) into fld "fDEC" end mouseUp in a button it also obliges. BUT, if I put: on mouseUp put quote & fld "fHEX" & quote into FHEX put baseConvert(FHEX,16,10) into fl

Re: Crossplatform EURO sign?

2009-06-11 Thread Richmond Mathewson
I have a problem with baseConvert: on doing this: put baseConvert(8364,10,16) I get 20AC which is lovely. when I do this: put baseConvert("20AC",16,10) I get 133824 which is NOT lovely. Ideas, psychological guidance, . . . ? Andre Garzia wrote: Yay for Richmond! reported working here t

Re: Crossplatform EURO sign?

2009-06-11 Thread Richmond Mathewson
Slightly parenthetically, but, about 34 years ago a wonderful Maths teacher, one "Bonehead" Barker, taught me how to count, add, subtract, divide and multiply in hex; needless to say, I cannot remember anything of it; more's the pity. However, I did discover that the Calculator.app on Mac can

Re: Crossplatform EURO sign?

2009-06-11 Thread Andre Garzia
Yay for Richmond! reported working here too... ubuntu jaunty On Wed, Jun 10, 2009 at 4:09 PM, Richmond Mathewson < richmondmathew...@gmail.com> wrote: > Going about things the wrong way! > > Try this one: > > set the useUnicode to true > set the unicodeText of fld "euro" to (NumToChar(8364)) > >

Re: Crossplatform EURO sign?

2009-06-11 Thread Klaus on-rev
Hi all, many, many thanks for your wonderful suggestions, I'll sure pick one of them! I just love this list! :-) Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com ___ use-revolution mailing list use-revolution@lists.runrev.com

Re: Crossplatform EURO sign?

2009-06-10 Thread Devin Asay
On Jun 10, 2009, at 1:09 PM, Richmond Mathewson wrote: Going about things the wrong way! Try this one: set the useUnicode to true set the unicodeText of fld "euro" to (NumToChar(8364)) 8364 is the Decimal of Hex 20AC works on the G4 Mac, get (at least) a single character, instead of the 3

Re: Crossplatform EURO sign?

2009-06-10 Thread Richmond Mathewson
Hi Klaus, http://www.fileformat.info/info/unicode/char/20ac/browsertest.htm Klaus on-rev wrote: Hi Devin, On Jun 10, 2009, at 7:15 AM, kl...@major.on-rev.com wrote: Hi all, any hint on how to handle crossplatform EURO signs? I mean the euro sign is unfortunately NOT translated isotomac/macto

Re: Crossplatform EURO sign?

2009-06-10 Thread Richmond Mathewson
Going about things the wrong way! Try this one: set the useUnicode to true set the unicodeText of fld "euro" to (NumToChar(8364)) 8364 is the Decimal of Hex 20AC works on the G4 Mac, get (at least) a single character, instead of the 3 generated by the previous script on Ubuntu 8.04 BLAST!

Re: Crossplatform EURO sign?

2009-06-10 Thread Richmond Mathewson
Andre Garzia wrote: Richmond, except that you can resize the pngs and jpegs using rev itself and thus had a image that will always look good. Before setting the htmltext, you get the size of the text font being used and then simply resize your euro icon. If you start with a big icon, and reduce

Re: Crossplatform EURO sign?

2009-06-10 Thread Andre Garzia
Richmond, except that you can resize the pngs and jpegs using rev itself and thus had a image that will always look good. Before setting the htmltext, you get the size of the text font being used and then simply resize your euro icon. If you start with a big icon, and reduce it to the current font

Re: Crossplatform EURO sign?

2009-06-10 Thread Richmond Mathewson
The only problem I can see with that is if the end-user has the ability to resize fonts in the text-field; if the fonts are too big the Euro will look small and silly, if the fonts are too small the Euro png will overlap adjacent chars. Andre Garzia wrote: Klaus, want to do a cheap trick? cre

Re: Crossplatform EURO sign?

2009-06-10 Thread Andre Garzia
Klaus, want to do a cheap trick? create a little euro sign png or jpeg and use the imagesource of char something to put it inside a field, or use the htmltext with something like and there you'll have your EURO icon inside a field and no need to fiddle with fonts! :D On Wed, Jun 10, 2009 at 1

Re: Crossplatform EURO sign?

2009-06-10 Thread Richmond Mathewson
According to the documentation Bitstream Vera is a unicode font, but your added code didn't "bite". Devin Asay wrote: On Jun 10, 2009, at 8:40 AM, Richmond Mathewson wrote: Just tried that by running up a stack on Mac: worked on Mac, didn't on Ubuntu 8.04 sorry! Sometimes you first ha

Re: Crossplatform EURO sign?

2009-06-10 Thread Klaus on-rev
Hi Devin, On Jun 10, 2009, at 7:15 AM, kl...@major.on-rev.com wrote: Hi all, any hint on how to handle crossplatform EURO signs? I mean the euro sign is unfortunately NOT translated isotomac/mactoiso, so how do you handle user input of this (and other) character(s) in your crossplatform apps/st

Re: Crossplatform EURO sign?

2009-06-10 Thread Devin Asay
On Jun 10, 2009, at 8:40 AM, Richmond Mathewson wrote: Just tried that by running up a stack on Mac: worked on Mac, didn't on Ubuntu 8.04 sorry! Sometimes you first have to set the field's font to a unicode font. What happens if you assign a unicode font to the field, then set the u

Re: Crossplatform EURO sign?

2009-06-10 Thread Richmond Mathewson
Just tried that by running up a stack on Mac: worked on Mac, didn't on Ubuntu 8.04 sorry! Devin Asay wrote: On Jun 10, 2009, at 7:15 AM, kl...@major.on-rev.com wrote: Hi all, any hint on how to handle crossplatform EURO signs? I mean the euro sign is unfortunately NOT translated isotom

Re: Crossplatform EURO sign?

2009-06-10 Thread Devin Asay
On Jun 10, 2009, at 7:15 AM, kl...@major.on-rev.com wrote: Hi all, any hint on how to handle crossplatform EURO signs? I mean the euro sign is unfortunately NOT translated isotomac/mactoiso, so how do you handle user input of this (and other) character(s) in your crossplatform apps/stacks/data

Crossplatform EURO sign?

2009-06-10 Thread kl...@major.on-rev.com
Hi all, any hint on how to handle crossplatform EURO signs? I mean the euro sign is unfortunately NOT translated isotomac/mactoiso, so how do you handle user input of this (and other) character(s) in your crossplatform apps/stacks/databases? Not to mention of ERUO signs in label fields, when you