Bug 199389 - no help about shortcuts
Summary: no help about shortcuts
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: scim-bridge
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Caius Chance
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-19 07:28 UTC by A S Alam
Modified: 2013-07-03 00:38 UTC (History)
5 users (show)

Fixed In Version: 0.5.8-3.fc9
Clone Of:
Environment:
Last Closed: 2008-06-28 22:16:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch (4.57 KB, application/octet-stream)
2008-03-07 07:10 UTC, Caius Chance
no flags Details
patch (4.57 KB, patch)
2008-03-07 07:10 UTC, Caius Chance
no flags Details | Diff
updated spec (8.98 KB, application/octet-stream)
2008-03-07 07:10 UTC, Caius Chance
no flags Details
patch (5.50 KB, text/plain)
2008-04-21 06:43 UTC, Caius Chance
no flags Details
update patch with gettext macro'ed (5.54 KB, patch)
2008-04-21 07:02 UTC, Caius Chance
no flags Details | Diff
spec (8.97 KB, text/plain)
2008-04-21 07:02 UTC, Caius Chance
no flags Details
spec patch (1008 bytes, patch)
2008-04-21 23:33 UTC, Caius Chance
no flags Details | Diff
Removed patch rename, version and changelog correction only. (216 bytes, patch)
2008-06-17 00:58 UTC, Caius Chance
no flags Details | Diff
Cleaned up patch. (4.13 KB, patch)
2008-06-23 01:04 UTC, Caius Chance
no flags Details | Diff

Description A S Alam 2006-07-19 07:28:44 UTC
Description of problem:
during using Hindi layout, tried to search help about shortcuts
-How to change En-hi and hi-En  (Ctrl-Space)
-How to change layouts (hi-Inscript->hi-Phonetci)  {Ctrl+Shift)

Version-Release number of selected component (if applicable):
scim-1.4.4-24.fc6

How reproducible:


Steps to Reproduce:
1. make SCIM active
2. select hindi-inscript
3. goto Help (press Help button)
  
Actual results:
No Information about shortcut

Expected results:
Information should be there, so that user can effectively user Shortcuts

Additional info:
ja_JP Anthy is good example

Comment 1 Jens Petersen 2006-07-24 06:16:10 UTC
Hmm, those settings are user configurable in scim-setup,
but I suppose it might be useful to have the trigger hotkey at least appear
at the top of the help dialog.  BTW the Ctrl+Shift (next/previous factory
hotkeys are only defined by default for Chinese users for fc6).

scim-anthy doesn't provide any information about general scim hotkeys,
only anthy specific bindings.

Comment 2 Peng Huang 2008-03-03 08:45:58 UTC
I agree with Jens and put this bug to wontfix.
(In reply to comment #1)
> Hmm, those settings are user configurable in scim-setup,
> but I suppose it might be useful to have the trigger hotkey at least appear
> at the top of the help dialog.  BTW the Ctrl+Shift (next/previous factory
> hotkeys are only defined by default for Chinese users for fc6).
> 
> scim-anthy doesn't provide any information about general scim hotkeys,
> only anthy specific bindings.



Comment 3 Jens Petersen 2008-03-04 10:29:23 UTC
Well I think it would be good display some of the global hotkeys in the help.
It shouldn't be too hard to add.

Comment 4 Peng Huang 2008-03-05 01:56:26 UTC
What's kind of global hotkeys? 
The hotkeys can be changed by user self. I think global hotkeys should not be
displayed in Engines help. Engine help should only contain hotkeys in Engine,
not global.


Comment 5 Jens Petersen 2008-03-05 04:17:30 UTC
Yep it should not be hardcoded, scim should display the current hotkey bindings
at the top of the help text IMHO.


Comment 6 Peng Huang 2008-03-05 04:39:13 UTC
One action may has null hotkey, one hotkey or many hotkeys. How about just show
the fist hotkey for one action?

Comment 7 Caius Chance 2008-03-07 07:10:00 UTC
Created attachment 297144 [details]
patch

Comment 8 Caius Chance 2008-03-07 07:10:03 UTC
Created attachment 297145 [details]
patch

Comment 9 Caius Chance 2008-03-07 07:10:35 UTC
Created attachment 297146 [details]
updated spec

Comment 10 Peng Huang 2008-03-07 07:31:46 UTC
Found the help string is from scim-bridge. 
It has been fixed in scim-bridge-0.4.15-2.
Thanks Caius Chance.


Comment 11 Jens Petersen 2008-03-09 23:33:47 UTC
I don't really understand why the help comes from scim-bridge:
really it should not depend on what immodule or XIM is used
since the hotkeys are global and (should be) independent of
the immodule.  So this looks like a design issue in SCIM.

Currently it seems we will get different help from im-scim, scim-bridge,
and scim-qtimm (maybe im-scim and XIM are the same?).

Comment 12 Caius Chance 2008-03-09 23:56:19 UTC
How's upstream thinking?

Comment 13 Peng Huang 2008-03-10 02:30:33 UTC
(In reply to comment #11)
> I don't really understand why the help comes from scim-bridge:
> really it should not depend on what immodule or XIM is used
> since the hotkeys are global and (should be) independent of
> the immodule.  So this looks like a design issue in SCIM.
> 
> Currently it seems we will get different help from im-scim, scim-bridge,
> and scim-qtimm (maybe im-scim and XIM are the same?).

I found the help string is not from im module. It is from scim-bridge-agent when
using scim-bridge. When just using scim, the help string is from scim-panel-gtk.



Comment 14 Jens Petersen 2008-03-10 06:27:30 UTC
> I found the help string is not from im module. It is from scim-bridge-agent when
> using scim-bridge. When just using scim, the help string is from scim-panel-gtk.

Ok, I see thanks.

Currently I now see:

"""
Smart Common Input Method platform 1.4.6      <--  note wrong version!! (should
be scim-bridge version I guess or something like that)
(C) 2002-2005 James Su <suzhe.cn>    <-- the date is out of date too

Global Hotkeys:
                         <-- better not to have a newline IMHO to save space
Trigger: Zenkaku_Hankaku,Alt+grave,Control+space   <-- probably most users don't
know what "trigger" means
                         <-- better no newline again
Turn on: Unable to be loaded.              <-- this should say "undefined"
                         <-- again can drop empty line
Turn off: Unable to be loaded.             <-- should be changed
                         <-- no newline
Next input method:

Previous input method:

<IME help.....>
"""

I think it is better not to mention undefined/empty hotkeys anyway
(trigger is the most important one anyway).

Also it would be better to remove the "Smart Common Input Method"
frame around the help text widget - it looks strange.

Comment 15 Jens Petersen 2008-03-10 07:41:00 UTC
> Also it would be better to remove the "Smart Common Input Method"
> frame around the help text widget - it looks strange.

Doing that in scim-1.4.7-17.fc9.

Comment 16 Caius Chance 2008-04-21 06:43:05 UTC
Created attachment 303112 [details]
patch

Excessive newlines are removed.

Undefined hot keys will not be shown.

Comment 17 Caius Chance 2008-04-21 07:02:18 UTC
Created attachment 303115 [details]
update patch with gettext macro'ed

Comment 18 Caius Chance 2008-04-21 07:02:41 UTC
Created attachment 303116 [details]
spec

Comment 19 Peng Huang 2008-04-21 08:05:13 UTC
Hi cchance,
I found two little problems. One is that you modified the header of help text. I
think you should not do it. The helper text is for scim, not for scim-bridge. So
I you should remain the origin header.
The another is the spec file is not based on the newest version spec file in cvs.


Comment 20 Caius Chance 2008-04-21 23:24:19 UTC
(In reply to comment #19)
> I found two little problems. One is that you modified the header of help text. I
> think you should not do it. The helper text is for scim, not for scim-bridge. So
> I you should remain the origin header.

This is based on the patch suggested my jensp. I'll ask him about this.

> The another is the spec file is not based on the newest version spec file in cvs.
> 

You could ignore the spec attachment if so. The only change is addition of the
patch, release number, and changelog.

Comment 21 Caius Chance 2008-04-21 23:33:37 UTC
Created attachment 303231 [details]
spec patch

Comment 22 Jens Petersen 2008-04-23 06:40:53 UTC
(No need to rename the patch BTW, we can just update the current patch.)

(In reply to comment #19)
> One is that you modified the header of help text. I
> think you should not do it. The helper text is for scim, not for scim-bridge. So
> I you should remain the origin header.

Ok lets include both copyright for scim and scim-bridge, but not mention the
scim version in the text.  I think it is good to show which immodule is being
used too.

Also as I suggested to Caius, I still feel the patch should be possible just
on scim-bridge-agent-imcontext.cpp, I am still unclear why it has to be
split over scim-bridge-agent.cpp.

Comment 23 Caius Chance 2008-06-17 00:58:14 UTC
Created attachment 309559 [details]
Removed patch rename, version and changelog correction only.

Comment 24 Caius Chance 2008-06-17 05:10:07 UTC
(In reply to comment #22)
> Also as I suggested to Caius, I still feel the patch should be possible just
> on scim-bridge-agent-imcontext.cpp, I am still unclear why it has to be
> split over scim-bridge-agent.cpp.

To display the hotkeys used in helper, we need info from config. However,
scim-bridge-agent-imcontext.cpp which is responsible to display helper doesn't
have any code currently accessing data in config.

Using scim-bridge-agent.cpp to 'feed' hotkey info to
scim-bridge-agent-imcontext.cpp is the most efficient way to achieve the
objective. Otherwise, we need to duplicate large amount of config info
preparation code in scim-bridge-agent-imcontext.cpp just to have maximum of 5
used hotkeys.

The extra work doesn't include extra code analysis, testing and higher potential
impact to the quality, too.

Comment 25 Caius Chance 2008-06-23 01:04:10 UTC
Created attachment 310009 [details]
Cleaned up patch.

Hotkey settings are listed single newlines.
Author info, version, dates are fixed.
Removed unnecessary indentation changes in patch file.

Comment 26 Fedora Update System 2008-06-24 01:00:08 UTC
scim-tables-0.5.8-3.fc9 has been submitted as an update for Fedora 9

Comment 27 Fedora Update System 2008-06-28 22:16:50 UTC
scim-tables-0.5.8-3.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 28 Jens Petersen 2008-06-29 23:39:48 UTC
Comment 26 and comment 27 refer to bug 438662


Note You need to log in before you can comment on or make changes to this bug.