Re: [resend] xkbd language switching

2007-03-06 Thread Michael Vasiliev
On Tuesday March 6 2007, Dan Bar Dov wrote:
> Guys, I'm sorry to say this thread led me nowhere.
>
> I've been a Unix person for 26 years. This is a perfect example to why
> the hated windows is still better then Linux/unix as an office solution. As
> far as Linux desktop is concerned, I am a USER and I don't want to deal with
> that shit.
Perhaps you misunderstood me. What I said that I think that KDE language 
switching is of no use to me. I didn't claim that no solution to what I want, 
and what any Windows user wants. With xkb and kkbswitch, one can set up 
everything that windows does and much more. Xkb configuration isn't that 
friendly, that's true, you have to change the X server configuration file. 
Some distros provide graphic tools to do that, exactly like Windows, some 
don't. But if I had these from the very beginning, what would be my chance to 
talk to Ivan Pascal, the author of xkb code? What would be my chance to know 
all these inner workings of xkb, that allow me to configure it anywhere for 
anyone, and in the first place for myself, without the crutch of graphic 
config generators? I am blessed with the chance to learn and help others at 
no expense other than my time, and for that I am grateful.
As far as Linux, Windows, software and hardware go, I was a user once, and 
then I could no longer be a user anymore. The good part is that is Linux, 
there is no "shit" if you know what are you doing, and even if something is 
wrong, you have a rare opportunity to change the behavior easily. This is, 
after all, an open source software.

-- 
Sincerely Yours,
Michael Vasiliev

Confidence is the feeling you have before you understand the situation.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: [resend] xkbd language switching

2007-03-06 Thread Alexander Indenbaum

Dan,

Actually there is Linux for "Office solution" for USERS that don't
want to deal with that shit. Try Ubuntu distribution (
http://www.ubuntu.com/ )
* Things work out of box without tweaking
* Things work on "click for autolaunch" and "drag and drop" level
* "Almost" windows


On 3/6/07, Dan Bar Dov <[EMAIL PROTECTED]> wrote:

Guys, I'm sorry to say this thread led me nowhere.

I've been a Unix person for 26 years. This is a perfect example to why
the hated windows
is still better then Linux/unix as an office solution. As far as Linux
desktop is concerned, I am a USER and I don't want to deal with that
shit.

I wrote myself a simple script and attached it to F1. It toggles
hebrew/english but I still have no flags on the icon, and the icon
itself does not update when the language switches.

---
#!/bin/bash
cur_l=$(setxkbmap -model pc104 -print | grep xkb_symbols)
cur_l=${cur_l#*+}
cur_l=${cur_l%%+*}

case ${cur_l} in
   us) setxkbmap -model pc104 -layout il
   ;;
   il) setxkbmap -model pc104 -layout us
   ;;
   *) setxkbmap -model pc104 -layout us
   ;;
esac


Dan

On 3/5/07, Michael Vasiliev <[EMAIL PROTECTED]> wrote:
> On Sunday March 4 2007, Vassilii Khachaturov wrote:
> > > I've learned that the following commands do the switching:
> > >  setxkbmap -model pc104 -layout us
> > >  setxkbmap -model pc104 -layout il
> > > so I can use them as input actions to select english/hebrew.
> > >
> > > However, turns out the commands do not update the icon.
> > > Is there a better way to switching language on KDE 3.5.5/FC5 using the
> > > keyboard?
> >
> > Please have a look at the following bug with a micro-HOWTO inside,
> > on how to enable keyboard-based switching on the dead right-windows key:
> >
> > http://bugs.kde.org/show_bug.cgi?id=84606
>
> Oh, but that's just evil, setting RWIN to be a third-level modifier just for
> the fun of selecting it as a language switching key, because the binding
> selection engine does not understand that it is a modifier. If you would bind
> it as something else, that would be nice, but people use ISO_Level3_Shift to
> temporarily switch keymaps, and your hack creates a collision.
> It is interesting that ISO_Next_Group and ISO_Prev_Group can't be used as kde
> modifier "keys", for some reason unknown to me. Perhaps, in a world where
> modifier keys can be bound to actions, making it impossible to bind the right
> key to this action makes sense. Moreover, it is only possible to switch
> keymaps in one direction in KDE.
>
> I still hang to my opinion that KDE keyboard switching is a mess between xkb
> and modmap, thus, I use xkb and ignore KDE keymap switching altogether.
>
> --
> Sincerely Yours,
> Michael Vasiliev
>
> The following statement is not true.  The previous statement is true.
>
> =
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>
>

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]





--
Alexander Indenbaum

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: [resend] xkbd language switching

2007-03-06 Thread Dan Bar Dov

Guys, I'm sorry to say this thread led me nowhere.

I've been a Unix person for 26 years. This is a perfect example to why
the hated windows
is still better then Linux/unix as an office solution. As far as Linux
desktop is concerned, I am a USER and I don't want to deal with that
shit.

I wrote myself a simple script and attached it to F1. It toggles
hebrew/english but I still have no flags on the icon, and the icon
itself does not update when the language switches.

---
#!/bin/bash
cur_l=$(setxkbmap -model pc104 -print | grep xkb_symbols)
cur_l=${cur_l#*+}
cur_l=${cur_l%%+*}

case ${cur_l} in
   us) setxkbmap -model pc104 -layout il
   ;;
   il) setxkbmap -model pc104 -layout us
   ;;
   *) setxkbmap -model pc104 -layout us
   ;;
esac


Dan

On 3/5/07, Michael Vasiliev <[EMAIL PROTECTED]> wrote:

On Sunday March 4 2007, Vassilii Khachaturov wrote:
> > I've learned that the following commands do the switching:
> >  setxkbmap -model pc104 -layout us
> >  setxkbmap -model pc104 -layout il
> > so I can use them as input actions to select english/hebrew.
> >
> > However, turns out the commands do not update the icon.
> > Is there a better way to switching language on KDE 3.5.5/FC5 using the
> > keyboard?
>
> Please have a look at the following bug with a micro-HOWTO inside,
> on how to enable keyboard-based switching on the dead right-windows key:
>
> http://bugs.kde.org/show_bug.cgi?id=84606

Oh, but that's just evil, setting RWIN to be a third-level modifier just for
the fun of selecting it as a language switching key, because the binding
selection engine does not understand that it is a modifier. If you would bind
it as something else, that would be nice, but people use ISO_Level3_Shift to
temporarily switch keymaps, and your hack creates a collision.
It is interesting that ISO_Next_Group and ISO_Prev_Group can't be used as kde
modifier "keys", for some reason unknown to me. Perhaps, in a world where
modifier keys can be bound to actions, making it impossible to bind the right
key to this action makes sense. Moreover, it is only possible to switch
keymaps in one direction in KDE.

I still hang to my opinion that KDE keyboard switching is a mess between xkb
and modmap, thus, I use xkb and ignore KDE keymap switching altogether.

--
Sincerely Yours,
Michael Vasiliev

The following statement is not true.  The previous statement is true.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: [resend] xkbd language switching

2007-03-04 Thread Michael Vasiliev
On Sunday March 4 2007, Vassilii Khachaturov wrote:
> > I've learned that the following commands do the switching:
> >  setxkbmap -model pc104 -layout us
> >  setxkbmap -model pc104 -layout il
> > so I can use them as input actions to select english/hebrew.
> >
> > However, turns out the commands do not update the icon.
> > Is there a better way to switching language on KDE 3.5.5/FC5 using the
> > keyboard?
>
> Please have a look at the following bug with a micro-HOWTO inside,
> on how to enable keyboard-based switching on the dead right-windows key:
>
> http://bugs.kde.org/show_bug.cgi?id=84606

Oh, but that's just evil, setting RWIN to be a third-level modifier just for 
the fun of selecting it as a language switching key, because the binding 
selection engine does not understand that it is a modifier. If you would bind 
it as something else, that would be nice, but people use ISO_Level3_Shift to 
temporarily switch keymaps, and your hack creates a collision.
It is interesting that ISO_Next_Group and ISO_Prev_Group can't be used as kde 
modifier "keys", for some reason unknown to me. Perhaps, in a world where 
modifier keys can be bound to actions, making it impossible to bind the right 
key to this action makes sense. Moreover, it is only possible to switch 
keymaps in one direction in KDE.

I still hang to my opinion that KDE keyboard switching is a mess between xkb 
and modmap, thus, I use xkb and ignore KDE keymap switching altogether.

-- 
Sincerely Yours,
Michael Vasiliev

The following statement is not true.  The previous statement is true.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: [resend] xkbd language switching

2007-03-04 Thread Vassilii Khachaturov
> I've learned that the following commands do the switching:
>  setxkbmap -model pc104 -layout us
>  setxkbmap -model pc104 -layout il
> so I can use them as input actions to select english/hebrew.
>
> However, turns out the commands do not update the icon.
> Is there a better way to switching language on KDE 3.5.5/FC5 using the 
> keyboard?

Please have a look at the following bug with a micro-HOWTO inside,
on how to enable keyboard-based switching on the dead right-windows key:

http://bugs.kde.org/show_bug.cgi?id=84606

Note that there is an alternative way - switch "above" the KDE
by directly modifying the
   Option  "XkbLayout" "us"
in the xorg.conf file (but you'll not have the nice KDE flag then.

If you want a more light-weight switcher (in case you want a light-weight
window manager, as opposed to KDE), there are other packages for the
switching/flag indication stuff. Most notably fbxkb.

HTH,
Vassilii


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: [resend] xkbd language switching

2007-03-04 Thread Michael Vasiliev
On Sunday March 4 2007, Dan Bar Dov wrote:
> [Sorry for the earlier post, kbd mistake]
>
> Now that I've learned that to switch input language on Linux I need to
> click the small icon with the two letters in the system tray, I'd like to
> do the switching by
> a keyboard shortcut.
>
> I've learned that the following commands do the switching:
>  setxkbmap -model pc104 -layout us
>  setxkbmap -model pc104 -layout il
> so I can use them as input actions to select english/hebrew.
>
> However, turns out the commands do not update the icon.
> Is there a better way to switching language on KDE 3.5.5/FC5 using the
> keyboard?

KDE keyboard switching uses xmodmap rather than xkb, so if you change the 
layout with xkb, the KDE keymap switcher, obviously, isn't aware of the 
changes. Use Leonid Zeitlin's excellent kkbswitch instead.

kkbswitch.sourceforge.net

-- 
Sincerely Yours,
Michael Vasiliev

"For me, the first challenge for computing science is to discover how to 
maintain order in a finite, but very large, discrete universe that is 
intricately intertwined. And a second, but not less important challenge is 
how to mould what you have achieved in solving the first problem, into a 
teachable discipline: it does not suffice to hone your own intellect (that 
will join you in your grave), you must teach others how to hone theirs. The 
more you concentrate on these two challenges, the clearer you will see that 
they are only two sides of the same coin: teaching yourself is discovering 
what is teachable."
-- Edsger Wybe Dijkstra

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: [resend] xkbd language switching

2007-03-04 Thread Shlomo Solomon
On Sunday 04 March 2007 12:42, Dan Bar Dov wrote:
> Is there a better way to switching language on KDE 3.5.5/FC5 using the 
> keyboard? 
Do a right click on the panel icon. Choose configure and look at the "xkb 
options" tab. You'll find lots of ways to switch language.

> Also while at it. the little language icon is supposed to display the
> country flag for the current language. Mine show only gray background.
> What might be missing?
Do a right click on the panel icon. Choose configure and click on 
the "switcching options" tab. You'll see a check box to show the country 
flag.


-- 
Shlomo Solomon
http://the-solomons.net
Sent by KMail (KDE 3.5.4) on LINUX Mandriva 2007


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



[resend] xkbd language switching

2007-03-04 Thread Dan Bar Dov

[Sorry for the earlier post, kbd mistake]

Now that I've learned that to switch input language on Linux I need to click
the small icon with the two letters in the system tray, I'd like to do
the switching by
a keyboard shortcut.

I've learned that the following commands do the switching:
setxkbmap -model pc104 -layout us
setxkbmap -model pc104 -layout il
so I can use them as input actions to select english/hebrew.

However, turns out the commands do not update the icon.
Is there a better way to switching language on KDE 3.5.5/FC5 using the keyboard?

Also while at it. the little language icon is supposed to display the
country flag for the current language. Mine show only gray background.
What might be missing?

Thanks,
Dan

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]