LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2010, 04:22 AM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
/usr/share/X11/locale


Hi all...

I am trying to do Multi_key composition...But not able to find which is my character encoding scheme under /usr/share/X11/locale/

I have several direcotries under this folder...How can i come to kno which is my character encoding scheme..Any command for this ?


Any help will be greatly appreciated...

Thanks in advance...
 
Old 01-04-2010, 02:18 PM   #2
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 9
Posts: 1,317

Rep: Reputation: 153Reputation: 153
I'm not really sure, but in OpenOffice.org, different character sets can be selected by Menu File - Save As, File type Text Encoded selected (or, if wishing to change the encoding of an already existing file: Menu File - Open, File type Text Encoded selected.)

The default character set for Linux is iso_8859_1. However, other character sets are likely in place on your machine as well. If you're using x-windows, rather than the command line, then the command "xlsfonts" will list all the fonts (there are a lot of them) and tell you which character set is in play with any particular font on your machine. So, to find out which character scheme is in place with a particular font you're using -- for example, if you're using OpenOffice.org and have chosen Liberation Serif, then enter the following command in a terminal (like xterm) to get the information about your current character encoding scheme being used:
Code:
mark@debian:~$ xlsfonts *liberation*
-ascender-liberation.mono-bold-i-normal--0-0-0-0-p-0-iso8859-1
-ascender-liberation.mono-bold-r-normal--0-0-0-0-p-0-iso8859-1
-ascender-liberation.mono-medium-i-normal--0-0-0-0-p-0-iso8859-1
-ascender-liberation.mono-medium-r-normal--0-0-0-0-p-0-iso8859-1
-ascender-liberation.sans-bold-i-normal--0-0-0-0-p-0-iso8859-1
-ascender-liberation.sans-bold-r-normal--0-0-0-0-p-0-iso8859-1
-ascender-liberation.sans-medium-i-normal--0-0-0-0-p-0-iso8859-1
-ascender-liberation.sans-medium-r-normal--0-0-0-0-p-0-iso8859-1
-ascender-liberation.serif-bold-i-normal--0-0-0-0-p-0-iso8859-1
-ascender-liberation.serif-bold-r-normal--0-0-0-0-p-0-iso8859-1
-ascender-liberation.serif-medium-i-normal--0-0-0-0-p-0-iso8859-1
-ascender-liberation.serif-medium-r-normal--0-0-0-0-p-0-iso8859-1
mark@debian:~$
In this case, it is using the default. If you're using an outside font, such as Verdana (which is a biggie), there may be different character sets (why, exactly, I don't know):
Code:
mark@debian:~$ xlsfonts *verdana*
-microsoft-verdana-bold-r-normal--0-0-0-0-p-0-microsoft-cp1251
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-iso10646-1
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-iso8859-1
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-iso8859-10
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-iso8859-13
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-iso8859-14
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-iso8859-15
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-iso8859-2
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-iso8859-3
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-iso8859-4
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-iso8859-5
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-iso8859-7
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-iso8859-9
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-koi8-r
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-koi8-u
-microsoft-verdana-medium-i-normal--0-0-0-0-p-0-microsoft-cp1251
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-iso10646-1
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-iso8859-1
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-iso8859-10
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-iso8859-13
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-iso8859-14
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-iso8859-15
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-iso8859-2
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-iso8859-3
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-iso8859-4
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-iso8859-5
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-iso8859-7
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-iso8859-9
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-koi8-r
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-koi8-u
-microsoft-verdana-medium-r-normal--0-0-0-0-p-0-microsoft-cp1251
To display the characters in an x-font, use the xfd tool (aka x font display). For instance, if you've been using Liberation Serif, regular normal text, then after having determined the exact font name via xlsfonts (see above), you can get a display of its characters via the xfd command:
Code:
xfd -fn '-ascender-liberation.serif-medium-r-normal--0-0-0-0-p-0-iso8859-1'
This will cause a box to pop up that will display the characters in the font for you.

To select a font name from all the fonts on your system, the command "xfontsel" can be used. After using this to determine which font you desire (and its accompanying character set) I think you could then use the aforementioned OpenOffice.org procedure for applying the different character set(s) to your document (useful if the desired character set or font is not listed in OOo's default font choices).

Last edited by mark_alfred; 01-04-2010 at 06:56 PM. Reason: forgot a closing bracket
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/usr/share/locale jhwilliams Fedora 2 11-22-2007 06:15 PM
Why were the /usr/X11 directories removed in 12.0? PeteRossi Slackware 2 07-16-2007 05:26 PM
Help : X11 Locale Not Supported pokkie Linux - Software 1 08-02-2004 11:43 AM
no locale.h in my /usr/inclide/ why ?? Joe_Zhu Debian 4 01-07-2004 11:34 PM
/usr/share/locale chrismiceli Linux - General 1 08-09-2003 11:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration