Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-23-2014, 02:16 AM   #1
anavin
Enthusiast
anavin put the bomp in the bomp-a-bomp-a-bomp.anavin put the bomp in the bomp-a-bomp-a-bomp.anavin put the bomp in the bomp-a-bomp-a-bomp.anavin put the bomp in the bomp-a-bomp-a-bomp.anavin put the bomp in the bomp-a-bomp-a-bomp.anavin put the bomp in the bomp-a-bomp-a-bomp.anavin put the bomp in the bomp-a-bomp-a-bomp.anavin put the bomp in the bomp-a-bomp-a-bomp.anavin put the bomp in the bomp-a-bomp-a-bomp.anavin put the bomp in the bomp-a-bomp-a-bomp.anavin put the bomp in the bomp-a-bomp-a-bomp.
 
Posts: 34
Karma: 67986
Join Date: Feb 2014
Device: Kobo Glo, Kobo Aura H2O
Calibre 2.0, Linux, Chinese input method

I've come into some problems about Chinese input method under Linux (openSUSE 13.1, to be specific) and managed to deal it with a workaround, here it is:

I couldn't type Chinese on Calibre 2.0... well, on all Qt 5 applications under Linux (e.g. Sigil 7), actually.
After a quick research I found that my input method, gcin, haven't develop a qt5-immodule yet.
So I installed fcitx (another input method), along with its qt5 module (thanks to all volunteers on software.opensuse.org.)
However I still couldn't type Chinese on Calibre, yet I could on Sigil now.
With another quick research I found Calibre use its own Qt5 library with its own plugin directory:
Code:
/opt/calibre/lib/qt_plugins
So I linked the input method plugins directory to Calibre's Qt plugin directory:
(the plugin directory might vary on different distributions with different CPU architectures)
Code:
su -
cd /opt/calibre/lib/qt_plugins
ln -s /usr/lib64/qt5/plugins/platforminputcontexts/ .
And now I can type Chinese on Calibre 2 again.

Update:
It seems I can edit an environment variable to achieve the same result, since reinstalling calibre could wipe out the link I created:
Code:
export QT_PLUGIN_PATH=$QT_PLUGIN_PATH:/usr/lib64/qt5/plugins/
But I'm not sure mixing KDE4/Qt4/Qt5 plugin paths together in one variable is a good idea :P

Last edited by anavin; 08-26-2014 at 10:59 AM.
anavin is offline   Reply With Quote
Old 08-23-2014, 02:19 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,307
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Thanks for sharing your workaround
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
select input method pepijndevos Kindle Developer's Corner 32 11-12-2012 03:18 PM
Touch how to enable third-party input method in rooted nook touch tigerszheng Barnes & Noble NOOK 5 10-24-2011 08:30 PM
Japanese/Chinese Input? renochew Nook Developer's Corner 11 03-01-2011 12:37 AM
Android Chinese Handwriting Recognition Input ricco enTourage Archive 3 11-27-2010 10:20 AM
Android Penpower Input Method on Edge? ricco enTourage Archive 0 04-26-2010 12:11 AM


All times are GMT -4. The time now is 01:57 PM.


MobileRead.com is a privately owned, operated and funded community.