LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Have you set up your Slackware to use UTF-8? (https://www.linuxquestions.org/questions/slackware-14/have-you-set-up-your-slackware-to-use-utf-8-a-4175440586/)

irgunII 12-12-2012 08:42 AM

Quote:

Originally Posted by w1k0 (Post 4847426)
irgunII,

1) Edit your /etc/lilo/conf, replace:

Code:

append=" vt.default_utf8=0"
with:

Code:

append=" vt.default_utf8=1"
and rerun lilo command.

2) Edit your /etc/rc.d/rc.font and put there the line:

Code:

setfont -v lat2-16.psfu.gz
After reboot everything should work well.

(Midnight Commander in the mode you described looks and works horrible.)

That seems to have done the trick! Thanks, w1k0!

w1k0 12-12-2012 11:21 AM

Quote:

Originally Posted by Didier Spaier (Post 4847743)
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.

w1k0 12-12-2012 11:29 AM

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).

Didier Spaier 12-12-2012 11:45 AM

Maybe irgun should be spelled אִרְגּוּן

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.

irgunII 12-12-2012 05:28 PM

Quote:

Originally Posted by w1k0 (Post 4847860)
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).

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.

irgunII 12-12-2012 05:32 PM

Quote:

Originally Posted by Didier Spaier (Post 4847872)
Maybe irgun should be spelled אִרְגּוּן

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

w1k0 12-12-2012 08:53 PM

ארגון,

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.)

a4z 12-13-2012 02:18 AM

is there any advantage in using setfont over unicode_start ?

NonNonBa 12-13-2012 12:36 PM

Quote:

Originally Posted by w1k0 (Post 4847433)
NonNonBa,

Over 1000 views and below 100 votes in your poll. Is it so hard to press the [Vote Now] button?

Maybe the Slackware community is very small, but utterly excited by this thread. :D

BTW, I have finally fixed the issues I had with xmessage. I just added these two lines in my .Xresources:

Code:

Xmessage*fontSet:                  -xos4-terminus-medium-r-normal-*-22-220-72-72-c-110-*
Xmessage*international:            true

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):

Code:

xdvi -xrm "*international:true" -xrm "*fontSet:-xos4-terminus-medium-r-normal-*-22-220-72-72-c-110-*"
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.

solarfields 12-13-2012 12:44 PM

YES

so no problems with ä, ö, å, æ, and ø :P

chrisretusn 12-13-2012 05:54 PM

Quote:

Originally Posted by Didier Spaier (Post 4847743)
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.

irgunII 12-13-2012 06:31 PM

Quote:

Originally Posted by w1k0 (Post 4848169)
ארגון,

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 (Post 4848169)
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

joncoles 12-14-2012 06:28 AM

Would like to use UTF-8, but how?
 
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?

TobiSGD 12-14-2012 06:37 AM

Quote:

Originally Posted by joncoles (Post 4849208)
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.

joncoles 12-14-2012 07:03 AM

Quote:

Originally Posted by TobiSGD (Post 4849216)
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.


All times are GMT -5. The time now is 06:02 PM.