SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
View Poll Results: Have you set up your Slackware to use UTF-8?
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Rep:
Quote:
Originally Posted by Didier Spaier
Maybe we should setup another poll to find out to which categories readers of this forum fall into?
Interesting idea (assuming that the users would be willing to vote).
***
By the way: maybe someone knows how LinuxQuestion.org counts the views:
1. If I enter the same post 100 times it counts each entrance.
2. If I enter the same post using the same IP number it counts that as one entrance but if I enter the same post using 10 different IP numbers it counts each IP number.
3. It doesn’t matter how many times I enter the post because LQ sets the cookie and counts all my views of the same post as a one view.
Last edited by w1k0; 12-12-2012 at 11:42 AM.
Reason: As I said I like to edit my posts...
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Rep:
irgunII,
You don’t specified your location except for the vague “Directly above the center of the earth” so I couldn’t match the best font file for you. In /usr/share/kbd/consolefonts directory there’s a lot of font files except lat2-16.psfu.gz. Maybe some other font would be better suitable for you than the font including Central European characters (ISO-8859-2 encoding called also Latin-2).
You don’t specified your location except for the vague “Directly above the center of the earth” so I couldn’t match the best font file for you. In /usr/share/kbd/consolefonts directory there’s a lot of font files except lat2-16.psfu.gz. Maybe some other font would be better suitable for you than the font including Central European characters (ISO-8859-2 encoding called also Latin-2).
USA, but it seems to be working with the font you suggested. I don't go into init 3 much anymore except the once in a while to install an nvidia driver anyway, heh.
Even if my assumption is false that's a good example of how UTF-8 allows to deal with RTL and LTR languages in the same document
Be it true or false, that doesn't answer your question anyway.
Heh heh...you hit the nail on the head. Good call! (except those who can read/write/speak Hebrew don't really use all the little 'dots' to help with the vowels, except for the young children in school ). It would have been kinda neat though if I could have entered my handle that way instead of phonetically like it is! lol
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Rep:
ארגון,
If you’d like to play with that one more time add at the end of /etc/rc.d/rc.local the following lines:
Code:
setfont -v iso08.16.gz
loadkeys il-heb.map
and run /etc/rc.d/rc.local in the console mode.
(The mentioned settings overwrite the settings from /etc/rc.d/rc.font and /etc/rc.d/rc.keymap files.)
Then press right Alt key with your right thumb and keeping it pressed try to type your name with the other fingers.
(I don’t know if it’s possible to write from right to left in the console mode.)
That font spoils the lines in Midnight Commander but in an non-harmful way. Maybe that configuration will keep you in the console mode for a while.
***
As I assume you know Hebrew. I maintain some application for Window Maker and the similar window managers. It recognizes the Western European languages (ISO-8859-1), the Central European languages (ISO-8859-2), and the languages using Cyrillic alphabet (ISO-8859-5). I wanted to implement also the Hebrew language (ISO-8859-8) but I don’t know it so I’m afraid I can made that in a wrong way – for example design the characters in a non-optimal way.
Let me know if you’re willing to install my application and test it in order to report whether everything is all right or specify what’s wrong. You don’t have to run Window Maker in order to test my application. It works in the other window managers and desktop environments as well.
***
(I hope I interpreted the string typed by Didier Spaier well.)
A warning remains, but the message is displayed promptly with all my fancy French characters. Here I use terminus, but you can replace it with one of the font displayed by xlsfonts (ex. "-adobe-helvetica-medium-r-normal-*-14-100-100-100-p-76-"). Just feed the empty "--" field of this one with a "*", and run xrdb -l ~/.Xresources to make X to reload your settings.
This fix also seems to work with xfig (replace above "Xmessage*" by "xfig*"), but sadly not with xdvi. With this one the best I get is a slightly broken selection menu (unexplicably, it doesn't render the "*.dvi" "File Mask" string, all except this being fine) using these options (it doesn't accept them under the "xdvi" resource class):
I still look for a way to make fbrun to accept accented character in input (it can handle them when they are passed with the "-text" option, but not in the interactive mode).
Quote:
Originally Posted by a4z
is there any advantage in using setfont over unicode_start ?
I think it's the same. With "vt.default_utf8" set to 1 or not set, the console is in UTF-8, so setfont will load the Unicode map of the given font.
Or maybe they simply do not know the answer because:
(1) They do not remember if/how they set up the character encoding at time of installation.
(2) They do not know what UTF-8 means/is.
(3) They do not know what a character encoding is or that there are several ways to encode a character or that several character encodings are available in Slackware.
(4) They visit any new thread in this forum, just in case they would find something interesting for them or someone they could help.
(5) Another reason I can't think of right now.
Maybe they do know the answer but choose simply not to vote.
If you’d like to play with that one more time add at the end of /etc/rc.d/rc.local the following lines:
Code:
setfont -v iso08.16.gz
loadkeys il-heb.map
and run /etc/rc.d/rc.local in the console mode.
(The mentioned settings overwrite the settings from /etc/rc.d/rc.font and /etc/rc.d/rc.keymap files.)
Then press right Alt key with your right thumb and keeping it pressed try to type your name with the other fingers.
(I don’t know if it’s possible to write from right to left in the console mode.)
That font spoils the lines in Midnight Commander but in an non-harmful way. Maybe that configuration will keep you in the console mode for a while.
Oh, no I was just saying it would have been kinda fun, but it'd be too much a PITA to actually use much anywhere as I'd either have anyone with a lick of sense throw e-mails in the trash without opening them thinking they were spam or worse, or the rest replying in e-mails or forums etc, what the heck those funny things were.
***
Quote:
Originally Posted by w1k0
As I assume you know Hebrew. I maintain some application for Window Maker and the similar window managers. It recognizes the Western European languages (ISO-8859-1), the Central European languages (ISO-8859-2), and the languages using Cyrillic alphabet (ISO-8859-5). I wanted to implement also the Hebrew language (ISO-8859-8) but I don’t know it so I’m afraid I can made that in a wrong way – for example design the characters in a non-optimal way.
Let me know if you’re willing to install my application and test it in order to report whether everything is all right or specify what’s wrong. You don’t have to run Window Maker in order to test my application. It works in the other window managers and desktop environments as well.
***
(I hope I interpreted the string typed by Didier Spaier well.)
Yep, you got the name correct without the vowels. Perfect.
My hebrew is really awfully poor (hell, my *english* is bad enough! lol). I've got dual-citizenship but only was there long enough to serve my 3 years in the Israeli army and I've not had to use the language since I came back to the states (didn't want to leave Israel but circumstances needed me back here and then I became disabled and haven't been able afford to go back since then) in '90.
I could at least try with what little I know/remember and still try to help...it'd be better than nothing, right? You'll have to explain in plain and simple terms how to work it and what you want me to do exactly...I'm no programmer or anything like that, just a simple user who likes Linux over M$ (I used M$ from ~'94 - '00 and got sick of it that fast).
If it'd be easier, here's my e-mail you can use afrotrap {aT] gee mail d0t c0m
I made the wrong choice during installation. (Slaps forehead. Why did I care that vi wouldn't work? I wouldn't touch vi with a ten foot pole! That old-school hesitation about new-fangled UTF-8 gives me a sinking feeling this distro will be outdated in other ways.)
I'm now looking at the Unicode-HOWTO in /usr/doc. It's verbose and is mainly arm-waving aboput UTF-8 while pointing to tarballs for this and that individual application. (Tarballs?! Don't they have a yum or apt-get equivalent?) It all looks very complicated. Perhaps a complete reinstall (approx 45 minutes last time) would actually be the easier, faster way.
Has anyone found a straightforward way to select character encoding system-wide?
Tarballs?! Don't they have a yum or apt-get equivalent?
Nope, and we don't want it.
Quote:
It all looks very complicated. Perhaps a complete reinstall (approx 45 minutes last time) would actually be the easier, faster way.
Has anyone found a straightforward way to select character encoding system-wide?
If you are able to change two lines (comment one and uncomment the other) in a text-file (/etc/profile.d/lang.sh) and if you are able to do that in less than 45 minutes then the reinstall is is not the easier or faster method.
Last edited by TobiSGD; 12-14-2012 at 08:20 AM.
Reason: fixed typo
If you are able to change two lines (comment one and uncomment the other) in a text-file (/etc(profile.d/lang.sh) and if you are able to do that in less than 45 minutes then the reinstall is is not the easier or faster method.
Thanks. The Unicode-HOWTO doesn't even mention lang.sh!
Could I have found this information myself somewhere in LinuxQuestions.org? I'm new to the site.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.