You are not logged in.

#1 2018-02-12 22:55:07

paradokkusu
Member
From: Singapore
Registered: 2016-02-01
Posts: 9

Cannot type in Russian language in Konsole

Hi, I am a newbie just figuring out my way into Arch.
I want to have multiple language support(English and Russian).

I managed to add Russian in the system settings. I can now change my keyboard layout with a shortcut.
However in the Konsole terminal, the Russian characters are being shown as sets of "???????"
How can I add the support for Russian char in the terminal?

help!


"Exploring this paradoxical life"

Offline

#2 2018-02-13 00:05:45

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 749

Re: Cannot type in Russian language in Konsole

Are you sure that Konsole profile is set to use a font that supports Russian characters?

Offline

#3 2018-02-13 06:57:23

Dirmork
Member
Registered: 2017-03-12
Posts: 10

Re: Cannot type in Russian language in Konsole

1. Uncomment "ru_RU.UTF-8 UTF-8" string in /etc/locale.gen
2. Run locale-gen command
3. Create /etc/vconsole.conf file:

LOCALE="ru_RU.UTF-8"
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Moscow"
KEYMAP="ru"
FONT="cyr-sun16"
CONSOLEMAP=""
USECOLOR="yes"

4. Create /etc/locale.conf file:

LANG=ru_RU.UTF-8
LC_MESSAGES=ru_RU.UTF-8

5. Add "consolefont" and "keymap" in HOOKS section in /etc/mkinicpio.conf
For example:

HOOKS=(base consolefont keymap udev autodetect modconf block filesystems keyboard fsck)

6. Run mkinitcpio -p linux
7. Reboot

Also Arch Linux have terrible default russian font. I recommend install ttf-liberation package and change all system fonts to this.

Last edited by Dirmork (2018-02-13 07:02:17)

Offline

#4 2018-02-13 07:02:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Cannot type in Russian language in Konsole

None of that, except 4, has any bearing on OP's issue. They say they have sorted their console setup.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2018-02-13 07:18:36

Dirmork
Member
Registered: 2017-03-12
Posts: 10

Re: Cannot type in Russian language in Konsole

1-7 are necessary for working of the Russian language in TTY too.
To add Cyrillic languages it is better to do a complete configuration like this at once.

Offline

#6 2018-02-13 07:20:35

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Cannot type in Russian language in Konsole

Yes: read the first post. OP has that working already...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2018-02-13 07:54:09

Dirmork
Member
Registered: 2017-03-12
Posts: 10

Re: Cannot type in Russian language in Konsole

Most likely, OP simply added the Russian input method in the KDE settings. In this case, the Russian language will work everywhere except Konsole and TTY.
I suggest waiting for OP smile

Offline

#8 2018-02-13 10:13:03

seth
Member
Registered: 2012-09-03
Posts: 49,966

Re: Cannot type in Russian language in Konsole

Konsole is the KDE terminal emulator and adheres to the locale settings and that's irrelevant because you can have cyrillic letters w/o any russian locale being set.
Xabre is probably spot on.

Online

#9 2018-02-13 13:27:10

paradokkusu
Member
From: Singapore
Registered: 2016-02-01
Posts: 9

Re: Cannot type in Russian language in Konsole

Hi all, Thanks for your reply. The problem has not been resolved.

I have tried the following
-(post #2) Set the Konsole encoding to UTF-8(already by default)
-(post #3) I have followed all the 7 steps including the installation of the the fonts.

Still get the same result below when I type Russian characters in the console.
 

➜  Desktop <ffffffff><ffffffff><ffffffff><ffffffff>
          zsh: no matches found: ????

I don't want to make Russian language my system default. I only want to add this support so I can use gtypist or edit russian documents in vim.
What am I missing?

Last edited by paradokkusu (2018-02-13 13:28:38)


"Exploring this paradoxical life"

Offline

#10 2018-02-13 14:02:29

seth
Member
Registered: 2012-09-03
Posts: 49,966

Re: Cannot type in Russian language in Konsole

Forget about post #3 and post #2 explicitly states

use a font that supports Russian characters

To ensure you didn't screw your locale (and really are using UTF8):

locale
locale -a

Online

#11 2018-02-13 14:07:07

paradokkusu
Member
From: Singapore
Registered: 2016-02-01
Posts: 9

Re: Cannot type in Russian language in Konsole

Here are my outputs for both:

~ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: ?????????? ?????????? LC_ALL ? ?????? ?? ?????????.: ??? ?????? ????? ??? ????????
LANG=en_SG.UTF-8
LC_CTYPE=en_SG.UTF-8
LC_NUMERIC="en_SG.UTF-8"
LC_TIME="en_SG.UTF-8"
LC_COLLATE="en_SG.UTF-8"
LC_MONETARY="en_SG.UTF-8"
LC_MESSAGES=ru_RU.UTF-8
LC_PAPER="en_SG.UTF-8"
LC_NAME="en_SG.UTF-8"
LC_ADDRESS="en_SG.UTF-8"
LC_TELEPHONE="en_SG.UTF-8"
LC_MEASUREMENT="en_SG.UTF-8"
LC_IDENTIFICATION="en_SG.UTF-8"
LC_ALL=

~ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: ?????????? ?????????? LC_COLLATE ? ?????? ?? ?????????.: ??? ?????? ????? ??? ????????
C
POSIX
en_US.utf8
ru_RU.utf8


"Exploring this paradoxical life"

Offline

#12 2018-02-13 14:10:27

seth
Member
Registered: 2012-09-03
Posts: 49,966

Re: Cannot type in Russian language in Konsole

Well your locale obviously *is* broken.
https://wiki.archlinux.org/index.php/Lo … ng_locales

Online

#13 2018-02-13 14:31:49

paradokkusu
Member
From: Singapore
Registered: 2016-02-01
Posts: 9

Re: Cannot type in Russian language in Konsole

Thanks Seth. The changes below to my locale.conf fixed it partly. I can now type Russian char Konsole

LC_CTYPE="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
..............

However, I still have issues with gtypist and vim. I will try to look for their settings.
Thanks all!

Last edited by paradokkusu (2018-02-13 14:32:12)


"Exploring this paradoxical life"

Offline

#14 2018-02-13 14:36:42

seth
Member
Registered: 2012-09-03
Posts: 49,966

Re: Cannot type in Russian language in Konsole

Ensure those locales make it into your shell environment and from there to GUI clients:

tr '\0' '\n' < /proc/`pidof gtypist`/environ

(notice that I've no idea whether that's actually the binary name of the program)

Online

#15 2018-02-13 14:43:44

paradokkusu
Member
From: Singapore
Registered: 2016-02-01
Posts: 9

Re: Cannot type in Russian language in Konsole

This is the response

~ tr '\0' '\n' < /proc/`pidof gtypist`/environ
zsh: Нет такого файла или каталога: /proc//environ

(translation: No such file or directory)

"gtypist" is how I start the program


"Exploring this paradoxical life"

Offline

#16 2018-02-13 15:12:33

seth
Member
Registered: 2012-09-03
Posts: 49,966

Re: Cannot type in Russian language in Konsole

I don't speak russian but "/proc//environ" suggests gtypist wasn't running at that time (thus pidof it was empty)

Online

#17 2018-02-13 15:46:34

paradokkusu
Member
From: Singapore
Registered: 2016-02-01
Posts: 9

Re: Cannot type in Russian language in Konsole

Right! Sorry, It shows an output when I run gtypist.

However, to access Russian lesson, i need to run gtypist with and argument (> gtypist ru.typ) and the error is as below.

~ gtypist ru.typ
gtypist: line 34: iconv() failed on 'B: Добро пожаловать!': Invalid or incomplete multibyte or wide character
You should probably use a UTF-8 locale for the selected lesson!
:
?


"Exploring this paradoxical life"

Offline

#18 2018-02-13 16:39:41

seth
Member
Registered: 2012-09-03
Posts: 49,966

Re: Cannot type in Russian language in Konsole

This is what I would get for

LC_ALL=C gtypist ru.typ

ie. the locale in this context (I assume you run it from an interactive shell?) is still wrong.

Online

#19 2018-02-13 18:11:37

paradokkusu
Member
From: Singapore
Registered: 2016-02-01
Posts: 9

Re: Cannot type in Russian language in Konsole

It's a shell program, no GUI client.

When i run just "gtypist" in one terminal window and run the command from #14 in another to look for the locales the output has the following

...........................
LANG=en_SG.UTF-8
LANGUAGE=en_US:ru
LC_CTYPE=ru_RU.UTF-8
LC_MESSAGES=ru_RU.UTF-8
............................

However "gtypist ru.typ" or as in #18 results the same error output as in #15.

I am trying to wrap my head around this.


"Exploring this paradoxical life"

Offline

#20 2018-02-13 18:13:51

paradokkusu
Member
From: Singapore
Registered: 2016-02-01
Posts: 9

Re: Cannot type in Russian language in Konsole

Maybe it's something to do with the gtypist installation..


"Exploring this paradoxical life"

Offline

#21 2018-02-13 18:15:31

seth
Member
Registered: 2012-09-03
Posts: 49,966

Re: Cannot type in Russian language in Konsole

"ru" isn't "ru_RU.UTF-8" and afaiu you didn't generate "en_SG.UTF-8"?
The latter is would certainly cause this failure.

Fix your locale: https://wiki.archlinux.org/index.php/Locale

Online

#22 2018-02-14 16:58:11

paradokkusu
Member
From: Singapore
Registered: 2016-02-01
Posts: 9

Re: Cannot type in Russian language in Konsole

Thanks Seth! I am kinda figuring it out now.


"Exploring this paradoxical life"

Offline

Board footer

Powered by FluxBB