Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista Tutorial - Alpha-Sign

Reply
 
Old 07-02-2009   #1 (permalink)
Luzia Baumgartner
Guest


 
 

Alpha-Sign

Hello there

I have a problem with special characters. I need to print the alpha and beta sign within a text. Is there a possibility to do this?
It doesn't work with chr() or chrw().

Thanks for help in advance!

Regards,

Luzia


My System SpecsSystem Spec
Old 07-02-2009   #2 (permalink)
Paul Randall
Guest


 
 

Re: Alpha-Sign


"Luzia Baumgartner" <nospam@xxxxxx> wrote in message
news:%234O$stw%23JHA.5068@xxxxxx
Quote:

> Hello there
>
> I have a problem with special characters. I need to print the alpha and
> beta sign within a text. Is there a possibility to do this? It doesn't
> work with chr() or chrw().
>
> Thanks for help in advance!
>
> Regards,
>
> Luzia
To display any particular character, you need at least two thing: a font
that has a character that is what you want, and the code point (number you
would put in Chr() or ChrW() ) to display that character.

You should have mentioned what values you put in your chr() or chrw() rather
than saying only "It doesn't work with chr() or chrw()." The characters
displayed by Chr()/ChrW() with values less than 256 are dependent on your
computer's Locale; what works in one locale might display something entirely
different in another locale. There is info about Locale and changing it for
the duration of your script, in the scripting help file, script56.chm, which
is probably installed on your computer.

You also didn't mention how you are trying to display the character, like in
a message box or in an IE window. I can't remember the procedure to change
the font for message boxes, but default installations of WXP uses a font
with a fairy wide range of Unicode characters. Knowing your OS would also
help with giving you a useful response.

There is a tool built into Windows for displaying all the characters
available in the various installed fonts. I can't remember the name of this
program, but perhaps your computer's help & support can give you that info.

You probably need a Unicode code point; see www.unicode.org for all things
Unicode. If you haven't been there before, be sure to look at the topics
displayed when your cursor hovers over 'New to Unicode' and 'General
Information' in the upper left corner.

-Paul Randall


My System SpecsSystem Spec
Old 07-02-2009   #3 (permalink)
mr_unreliable
Guest


 
 

Re: Alpha-Sign

Luzia Baumgartner wrote:
Quote:

> I have a problem with special characters. I need to print the alpha and
> beta sign within a text. Is there a possibility to do this? It doesn't
> work with chr() or chrw().
>
Hi Luzia,

You can explore the fonts on your machine using the "Character Map"
utility. (On my system, start menu => Programs => Accessories =>
System Tools => Character Map.

Again, on my system, the truetype font called "Symbol" has an
alpha and beta character, which is produced from the ascii
characters a and b (you get upper case alpha and beta for
upper case A and B, and correspondingly lower case alpha
and beta for lower case a and b).

If you search around, you may find other fonts with alpha and
beta. Greek fonts, for example. Or math fonts (as mathematicians
love to use Greek characters).

This is begging a perhaps more critical question -- how are
you going to change the font. And for that, you need some
utility which allows you to select a font. Most editors
allow for this: notepad on the low end, and msWD on the
high end.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
the answers will be applicable to the questions)
My System SpecsSystem Spec
Old 07-02-2009   #4 (permalink)
mr_unreliable
Guest


 
 

looking for alpha/beta? -- beware the "scharfe-ess"

fwiw, if you go looking through fonts for the alpha and beta
characters, you will come across something that "looks like"
a beta character, but with no adjacent alpha. What is that?

It so happens that is the character for the German "Scharfe-ess".
Note that it appears amongst the accented characters not normally
used in (American) English. The "Scharfe-ess" is used in German
(sometimes) in place of a double-s. For example, Fuss (foot)
becomes "Fuß", or Wasser (water) becomes Waßer. (Those characters
look correct on my screen, but not sure they will come through the
ng posting properly). If not, the character I am referring to
is (ansi?) 223.

I am told by German-speakers that the "Scharfe-ess" sounds
(slightly?) different from a double-s, when spoken. But I can't
hear the difference. But that's getting off the subject.

cheers, jw
My System SpecsSystem Spec
Old 07-03-2009   #5 (permalink)
ekkehard.horner
Guest


 
 

Re: looking for alpha/beta? -- beware the "scharfe-ess"

[OFF TOPIC]
mr_unreliable schrieb:
[...]
Quote:

> The "Scharfe-ess" is used in German
> (sometimes) in place of a double-s. For example, Fuss (foot)
> becomes "Fuß", or Wasser (water) becomes Waßer.
Wasser is/stays "Wasser" (rule of thumb: after short vowel: ss)
[...]
Quote:

> If not, the character I am referring to
> is (ansi?) 223.
see:
http://czyborra.com/charsets/codepages.html
Quote:

> I am told by German-speakers that the "Scharfe-ess" sounds
> (slightly?) different from a double-s, when spoken. But I can't
> hear the difference.
Discard the first and rely on the second sentence.
Quote:

> But that's getting off the subject.
I agree.
Quote:

> cheers, jw

My System SpecsSystem Spec
Old 07-06-2009   #6 (permalink)
Luzia Baumgartner
Guest


 
 

Re: Alpha-Sign

Hi Paul

Sorry for not being more accurate in describing my problem.

We found out the reason why it doesn't work: the version of the tool we are using with this VBScript is too old to handle Unicode...

Regards

Luzia


"Paul Randall" <paulr901@xxxxxx> schrieb im Newsbeitrag news:e$Mkw4x%23JHA.4376@xxxxxx
Quote:

>
> "Luzia Baumgartner" <nospam@xxxxxx> wrote in message news:%234O$stw%23JHA.5068@xxxxxx
Quote:

>> Hello there
>>
>> I have a problem with special characters. I need to print the alpha and beta sign within a text. Is there a possibility to do
>> this? It doesn't work with chr() or chrw().
>>
>> Thanks for help in advance!
>>
>> Regards,
>>
>> Luzia
>
> To display any particular character, you need at least two thing: a font that has a character that is what you want, and the code
> point (number you would put in Chr() or ChrW() ) to display that character.
>
> You should have mentioned what values you put in your chr() or chrw() rather than saying only "It doesn't work with chr() or
> chrw()." The characters displayed by Chr()/ChrW() with values less than 256 are dependent on your computer's Locale; what works
> in one locale might display something entirely different in another locale. There is info about Locale and changing it for the
> duration of your script, in the scripting help file, script56.chm, which is probably installed on your computer.
>
> You also didn't mention how you are trying to display the character, like in a message box or in an IE window. I can't remember
> the procedure to change the font for message boxes, but default installations of WXP uses a font with a fairy wide range of
> Unicode characters. Knowing your OS would also help with giving you a useful response.
>
> There is a tool built into Windows for displaying all the characters available in the various installed fonts. I can't remember
> the name of this program, but perhaps your computer's help & support can give you that info.
>
> You probably need a Unicode code point; see www.unicode.org for all things Unicode. If you haven't been there before, be sure to
> look at the topics displayed when your cursor hovers over 'New to Unicode' and 'General Information' in the upper left corner.
>
> -Paul Randall
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Alpha Five Printer Vista hardware & devices


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46