Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: berni51 on 22 January 2021, 17:11:29

Title: German keymap: Euro sign
Post by: berni51 on 22 January 2021, 17:11:29
Hi there,
I am Berni from Germany and new to ArtiX and to this Forum.
My yesterdays installation of ArtiX on an older Asus notebook went fine and everything seems to work properly - except one thing: The missing Euro sign on the keymap. Using x-org the keyboard is perfect, but using the console I don' t have the Euro. Instead the keyboard gives me an small quadrat.
I have installed the de-latin1 keymap and have already tried the modifications in the keymap file regarding the Euro.
Any hint is welcome, because I often use the console.
Thks & regards
Berni
Title: Re: German keymap: Euro sign
Post by: alium on 23 January 2021, 06:12:04
Hi,
Did you set correct font for console?
https://man.archlinux.org/man/vconsole.conf.5:
 
Code: [Select]
Example 1. German keyboard and console

/etc/vconsole.conf:

KEYMAP=de-latin1
FONT=eurlatgr

Did you set and generated locale in etc?
https://wiki.archlinux.org/index.php/locale#Setting_the_system_locale
Title: Re: German keymap: Euro sign
Post by: berni51 on 24 January 2021, 11:03:25
Thanks @alium. I doublechecked /etc/vconsole.conf as well as locale.conf.
Locale.conf was OK, but the FONTS entry in vconsole.conf was missing and so I added "FONT=eurlatgr".
Unfortunately without success. AltGR-a still gives the little filled square.

The mistake seems to lay deeper.  :'(

Regards
Berni
Title: Re: German keymap: Euro sign
Post by: VictorBrand on 24 January 2021, 11:31:26
Hi, Berni,

The problem can be with the font (if it just doesn't have an Euro symbol) or with the keymap. For the font, try to install terminus-font package and select something like
Code: [Select]
FONT=ter-v16b
in /etc/vconsole.conf. ter-v* fonts have plenty of Unicode symbols and I myself use it for Cyrillic.

What's for the keymap, I stumbled upon an option in OpenRC configuration file:

/etc/conf.d/keymaps
Code: [Select]
# The maps to load for extended keyboards.  Most users will leave this as is.
extended_keymaps=""
#extended_keymaps="backspace keypad euro2"

...

# Some fonts map AltGr-E to the currency symbol instead of the Euro.
# To fix this, set to "yes"
fix_euro="NO"

This affects initialization script in such way:

/etc/init.d/keymaps
Code: [Select]
loadkeys -q $wkeys $keymap $extended_keymaps

...

if yesno $fix_euro; then
ebegin "Fixing font for euro symbol"
# Fix some fonts displaying the Euro, #173528.
echo "altgr keycode 18 = U+20AC" | loadkeys -q -
eend $?
fi

Perhaps this will help.
Title: Re: German keymap: Euro sign
Post by: berni51 on 24 January 2021, 12:40:30
Thanks @VictorBrand. Your posting looked so good and logically that I testet it immedietaly. But the result is the same as before: A bloody litle square.  >:(

Before ArtiX I run NetBSD on the Asus notebook and I'm sure that the console was able to display the € out of the box.

Title: Re: German keymap: Euro sign
Post by: VictorBrand on 24 January 2021, 13:02:41
Well, I've just tested de-latin1 keymap with ter-v16b font in my OpenRC installation. I left fix_euro="NO" in /etc/conf.d/keymaps.

So, ter-v16b displays Euro sign out of the box.

In de-latin1 keymap, right Alt + e = Euro sign, right Alt + c = Eurocent sign. Everything works for me.

UPD. I've just tested this in my Runit installation, Euro sign works fine as mentioned above with this setup:

/etc/vconsole.conf
Code: [Select]
LOCALE="de_DE.UTF-8"
KEYMAP="de-latin1"
FONT="ter-v16b"
CONSOLEMAP=""
Title: Re: German keymap: Euro sign
Post by: berni51 on 24 January 2021, 16:20:51
That's quite crazy! I still have only my squares when pressing AltCtrl-e, but AltCtrl-c offers the Euro-Cent.
Better I will give up and using X-org, where the world is in order.

Regards & ths for your kind help.
Berni
Title: Re: German keymap: Euro sign
Post by: VictorBrand on 24 January 2021, 16:27:43
I still have only my squares when pressing AltCtrl-e, but AltCtrl-c offers the Euro-Cent.
BTW it's not AltCtrl, but right Alt only (at least, in the console).
Title: Re: German keymap: Euro sign
Post by: berni51 on 24 January 2021, 17:27:38
Quote from: VictorBrand
BTW it's not AltCtrl, but right Alt only (at least, in the console).

 :o   :o
Do you talk about German keyboards?
Typical German keyboards only have an Alt-key on the left side and an AltCtrl-key on the right side. I have here several keyboards, all with the layout just described.
The only keyboard with a left and a right Alt-key is my RaspBerry original keyboard.

With left-Alt-e or -c I don't get any output - nothing.
Possibly my problem is the German layout .....

Title: Re: German keymap: Euro sign
Post by: VictorBrand on 24 January 2021, 18:51:28
:o   :o
Do you talk about German keyboards?
Typical German keyboards only have an Alt-key on the left side and an AltCtrl-key on the right side. I have here several keyboards, all with the layout just described.
The only keyboard with a left and a right Alt-key is my RaspBerry original keyboard.

With left-Alt-e or -c I don't get any output - nothing.
Possibly my problem is the German layout .....

Yeah, you are right, I've never seen a German keyboard, and the one I use is rather classic one. Currently I'm studying German (or to say so trying to recollect and improve my skills in the language), so I use German locale, but not German kbd layout.

The last idea: if everything works fine for you in *BSD, you could import kbd layout file from there (if it shares the same format with Linux) and use it instead of vanilla de-latin1.

I do this thing with several config files from different Linux distros, e.g. I use fontconfig files from Debian in Artix. BTW, I've never used *BSD too.
Title: Re: German keymap: Euro sign
Post by: linuxer on 24 January 2021, 19:50:14
Hi,

Edit your /usr/share/X11/xkb/symbols/de and check the relative field, as below is for Greek and reboot after to test the changes

(https://imgur.com/qPlqpIs.png)

gr layout (https://gitea.artixlinux.org/linuxer/greek-layout-dot-instead-of-comma-on-keypad/src/branch/master/gr#L18)
Title: Re: German keymap: Euro sign
Post by: berni51 on 25 January 2021, 13:45:45
Thank @linuxer , but under X11 everthing is OK and the keyboard works perfect.
It`s only a console problem.
Title: Re: German keymap: Euro sign
Post by: alium on 25 January 2021, 14:56:30
Put here your /etc/vconsole.conf and /etc/locale.conf (relevant part) and output from "locale -a"
Title: Re: German keymap: Euro sign
Post by: berni51 on 25 January 2021, 17:29:20
OK, here we are:
vconsole.conf
Code: [Select]
LOCALE="de_DE.UTF-8"
KEYMAP="de-latin1"
# FONT=eurlatgr
FONT="ter-v16b"
CONSOLEMAP=""

locale.conf
Code: [Select]
LANG=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_TIME=de_DE.UTF-8

Answer from locale -a:
[berni@k53u ~]$ locale -a
C
de_DE.utf8
en_US.utf8
POSIX
[berni@k53u ~]$
Title: Re: German keymap: Euro sign
Post by: alium on 25 January 2021, 20:04:11
my settings  /etc/vconsole.conf:

Code: [Select]
FONT_MAP=8859-2_to_uni
FONT=lat2-16
KEYMAP=cz-qwertz

can you try  set your  /etc/vconsole.conf to:

Code: [Select]
FONT_MAP=8859-1_to_uni
FONT=lat1-16
KEYMAP=de-latin1

I think the problem is somewhere in your  inappropriate combination in vconsole.conf
Title: Re: German keymap: Euro sign
Post by: ####### on 25 January 2021, 21:02:08
Temporary cheat which might work until a proper solution is found:
CTRL - SHIFT - u
then type 0x20ac (you can omit the '0x' too, and just type 20ac) and press enter.
Title: Re: German keymap: Euro sign
Post by: berni51 on 25 January 2021, 22:48:08
Thanks @alium. I reduced my vconsole.conf to exactly that minumum from your proposual, but it did'nt help.
I get each and every character from the keyboard, except the €.

Title: Re: German keymap: Euro sign
Post by: berni51 on 29 January 2021, 13:49:09
Temporary cheat which might work until a proper solution is found:
CTRL - SHIFT - u
then type 0x20ac (you can omit the '0x' too, and just type 20ac) and press enter.

Sorry, but I did not get this hint to work.
Title: Re: German keymap: Euro sign
Post by: ####### on 29 January 2021, 21:13:43
Yes, you're right. It works in a desktop terminal but when I do CTRL - ALT - F* and login on a tty it doesn't. And also this works in a desktop terminal:
$ echo -e "\u20ac"

but in the tty (which is running BASH, and has the same *utf8 LANG set) it gives a small solid square instead (even if I swap LANG to a eurozone one too.) So that doesn't help unfortunately.
Title: Re: German keymap: Euro sign
Post by: berni51 on 30 January 2021, 13:13:01
Probably I make a general mistake during installation - that's what I fear.
Firstly I installed Artix with an Artix-Xfce-openrc image on an Asus notebook, that's the system I talk about in this thread.
Yesterday I made a new installation on my Thinkpad T410, this time using the Artix-base-openrc image. I was very carefully during installation as I want to avoid any mistake.
OK, installation went fine - wth some slight problems during postinstall regarding the display manager. However I was able to solve this.
And what shall I say: I have the same € problem as on my Asus notebook! Under Xorg everything is fine, but on the console I don't get my € sign. As before all other soecial characters are OK: ¢,@,\,µ,| and so on.

What I would like to ask german members in this forum: Is there anybody out there with a working € character on the console on a german keyboard?
Title: Re: German keymap: Euro sign
Post by: ####### on 30 January 2021, 19:18:02
If I go higher in unicode than: $ echo -e "\u7e" which is  ~ in the console I get a square, I think that means "character not found".
There's a "consolefont" service (in OpenRC at least) which can be enabled, and it can be configured in /etc/conf.d/consolefont - perhaps that would help? It sounds promising.
Title: Re: German keymap: Euro sign
Post by: alium on 30 January 2021, 23:13:48
did you properly set /etc/conf.d/keymaps? here are some important settings about €
Title: Re: German keymap: Euro sign
Post by: ####### on 31 January 2021, 04:00:20
Consolefonts are in /usr/share/kbd/consolefonts
Testing in non-graphical tty:
Code: [Select]
$ showfont
(shows some characters)
$ setfont UniCyr_8x16
$ echo -e "\u20ac"
A Euro!!

$ setfont -u <fontname> gives an error about no unicode table thing.
Other fonts I tried had a euro symbol according to showfont but it wasn't working and some other symbol was shown, I think it must need some kind of unicode mapping in the font.
Enabling consolefont service in "boot" changed the square to a ? after rebooting.
So after the tests above, I put this in /etc/conf.d/consolefont:
Code: [Select]
#consolefont="default8x16"
consolefont="UniCyr_8x16"
and I get Euro signs not squares in my consoles without any setfont needed, although I have no keyboard binding, hopefully it should draw the right character for you too.
Title: Re: German keymap: Euro sign
Post by: berni51 on 31 January 2021, 11:16:37
@#######
Wow, that was great work, thanks a lot ! Your night job solved my problem up to 99,9%:
Yesterday I came up to the point, where instead of the square a question-mark appered. Then I gave up, drunk some red wine and slept well.

This morning I read your report and off course tried it imediately. Indeed the LatGrkCyr-8x16 gave me the € sign and I thought, that I've got it. Unfortunately this font took away the German Umlaute (üäöß) and some other special characters like µ and ~.
However now I knew that the battle was won.
So I tried serveral fonts from /usr/share/kbd/consolefont and ended at the lat0-sun16 font. With this font each and every character will be display correctly. ^° "² 3³§ //()=()\+*~#'µ|@€¢ - perfect.

I changed the fonts entry on both of my Artix noteboks and may now now mark this problem as solved.

Great thanks to all member who helped me and special thanks to Mr. #######, a real Hero Member.

Berni, happy now