Crossplatform EURO sign?

Richmond Mathewson richmondmathewson at gmail.com
Thu Jun 11 13:47:39 EDT 2009


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 <
> richmondmathewson at 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 <
>>> richmondmathewson at 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 <img src="<id of image>" /> 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, klaus at major.on-rev.com <
>>>>> klaus at 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
>>>>>> klaus at major.on-rev.com
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> use-revolution mailing list
>>>>>> use-revolution at 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 at 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 at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>     
>
>
>
>   




More information about the use-livecode mailing list