nvbn / everpad

Evernote client well integrated with linux desktop
1.17k stars 143 forks source link

How to type Chinese in Everpad? #376

Open QingWang0909 opened 10 years ago

QingWang0909 commented 10 years ago

Hey,

I was wondering if I could be able to use some Chinese Input Method when I using Everpad?

QW

EdwardYuan commented 10 years ago

of course u can, if only u have installed any Chinese Input Method, such as ibus SunPinyin or fcitx. So what's ur problem?

QingWang0909 commented 10 years ago

Hey,

Thanks for reply.

I think I already installed Chinese Input Method, I installed Google Pinyin of ibus. I could be able to type in Chinese in any other my application so Google Pinyin works. When I try to trigger the Chinese Input Method in Everpad using hotkey(ctl + space), however, I can NOT type any Chinese inputs, it was still English.

Thanks!

Qing Wang

2013/11/20 Edward Yuan notifications@github.com

of course u can, if only u have installed any Chinese Input Method, such as ibus SunPinyin or fcitx. So what's ur problem?

— Reply to this email directly or view it on GitHubhttps://github.com/nvbn/everpad/issues/376#issuecomment-28957546 .

EdwardYuan commented 10 years ago

I didn't find any conflict keys in the code, and it works on my Ubuntu 13.04 well, I'll look for any possible cause later. And maybe anyone else could help.

EdwardYuan commented 10 years ago

How about reinstall everpad ? or u could try fctix instead of ibus

Answeror commented 10 years ago

Try install ibus-qt and and relogin. This works on archlinux + xmonad + ibus-rime.

highlando commented 10 years ago

@QingWang0909 what is your version of Ubuntu where you experienced this error? On 13.10 there are known issues with IBUS and pinyin. For me with 13.10, the workaround with fctix works well.

ZachGoldberg commented 10 years ago

Also on Ubuntu 12.04 cannot switch keyboard layouts with control-space inside the everpad note editor. If I switch my global ibus setting to be chinese it works everywhere (including terminals), but the second I click inside everpad, its back to english. Must be some kind of property of the text area widget in the UI toolkit everpad uses...?

ZachGoldberg commented 10 years ago

Doing some research... looks like the editor pane is a QWebView. Qt apparently doesn't allow you to programmatically specify encoding properties of the document, but it respects the headers on the document itself (or at least, thats what my quick read of the documentation says). Evernote web clearly does not have this problem. I'm still digging, but perhaps everpad is not sending all the headers to the qwebview?

ZachGoldberg commented 10 years ago

Also worth noting -- a lot of people online suggest the problem might be font related. Tried a number of fonts, still the same result.

ZachGoldberg commented 10 years ago

So, looks like the problem is PEBKAC. I've turned into a spoiled ubuntu user.

I solved the problem by installing ibus-qt. I can now enter pinyin and chinese into the everpad editor.

Turns out to not be a bug in everpad itself, so this can be closed invalid. This will probably be a somewhat common issue for Ubuntu everpad users though, as everpad is in QT and most of the interface in ubuntu is in GTK. Therefore I suspect there will be others like me, using iBus for a long time without issue before running into everpad where it doesn't work, and accidentally blaming everpad whereas in reality our iBus installation is simply incomplete because we don't use any other QT applications. Perhaps a note could be added to the installation instructions hilighting this? Especially because everpad is marketed at Ubuntu/Unity users, the exact people who might run into this pitfall.