all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Pinyin in GNOME
@ 2023-11-06 21:05 Felix Lechner via
  2023-11-06 21:19 ` Tomas Volf
  0 siblings, 1 reply; 5+ messages in thread
From: Felix Lechner via @ 2023-11-06 21:05 UTC (permalink / raw)
  To: help-guix

Hi,

What's an easy way to get pinyin input with Guix Home in our standard
GNOME desktop, please?

I once had it but then lost it. I think some environment variables need
to be set. Thanks!

Kind regards
Felix


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pinyin in GNOME
  2023-11-06 21:05 Pinyin in GNOME Felix Lechner via
@ 2023-11-06 21:19 ` Tomas Volf
  2024-04-22  0:47   ` Felix Lechner via
  0 siblings, 1 reply; 5+ messages in thread
From: Tomas Volf @ 2023-11-06 21:19 UTC (permalink / raw)
  To: Felix Lechner; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 945 bytes --]

On 2023-11-06 13:05:40 -0800, Felix Lechner via wrote:
> Hi,
> 
> What's an easy way to get pinyin input with Guix Home in our standard
> GNOME desktop, please?
> 
> I once had it but then lost it. I think some environment variables need
> to be set. Thanks!

Not sure about pinyin, but for ibus I need to set

    (simple-service
     'im-env-vars home-environment-variables-service-type
     '(("GTK_IM_MODULE" . "ibus")
	   ("QT_IM_MODULE" . "ibus")
	   ("XMODIFIERS" . "@im=ibus")
       ;; TODO: Are these still required?  If yes, try to get rid of them.
	   ("GUIX_GTK2_IM_MODULE_FILE"
        . "$HOME/.guix-home/profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache")
	   ("GUIX_GTK3_IM_MODULE_FILE"
        . "$HOME/.guix-home/profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache")))

Hope it helps,
Tomas

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pinyin in GNOME
  2023-11-06 21:19 ` Tomas Volf
@ 2024-04-22  0:47   ` Felix Lechner via
  2024-04-22 12:59     ` Luis Felipe
  0 siblings, 1 reply; 5+ messages in thread
From: Felix Lechner via @ 2024-04-22  0:47 UTC (permalink / raw)
  To: Tomas Volf; +Cc: help-guix

Hi Tomas,

On Mon, Nov 06 2023, Tomas Volf wrote:

> Not sure about pinyin, but for ibus I need to set
>
>     (simple-service
>      'im-env-vars home-environment-variables-service-type
>      '(("GTK_IM_MODULE" . "ibus")
> 	   ("QT_IM_MODULE" . "ibus")
> 	   ("XMODIFIERS" . "@im=ibus")
>        ;; TODO: Are these still required?  If yes, try to get rid of them.
> 	   ("GUIX_GTK2_IM_MODULE_FILE"
>         . "$HOME/.guix-home/profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache")
> 	   ("GUIX_GTK3_IM_MODULE_FILE"
>         . "$HOME/.guix-home/profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache")))

That works locally under EXWM, but have been unable to get ibus working
under GNOME.  Would someone please post a complete recipe, including
what to install in which profile, and whether to start GNOME in X or
Wayland?

Kind regards
Felix


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pinyin in GNOME
  2024-04-22  0:47   ` Felix Lechner via
@ 2024-04-22 12:59     ` Luis Felipe
  2024-04-24 18:20       ` Luis Felipe
  0 siblings, 1 reply; 5+ messages in thread
From: Luis Felipe @ 2024-04-22 12:59 UTC (permalink / raw)
  To: Felix Lechner, Tomas Volf; +Cc: help-guix


[-- Attachment #1.1.1: Type: text/plain, Size: 2223 bytes --]

Hi Felix,

El 22/04/24 a las 0:47, Felix Lechner via escribió:
> Hi Tomas,
>
> On Mon, Nov 06 2023, Tomas Volf wrote:
>
>> Not sure about pinyin, but for ibus I need to set
>>
>>      (simple-service
>>       'im-env-vars home-environment-variables-service-type
>>       '(("GTK_IM_MODULE" . "ibus")
>> 	   ("QT_IM_MODULE" . "ibus")
>> 	   ("XMODIFIERS" . "@im=ibus")
>>         ;; TODO: Are these still required?  If yes, try to get rid of them.
>> 	   ("GUIX_GTK2_IM_MODULE_FILE"
>>          . "$HOME/.guix-home/profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache")
>> 	   ("GUIX_GTK3_IM_MODULE_FILE"
>>          . "$HOME/.guix-home/profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache")))
> That works locally under EXWM, but have been unable to get ibus working
> under GNOME.  Would someone please post a complete recipe, including
> what to install in which profile, and whether to start GNOME in X or
> Wayland?

I use GNOME in X. In my system configuration I have this package:

   #| NOTE: I'd like to have ibus available to all users by default,

   but last time I checked, this didn't work as expected and I still
   had to install it in user profiles. |#
   (specification->package "ibus")

In the manifest for my user profile I have these packages:

   "ibus"
   "ibus-anthy"
   "ibus-libhangul"
   "ibus-libpinyin"
   "ibus-speech-to-text"

In my ~/.profile file I export these variables:

   # GUIX RELATED VARIABLES TO WORK AROUND BUG #35610
   # https://issues.guix.gnu.org/issue/35610
   # export 
GUIX_GTK2_IM_MODULE_FILE="$HOME/.guix-profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache"
   export 
GUIX_GTK3_IM_MODULE_FILE="$HOME/.guix-profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache"
   # These are needed only to work on Qt apps like TeXmacs.
   export XMODIFIERS="@im=ibus"  # Set X input method server (xim) to ibus.
   export QT_IM_MODULE="ibus"    # Set Qt input method module to ibus.

Finally, every time I start a GNOME desktop session, I have to run the 
following:

   ibus-daemon -drx

I input Japanese reliably using this. I don't use the other input 
methods often, but they work, as far as I can see.

Hope that helps,

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2881 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pinyin in GNOME
  2024-04-22 12:59     ` Luis Felipe
@ 2024-04-24 18:20       ` Luis Felipe
  0 siblings, 0 replies; 5+ messages in thread
From: Luis Felipe @ 2024-04-24 18:20 UTC (permalink / raw)
  To: Felix Lechner, Tomas Volf; +Cc: help-guix


[-- Attachment #1.1.1: Type: text/plain, Size: 2640 bytes --]

Hello again,

El 22/04/24 a las 12:59, Luis Felipe escribió:
> Hi Felix,
>
> El 22/04/24 a las 0:47, Felix Lechner via escribió:
>> Hi Tomas,
>>
>> On Mon, Nov 06 2023, Tomas Volf wrote:
>>
>>> Not sure about pinyin, but for ibus I need to set
>>>
>>>      (simple-service
>>>       'im-env-vars home-environment-variables-service-type
>>>       '(("GTK_IM_MODULE" . "ibus")
>>>        ("QT_IM_MODULE" . "ibus")
>>>        ("XMODIFIERS" . "@im=ibus")
>>>         ;; TODO: Are these still required?  If yes, try to get rid 
>>> of them.
>>>        ("GUIX_GTK2_IM_MODULE_FILE"
>>>          . 
>>> "$HOME/.guix-home/profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache")
>>>        ("GUIX_GTK3_IM_MODULE_FILE"
>>>          . 
>>> "$HOME/.guix-home/profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache")))
>> That works locally under EXWM, but have been unable to get ibus working
>> under GNOME.  Would someone please post a complete recipe, including
>> what to install in which profile, and whether to start GNOME in X or
>> Wayland?
>
> I use GNOME in X. In my system configuration I have this package:
>
>   #| NOTE: I'd like to have ibus available to all users by default,
>
>   but last time I checked, this didn't work as expected and I still
>   had to install it in user profiles. |#
>   (specification->package "ibus")
>
> In the manifest for my user profile I have these packages:
>
>   "ibus"
>   "ibus-anthy"
>   "ibus-libhangul"
>   "ibus-libpinyin"
>   "ibus-speech-to-text"
>
> In my ~/.profile file I export these variables:
>
>   # GUIX RELATED VARIABLES TO WORK AROUND BUG #35610
>   # https://issues.guix.gnu.org/issue/35610
>   # export 
> GUIX_GTK2_IM_MODULE_FILE="$HOME/.guix-profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache"
>   export 
> GUIX_GTK3_IM_MODULE_FILE="$HOME/.guix-profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache"
>   # These are needed only to work on Qt apps like TeXmacs.
>   export XMODIFIERS="@im=ibus"  # Set X input method server (xim) to 
> ibus.
>   export QT_IM_MODULE="ibus"    # Set Qt input method module to ibus.
>
> Finally, every time I start a GNOME desktop session, I have to run the 
> following:
>
>   ibus-daemon -drx
>
> I input Japanese reliably using this. I don't use the other input 
> methods often, but they work, as far as I can see.
>
> Hope that helps,

Just to add that I upgraded my system to guix e2ba933 today, started the 
new GNOME 44.10 (Wayland) and I still can use ibus input methods 
normally with those same settings.


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2881 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-04-24 18:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-06 21:05 Pinyin in GNOME Felix Lechner via
2023-11-06 21:19 ` Tomas Volf
2024-04-22  0:47   ` Felix Lechner via
2024-04-22 12:59     ` Luis Felipe
2024-04-24 18:20       ` Luis Felipe

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.