Generate Pinyin from Chinese Characters

Is there a way to generate pinyin from Chinese characters in LibreOffice Writer 4? I tried oopinyinguide (which worked well in LibreOffice Writer 3), but it didn’t work in LibreOffice Writer 4.2 (OS: Ubuntu 14.04 64-bit). When I installed that extension, I got jni_uno bridge error.

Are there alternatives to oopinyinguide (beside typing pinyin manually)?