Subject: bug#46154: Not able to get Hindi "Input Method" to add in listing of available input methods in non-gnome wm like stumpwm

From: Shyam Saran <[email-masked]>
Date: Thu, 28 Jan 2021 20:40:31 +0530

Tried to create ibus-m17n and installed in user profile (by copying
ibus-anthy)

============================================================
(define-module (lotus packages ibus)
 #:use-module (guix licenses)
 #:use-module (guix packages)
 #:use-module (guix download)
 #:use-module (guix git-download)
 #:use-module (guix build-system cmake)
 #:use-module (guix build-system gnu)
 #:use-module (guix build-system glib-or-gtk)
 #:use-module (guix utils)
 #:use-module (gnu packages)
 #:use-module (gnu packages ibus)
 #:use-module (gnu packages emacs)
 #:use-module (gnu packages autotools)
 #:use-module (gnu packages base)
 #:use-module (gnu packages boost)
 #:use-module (gnu packages check)
 #:use-module (gnu packages cmake)
 #:use-module (gnu packages databases)
 #:use-module (gnu packages datastructures)
 #:use-module (gnu packages dbm)
 #:use-module (gnu packages freedesktop)
 #:use-module (gnu packages gettext)
 #:use-module (gnu packages glib)
 #:use-module (gnu packages gnome)
 #:use-module (gnu packages gtk)
 #:use-module (gnu packages iso-codes)
 #:use-module (gnu packages logging)
 #:use-module (gnu packages pkg-config)
 #:use-module (gnu packages python)
 #:use-module (gnu packages serialization)
 #:use-module (gnu packages sqlite)
 #:use-module (gnu packages textutils)
 #:use-module (gnu packages unicode)
 #:use-module (gnu packages xorg))

(define-public ibus-m17n
 (package
   (name "ibus-m17n")
   (version "1.4.3")
   (source (origin
             (method url-fetch)
             (uri (string-append
                   "https://github.com/ibus/ibus-m17n/releases/download/"
                   version "/ibus-m17n-" version ".tar.gz"))
             (sha256
              (base32
               "1mn8kvsak1icggy0q6my187kan2kyq0kv455bwx9q4pgbq1jry56"))))
   (build-system glib-or-gtk-build-system)
   (arguments
    '(#:configure-flags
      ;; Use absolute exec path in the anthy.xml.
      (list (string-append "--libexecdir=" %output "/libexec"))
      #:phases
      (modify-phases %standard-phases
        (add-after 'install 'wrap-programs
          (lambda* (#:key outputs #:allow-other-keys)
            (let ((out (assoc-ref outputs "out")))
              (for-each
               (lambda (prog)
                 (wrap-program (string-append out "/libexec/" prog)
                   `("PYTHONPATH" ":" prefix
                     (,(getenv "PYTHONPATH")))
                   `("GI_TYPELIB_PATH" ":" prefix
                     (,(getenv "GI_TYPELIB_PATH")
                      ,(string-append out "/lib/girepository-1.0")))))
               '("ibus-engine-m17n"))
              #t))))))
   (native-inputs
    `(("gettext" ,gettext-minimal)
      ("intltool" ,intltool)
      ("pkg-config" ,pkg-config)
      ("python" ,python)))
   (inputs
    `(("m17n-lib" ,m17n-lib)
      ("gtk+" ,gtk+)
      ("ibus" ,ibus)
      ("gobject-introspection" ,gobject-introspection)
      ("python-pygobject" ,python-pygobject)))
   (synopsis    "M17N engine for IBus")
   (description "M17N engine for IBus.")
   (home-page "https://github.com/ibus/ibus-m17n/")
   (license gpl2+)))

ibus-m17n
============================================================

But still not gets "Hindi" input method

On Thu, 28 Jan 2021 at 18:18, Shyam Saran <[email-masked]> wrote:

>
>
> In  gnome
>
> only
>   gnome-control-center region
>
> shows Hindi as input method
>
> while in gnome
>
>   ibus-setup
>
> do not shown "Hindi"
>
> like it does in stumpwm
>
> --
>
> Shyam
>
>
>
>