arakiken / mlterm

Other
156 stars 13 forks source link

How to get Arabic working? #97

Open cry0x11 opened 4 months ago

cry0x11 commented 4 months ago

Configuration

I configured mlterm to work on wayland

./configure --with-gui=wayland --with-scrollbars --disable-scim --disable-canna \
                  --with-gtk=3.0 --disable-ind --enable-anti-alias --disable-uim --disable-ibus \
                  --disable-wnn --disable-compact-truecolor --enable-fribidi

And it tells me fcitx5 is enabled which is expected

Mlterm was configured as follows

Installation path prefix          : /usr/local
Build shared libraries            : yes
Build static libraries            : yes
GUI toolkit                       : wayland
BiDi rendering (Fribidi)          : yes
Indic rendering                   : no
OpenType Layout                   : yes (harfbuzz)
External tools                    : mlclient mlconfig mlcc mlterm-menu mlimgloader registobmp mlfc
Image processing                  : yes
Built-in image library            : 
utmp support                      : 
Supported font formats            : pcf ttf(+fontconfig)
DnD                               : yes
Input Methods                     : kbd fcitx5 skk
Scrollbars                        : simple
libssh2                           : yes
mosh directory                    : 
GTK+                              : yes (3.0)
libvte                            : no
brlapi                            : no
VT52                              : no
Permission of mlterm binary       : -m 755
Compact true color                : no

Expected behavior

Fcitx5 working as intended when typing Arabic

Steps to reproduce

  1. Switch to Arabic using fcitx5
  2. type in the terminal

What happens

The terminal doesn't type Arabic at all and types English instead

Trying to use --im=fcitx

The terminal doesn't receive any keyboard input (when Arabic is active) even using Enter key doesn't work

I even tried to mix flags

  1. mlterm-wl -E utf8 --im=fcitx
  2. mlterm-wl --ctl=true --im=kbd:arabic --km=UTF-8
  3. mlterm-wl --ctl=true --im=fcitx --km=UTF-8

But nothing seems to work

Information

OS Void Linux
Window Manager River 0.4.0
mlterm ver. 3.9.3
fcitx5 ver. 5.1.8

I doubted river and installed sway but it didn't work there either with fcitx5

cry0x11 commented 4 months ago

I'd like to add that ~/.mlterm/msg.log says mlterm is connected to fcitx server

May 13 14:06:37[22357] Load /usr/share/fonts/TTF/DejaVuSansMNerdFontPropo-Regular.ttf (id d1)
May 13 14:06:37[22357] Load /usr/share/fonts/TTF/DejaVuSansMNerdFontPropo-Regular.ttf (id 8d1)
May 13 14:06:37[22357] Connected to FCITX server

And here's my config at ~/.mlterm/main :

type_engine = cairo
use_anti_alias = true
use_scrollbar = right
only_use_unicode_font = true
arakiken commented 3 weeks ago

Thank you for your report. I think this commit fixes this problem. https://github.com/arakiken/mlterm/commit/92fa70f1da41fb2c8affd387e775d95f3e75ead4