|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/mandarintools/ |
Upload File : |
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Word97/2000 Chinese Pinyin/Bopomofo Annotation Macro</TITLE>
</HEAD>
<BODY>
<H1>Word97/2000 Chinese Pinyin/Bopomofo Annotation Macro</H1>
This macro allows users of Microsoft Word 97/2000 to put the pinyin
pronunciation for a character underneath the character OR to put the
bopomofo for the character to right of the character. The user must
supply the pinyin, the macro merely formats the pinyin to annotate the
character. Users with Word 2000 might want to use the new Asian
formatting features in that version (see "Format", then "Asian
Layout", and "Phonetic Guide" from the main menu of Word 2000). A
similar effect can be achieved in HTML using the RUBY tag.
<H2>Installation</H2>
First close Word if you are running it, then download and run this <A
HREF="http://www.mandarintools.com/download/PinyinAnnotationSetup.exe">macro
install program</A>. It will place the macro in the appropriate directory.
Then follow the directions at "Using the Macro" below.
<h3>Word XP</h3>
To use the macro on Word XP, you will need to change the security level for macro virus protection
<OL>
<LI> On the Tools menu, click Options.
<LI> Click the Security tab.
<LI> Under Macro Security, click Macro Security.
<LI> Click the Security Level tab, and then select the "Medium" security level.
<LI> Exit Word.
<LI> Install the Pinyin Annotation Macro.
</OL>
Now when you restart Word it will ask you if you want to enable macros in BoPoMoFo.dot. Click yes and you will be able to use the macro as usual. You will not need to do these steps again.
<!--
Before you start installation, please exit Word 97 if you are running it.
<P>
To use this macro, first download this self-extracting compressed
file called <A
HREF="http://www.mandarintools.com/download/pyzh.exe">pyzh.exe</A>.
You can probably do this just by clicking on the preceding link and
then choosing to save the file. Or, on Netscape, you can click on the
right mouse button over the link and then select "Save Link As".
Either way, once the file dialog appears, save pyzh.exe in this
directory: <NOBR>"C:\Program Files\Microsoft
Office\Office\STARTUP"</NOBR>. Depending on your computer, it may be
the D: or other drive. This seems to be a standard location, but if
your system does not have it, you can use the "Find" option off the
Start button and look for "Startup". If you are familiar with the
Windows Registry, you can look up the appropriate directory using the
key:
"HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Word\Options\STARTUP".
<P>
After saving the file, select "Run" from the Windows95 "Start"
button. Use "Browse" to go to the directory mentioned above and
select "pyzh.exe". After running it, there should be a new file
called "BoPoMoFo.dot" in the startup directory. You can delete
pyzh.exe now to save disk space.
-->
<P>
To use this macro (for the Chinese characters and the bopomfo),
you must have at least one Chinese Unicode font installed on your
machine. These easiest place to get these fonts is on the Word97 (or
Office97) installation CD where they are stored in "\valupack\fareast"
directory and are called Chssupp.exe (simplified) and Chtsupp.exe
(traditional). You can also download Chinese Unicode fonts off the
Internet. A useful <A
HREF="http://www.microsoft.com/msdownload/iebuild/ime5_win32/en/ime5_win32.htm">
Simplified Chinese font</A> can be downloaded from Microsoft. It says
it is for Internet Explorer, but it can also be used Word97 and other
Office97 applications. Follow Microsoft's instructions for
installation. To use the Traditional Chinese input method, download
and install <A
HREF="http://www.microsoft.com/msdownload/iebuild/ime5_win32/en/ime5_win32.htm">
Microsoft's Traditional Chinese Language Pack</A> from the same
location. You can also download free simplified and traditional
Chinese character Unicode fonts from <A
HREF="http://www.twinbridge.com/html/AsianTTF/cttfont.html">
TwinBridge </A> and <A HREF="http://www.unionway.com/download2.htm">
UnionWay </A>. (Note: Someone has written me saying that the
TwinBridge fonts will only work if you already have other TwinBridge
software installed on your computer.) Or, instead of downloading two
separate fonts, you can also just download the one "Bitstream
Cyberbit" font from <A
HREF="ftp://ftp.netscape.com/pub/communicator/extras/fonts/windows/Cyberbit.ZIP">
Bitstream</A>. I recommend using the Bitstream Cyberbit font.
<P>
With the macro and the fonts installed, the annotation formatter
should be ready to go.
<HR>
<H2>Using the Macro</H2>
After installation, you can now start Word. To use the macro, type
or copy in the Chinese characters to annotate. Next, to the immediate
right of each character type in the character's pinyin pronunciation,
with the tone indicated by a tone number at the end of the pinyin. To
add a u with umlaut (ü), type a "u" followed by a colon (:). So
the pinyin for woman would be nu:3 . If you going to convert into
zhuyin (bopomofo), use "v" instead of "u:". Don't put a space between
the character and its following pinyin. A useful program for this is
<A HREF="http://www.mandarintools.com/annotate.html">Chinese
Annotator</A> web page. To make the resulting annotations legible, I
recommend using at least a 14 point size for the characters or even 16
point. Once the conversion has taken place, it is not not easy to
change the size of the characters again. I've found that the
"MingLiU" or "MS Song" fonts works best for the bopomofo while the
"Lucida Sans Unicode" or "Bitstream Cyberbit" fonts work best for the
pinyin.
<P>
Once you have characters with pinyin, you can put the pinyin
underneath the character, resized to fit properly and with the tone
number converted to a tone mark over the appropriate vowel or you
can choose to convert the pinyin to bopmofo and have that bopomofo
appear vertically next to the character.
<P>
Before starting the macro, either place the cursor before all the
pinyin you want to convert, or highlight just the characters and
pinyin that you want to process. Next, press Alt-F8 (or
Tools->Macro->Macros from the Menu) to run a macro. For pinyin
annotation select the "Move_PY_to_Underneath" macro and then "Run".
The macro itself might take a minute or two to finish and you won't be
able to type in Word while it is running. Or for bopomofo, select the
"Convert_PY_to_ZY" macro.
<P>
When printing documents using this macro, I've found sometimes that
the printer properties need to be set to "Print True Type fonts as
graphics", but not all printers have this option. This can be done
by:
<OL>
<LI>Selecting to print from File->Print on the menu.
<LI>Selecting "Properties" on the dialog that appears (should be in
upper right corner).
<LI>In the new window that appears, select the "Font" screen.
<LI>Select "Print True Type fonts as Graphics"
</OL>
This is a problem with some printer driver's lack of support for
printing Unicode. Microsoft knows about this problem and has
a page <A HREF="http://support.microsoft.com/support/kb/articles/q159/4/18.asp">
with a more detailed description and some other solutions</A>.
Alert Macro user Ginger Canlas has also suggested going to the homepage of
your printer manufacturer to see if it has an updated version of your printer driver.
<P>
If none of the above solutions works, then I'm afraid I don't know
how else to solve the problem. For example, Microsoft Fax doesn't
have this option so it won't send the Chinese.
<P>
<P>
<H2>Comments and Suggestions</H2>
This pinyin/bopomofo macro is still under development. I welcome bug
reports and feature suggestions. You can reach me at <A
HREF="http://www.mandarintools.com/contact.html">my contact page</A>.
<P>
Enjoy!
<P>
In case you came to this page directly, you may also want to
check out my collection of <A HREF="http://www.mandarintools.com/">on-line Chinese tools</A>.
</BODY>
</HTML>