LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-12-2006, 07:19 PM   #1
hackobacko
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Rep: Reputation: 0
I have 2problems in slackware 10.2


hi

I just have aprblem in layout options

I ran xorgconfig and chose my language (arabic)

also I chose alt+shift groups to change between arabic and english languages

but I couldn't use alt+shift to change layouts at all

I can just use mouse to change between them and also alt+ctrl+k
to change to arabic only

I didn't have this problem with dropline gnome I guess but now I use kde 3.5 and also I adjusted layout options in control center but it is not working .

so what can I do to fix that ?

2)

also some gtk applications use arabic (my local language ) in their buttons and I'd like to make it use just english (I've only kde installed and I don't have gnome ).

also some gtk applicaions (not all ) like xine have very small font in their options though I adjusted "gtk style and fonts " in control center .

thanx
 
Old 04-13-2006, 05:43 AM   #2
IceChant
Member
 
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316
Blog Entries: 3

Rep: Reputation: 30
Did you installed the language file for arabic ? if not do so, you need to enable arabic in the KDE CC in Regional & Accessibility go throw the stuff there.
I found it easier to add to the xorg.conf file setting for language switch, you can try it here example from my xorg.conf:
Code:
    Option "XkbRules"	"xorg"
    Option "XkbModel"	"pc104"
    Option "XkbLayout"	"us,il"
    Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll"

EndSection
 
Old 04-13-2006, 06:15 AM   #3
hackobacko
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Original Poster
Rep: Reputation: 0
I did all of this man before


and even added this line to xorg.conf but invain
 
Old 04-13-2006, 02:01 PM   #4
hackobacko
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Original Poster
Rep: Reputation: 0
here's also what I found in the kde help center , but I don't know how to do this

Code:
In XFree86 prior to version 4.3.0 non-latin layouts mutually included latin group and this group was the default thus pressing Ctrl+Alt+k always yielded the right combination. From version 4.3.0 by default all layouts contain only one group thus non-latin layouts may not work here.
Possible solutions are:
add your layout to $nonlatin or $oldlayouts lists in /etc/X11/xkb/rules/xfree86 or the location of the xkb rules on your computer.
Change the shortcut to something language neutral, e.g. Ctrl+Menu
Turn on the option to include the “us” group in your layout (effectively the same as solution 1).
 
Old 04-13-2006, 03:21 PM   #5
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
To setting arabic, use this example in console: setxkbmap en_US (change en_US to the abreviation of your language).
Group switching does not work for me (and as I can see for a alot of people too).
 
Old 04-13-2006, 07:30 PM   #6
hackobacko
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Original Poster
Rep: Reputation: 0
so , no approperiate solution for this ?
 
Old 04-13-2006, 08:05 PM   #7
alMubarmij
Member
 
Registered: Dec 2005
Posts: 140
Blog Entries: 1

Rep: Reputation: 16
For Arabic support you can see this link:

http://linux4me.org/ib/index.php?showtopic=1982
 
Old 04-14-2006, 06:49 AM   #8
alMubarmij
Member
 
Registered: Dec 2005
Posts: 140
Blog Entries: 1

Rep: Reputation: 16
You can add the following command to /etc/profile , ~/.profile or ~./bashrc:

Code:
# Specify Arabic keyboard:
setxkbmap -model pc104 -layout us,ar -variant ,digits -option grp:alt_shift_toggle,grp:ctrl_shift_toggle
Note:
This command is work only after Xwindow start.
So, you can't use it from system initial startup scripts.
 
Old 04-14-2006, 10:20 AM   #9
hackobacko
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Original Poster
Rep: Reputation: 0
thanx man for help but it didn't work

am reading the topic in linux for me , may I find some thing to solve my problem
 
Old 04-14-2006, 04:17 PM   #10
hackobacko
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Original Poster
Rep: Reputation: 0
still can't find asolution
the problem is that "/etc/X11/xkb/symbols/ar" doesn't recognize
those keys ( alt + shift)

I tried to add shift to it by adding :

Code:
default 
xkb_symbols "pc104" {
    include  "us(pc104)"

    replace key <RALT> { [ Mode_switch,  Multi_key ] };
    replace key <RSHIFT> { [ Mode_switch,  Multi_key ] };
    replace key <LALTT> { [ Mode_switch,  Multi_key ] };
    replace key <LSHIFT> { [ Mode_switch,  Multi_key ] };
    include "iso9995-6(basic104)"

    modifier_map Mod3 { Mode_switch };

};
(i took this syntax from another file but it was also invain )

also edited : /root/.kde/share/config/kdeglobals
and added alt+shift to change between layouts but it didnot work

Last edited by hackobacko; 04-14-2006 at 04:45 PM.
 
Old 04-15-2006, 01:39 AM   #11
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Look at /etc/X11/xkb/symbols/pc/ar. I think X server now looks here.
 
Old 04-15-2006, 02:16 AM   #12
alMubarmij
Member
 
Registered: Dec 2005
Posts: 140
Blog Entries: 1

Rep: Reputation: 16
You must restart X.

hit Ctrl-Alt-Backspace.

but you can run setxkbmap command from konsole or xterm:
Code:
setxkbmap -model pc105 -layout us,ar -variant ,digits -option grp:alt_shift_toggle,grp:ctrl_shift_toggle
it's will be executed directly without X restarting.
 
Old 04-15-2006, 02:19 AM   #13
hackobacko
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Original Poster
Rep: Reputation: 0
actually man the problem is not this file or the other
the problem is that how to add layout (alt+shift) in this file and also how to make this file recognize shift-alt keys so I copied the section "
Code:
xkb_symbols "generic104" {
    include "srvr_ctrl(xfree86)"
    include "us(basic)"
    key <RTSH> {	[ 	Shift_R		]	};
    key <LALT> {	[ 	Alt_L	 	]	};
    key <RCTL> {	[ 	Control_R	]	};
    key <RALT> {	[	Alt_R		]	};
in this file hoping it will recognize those keys but it didn't

also the file "/etc/X11/xkdb/rules/xorg " has to be edited by uncomment the $nonltin and arabic in it and I have to add layout options for alt+shift keys in it but I don't know how
I tried many ways but it's all wrong
 
Old 04-15-2006, 05:51 AM   #14
hackobacko
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Original Poster
Rep: Reputation: 0
I found asolution for this and mentioned it in the topic :

http://www.linuxquestions.org/questi...d.php?t=434895

but still want asolution for xkdb since this solution has no flag applet below to indicate used language
 
  


Reply



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
About Slackware 9.1 boot disk?? ftp://ftp.kpn.be/pub/linux/slackware/slackware-9.1-is AL3OMDAH Slackware 4 04-18-2007 09:54 AM
Dual boot windows/slackware, but slackware installed first? Cryptic_K Slackware 3 11-20-2006 12:49 PM
Newer Slackware Packages on older slackware version pengStudent Slackware 2 11-12-2003 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:21 AM.

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
Open Source Consulting | Domain Registration