LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-18-2015, 01:13 AM   #1
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Rep: Reputation: 231Reputation: 231Reputation: 231
problem with file and directory names


hi
I'm a new linux user, so forgive me if my question is amateurish.
I installed slackware 14.0 32 bit on my asus k45vm laptop and made a dual boot with windows 7. I have many file and folders in my windows partitions which have been named by persian characters, but shell can not show their names correctly and shows strange characters. persian is a right to left language like arabic. this problem also occur in thunar file manager (i did not try others). I am not sure but I guess it is something about character encoding. is there any solution or i have to rename those files and folders

sorry for my english
 
Old 01-18-2015, 01:52 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Have you installed arabic/persian font? Terminals running in X can show but not those which run in VT (Virtual Terminal).

Please install appropriate fonts and see if thunar shows it.

Or you use a different file manager like nautilus.
 
Old 01-18-2015, 04:20 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Hi,

You need to use the same encoding as in Windows. in Windows, is it a legacy one like Windows-1256 or (more probably) UTF-8?

@veerain: if you install fbterm you will be able to use a True Type font in a VT (not only under X) using e.g. Deja Vu Sans or Deja Vu Sans Mono that can display all 40 glyphs needed for Farsi.

Last edited by Didier Spaier; 01-18-2015 at 06:15 AM. Reason: minor fix
 
1 members found this post helpful.
Old 01-18-2015, 08:07 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
  • I knew kmscon but not fbterm.
  • Can we switch between fbterm and X.
  • Also howto input other languages; does it provides input method.
 
Old 01-18-2015, 08:18 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by veerain View Post
  • I knew kmscon but not fbterm.
  • Can we switch between fbterm and X.
  • Also howto input other languages; does it provides input method.
  • I didn't mention kmscon just because I have no experience with it and don't know which fonts it can handle. But that could be another option.
  • The same way as switching between a tty and X
  • Yes see UCIMF and ibus-fbterm. Caveat emptor: I never used one of those myself.

PS Volunteers are welcome to translate Slackware installers and administrative tools in all languages spoken in India. They can just join the Slint project

Last edited by Didier Spaier; 01-18-2015 at 08:23 AM. Reason: PS added.
 
1 members found this post helpful.
Old 01-19-2015, 12:47 AM   #6
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
thanks didier
but I don't know how to change encoding in slackware, I couldn't find any helpful comment in internet about it
Also I cant access to http://code.google.com due to the sanctions against my country
 
Old 01-19-2015, 05:06 AM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
You might like to read this article on SlackDocs.

Also, you can get a bidirectional console. As FriBidi is already shipped in a full Slackware installation, you just need to install in addition the bicon (as in Bidirectionnal Console) application. You can get it here.

I couldn't find a recent Slackware bicon package and might consider contributing a SlackBuild for it. Meanwhile you can do this:

Click "Download ZIP". This will download bicon-master.zip to your computer. The command "unzip bicon-master.zip" will create a directory bicon-master. Then, do this to compile and install bicon:
Code:
cd bicon-master
./autogen.sh
./configure
make
su
make install
This is a quick and dirty way to install it, but as all files will be installed in sub-directories /usr/local/{include,lib,share}/bicon, plus two files "bicon" and "bicon.bin" in /usr/local/bin, you know how to remove them (you can also run as root "make uninstall" in the same directory if you kept it).

To start bicon, just type in a console or tty
Code:
/usr/local/bin/bicon
To know more read README in the bicon-master directory.

Also, The Arabeyes website provides (among other stuff) fonts for Farsi. If you can't access the project space on Sourceforge you might try their website in Arabic or in English.

Last edited by Didier Spaier; 01-19-2015 at 05:15 AM.
 
1 members found this post helpful.
Old 01-24-2015, 05:36 AM   #8
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Also, you can get a bidirectional console. As FriBidi is already shipped in a full Slackware installation, you just need to install in addition the bicon (as in Bidirectionnal Console) application
thanks again, I did this.
still problem with character encoding under X11 remains. mentioned article doesn't say anything about enabling UTF-8 encoding for X11
 
Old 01-24-2015, 05:45 AM   #9
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
Here is my line for the Windows partition from my /etc/fstab file:
Code:
/dev/sda5        /win             ntfs-3g     fmask=111,dmask=000,locale=en_US.UTF-8 1   0
en_US.UTF-8 is probably the default locale, but I added it anyway. Also I have edited my /etc/profile.d/lang.sh to contain the line
Code:
export LANG=en_US.UTF-8
(of course, you also should comment-out the non-Utf line). I don't remember doing anything extra and everything just works.
 
1 members found this post helpful.
Old 01-24-2015, 05:54 PM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
About UTF-8 encoding: I think that setting LANG to an UTF-8 encoding should be enough, as suggested by Ilgar.

Unfortunately there is no UTF-8 encoding for Farsi in glibc.

That said, that shouldn't be an issue, you can pick another locale UTF-8 encoded to set LANG and set other internationalization variables otherwise.

By the way, the only locale definitions for Farsi are in the file /usr/share/i18n/locales/fa_IR. Its author could certainly tell you more, but he moved from Tehran to California and works @ Google now as Internationalization Engineer.

Last edited by Didier Spaier; 01-24-2015 at 06:00 PM.
 
1 members found this post helpful.
Old 01-24-2015, 05:58 PM   #11
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
but he moved from Teheran to California and works @ Google now.
So he's lost to the dark side, eh?
 
Old 01-24-2015, 06:07 PM   #12
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
So he's lost to the dark side, eh?
This remark is way off topic.

In any case a lot of Iranian scientists work in American universities and I don't think that they cut ties with their country. For instance Maryam Mirzakhani, professor at the Stanford University, was awarded a Fields Medal last year.

Last edited by Didier Spaier; 01-24-2015 at 06:09 PM.
 
1 members found this post helpful.
Old 01-24-2015, 06:13 PM   #13
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
It was off topic, but I was referring to Google as the dark side, not Iran.
 
Old 01-24-2015, 06:19 PM   #14
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
I misunderstood, sorry.
 
Old 01-27-2015, 01:13 AM   #15
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
en_US.UTF-8 is probably the default locale, but I added it anyway. Also I have edited my /etc/profile.d/lang.sh to contain the line
Code:

export LANG=en_US.UTF-8
Worked, thanks a lot
Quote:
but he moved from Tehran to California and works @ Google now as Internationalization Engineer.
we call this "Scape of Brains".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Listing file names side by side with directory names anon84 Linux - Newbie 3 04-03-2012 10:13 AM
[SOLVED] How to changing same file names by their directory names? bayaraa_u Linux - General 3 04-09-2010 08:26 AM
& character in file/directory names paddyjoy Programming 4 03-16-2006 10:41 PM
Getting file names in a directory using C on linux. rajsun Programming 4 06-10-2005 12:47 AM
monitoring directory to get the modified file names appas Programming 1 09-06-2004 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration