RE: [Usability] Re: [Fwd: Re: Your final comments on gswitchit in2.4...]




> I don't understand this. Why does an older version of XFree force us to show
> pictures of flags on the panel instead of some text?
Actually, I explained it in my reply to Christian. 

1. XKB switches not layouts, but groups (well, it is true for any XKB
implementation including  XFree 4.3.0)

2. In 4.2.x- one layout very often contains several groups. Actually,
layout "ru" has 2 groups "US/ASCII" and "Russian".

3. When applet gets current group number (say, 0) it gets the group name
in form ("US/ASCII"). The layout name "ru" simply cannot be used here -
it is same for both 0th and 1st groups (for 4.2.x- and others).
Actually, flags CAN be used here - but the flag names will be strange,
like "US/ASCII.png" (well, / should be escaped somehow:) and
"Russian.png"

4. In 4.3.0, gswitchit merges single-group layouts (us,ru) so it can use
the layout name instead of the group name. And flag names like us.png,
ru.png... really make sense to me (and people who contribute them). That
is how gswitchit currently works.

So the full truth - yes, I can use use group names in all X servers -
but the flag file names will be really strange (unless I put some bad
mangling map inside the app).

BTW, in X servers which do not support multiple layouts, gswitchit
disables layout buttons (set/clear) for all layouts but first. It looks
confusing (user chooses layout 'ru' and gets 2 groups) but I can do
nothing about it.

Did I answer your question? So the problem here is that xkb
configuration stuff created by SGI (and cloned by other X servers) is
really ugly. And we should either mask this ugliness using some hacks -
or use the version which straighten things up. Your choice?

-- 
Sergey

=?koi8-r?Q?=FC=D4=C1?= =?koi8-r?Q?_=DE=C1=D3=D4=D8?==?koi8-r?Q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?==?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?==?koi8-r?Q?_=C3=C9=C6=D2=CF=D7=CF=CA?==?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=D8=C0?=



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]