OpenOffice Pinyin Guide, my new open source project

119 views
Skip to first unread message

TheVirtualVortex

unread,
Dec 7, 2009, 1:52:50 AM12/7/09
to Shanghai Linux User Group
Hello fellow linux people,

Until recently, OpenOffice.org was missing a feature that MS Word had
since a long time: the Asian Phonetic Guide with automatic pinyin
conversion. OpenOffice has a feature to add text on top of Chinese
characters (also called "Asian Phonetic Guide"), but it doesn't fill
in the pinyin automatically. You have to input everything by hand.

To fill in this feature gap, for the open-source and linux people out
there, I have created the OO Pinyin Guide extension. This is my first
personal open source project.

If you know people teaching or learning Chinese who happen to use
OpenOffice, this extension might be useful for them.

You can find the latest version on SourceForge: http://sourceforge.net/projects/oopinyinguide/

This extension is written in Java and based on CEDICT, and was
inspired by the C++ CEDICT lookup program written by Wu Yongwei
earlier.

Welcome to your comments and contributions :-)

Thanks,

Vincent

HouYu Li

unread,
Dec 7, 2009, 2:45:32 AM12/7/09
to sh...@googlegroups.com
Cool idea ...

--
Best Regards

HouYu Li, Karajan

karajan_ii (at) hotmail.com
karadog (at) gmail.com
lihouyu (at) phpex.net

PHP Developer
Red Hat Certified Engineer

Shanghai, China

HouYu Li

unread,
Dec 7, 2009, 3:11:22 AM12/7/09
to sh...@googlegroups.com
Improvement suggestions:

1. Could you please make these PinYin fonts a little bigger? The
default zoom level (100%) makes PinYin unreadable, too small.
Or give it a font chooser!
2. It will be superb if PinYin will be added automatically while typing Chinese.

I am very happy with this extension.

oopinyinguide.jpg

TheVirtualVortex

unread,
Dec 7, 2009, 3:22:39 AM12/7/09
to Shanghai Linux User Group
Hi Houyu Li !

Thank you for your suggestion :-)

About 1)

I agree that the default ruby style is too small.

Using the OpenOffice API, I have no direct control over the pinyin
text style properties, I can only set the character style name of the
rubies. The rubies is the block of text containing the pinyin.

You can manually change the pinyin size by modifying the "Rubies"
character style from the styles window (F11 key). In chinese, the
name of the style might be different, it's the name of the style
selected by default in the dialog.

I think I will provide a button on the dialog to popup the style
edition dialog automatically, so the user can then change the style
properties. Another solution would be to create / modify the style
properties directly. I need to do some research whether it's possible
using the (somewhat limited) OpenOffice API.

About point 2)
Yes, this is a good idea. I will write it down on my list.

Cheers,

Vincent

On Dec 7, 4:11 pm, HouYu Li <kara...@gmail.com> wrote:
> Improvement suggestions:
>
> 1. Could you please make these PinYin fonts a little bigger? The
> default zoom level (100%) makes PinYin unreadable, too small.
> Or give it a font chooser!
> 2. It will be superb if PinYin will be added automatically while typing Chinese.
>
> I am very happy with this extension.
>
>
>
> On Mon, Dec 7, 2009 at 3:45 PM, HouYu Li <kara...@gmail.com> wrote:
> > Cool idea ...
>
>  oopinyinguide.jpg
> 23KViewDownload
Reply all
Reply to author
Forward
0 new messages