Jump to content


Welcome to Chinese-forums.com


Since 2003 we've been helping people learn Chinese, study and work in China, find Chinese books, movies or music. We are active, friendly and helpful. Check out recent and popular posts on the home page, see the full forums listing or sign up for free now.

Member quotes:

"This forum is a goldmine of information, and I'm so glad it's here!"
"...the kindest, most interesting and most useful help."
"...a godsend!"

Photo
- - - - -

MacPinyin -- Pinyinput for Mac


  • Please log in to reply
35 replies to this topic

#1 peekay

peekay
  • Members
  • 185 posts

Posted 29 April 2009 - 09:18 AM

Mac users are missing Imron's excellent Pinyinput. While pīnyīn tone marks can be typed-in using U.S. Extended keyboard shortcuts, I thought having a proper pīnyīn input method would be a nice addition.

And so we have MacPinyin, version 1.00. :D For now please download it from here since the forum doesn't seem to accept .dmg files as attachments.

Due to limitations with OS X input method framework, MacPinyin isn't as flexible as Pinyinput, but still very easy to use. Hopefully you'll find it useful.

I just got inspired to write MacPinyin last night, and it probably has bugs, so any feedback greatly appreciated. MacPinyin is 100% free, under BSD-like licensing.

From the ReadMe file:

MacPinyin makes it easy to type pīnyīn with tone marks.

MacPinyin is an input method, and after installation it can be activated from System Preferences -> International -> Input Menu.

Once activated, simply type valid pīnyīn syllables, followed by a tone number, such as wo3 or ai4. Separate syllables with the key.

Notes and limitations:

- MacPinyin always outputs lowercase characters.
- Use v for ü. E.g., nv3 for nǚ.
- Neutral tone may be denoted as tone 5 (or simply left out.)
- Use instead of after punctuations or non-pinyin words
- Invalid pīnyīn gets discarded

There is no special support for apostrophes or érhuà, but they can be easily typed in.

Examples:

- hǎo (hao3)
- péngyou (peng2you- hello (hello)
- xī'ān (xi1'an1)
- nàr (na4r)

System Requirements:

- MacPinyin requires OS X 10.5 (Leopard) or later.


  • 0

Site Sponsors

Pleco for iPhone / Android iPhone & Android Chinese dictionary: camera & hand- writing input, flashcards, audio.
Study Chinese in Kunming 1-1 classes, qualified teachers and unique teaching methods in the Spring City.
Learn Mandarin in Beijing Tailored, intensive classes from professional teachers, for real results. Business Chinese
Learn Chinese in China Learn to speak Chinese 1MonthChinese.com -Mandarin School in China.
Learn Chinese Characters Learn 2289 Chinese Characters in 90 Days with a Unique Flash Card System.
Popup Chinese Translator Understand Chinese inside any Windows application, website or PDF.

#2 akdn

akdn
  • Members
  • 125 posts
  • Location:China

Posted 01 May 2009 - 09:26 AM

Thanks, this will come in handy from time to time, and definitely beats fiddling around with the other Mac methods of inputting pinyin. Thanks again.
  • 0

#3 oriada2003

oriada2003
  • Members
  • 6 posts

Posted 02 May 2009 - 10:31 PM

This is great, Peekay. Many thanks!
  • 0

#4 hanxue

hanxue
  • Members
  • 166 posts

Posted 03 May 2009 - 06:12 PM

So basically the difference between this program and the pinyin input that OS-X provides is that with Pinyinput For Mac you can add the tone next to pinyin?

Oh, and another thing. Does anyone have any experiences with Pingguo Dictionary Pinyin 1.0, CEDICT 1.2 or QIM 1.6.5 1B022? Are they worth getting?
  • 0

#5 peekay

peekay
  • Members
  • 185 posts

Posted 04 May 2009 - 12:33 AM

Unlike using the built-in "U.S. Extended" Alt-codes, MacPinyin automatically places tone marks above the correct "vowel", per proper pinyin rules.

E.g., for shǒu biǎo (wrist watch) the first mark is above the "o" but the second mark should be above the "a". Properly marking the correct tones with the Alt-codes is tedious and error-prone.

Another benefit is not having to use "U.S. Extended" if not needed for something else. Some programs don't work well with this keyboard, plus you lose the ability to easily type in symbols like π (pi).

MacPinyin also rejects bad pinyin so you can be confident of the output. An example would be wóng (a common Cantonese surname), which in pinyin should probably be wáng (王) or huáng (黄). Of course you actually can write wóng using MacPinyin if you really want to, like I just did.
  • 0

#6 hanxue

hanxue
  • Members
  • 166 posts

Posted 04 May 2009 - 01:27 AM

I've installed it. Pretty nice little input method for pinyin only, good job! 8)
  • 0

#7 roddy

roddy

    向Imron同志学习

  • Administrators
  • 15,485 posts
  • Chinese:暂无
  • Location:London

Posted 04 May 2009 - 01:36 PM

Have added a link to MacPinyin from Imron's Pinyinput, so all the Mac users don't go away empty handed.
  • 0

#8 hanxue

hanxue
  • Members
  • 166 posts

Posted 04 May 2009 - 04:27 PM

Btw peekay, since we're discussing pinyin inputs... When in typing simplified/traditional characters mode, is there a way to quickly insert this type of comma 、 ?

For the regular comma ( , ) there's no problem, but for (、) I always have to access "Show Punctuation" first and then select it.
  • 0

#9 peekay

peekay
  • Members
  • 185 posts

Posted 04 May 2009 - 06:16 PM

I'm not sure what's the best way, but I made a shortcut using the User Dictionary.

Here's how to set it up for Simplified:

  • Switch to the Simplified input method (ITABC)
  • Press Alt-Shift-T to edit the User Dictionary (or select from menu)
  • In the "Input New Word" field, enter the dùnhào comma (、)
  • In the "Input Code", enter a short code (I use 'c' for comma)
  • Click Add
Now you can quickly type uc to input this comma. (Notice the "u" before whatever the short code you've chosen in step 4.)

You can similarly setup Traditional, except use option-u (instead of just "u") for the shortcut prefix.
  • 0

#10 russmeier

russmeier
  • Members
  • 19 posts
  • Location:Milwaukee, Wisconsin, USA

Posted 05 May 2009 - 08:20 AM

On my Mac using ITABC, I just use the key for the 、character.
I've never had to set up a special dictionary. It just works.
  • 0

#11 peekay

peekay
  • Members
  • 185 posts

Posted 05 May 2009 - 06:42 PM

Genius!! Learn something new every day. :)
  • 0

#12 hanxue

hanxue
  • Members
  • 166 posts

Posted 05 May 2009 - 11:08 PM

Ahh, true!! I didn't even try that button, somehow forgot about it...:D Nice one!
  • 0

#13 imron

imron

    Admin

  • Administrators
  • 8,747 posts
  • Location:国外

Posted 13 May 2009 - 11:53 AM

I just got around to installing 10.5 so have finally been able to give this a try. It's a nice improvement over what I used to use, which always came across as too finicky.
  • 0

#14 hanxue

hanxue
  • Members
  • 166 posts

Posted 24 May 2009 - 06:27 PM

Interestingly though, the 、only works in simplified input for me, but when I'm in traditional pinyin input, it won't work. Any idea why?
  • 0

#15 russmeier

russmeier
  • Members
  • 19 posts
  • Location:Milwaukee, Wisconsin, USA

Posted 25 May 2009 - 12:25 AM

你好jon,

I'm sorry you're having problems with your Mac Chinese input methods. I normally type only in simplified characters but I enabled traditional to try it on my Mac to see if I have the same problem. I don't. It works fine for me.

Here is the punctuation output for both simplified (ITABC) and traditional Chinese (pinyin input method).

我两、三天没吃饭了。(And I'm pretty hungry, I must say!)

我兩、三天沒吃飯了。
  • 0

#16 hanxue

hanxue
  • Members
  • 166 posts

Posted 25 May 2009 - 01:06 AM

Hmm, whenever I switch to trad. input and click the button, it will display the symbol/letter of the previous input language I had. So basically, the 、 will work only when my previous input language was US English...
  • 0

#17 jonty

jonty
  • Members
  • 2 posts

Posted 20 June 2009 - 01:13 AM

hi peekay:

i loaded macpinyin and it all seemed to go well: the name appeared in the international menu. but when I transferred to Word it greyed out and wasn't accessible any more. I'm on Leopard v10.5.7 but with an old version of Word (version X: I think it dates from about 1993).

Any suggestions?
  • 0

#18 peekay

peekay
  • Members
  • 185 posts

Posted 20 June 2009 - 01:54 PM

Unfortunately Word X is not a full "Unicode" application so it can't handle Unicode-based input methods like Pinyinput. (Word 2004 is the earliest version with full Unicode support.)

I don't have a copy of Word X to test, but it might be possible to first enter pinyin on TextEdit, then copy-paste to Word X if needed. Not an ideal solution to be sure but if it works that might still be useful when typing long pinyin phrases.
  • 0

#19 hanxue

hanxue
  • Members
  • 166 posts

Posted 20 June 2009 - 04:32 PM

I have an off-topic question: is there any such thing as the Zhong Wen add-on (when you move your mouse over Chinese characters, it will display their meaning) for SAFARI? :)

I love that Firefox add-on, but have decided recently to switch to Safari due to it being faster than FF... the only thing I really miss from FF at the moment is that Zhong Wen add-on...:-?
  • 0

#20 jonty

jonty
  • Members
  • 2 posts

Posted 20 June 2009 - 06:18 PM

Thanks, Peekay:

It works fine in TextEdit but won't paste into Word: still, I can do what I want to do in TextEdit for the moment.
  • 0


Welcome, stranger

If you like what you see, we have about 20,000 other topics to enjoy. Why not...
• See what's new and popular.
• View the full list of forums.
• Use the Google site search button at top right.
• Or just go ahead and register to post and hide ads.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users