View previous topic :: View next topic |
Author |
Message |
Lixos n00b
Joined: 04 Apr 2015 Posts: 19
|
Posted: Tue Apr 21, 2015 11:47 am Post subject: [SOLVED] Lokalisierung mit UTF-8 (Nano) |
|
|
Zu obigen Thema benötige ich eure Unterstützung.
Die Guides zur Lokalisierung und zu UTF-8 habe ich bereits gelesen.
Ausgangssituation:
Ich habe im Editor Nano einen Text geschrieben, welchen ich speichern möchte.
Dann folgt beim Beenden des Editors der Hinweis:
Quote: | Möchten Sie die Änderungen (Nein verwirft die Änderungen) speichern? |
Habe ich die Lokalisierung auf English eingestellt en_US.UTF-8, steht das Wort NEIN im obigen Text in "", also wird als "Nein" dargestellt.
Habe ich die Lokalisierung auf Deutsch eingestellt de_DE.UTF-8, steht das Wort NEIN im obigen Text in einem schwarz unterlegen ?, also wird als ?Nein? dargestellt.
Warum ist die Darstellung so unterschiedlich und wie kann man dies beheben?
-----------------
Desweiteren ist mir aufgefallen, dass bei der Einrichtung der Lokalisierung je nach Variante, die
locale
unterschiedlich gesetzt werden.
Variante 1: (mittels locale.gen)
Hinzufügen des folgenden Eintrages:
de_DE.UTF-8 UTF-8
anschließend ein locale-gen
und mit eselect locale set das entsprechende Profil ausgewählt.
(In der /etc/env.d/02locale steht nun LANG="de_DE.utf8")
Variante 2: (händisch in /etc/env.d/02locale)
LANG="de_DE.UTF-8"
LC_COLLATE="C"
Danach ein env-update && source /etc/profile und die Einstellungen sollten übernommen werden.
Interessant ist jetzt, dass die locale bei Variante 1 als de_DE.utf8 gesetzt werden
und bei Variante 2 als de_DE.UTF-8
Welche Variante ist nun richtig?
In dem Guide zur Lokalisierung wird für OpenRC die Angabe mittels LANG=de_DE.UTF-8 angegeben und für Systemd mit LANG=de_DE.utf8.
Allerdings nutze ich lediglich OpenRC und habe Systemd im Kernel nicht aktiviert.
Gruß Lixos
---------------------------------------------------------------------------------------------------------------------------
Anlagen:
Ausgabe von locale:
Quote: |
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE=C
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES=de_DE.UTF-8
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
|
Ausgabe von eselect Profile list mit Varianten 1 & 2:
Quote: |
Available targets for the LANG variable:
[1] C
[2] POSIX
[3] de_DE
[4] de_DE.iso88591
[5] de_DE.iso885915@euro
[6] de_DE.utf8
[7] de_DE@euro
[8] deutsch
[9] en_US
[10] en_US.iso88591
[11] en_US.utf8
[12] german
[13] de_DE.UTF-8 *
[ ] (free form)
|
Inhalt meiner consolefont:
Quote: |
# The consolefont service is not activated by default. If you need to
# use it, you should run "rc-update add consolefont boot" as root.
#
# consolefont specifies the default font that you'd like Linux to use on the
# console. You can find a good selection of fonts in /usr/share/consolefonts;
# you shouldn't specify the trailing ".psf.gz", just the font name below.
# To use the default console font, comment out the CONSOLEFONT setting below.
consolefont="lat9w-16"
# consoletranslation is the charset map file to use. Leave commented to use
# the default one. Have a look in /usr/share/consoletrans for a selection of
# map files you can use.
consoletranslation="8859-15_to_uni"
# unicodemap is the unicode map file to use. Leave commented to use the
# default one. Have a look in /usr/share/unimaps for a selection of map files
# you can use.
# unicodemap="lat9w"
|
Inhalt meiner /etc/locale.gen:
Quote: |
en_US ISO-8859-1
en_US.UTF-8 UTF-8
#ja_JP.EUC-JP EUC-JP
#ja_JP.UTF-8 UTF-8
#ja_JP EUC-JP
#en_HK ISO-8859-1
#en_PH ISO-8859-1
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
de_DE.UTF-8 UTF-8
#es_MX ISO-8859-1
#fa_IR UTF-8
#fr_FR ISO-8859-1
#fr_FR@euro ISO-8859-15
#it_IT ISO-8859-1 |
Last edited by Lixos on Tue Apr 21, 2015 7:51 pm; edited 1 time in total |
|
Back to top |
|
|
py-ro Veteran
Joined: 24 Sep 2002 Posts: 1734 Location: Velbert
|
Posted: Tue Apr 21, 2015 1:59 pm Post subject: |
|
|
Ich denke mal du redest von der Textkonsole.
Deine UTF-8 Einrichtung ist richtig, nur gibt es aktuell kaum Fonts für die Konsole die tatsächlich alle oder zumindest die deutschen Glyphen haben.
Ein Beispiel wäre:
Code: | consolefont="Unifont-APL8x16.psf"
[I] media-fonts/unifont
Available versions: 5.1.20080914 (~)6.3.20131006 (~)6.3.20131020 (~)6.3.20131217 (~)6.3.20140204 (~)7.0.01 (~)7.0.03 (~)7.0.05 (~)7.0.06 {X fontforge utils}
Installed versions: 7.0.06(12:42:49 24.03.2015)(X -fontforge -utils)
Homepage: http://unifoundry.com/
Description: GNU Unifont - a Pan-Unicode X11 bitmap iso10646 font
|
Bye
Py |
|
Back to top |
|
|
Lixos n00b
Joined: 04 Apr 2015 Posts: 19
|
Posted: Tue Apr 21, 2015 7:51 pm Post subject: |
|
|
Hallo Py,
meine Fragestellung bezieht sich auf die Konsole.
In der Xorg - Umgebung klappt alles wunderbar.
Ich habe jetzt den Font für die Konsole auf Terminus umgestellt.
Schaut besser aus und damit werden die Zeichen korrekt dargestellt.
Danke für deine Hilfe.
Gruß Lixos |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|