VBA-How to distingush between Japanese and English fonts

E

Edward

Hi,
Can VBA distinguish between English and Japanese or Chinese letters in a
mixed PP?
 
C

Cindy M.

Hi Edward,
Can VBA distinguish between English and Japanese or Chinese letters in a
mixed PP?

What's a "PP"?

I think this will depend on whether this is a single font, and the
characters are being provided by different Unicode character values, or
whether it's due to a change in font.

In both cases, you should be able to distinguish, but the way to go about
doing so would differ.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
K

Klaus Linke

Edward said:
Can VBA distinguish between English and Japanese or
Chinese letters in a mixed PP?


Cindy M. said:
I think this will depend on whether this is a single font, and the
characters are being provided by different Unicode character
values, or whether it's due to a change in font.

It seems very, very likely that the text is Unicode, so you could check
whether the (majority of the) characters of the paragraph are in the
Latin,Hiragana, Katagana, CJK ... code pages (using AscW).

Even simpler, if the language property is already properly applied you can
check Selection.LanguageID ...

Regards,
Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top