Jump to content
Chinese-Forums
  • Sign Up

Pinyinput - Type Pinyin with Tone Marks


imron

Recommended Posts

I've just uploaded a new version of pinyinput (see the original post). This version should fix the bug with checked input.

The installer has also been updated to provide more accurate error messages. A big thanks goes out to Anatoli for his help with the testing and debugging of the installer.

If you install this new version and you already have pinyinput installed, you might get a message that says "Error copying pinyinput.ime Pinyinput.ime is currently in use."

This means that a program you are running still has the pinyinput IME loaded, and so windows won't allow the new version to be copied over it. To solve this problem you will need to close any programs that have used Pinyinput (or just reboot your machine).

Also, there is another new addition. You can type ctrl-. to toggle checked/unchecked mode without needing to go to the config dialog.

Link to comment
Share on other sites

I was using is without the correction system on for a while so that's most likely why the tones were going on the last letter typed. It'll save a lot of time being done automatically.

The Wikipedia article isn't loading properly but from what I remember if you have a word like dui you'd first look for the A, and if there isn't an a, then move on to e, and if there isn't an e move on to i, and now that there is an i you use that one.

According to the rules I read dui would still have the mark above the i because the vowel sequence.

Maybe they just dumbbed it down for explination sake, I honestly haven't paid much attention to tone placement.

P.S. Thanks for the update.

Link to comment
Share on other sites

From the article

The rules for determining on which vowel the tone mark appears are as follows:

1. If there is more than one vowel and the first vowel is i, u, or ü, then the tone mark appears on the second vowel.

2. In all other cases, the tone mark appears on the first vowel

(y and w are not considered vowels for these rules.)

There is also another algorithm

1. First, look for an "a" or an "e". If either vowel appears, it takes the tone mark. There are no possible pinyin syllables that contain both an "a" and an "e".

2. If there is no "a" or "e", look for an "ou". If "ou" appears, then the "o" takes the tone mark.

3. If none of the above cases hold, then the last vowel in the syllable takes the tone mark.

Pinyinput uses the first algorithm, because it's simpler.

So, in dui, the i takes the tone, but in diu the u takes the tone. And yeah, I can't say I paid much attention to tone placement before I started writing Pinyinput either :mrgreen:

Link to comment
Share on other sites

The IME is called Pinyinput, and the icon is a purple/blue circle with the tone marks rearranged to look like a face. It should be available from the language bar in the same place you access any other Chinese language input methods.

See this post for a better description of how to activate it.

Link to comment
Share on other sites

Hi,

I am using win XP English. I've been able to get PINYINPUT installed and working. There are a couple of odd things, though.

1. There is a capsule-like blue or purple floating palette which has options for pinyinput. No problems.

2. I can change my languages from English to Chinese PRC and to Japanese. But the Language bar when using Chinese PRC does not expand the way it does with Japanese to include input method, etc.

Can you help me to know how to able to disable Pinyinput?

Also, how can I just type and get traditional and simplified chinese characters? In Japanese when I type in english characters the word changes to hiragana and from there I can press the space bar and get the appropriate kanji (chinese character).

How do I type pinyin and have that converted to chinese characters?

Also, I don't see options for input method, etc. in Chinese PRC such as the many options that are available under Japanese.

Any help with getting this working would be much appreciated.

Jane

Link to comment
Share on other sites

I am not Imron but this thread is not about the usual Chinese IME's but the component he developped, which allows you input pinyin symbols with tone marks.

The default Chinese IME (for PRC), which ships with Windows is limited and has much less functionality than the Japanese IME. You can install the default Chinese IME (for Taiwan), which has the traditional characters and a soft keyboard and an IME pad.

Even better, download Microsoft Chinese IME 2003 - it has both versions and more functionality.

Link to comment
Share on other sites

Jane, pinyinput was designed solely for the purpose of entering pīnyīn with tone marks. It cannot output Chinese characters. To type chinese characters using pinyin, you will need to install another input method like the ones atitarev mentioned. The blue floating capsule is the options menu for pinyinput. Every input method will have it's own one of these, and some of them don't have them at all. It is only displayed when pinyinput is active, and will disappear when another input method is in use.

There are several ways to disable pinyinput. The easiest way is just to select another input method from the language bar, or use one of the standard shortcut keys - ctrl-space toggles between Chinese/English, alt-shift changes language, and ctrl-shift changes input methods for the current language.

If the language bar isn't expanding when you select Chinese, then right-click on the language bar and there should be an option like "adjust language bar position" or something (I don't know the exact wording in English as I'm not running English XP). Selecting this option will cause the language bar to be correctly expanded.

If you'd rather not have pinyinput on the language bar at all, you can remove it by right-clicking on the language bar, selecting "properties" and then removing pinyinput from the list of available options. If you wish to remove it permanently from your computer, you can go to control-panel->add/remove programs, and from here you can choose to uninstall Pinyinput.

Link to comment
Share on other sites

  • 1 month later...

Thanks for this great IME. However, I have a problem... when using pinyinput with Word (or any other program afaik) the letters with tones are inserted using the SimSun font. Given that I usually type using Times New Roman, I end up with loads of odd little Simsun formatted characters, meaning I have to select all / change to another font. Not insurmountable but a bit of a pain!

From memory, I think something similar happened when I used to use NJStar, so perhaps it is unavoidable. I don't really know much about IMEs, unicode, character sets, etc, so any pointers would be appreciated.

Link to comment
Share on other sites

I noticed this problem during development, and tried to sort it out, but unfortunately it's a bit tricky.

When you write an IME, you have to register which language the IME is used for. This is used by the system to display the input method under the appropriate language in the languages dialog box.

Unfortunately some programs use this information to set the font used when typing.

So, the options were to either 1) Not have the IME listed under input methods for Chinese, 2) have some programs switch to a Chinese font when typing.

This problem is more pronounced in some programs than in others. For example, Word 2003 seems to only put the non-ascii characters (i.e. those with tones) in a different font, whereas Wordpad sets the font of all characters to the default Chinese font.

In the end, I decided that I'd prefer to have the IME listed under Chinese as that's where it rightly belongs. I'll have a further play around with things and see if I can find a way to solve both problems.

Link to comment
Share on other sites

Thanks for getting back to me about it. I had come to the conclusion that it must be to do with that... in fact within Word 2003 under Format / Font, there is the option to set the default "Latin text font" and the "Asian text font". If only it allowed me to select a Latin unicode font for the Asian font then I'd be fine, alas it only gives Simsun, MingLiU, etc. It is really frustrating in Word, as it alters only the characters with tone marks as you observed! When I highlight the text the "Style" property lists it as "Normal - Latin (Times New Roman) Asian (Simsun)."

Is there anyway you could produce a modified version of the IME that did not list it as Asian? Or could I edit it by downloading the IME compiler from Microsoft? I take your point that it should logically be listed under "Chinese PRC", but given that I will only ever use it to produce latin characters with tone marks, I would be happy to have it listed as a Latin IME.

Link to comment
Share on other sites

I use OpenOffice to create wordtables in Chinese - for that I use eCode - and the new times roman font with unifont codes for the Pinyin and further the Dutch translation.

I have tried pinyininput - not in combination with eCode ! - to enter pinyin. After entering ma3 I get by hitting the enterknob: mǎ - so that works fine. However a following space give me not 1 space but 57 spaces. How will help me to resolve this problem ?

On the other hand at the moment I have created 2 macro workbars in OpenOffice Writer to enter the special pinyin characters. They contain each the 24 special pinyin characters in the forms: ā, á, ǎ, à, etc. and a1,a2, a3, a4, etc. They macros are created with the help of the free unicode input program: Quick Unicode Input.

Is there anyone with experience with pinyininput and OpenOffice Writer ?

Link to comment
Share on other sites

toneproblems> Don't worry I haven't forgotten you. I'm still playing around trying to find a way to solve both problems at the same time, if I can't sort it out soon, I can make a special version.

Guusj> I've just installed OpenOffice, and I see what you mean. Typing numbers by themselves also seems to present a problem. I'll have a look into it, and post here when it's fixed.

Link to comment
Share on other sites

Guusj>Pinyinput should now work correctly with OpenOffice. Check out the original post to download an updated version.

toneproblems> Send me an email, and I'll create a non-Chinese version for you (my email address is listed in the pinyinput "About" dialog).

Link to comment
Share on other sites

RE: Guusj>Pinyinput should now work correctly with OpenOffice. Check out the original post to download an updated version.

toneproblems> Send me an email, and I'll create a non-Chinese version for you (my email address is listed in the pinyinput "About" dialog).

This new version of Pinyininput works excellent in Openoffice. Now i am able to type pinyin and the Dutch transalation simultaneously. So i do not think that a non Chinese version of Pinyininput is needed. Thank you very much for the great work you have done.

Greetings Guus Jansen.

At the moment i am not able to send you an e-mail, so i reply with this message.

Link to comment
Share on other sites

  • 1 month later...

You have to use a different input method, like the MS Pinyin that comes with windows. Pinyinput is only for typing pinyin with tone marks. It fills a small niche for Chinese Input Methods, and isn't intended to be a full-blown input method for typing Chinese.

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

Great program! Thank you!

But is it also possible to put it into the Tradidional Chinese (Taiwan) language bar? So far, it only appears when I use Chinese (PRC). Since I usually type traditional characters, I always have to swich to PRC to activate Pinyininput.

Thanks!

Tiantian

Link to comment
Share on other sites

Join the conversation

You can post now and select your username and password later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Click here to reply. Select text to quote.

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...