fcitx to write in CJK in calibre

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

fcitx to write in CJK in calibre

chanjp
Seasonal greetings mailing list!

I was wondering whether there is a recommended method for writing in CJK
within calibre. I am currently searching by pasting the CJK text from Kate
into the search bar in calibre.

Closest thing I could find on the issue for openSUSE was found here, but it is
probably a bit old to follow along:

https://www.mobileread.com/forums/showthread.php?t=244887

Some digging also brought me to this bug report, though I do not know how to
remedy the problem.

https://github.com/NixOS/nixpkgs/issues/15569

signature.asc (235 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fcitx to write in CJK in calibre

John Paul Adrian Glaubitz
Hi Chan!

On 12/26/2017 03:02 AM, Chan Ju Ping wrote:
> I was wondering whether there is a recommended method for writing in CJK
> within calibre. I am currently searching by pasting the CJK text from Kate
> into the search bar in calibre.

Honestly, I would just remove fcitx and reinstall ibus. At least that's
what I did to be able to use Japanese input again.

I don't know why some upstream projects decided to prefer fcitx over
ibus but for me fcitx is a huge step backwards compared to ibus.

When I started using CJK input on Linux, I first used SCIM back in the
days and getting it to work properly was quite painful. I was so happy
when ibus became mainstream because CJK input just worked once it was
set up once. Then someone decided that fcitx is the new cool thing and
all of a sudden, CJK input completely stopped working for me.

I first tried setting up fcitx, but the whole user interface was so
confusing that I did not manage to get Japanese input working. At some
point, I just removed fcitx and set a lock on the package so it wouldn't
get reinstalled automatically to break CJK input again.

Adrian
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: fcitx to write in CJK in calibre

Martin Herkt
In reply to this post by chanjp
CJK input in Calibre with fcitx works fine here. Make sure fcitx-qt5 and
fcitx-mozc are installed, and add Mozc as input method in fcitx’ configuration
dialog. Pressing the shortcut to switch input method should display the fcitx
window next to the input field.

If it still doesn’t work, add this to your .bashrc (or whatever configures
your shell) and relogin:

export XMODIFIERS=@im=fcitx
export QT_IM_MODULE=fcitx

signature.asc (235 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fcitx to write in CJK in calibre

chanjp
On Wednesday, 27 December 2017 00:44:30 +08 Martin Herkt wrote:
> CJK input in Calibre with fcitx works fine here. Make sure fcitx-qt5 and
> fcitx-mozc are installed, and add Mozc as input method in fcitx’
> configuration dialog. Pressing the shortcut to switch input method should
> display the fcitx window next to the input field.

I checked again. Both are installed.

>
> If it still doesn’t work, add this to your .bashrc (or whatever configures
> your shell) and relogin:
>
> export XMODIFIERS=@im=fcitx
> export QT_IM_MODULE=fcitx

No changes unfortunately.

I probably have something configured incorrectly compared to your setup. When
my cursor is in the search window for calibre, the input method icon in the
panel says "No input window" upon mouseover.

signature.asc (235 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fcitx to write in CJK in calibre

chanjp
In reply to this post by John Paul Adrian Glaubitz
On Tuesday, 26 December 2017 21:15:57 +08 John Paul Adrian Glaubitz wrote:

> Hi Chan!
>
> On 12/26/2017 03:02 AM, Chan Ju Ping wrote:
> > I was wondering whether there is a recommended method for writing in CJK
> > within calibre. I am currently searching by pasting the CJK text from Kate
> > into the search bar in calibre.
>
> Honestly, I would just remove fcitx and reinstall ibus. At least that's
> what I did to be able to use Japanese input again.
>
> I don't know why some upstream projects decided to prefer fcitx over
> ibus but for me fcitx is a huge step backwards compared to ibus.
>
> When I started using CJK input on Linux, I first used SCIM back in the
> days and getting it to work properly was quite painful. I was so happy
> when ibus became mainstream because CJK input just worked once it was
> set up once. Then someone decided that fcitx is the new cool thing and
> all of a sudden, CJK input completely stopped working for me.
>
> I first tried setting up fcitx, but the whole user interface was so
> confusing that I did not manage to get Japanese input working. At some
> point, I just removed fcitx and set a lock on the package so it wouldn't
> get reinstalled automatically to break CJK input again.
>
> Adrian
I have fcitx set up just right though after several confusing configurations
including writing in Traditional Chinese rather than Simplified Chinese. Too
invested at this point!

signature.asc (235 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fcitx to write in CJK in calibre

chanjp
On Wednesday, 27 December 2017 12:38:59 +08 FeralMeow wrote:
> Fcitx works fine on my computer, also in calibre search.
> You can follow this blog
> https://www.csslayer.info/wordpress/fcitx-dev/how-to-use-fcitx-on-ubuntu-17-> 10/ to install and configure fcitx.

I am honestly rather envious that fcitx just works for many of you. Once I've
accounted for the differences in KDE and TW, I don't really see how that blog
post helps unfortunately.

Thanks for responding.

signature.asc (235 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fcitx to write in CJK in calibre

Takashi Iwai
In reply to this post by chanjp
On Wed, 27 Dec 2017 04:10:58 +0100,
Chan Ju Ping wrote:
>
> On Wednesday, 27 December 2017 00:44:30 +08 Martin Herkt wrote:
> > CJK input in Calibre with fcitx works fine here. Make sure fcitx-qt5 and
> > fcitx-mozc are installed, and add Mozc as input method in fcitx’
> > configuration dialog. Pressing the shortcut to switch input method should
> > display the fcitx window next to the input field.
>
> I checked again. Both are installed.

At least calibre + fcitx works with fcitx-qt5 on Leap 42.3, so it must
be a regression on FACTORY.  Please report it to Bugzilla.


Takashi
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: fcitx to write in CJK in calibre

Martin Herkt
On Mittwoch, 27. Dezember 2017 22:17:23 CET Takashi Iwai wrote:
> At least calibre + fcitx works with fcitx-qt5 on Leap 42.3, so it must
> be a regression on FACTORY.  Please report it to Bugzilla.

Well I’m using Tumbleweed and I need this for work, so I would have noticed if
it ever broke …

signature.asc (235 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fcitx to write in CJK in calibre

Takashi Iwai
On Wed, 27 Dec 2017 23:06:21 +0100,
Martin Herkt wrote:
>
> On Mittwoch, 27. Dezember 2017 22:17:23 CET Takashi Iwai wrote:
> > At least calibre + fcitx works with fcitx-qt5 on Leap 42.3, so it must
> > be a regression on FACTORY.  Please report it to Bugzilla.
>
> Well I’m using Tumbleweed and I need this for work, so I would have noticed if
> it ever broke …

Hm, then might it be a difference of DE?  FWIW, I've tested on XFCE
and it worked.


Takashi
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: fcitx to write in CJK in calibre

Luca Beltrame
Il giorno Wed, 27 Dec 2017 23:45:55 +0100
Takashi Iwai <[hidden email]> ha scritto:

> Hm, then might it be a difference of DE?  FWIW, I've tested on XFCE
> and it worked.

I can't comment on Calibre, but I'm using CJK input with fcitx-qt5 in
Plasma 5 and Qt applications without issues.

--
Luca Beltrame - KDE Forums team
GPG key ID: A29D259B

attachment0 (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fcitx to write in CJK in calibre

chanjp
On Thursday, 28 December 2017 07:08:08 +08 Luca Beltrame wrote:
> Il giorno Wed, 27 Dec 2017 23:45:55 +0100
>
> Takashi Iwai <[hidden email]> ha scritto:
> > Hm, then might it be a difference of DE?  FWIW, I've tested on XFCE
> > and it worked.
>
> I can't comment on Calibre, but I'm using CJK input with fcitx-qt5 in
> Plasma 5 and Qt applications without issues.

It's been this way since the beginning for me, and I just for the life of me
can't figure out why I can't get it to work on calibre.

Perhaps it is the inability to detect an input field? I tried typing using the
virtual qwerty keyboard into calibre and that doesn't work.

signature.asc (235 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fcitx to write in CJK in calibre

chanjp
In reply to this post by Takashi Iwai
On Thursday, 28 December 2017 05:17:23 +08 Takashi Iwai wrote:

> On Wed, 27 Dec 2017 04:10:58 +0100,
>
> Chan Ju Ping wrote:
> > On Wednesday, 27 December 2017 00:44:30 +08 Martin Herkt wrote:
> > > CJK input in Calibre with fcitx works fine here. Make sure fcitx-qt5 and
> > > fcitx-mozc are installed, and add Mozc as input method in fcitx’
> > > configuration dialog. Pressing the shortcut to switch input method
> > > should
> > > display the fcitx window next to the input field.
> >
> > I checked again. Both are installed.
>
> At least calibre + fcitx works with fcitx-qt5 on Leap 42.3, so it must
> be a regression on FACTORY.  Please report it to Bugzilla.
>
>
> Takashi
I just opened one here:

https://bugzilla.opensuse.org/show_bug.cgi?id=1074160

signature.asc (235 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fcitx to write in CJK in calibre

Takashi Iwai
In reply to this post by chanjp
On Thu, 28 Dec 2017 05:08:28 +0100,
Chan Ju Ping wrote:

>
> On Thursday, 28 December 2017 07:08:08 +08 Luca Beltrame wrote:
> > Il giorno Wed, 27 Dec 2017 23:45:55 +0100
> >
> > Takashi Iwai <[hidden email]> ha scritto:
> > > Hm, then might it be a difference of DE?  FWIW, I've tested on XFCE
> > > and it worked.
> >
> > I can't comment on Calibre, but I'm using CJK input with fcitx-qt5 in
> > Plasma 5 and Qt applications without issues.
>
> It's been this way since the beginning for me, and I just for the life of me
> can't figure out why I can't get it to work on calibre.
>
> Perhaps it is the inability to detect an input field? I tried typing using the
> virtual qwerty keyboard into calibre and that doesn't work.

You may try to create another fresh account just for testing and check
whether the very same problem appears.  And also try to test a
different desktop, e.g. start with the simplest one like icewm.


Takashi
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]