You are not logged in.

#1 2012-10-18 21:19:26

cybuch
Member
Registered: 2012-02-23
Posts: 30

[Solved]Polish fonts

Hello,
I'm using english as my default system language, but I'm polish and I'm working on files with polish diacritical marks. Most of apps work just fine, but when I'm downloading an archive and try to open it with Ark i got random marks instead of polish diacritical marks and that's kind of annoying.
In locale.gen I've uncommented en_US ISO-8859-2 (or mby I changed it myself for 8859-2), but anyways it contains polish fonts. What to do with that?

Last edited by cybuch (2012-11-07 15:34:07)

Offline

#2 2012-10-18 21:21:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Polish fonts

Uncomment some Polish locales in locale.gen and regenerate locales.

$ locale -a
C
POSIX
en_US
en_US.iso88591
en_US.utf8
pl_PL
pl_PL.iso88592
pl_PL.utf8
polish

Offline

#3 2012-10-22 10:57:29

cybuch
Member
Registered: 2012-02-23
Posts: 30

Re: [Solved]Polish fonts

locale -a output

C
POSIX
en_US
en_US.iso88592
en_US.utf8
pl_PL
pl_PL.iso88592
pl_PL.utf8
polish

Still the same

Offline

#4 2012-10-22 11:39:03

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [Solved]Polish fonts

I may be wrong, but if the archive content file names were saved in, say, CP1250 encoding (or any Windows specific one, regardless the language), you will extract them as such only. You may be able to solve the problem, however, using convmv, like this:

convmv -f cp1250 -t utf-8 your_tricky_file.foo

:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#5 2012-10-22 20:51:34

cybuch
Member
Registered: 2012-02-23
Posts: 30

Re: [Solved]Polish fonts

@up
Doesn't work. Anyways that's not the way to do it, because when I had polish as my leading language on previous arch installation there weren't any problems at all, so I guess that's something to do with de/encoding/charset

Offline

#6 2012-10-23 20:36:08

robug
Member
Registered: 2010-11-17
Posts: 28

Re: [Solved]Polish fonts

Does your problem affect tty or you DE as well. They use different config files (as far as i remember). Also what DE are you using?
I might actually share my config files with you since everything is working smoothly on my polish instillation.
You could also send me your file by e-mail just so I can confirm if my configs will actually help.

Offline

#7 2012-10-24 20:59:54

cybuch
Member
Registered: 2012-02-23
Posts: 30

Re: [Solved]Polish fonts

@up
I use KDE, could you write which config files you meant?

Offline

#8 2012-10-25 10:12:15

robug
Member
Registered: 2010-11-17
Posts: 28

Re: [Solved]Polish fonts

It just occurred to me that i'm using two different DEs on my machines: Gnome3 and XFCE and for the latter i don't remember making language configs aside from the keyboard layout, so it's probably not the DE's config files.

A good start would be checking if you got the fonts installed: see if you got ttf-dejavu fonts on your pc (my favorite).
And btw. locale files don't contain fonts :<

And if you're experiencing the same problem under TTY i'd be nice if you'd post your /etc/vconsole.conf file (i'm assuming your system is up to date and is running systemd)

Offline

#9 2012-10-25 21:02:54

cybuch
Member
Registered: 2012-02-23
Posts: 30

Re: [Solved]Polish fonts

@up
I've got most of tts fonts including dejavu. My system is up to date and systemd is running - it's fresh Arch installation. I hadn't got the file vconsole.conf so I've created it and put there:

KEYMAP=pl
FONT=lat9w-16
FONT_MAP=8859-2_to_uni

Rebooted system, the problem still appears. Any ideas?

Offline

#10 2012-10-26 18:53:05

robug
Member
Registered: 2010-11-17
Posts: 28

Re: [Solved]Polish fonts

Running out of ideas...

Maybe try recreating locales with only polish UTF-8 uncommented?
this won't hurt to try, since the en locale has less characters than the pl one.

And yes. i have only pl_PL.UTF-8 UTF-8 uncommented on both my PCs and it's working.
In case you'd wonder: the UTF-8 part is posted twice within the file.

Offline

#11 2012-11-04 19:14:15

cybuch
Member
Registered: 2012-02-23
Posts: 30

Re: [Solved]Polish fonts

@up
Tried that as well - still nothing.

Offline

#12 2012-11-04 19:49:45

Neky
Member
Registered: 2010-05-18
Posts: 38

Re: [Solved]Polish fonts

I have similar problems with serbian characters, maybe the same problem? DE is also KDE, and the problem started after I switched to systemd, as per wiki article.

I have tried to recreate locales, create locale.conf file, even reinstalled glibc - and all serbian characters (which work fine here šćčžđ) appear as ? in KDE and terminal apps.

Offline

#13 2012-11-04 22:00:48

robug
Member
Registered: 2010-11-17
Posts: 28

Re: [Solved]Polish fonts

could you try installing another DE?
just to test if the same problem occurs there.
i'm not actually telling you to switch to a different DE for ever. just to test if the problem is system-wide or just for DE

Offline

#14 2012-11-04 22:01:06

hiciu
Member
Registered: 2010-08-11
Posts: 84

Re: [Solved]Polish fonts

Could you post output from this?

env | grep -E '(LC|LANG)'

edit: also, try to run ark / dolphin from xterm / konsole / your terminal emulator and see if it still display special characters as '?'.

Last edited by hiciu (2012-11-04 22:03:02)

Offline

#15 2012-11-04 22:03:49

Neky
Member
Registered: 2010-05-18
Posts: 38

Re: [Solved]Polish fonts

If you asked me, here is the output:

LC_PAPER=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_COLLATE=C
LC_IDENTIFICATION=en_US.UTF-8
LANG=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LANGUAGE=
LC_CTYPE=en_US.UTF-8
LC_TIME=sr_RS.UTF-8
LC_NAME=en_US.UTF-8

:edit:

Running dolphin from terminal changes nothing. Could this be related with this message?

Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.

Last edited by Neky (2012-11-04 22:05:47)

Offline

#16 2012-11-04 22:13:21

hiciu
Member
Registered: 2010-08-11
Posts: 84

Re: [Solved]Polish fonts

Neky wrote:

If you asked me, here is the output:

LC_PAPER=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_COLLATE=C
LC_IDENTIFICATION=en_US.UTF-8
LANG=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LANGUAGE=
LC_CTYPE=en_US.UTF-8
LC_TIME=sr_RS.UTF-8
LC_NAME=en_US.UTF-8

That looks ok, everything is in utf8 (I have no variable named LANGUAGE in my system, but I don't think this causes your troubles). Could you try this and tell us what happens / how it looks in konsole and in dolphin? Only filenames are affected, file contents is ok?

echo šćčžđ > šćčžđ
cat šćčžđ

edit: (could you post screenshot with these commands in terminal with dolphin and that file opened in some text editor?)

Last edited by hiciu (2012-11-04 22:21:55)

Offline

#17 2012-11-04 22:22:23

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [Solved]Polish fonts

Neky wrote:

Running dolphin from terminal changes nothing. Could this be related with this message?

Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.

No.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#18 2012-11-04 22:41:26

Neky
Member
Registered: 2010-05-18
Posts: 38

Re: [Solved]Polish fonts

Echoing those letters got me this:

echo ????? > ?????
bash: ?????: ambiguous redirect

and screenshot: http://imgur.com/93iL7 Those hidden directories are in my home dir, and "?kola" should spell "škola" (school in serbian), which also exists in my home dir,

Offline

#19 2012-11-04 22:48:02

hiciu
Member
Registered: 2010-08-11
Posts: 84

Re: [Solved]Polish fonts

Neky wrote:

I have tried to recreate locales, create locale.conf file, even reinstalled glibc - and all serbian characters (which work fine here šćčžđ) appear as ? in KDE and terminal apps.

grep -v '#' /etc/locale.gen
cat /etc/locale.conf
sudo locale-gen

Offline

#20 2012-11-04 22:55:32

Neky
Member
Registered: 2010-05-18
Posts: 38

Re: [Solved]Polish fonts

Output of

[neky@monstarr ~]$ grep -v '#' /etc/locale.gen
en_US.UTF-8 UTF-8
[neky@monstarr ~]$ cat /etc/locale.conf
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=sr_RS.UTF-8
LC_COLLATE=C
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
[neky@monstarr ~]$ sudo locale-gen
Generating locales...
  en_US.UTF-8... done
Generation complete.

off to reboot

Offline

#21 2012-11-04 23:03:28

hiciu
Member
Registered: 2010-08-11
Posts: 84

Re: [Solved]Polish fonts

Neky wrote:

Output of

[neky@monstarr ~]$ grep -v '#' /etc/locale.gen
en_US.UTF-8 UTF-8

Try to uncomment 'sr_RS UTF-8' in /etc/locale.gen and regenerate locales (although it doesn't make any sense for me, this should work, everything looks good).

Offline

#22 2012-11-05 06:15:55

cybuch
Member
Registered: 2012-02-23
Posts: 30

Re: [Solved]Polish fonts

[root@MedeiS cybuch]# env | grep -E '(LC|LANG)'
LANG=C
LANGUAGE=

Offline

#23 2012-11-05 07:45:12

robug
Member
Registered: 2010-11-17
Posts: 28

Re: [Solved]Polish fonts

cybuch wrote:
[root@MedeiS cybuch]# env | grep -E '(LC|LANG)'
LANG=C
LANGUAGE=

huh? there's such language as "C"?

here's my output of env | grep -E '(LC|LANG)'

LANG=pl_PL.UTF-8

Offline

#24 2012-11-05 13:11:00

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [Solved]Polish fonts

robug wrote:

huh? there's such language as "C"?

Sure there is. However, it should not be set a default one for all purposes (in a majority of desktop-related cases at least).

Last edited by bohoomil (2012-11-05 13:12:14)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#25 2012-11-05 13:11:12

dif
Member
From: Stalowa Wola, Poland
Registered: 2009-12-22
Posts: 137

Re: [Solved]Polish fonts

A simple suggestion.  Mentioned already by robug. Perhaps all you need to do is set the keyboard layout. I don't know much about KDE, but under gnome you just go to the main settings panel (ustawienia systemu), select the keyboard (klawiatura), select keyboard layout (układ klawiatury), and add the Polish one if you don't have it already. Then you make it your default one. You can remove the US layout without any harm.

The file vconsole.conf sets your TTY terminal fonts, but I don't think it is what you are trying to set.

Offline

Board footer

Powered by FluxBB