Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: alu on March 27, 2009, 12:08:18 PM

Title: accents in openoffice and "@" sign in opera
Post by: alu on March 27, 2009, 12:08:18 PM
i know that such a problem depends on each application, but I would like to mention it in order to know if someone has found a solution.

I am using the de_CH-latin1.kmap and also tried the fr_CH-latin1.kmap, and I don't want to use xorg, but I rather want to stay with the default tiny x-server of TC.

openoffice: ê does not work, and I don't find key combinations in order to produce this sign;
opera: the "@" sign does not work as typing "altgr+q" or "altgr+2".

thanks.
Title: Re: accents in openoffice and "@" sign in opera
Post by: Roberto A. Foglietta on April 04, 2009, 01:07:40 PM
I confirm the problem in Firefox too meanwhile xterm works properly with altgr symbols.
Title: Re: accents in openoffice and "@" sign in opera
Post by: Roberto A. Foglietta on April 04, 2009, 01:49:20 PM
solution:

Code: [Select]
sudo xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &

to make it persistent put  the command without sudo into ~/.xsession (diff shown below):

Code: [Select]
- exec "${DESKTOP:=jwm}"
+ exec "${DESKTOP:=jwm}" &
+ sleep 1
+ xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
Title: Re: accents in openoffice and "@" sign in opera
Post by: ^thehatsrule^ on April 06, 2009, 04:14:02 AM
to make it persistent put  the command without sudo into ~/.xsession (diff shown below):

Code: [Select]
- exec "${DESKTOP:=jwm}"
+ exec "${DESKTOP:=jwm}" &
+ sleep 1
+ xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
Looks like the exec/& may conflict or be redundant.  I think the standard way is to put the commands before the last exec line, like:
Code: [Select]
xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
exec "${DESKTOP:=jwm}"
Title: Re: accents in openoffice and "@" sign in opera
Post by: Roberto A. Foglietta on April 06, 2009, 05:58:25 AM
to make it persistent put  the command without sudo into ~/.xsession (diff shown below):

Code: [Select]
- exec "${DESKTOP:=jwm}"
+ exec "${DESKTOP:=jwm}" &
+ sleep 1
+ xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
Looks like the exec/& may conflict or be redundant.  I think the standard way is to put the commands before the last exec line, like:
Code: [Select]
xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
exec "${DESKTOP:=jwm}"


I tried but it does not work because xmodmap should be executed when X/jvm is running.
The solution need sleep 3 instead sleep 1, like this (diff):

Code: [Select]
- exec "${DESKTOP:=jwm}"
+ exec "${DESKTOP:=jwm}" &
+ sleep 3
+ xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch"

Title: Re: accents in openoffice and "@" sign in opera
Post by: curaga on April 06, 2009, 11:43:56 AM
xmodmap can only modify X keymaps, not console ones
Title: Re: accents in openoffice and "@" sign in opera
Post by: Roberto A. Foglietta on April 06, 2009, 11:49:35 AM
xmodmap can only modify X keymaps, not console ones

yes, you are right. It is useless in pure console, without any X running.
Title: Re: accents in openoffice and "@" sign in opera
Post by: ^thehatsrule^ on April 10, 2009, 12:13:13 AM
exec can probably be removed since it will just be backgrounded, then.

If you wanted to keep the exec, I guess something like this could work:
Code: [Select]
sleep 3 && xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
exec "${DESKTOP:=jwm}"
Title: Re: accents in openoffice and "@" sign in opera
Post by: alu on April 10, 2009, 06:16:18 PM
don't work for me, neither in opera nor in oo2. is there a possibility to pick up keymap's layouts from some other distros (as the one from *buntu or from DSL) in order to use them with tc? thanks