Bug 156052 - Better BIDI suuport with new API
Summary: Better BIDI suuport with new API
Status: RESOLVED DUPLICATE of bug 62431
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-03 08:46 EDT by ilan klein CLA
Modified: 2007-09-20 12:54 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ilan klein CLA 2006-09-03 08:46:54 EDT
For Sametime 7.5 (IBM leading product), we need to support BIDI and an RTL user interface.

Currently there is no common interface/API for getting information from the system about data, that the user has:

1. What language is currently selected in a multipule language environment (the list should be accessible and not only the first 2 bit, in OS.java)

2. Need a way to get the list of available languages in the system so we can choose one, and not just the next BIDI language (currently in OS.java).

3. In styledtext and other components, there is initial support for BIDI and Global Orientation (RTL and LTR), but we need a better way to be informed if the user has selected to change the writing direction.
In windows a press on CTRL+Left Shift means selecting the LTR way, and CTRL+Right shift, means RTL.
I do not know how it is on a mac, or linux but we should have an API to subscribe to that, which will be implemented in all the platforms.

4. Similary so, in windows (and probwbly othe platforms), you can assign a shortcut (usually, ALT+LEFT/RIGHT shift) for preffered languages, I think we should have a way to know about these shortcuts, and receive notifications that a languages has been selected/changed.

5. There are a few languages which are RTL by design (Hebrew, Arabic....) but I did not see where that info was available to programers, I think it should be in the Local object, currenly I asked and everyone said they were adding their own checkes for the language (if hebrew or arabic then RTL) but that could be avoided if we have better support in SWT and platform.

Suggested New API:

public void languageChanged(LangEvent e) - ALT+ SHIFT (and shortcuts) in windows
public void globalOrientationChanged() - this could be in windows CTRL + LEFT/Right shift

public List getInstalledLanguages()
public Lang getSelectedLanguage()
public void selectLanguage(Lang lang)
public boolean isSelecetedLangRTL(Lang lang)
Comment 1 Steve Northover CLA 2006-09-05 12:34:10 EDT
FH, I believe a lot of this stuff has been asked for before and the problem is that these API's are not possible on Linux?
Comment 2 ilan klein CLA 2007-01-11 07:54:50 EST
BIDI is currently not supported on Linux, so can we please proceed on this windows, where there is ample support from the operating system?
Comment 3 Hiroyuki Okamoto CLA 2007-02-20 10:28:51 EST
Regarding keyboard langauge switch on Linux/GTK,
See GtkIMContext and GtkIMContextXIM.
Comment 4 Steve Northover CLA 2007-03-26 20:04:51 EDT
There is no way we will be doing this for Eclipse 3.3.  It involves new API and a ton of new work that we don't have the time to do right now.  We are at Eclipse 3.3 M7 which is supposed to be bug fixes only.
Comment 5 B. Chen CLA 2007-08-22 16:40:32 EDT
Could you provide a target date for this bug?
Comment 6 Felipe Heidrich CLA 2007-08-30 17:45:41 EDT
I'll close this as duplicate of bug 62431.
It is the same problem basically, a few details different. It is better to keep the discussion in the same place.

*** This bug has been marked as a duplicate of bug 62431 ***