Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: Yleisajattelija on February 11, 2012, 08:28:51 AM

Title: Euro key missing pc105, fi keyboard, Xorg
Post by: Yleisajattelija on February 11, 2012, 08:28:51 AM
Probably font encoder have to be changed from ISO-8859-1-> ISO-8859-15, but how?

Xorg docs are old, very old.

 If those Xorg -docs are concurrent, new configuration should be done from xsession -file, I think.

Modern way would be just to set LANG variable:

export LANG="fi_FI@euro ISO-8859-15"

How this should do for TC?
Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: Rich on February 11, 2012, 08:43:22 AM
Hi Yleisajattelija
Go to the search page and search for 8859.
Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: Yleisajattelija on February 11, 2012, 09:53:14 AM
Okay, let it be UTF-8 then (don't care, whatever works is good for me).

How do I setup UTF-8?
Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: Yleisajattelija on February 11, 2012, 09:54:33 AM
Use search, I know, I know...
Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: curaga on February 11, 2012, 12:42:49 PM
Which apps? I don't think locale matters here, the Xorg keymap for fi has Euro for altgr-e.

If you have a proper font for the app, you should see the euro sign correctly.
Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: Yleisajattelija on February 11, 2012, 01:42:25 PM
Keymap is "fi-latin9.kmap". Euro symbol is missing, other special characters OK.

getlocale.tcz -> mylocale.tcz(finnish UTF-8 selected, onboot) -> on console typing "locale" gets "LANG=C" (I think should be "LANG=fi", if locales loaded correctly).

Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: curaga on February 11, 2012, 01:55:12 PM
You spoke of Xorg in the first post? Anyway, you still need proper fonts for the app.

Locale is not set automatically, did you set it somewhere?
Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: Yleisajattelija on February 11, 2012, 02:03:28 PM
Xorg is.

I think it is up the distro how locales are set. TC can do it how it wants, too.

Best would be if, Xorg could read locales correctly on Xorg-boot from LOCALE vars, with default font encoder table.

kill X -> export LANG=fi_FI.UTF-8" -> startx -> resulting mess.
Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: Yleisajattelija on February 11, 2012, 02:11:53 PM
kill X -> export LANG=fi_FI@euro ISO-8859-15"" -> startx -> OK, no Euro char on console/editor but Firefox OK -> flwm font problem, I think.
Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: gerald_clark on February 11, 2012, 02:16:02 PM
Did you try changing /etc/sysconfig/language ?
Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: Yleisajattelija on February 11, 2012, 03:01:33 PM
Should I?

If Tinycore installer asks for locales, it should set these language on correct order, I think.

Besides, when USB boot -> must include /etc/sysconfig/language file to list for USB-storing.
Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: Yleisajattelija on February 11, 2012, 03:25:18 PM
When /etc/sysconfig/language is added to ".filetool.lst" file, LANG is set properly.

Is this the TC way?

I'm not sure, if Xorg and/or X-applications are reading these vars for settin locales anyway (should read, I think).
Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: gerald_clark on February 11, 2012, 03:57:23 PM
/etc/sysconfig/language is set from the lang= bootcode.  That is the proper way to set it.
Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: Yleisajattelija on February 12, 2012, 07:50:28 AM
No direct boot code entry on USB boot (alt or shift maybe?).

I tried append + LANG=fi to extlinux.conf file, but syntax was wrong -> master crash.

a) Is the extlinux.conf correct place
b) If so, what is the syntax (extlinux doc is "normal"=bad, or even more)
Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: Yleisajattelija on February 13, 2012, 05:47:06 AM
Parser needs string, of course, without hips -> mastercrash.

Probaly correct line to extlinux.conf is:

APPEND LANG="fi_FI@euro ISO-8859-15"

-> bootcode LANG set
-> /etc/sysconfig/language set
->  whatabout Xorg?. It should read LANG group vars and set locales correctly automatically. Unfortunatelly Xorg didn'n work on first trial. Still missing something?

FLTK 1.3 probaly use old font encoder table, so euro charcer is missing. I hope FLTK 2.0 fixes this.
Title: Re: Euro key missing pc105, fi keyboard, Xorg
Post by: risto3 on May 09, 2012, 07:06:59 AM
I was sure that this worked in 4.2, but now in 4.5.2 the euro key <alt-gr>e just prints an 'e'. 
this is with 'lang=fr_FR.utf8 kmap=azerty/fr'

the others all seem to work (~#{[|`\^@]}¤)

I notice in editor that <alt-gr> is treated as <alt> so that if I try to enter the euro sign, I get the Edit menu, and none of the others work. 

How to get things back to normal?

[update 17/05/2012]
tried the xmodmap trick, got over the menu invocation with <alt-gr>E, F & S.
Found out that azerty/fr-pc.kmap is better because of some other keys screwed up
(like  '²').

That leaves Xorg, so will try and see.

[update 18/05/2012]

Partial results, but at least minimum.  Installing Xorg and using
Option "XkbLayout" "fr" in the kbd InputDevice section of /etc/X11/xorg.conf.
got <alt-gr>e to work as €.  Doesn't work in console or editor though, only writer and calc from what I've tested.  This is our minimal need, so I'll stop there.

Perhaps it should be explicitly stated on the wiki page that *only* Xorg seems to work to get the '€' symbol via  <alt-gr>e.