Re: Crossplatform EURO sign?
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! Try on mouseUp put fld "fHEX" into FHEX put baseConvert(FHEX,16,10) into fld "fDEC" end mouseUp Robert ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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 fld "fDEC" end mouseUp where fld "fHEX" contains 20Ac (or any other Hexadecimal number) it screws up and I get 133824 POO! Andre Garzia wrote: 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)) 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! references: http://unicode.org/reports/tr8/#Euro%20Sign font used: FreeMono.ttf 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 it to the current font size, you'll not loose quality and can cope with any font size! resize can happen offscreen and thus be extremely fast for a single icon, just create a copy of the original image offscreen and resize it, use its ID on the htmltext and you're good to go! no one can stop a good hack! Andre On Wed, Jun 10, 2009 at 2:49 PM, Richmond Mathewson < richmondmathew...@gmail.com> wrote: 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? 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 10:15 AM, kl...@major.on-rev.com < 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/databases? Not to mention of ERUO signs in label fields, when you do not want to loop over all fields and place the appropriate signs on "pre-/openstack". Any hints heavily appreciated, inm the meantime we use "EUR" ;-) Best Klaus -- Klaus Major http://www.major.on-rev.com kl...@major.on-rev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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 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)) 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! references: http://unicode.org/reports/tr8/#Euro%20Sign font used: FreeMono.ttf 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 it to the current font size, you'll not loose quality and can cope with any font size! resize can happen offscreen and thus be extremely fast for a single icon, just create a copy of the original image offscreen and resize it, use its ID on the htmltext and you're good to go! no one can stop a good hack! Andre On Wed, Jun 10, 2009 at 2:49 PM, Richmond Mathewson < richmondmathew...@gmail.com> wrote: 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? 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 10:15 AM, kl...@major.on-rev.com < 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/databases? Not to mention of ERUO signs in label fields, when you do not want to loop over all fields and place the appropriate signs on "pre-/openstack". Any hints heavily appreciated, inm the meantime we use "EUR" ;-) Best Klaus -- Klaus Major http://www.major.on-rev.com kl...@major.on-rev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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 'flip' from the boring, vanilla, pocket calculator simulcrum into something altogether a lot more sexy: Command-3 gives you a 'scientific calculator' (never could quite understand what the 'sciemtific' meant in that context); and, Yippee-Doo, a way to go back and forth between Decimal and Hex numbers (and Octal and Binary, if you are having a really heavy day), and, wonder-of-wonders, it will, magically reveal which unicode character that Hex number is linked to. And, while I'm on a roll, I am currently 'pushing' my tinies, in my school, through some relatively punishing exams; and having lots of sadistic fun by making them work out their own percentage results with a slide-rule. Depressingly enough, they all enjoy using slide-rules and have started asking me where they can buy them. . . . . I suppose it could be quite fun to run up a Revolution stack to convert between Hex and Decimal. Andre Garzia wrote: 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)) 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! references: http://unicode.org/reports/tr8/#Euro%20Sign font used: FreeMono.ttf 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 it to the current font size, you'll not loose quality and can cope with any font size! resize can happen offscreen and thus be extremely fast for a single icon, just create a copy of the original image offscreen and resize it, use its ID on the htmltext and you're good to go! no one can stop a good hack! Andre On Wed, Jun 10, 2009 at 2:49 PM, Richmond Mathewson < richmondmathew...@gmail.com> wrote: 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? 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 10:15 AM, kl...@major.on-rev.com < 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/databases? Not to mention of ERUO signs in label fields, when you do not want to loop over all fields and place the appropriate signs on "pre-/openstack". Any hints heavily appreciated, inm the meantime we use "EUR" ;-) Best Klaus -- Klaus Major http://www.major.on-rev.com kl...@major.on-rev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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)) > > 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! > > references: http://unicode.org/reports/tr8/#Euro%20Sign > > font used: FreeMono.ttf > > > 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 it to the current font size, you'll >> not loose quality and can cope with any font size! >> >> resize can happen offscreen and thus be extremely fast for a single icon, >> just create a copy of the original image offscreen and resize it, use its >> ID >> on the htmltext and you're good to go! >> >> no one can stop a good hack! >> >> Andre >> >> On Wed, Jun 10, 2009 at 2:49 PM, Richmond Mathewson < >> richmondmathew...@gmail.com> wrote: >> >> >> >>> 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? 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 10:15 AM, kl...@major.on-rev.com < 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/databases? > > Not to mention of ERUO signs in label fields, when you do not > want to loop over all fields and place the appropriate signs > on "pre-/openstack". > > Any hints heavily appreciated, inm the meantime we use "EUR" ;-) > > > Best > > Klaus > -- > Klaus Major > http://www.major.on-rev.com > kl...@major.on-rev.com > > > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > > > >>> ___ >>> use-revolution mailing list >>> use-revolution@lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-revolution >>> >>> >>> >> >> >> >> >> > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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 Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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 generated by the previous script on Ubuntu 8.04 Brilliant, Richmond! I wish I had thought of that. Works here on Win XP also. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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/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 do not want to loop over all fields and place the appropriate signs on "pre-/openstack". Any hints heavily appreciated, inm the meantime we use "EUR" ;-) Hi Klaus, ... set the unicodeText of fld "euro" to \ uniencode((numToChar(226) & numToChar(130) & numToChar(172)),"utf8") That ought to work for you. Thanks a lot, will try this! Regards, Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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! references: http://unicode.org/reports/tr8/#Euro%20Sign font used: FreeMono.ttf 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 it to the current font size, you'll not loose quality and can cope with any font size! resize can happen offscreen and thus be extremely fast for a single icon, just create a copy of the original image offscreen and resize it, use its ID on the htmltext and you're good to go! no one can stop a good hack! Andre On Wed, Jun 10, 2009 at 2:49 PM, Richmond Mathewson < richmondmathew...@gmail.com> wrote: 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? 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 10:15 AM, kl...@major.on-rev.com < 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/databases? Not to mention of ERUO signs in label fields, when you do not want to loop over all fields and place the appropriate signs on "pre-/openstack". Any hints heavily appreciated, inm the meantime we use "EUR" ;-) Best Klaus -- Klaus Major http://www.major.on-rev.com kl...@major.on-rev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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 it to the current font size, you'll not loose quality and can cope with any font size! resize can happen offscreen and thus be extremely fast for a single icon, just create a copy of the original image offscreen and resize it, use its ID on the htmltext and you're good to go! no one can stop a good hack! it is not the good hacks that I am worried about! :) it is the hackers who have to remember every fiddly little bit they have to build into a good hack. Andre On Wed, Jun 10, 2009 at 2:49 PM, Richmond Mathewson < richmondmathew...@gmail.com> wrote: 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? 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 10:15 AM, kl...@major.on-rev.com < 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/databases? Not to mention of ERUO signs in label fields, when you do not want to loop over all fields and place the appropriate signs on "pre-/openstack". Any hints heavily appreciated, inm the meantime we use "EUR" ;-) Best Klaus -- Klaus Major http://www.major.on-rev.com kl...@major.on-rev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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 size, you'll not loose quality and can cope with any font size! resize can happen offscreen and thus be extremely fast for a single icon, just create a copy of the original image offscreen and resize it, use its ID on the htmltext and you're good to go! no one can stop a good hack! Andre On Wed, Jun 10, 2009 at 2:49 PM, Richmond Mathewson < richmondmathew...@gmail.com> wrote: > 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? 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 10:15 AM, kl...@major.on-rev.com < >> 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/databases? >>> >>> Not to mention of ERUO signs in label fields, when you do not >>> want to loop over all fields and place the appropriate signs >>> on "pre-/openstack". >>> >>> Any hints heavily appreciated, inm the meantime we use "EUR" ;-) >>> >>> >>> Best >>> >>> Klaus >>> -- >>> Klaus Major >>> http://www.major.on-rev.com >>> kl...@major.on-rev.com >>> >>> >>> >>> ___ >>> use-revolution mailing list >>> use-revolution@lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-revolution >>> >>> >>> >> >> >> >> >> > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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? 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 10:15 AM, kl...@major.on-rev.com < 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/databases? Not to mention of ERUO signs in label fields, when you do not want to loop over all fields and place the appropriate signs on "pre-/openstack". Any hints heavily appreciated, inm the meantime we use "EUR" ;-) Best Klaus -- Klaus Major http://www.major.on-rev.com kl...@major.on-rev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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 10:15 AM, kl...@major.on-rev.com < 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/databases? > > Not to mention of ERUO signs in label fields, when you do not > want to loop over all fields and place the appropriate signs > on "pre-/openstack". > > Any hints heavily appreciated, inm the meantime we use "EUR" ;-) > > > Best > > Klaus > -- > Klaus Major > http://www.major.on-rev.com > kl...@major.on-rev.com > > > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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 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 unicode text? Something like: set the textfont of fld "euro" to "font-name-here,unicode" set the unicodeText of fld "euro" to \ uniencode((numToChar(226) & numToChar(130) & numToChar(172)),"utf8") At any rate, if the OS doesn't find a font with the symbol in it, it won't be able to render it. Devin Devin Asay wrote: The only reliable way I can see is UTF-8. On my Mac the UTF-8 ASCII equivalent string is €. But that's different on Windows, so I looked at the ASCII code points for the three characters. They are 226 130 172. So I tried the following and it reliably rendered the Euro sign on both Mac and Windows (no Linux here for me to try, but it should work there, too.) set the unicodeText of fld "euro" to \ uniencode((numToChar(226) & numToChar(130) & numToChar(172)),"utf8") That ought to work for you. Regards, Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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/stacks/databases? Not to mention of ERUO signs in label fields, when you do not want to loop over all fields and place the appropriate signs on "pre-/openstack". Any hints heavily appreciated, inm the meantime we use "EUR" ;-) Hi Klaus, ... set the unicodeText of fld "euro" to \ uniencode((numToChar(226) & numToChar(130) & numToChar(172)),"utf8") That ought to work for you. Thanks a lot, will try this! Regards, Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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 unicode text? Something like: set the textfont of fld "euro" to "font-name-here,unicode" set the unicodeText of fld "euro" to \ uniencode((numToChar(226) & numToChar(130) & numToChar(172)),"utf8") At any rate, if the OS doesn't find a font with the symbol in it, it won't be able to render it. Devin Devin Asay wrote: The only reliable way I can see is UTF-8. On my Mac the UTF-8 ASCII equivalent string is €. But that's different on Windows, so I looked at the ASCII code points for the three characters. They are 226 130 172. So I tried the following and it reliably rendered the Euro sign on both Mac and Windows (no Linux here for me to try, but it should work there, too.) set the unicodeText of fld "euro" to \ uniencode((numToChar(226) & numToChar(130) & numToChar(172)),"utf8") That ought to work for you. Regards, Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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 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 do not want to loop over all fields and place the appropriate signs on "pre-/openstack". Any hints heavily appreciated, inm the meantime we use "EUR" ;-) Hi Klaus, HTMLtext is no good, because the ¤ entity, while Rev correctly renders it as a Euro sign on the Mac, on Windows it produces a generic currency sign. That leaves us with unicode. The code point for the Euro sign is hex 0x20AC, which is decimal 8364. Usually you get reliable results by using unicode escape entities in htmlText, but again htmlText fails us, because this doesn't work: set the htmlText of fld 1 to "€" The only reliable way I can see is UTF-8. On my Mac the UTF-8 ASCII equivalent string is ‚Ǩ. But that's different on Windows, so I looked at the ASCII code points for the three characters. They are 226 130 172. So I tried the following and it reliably rendered the Euro sign on both Mac and Windows (no Linux here for me to try, but it should work there, too.) set the unicodeText of fld "euro" to \ uniencode((numToChar(226) & numToChar(130) & numToChar(172)),"utf8") That ought to work for you. Regards, Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Crossplatform EURO sign?
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/databases? Not to mention of ERUO signs in label fields, when you do not want to loop over all fields and place the appropriate signs on "pre-/openstack". Any hints heavily appreciated, inm the meantime we use "EUR" ;-) Hi Klaus, HTMLtext is no good, because the ¤ entity, while Rev correctly renders it as a Euro sign on the Mac, on Windows it produces a generic currency sign. That leaves us with unicode. The code point for the Euro sign is hex 0x20AC, which is decimal 8364. Usually you get reliable results by using unicode escape entities in htmlText, but again htmlText fails us, because this doesn't work: set the htmlText of fld 1 to "€" The only reliable way I can see is UTF-8. On my Mac the UTF-8 ASCII equivalent string is ‚Ǩ. But that's different on Windows, so I looked at the ASCII code points for the three characters. They are 226 130 172. So I tried the following and it reliably rendered the Euro sign on both Mac and Windows (no Linux here for me to try, but it should work there, too.) set the unicodeText of fld "euro" to \ uniencode((numToChar(226) & numToChar(130) & numToChar(172)),"utf8") That ought to work for you. Regards, Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Crossplatform EURO sign?
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 do not want to loop over all fields and place the appropriate signs on "pre-/openstack". Any hints heavily appreciated, inm the meantime we use "EUR" ;-) Best Klaus -- Klaus Major http://www.major.on-rev.com kl...@major.on-rev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution