AuthorTopic: Cyrillic text problem (Read 12072 times)

HiWell, the problem is that I didn't get them. Cyrillic filenames are shown in file manager(thunar, pcmanfm, emelfm2, mc) like this: ??.??.??.??Also mp3 files in Cyrillic are shown in XMMS in the same way.

I installed fontfix and also tryed this.Doesn't changed a thing.I added russian keyboard layout, so I could type in russian, and could see russian letters in firefox and abiword, but everything else doesn't work at all.I could see filenames of these files on windows xp, and I took these files from windows 98, so I came to a conclusion that not all fonts used by windows are supported by VectorLinux.Could someone advise me something?Thanks a lot in advance.

ADDED:

Don't know, maybe it has something to do with encoding... I know almost nothing about this kind of staff.Thanks.

Well, if you want to keep US locale, but include utf-8 support do next:

-edit as root /etc/profile.d/lang.sh with your favourite editor

-comment this line with # sign

Code:

export LANG=en_US

-uncomment this line (a little below):

Code:

export LANG=en_US.UTF-8

That should solve problem for you. Wink

Else, you can set up locale for your language. Just type locale -a command, find line that suites your language and put it in edited file by replacing current setting. In example, for my language (Serbian) I would replace export LANG=en_US.UTF-8 with export LANG=sr_CS.utf8.

Thanks very much for your reply!I am now trying to do it. will report on results.

Searched for some help abroad - in russian Linux Forums... Found not much, yet. Their main goal is to make russian interface, but I want to keep the english's one...anyway, that's what I found useful:adding

#!/bin/sh# Enables Unicode processing in the current console.## 1. The input side: the keyboard driver.

# Set the keyboard driver in Unicode mode. (Default is ASCII mode.)# This really does nothing with the way normal keys are handled in# the kernel. All it does is:# - It is necessary for `dumpkeys' in order to not drop U+XXXX# entries from the keymaps.# - It is necessary for `loadkeys' in order to avoid warnings.# - Unicode characters typed as Alt-x1 ... Alt-xn (where x1,...,xn# are digits on the numeric keypad) will be emitted in UTF-8.

kbd_mode -u

# Change the keyboard mapping in such a way that the non-ASCII keys# produce UTF-8 encoded multibyte sequences, instead of single bytes# >= 0x80 in a legacy 8-bit encoding.

# Tell the graphics card how to display Unicode characters not# contained in the IBM 437 character set (on PCs). The font should# have a Unicode map attached, or explicitly specified, e.g.,# by giving `def.uni' as a second argument.

#DEFAULT_UNICODE_FONT=ter-u16nDEFAULT_UNICODE_FONT=LatArCyrHeb-16# Also drdos8x16 is a good candidate.

That gave me ability to type cyrillic in terminal(which I personally don't found wery useful - there are only english commands availible there:-) and see some of cyrillic filenames there, created in Vector (I could see them, but I have problems with files, left from my old windows 98 system) + now I could save cyrillic text in simple text formats(such as txt). before that I could only do that in complex ones(like rtf, doc, abw).Not much, but at least something...

I asked my friend from Ukraine who use windows xp(I strongly addvise him to switch to Vector. seems like he is moving in this direction) to send me *.txt files saved in different encodings. the result is:

Also there are:KOI8-RKOI8-UISO-8859-5ISO-8859-14ISO-IR-111WIN-1251IBM-855CP-866MacCyrillicMacUkrainian

Seems like Firefox understands all these encodings(At least I tried opening files that he send me with firefox and it works perfect, 4 out of 4) and it has all of them(except for ISO-8859-14) in its encoding menu.

So here comes the question:how to enable encodings in Vector?Thanks in advance.

ps.Just out of curiosity:Why there are so many encoding for russian? isn't one enough? it brings only problems and nothing more.

I thought maybe the problem is that I copied these files from CD-R burned under windows...maybe when I copied them, filenames get spoiled... So I googled a bit and found this and thisBut seems like these ubuntu fixes don't work with VL...

Also there are some progress:1) I installed microsoft fonts:At first I installed this package - it allows to decompress fonts.Then here comes fonts. These are Slack's packages, but they work great on VL.I get this info from here(it is in Russian).

#!/bin/sh# Load the keyboard map. More maps are in /usr/share/kbd/keymaps.if [ -x /usr/bin/loadkeys ]; then /usr/bin/loadkeys /usr/share/kbd/keymaps/i386/qwerty/ru-utf.map.gzfiThis should enable cyrillic keymap in console.also I installed mc that supports utf-8 from here.

I think that editing rc.font, rc.keymap and unicode-stat was bad idea. When X broke down(because I tried to do some bad stuff with my video card) and I had to fix it from console I noticed that there was lot of symbols like $#^%R$@^#*#%*#^% all over the screen...

3) I found this it says that it fixes bad cyrillic names in XMMS playlist. Af far it doesn't work for me, but maybe I just did something wrong...

4) Here is the program that should convert cyrillic filenames from one encoding to another. I truied it, but it doesn't seem to work... Or it even shouldn't work, if what I said at the beggining is true.If someone had any ideas about the stuff I need to make it work - please, write it here.Thanks in advance.

Budulay,With due respect to this forum it seems like there are not many of Cyrillic encding users here. I think it would make more reason to post about your problems (actually, I've got similar problems with cyrillic ecoding on VL, but that's not critical for me) on some russian forums. There are quite a big fans of Slack in Russia.Oh, and if you find a solution, don't forget about us here

Actually I have already done that:-) but there seems not a lot of people with my problem(bad cyrillic filenames from windows mashine)...I found information that on Zenwalk there is no such problem at all...Will proceade with my research when I'll be back home.

Hi Villu, sorry that I didn't noticed your post before.Thank you very much for the information. Now it all makes perfect sence.I couldn't see those filenames in english win98, only in russian one. That's because the russian version is the only one that supports old DOS cyrillic encoding!I will search the web and see what I could find.Thank you once again for your effort.

Budulay,With due respect to this forum it seems like there are not many of Cyrillic encding users here. [...]Oh, and if you find a solution, don't forget about us here

Hi Fuelinux,

well, I'm actually trying to convince a translator friend of mine (English <-> Russian <-> German) to drop Ubuntu like - as is said in American - a hot potato, in favor of VL --- they've got Cyrillic font and keyboard issues on Ubu'

Actually the keyboard works fine. There are also some Cyrillic fonts present(I also have a Zenwalk's package with a whole bunch of Cyrillic fonts, so if you are interest I can put a link here). If locale is set to UTF-8, you can even create files with Cyrillic filenames or copy such files from winxp(at least that's what I tested).The problem comes when you have files from the older species of a windows family, like win98. As VillMann pointed out, they use old DOS encoding for Cyrillic, which is not supported by VL.I am not sure how all this support of an encoding works. Is this a VL that does not support it, or is it a file manager's fault.There is an encoding directory somewhere in X11's stuff(sorry for such vagueness, I will post exact location as soon as I will have some time to spend on this issue), and I am thinking that is a place where the problem lies.There is also a problem with Cyrillic mp3 filenames and tags, which I have no explanation for. There is a project called rusxmms that seems to fox that, but for a long time now I couldn't get past a title web page b/c of the lack of free time.I will continue with this research as soon as I will have a time opening.Thank you very much for your support and encouragement. At least now I know that I am not alone