The Source for Java Technology Collaboration

Home » java.net Forums » Java Desktop Technologies » Swing & AWT

Thread: Pure Java IME / Input Method

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 8 - Last Post: May 9, 2008 10:08 AM by: bhamail
bhamail

Posts: 5
Pure Java IME / Input Method
Posted: Feb 25, 2008 2:13 PM
  Click to reply to this thread Reply

Sorry if this is the wrong place to ask...and please tell me where to go. ;)

I'm looking for a Pure Java Input Method library (initially just to support Spanish).

Using native Windows IME's has proven problematic due to behavior differences across Windows versions.

Can anyone suggest a solution? A place to look?

Thanks,
Dan Rollo

occasionalui

Posts: 3
Re: Pure Java IME / Input Method
Posted: Feb 27, 2008 6:29 PM   in response to: bhamail
  Click to reply to this thread Reply

What are you trying to do? Just allow the user to type Spanish in a JText Field? Java supports different input languages if you change the windows control panels to allow input of non-English characters. I've seen Korean and Hebew in Java. You might have issues with Windows Language packs.

bhamail

Posts: 5
Re: Pure Java IME / Input Method
Posted: Feb 27, 2008 6:41 PM   in response to: occasionalui
  Click to reply to this thread Reply

The main thing I'm trying to do is to avoid any dependence on Windows features or Windows setup. I'm aware of the native Windows IME/Keyboard LangPack features, but they vary too much from Win OS version to Win OS version.

All I need to do is make sure the font I use can display the characters for the Locale used by a java IME and I should be good to go.

So yes, basically, I just need a pure java IME to allow the input of characters not available on the standard English keyboard, but I don't want the user to have to mess with any Windows configuration at all.

njs

Posts: 9
Re: Pure Java IME / Input Method
Posted: Feb 27, 2008 7:36 PM   in response to: bhamail
  Click to reply to this thread Reply

In JDK, there is a sample input method called 'CodePointIM', which is a pure Java input method and enables you to input any character using '\uXXXX' Unicode escape form.

HTH.
Naoto

bhamail

Posts: 5
Re: Pure Java IME / Input Method
Posted: Feb 27, 2008 8:50 PM   in response to: njs
  Click to reply to this thread Reply

Thanks for the pointer Naoto, but I'm really hoping to find an IME with a nice popup window and such (so the user need not know the Unicode values of chracters).

walterln

Posts: 278
Re: Pure Java IME / Input Method
Posted: Feb 28, 2008 3:48 AM   in response to: bhamail
  Click to reply to this thread Reply

Google is your friend, though you have to know the right keywords ;).

bhamail

Posts: 5
Re: Pure Java IME / Input Method
Posted: Feb 28, 2008 4:52 PM   in response to: walterln
  Click to reply to this thread Reply

Yes, I have searched via google, but I'm not really looking for a character map.

An IME (Input Method Editor) for a specific Locale typically does not require the user to enter Unicode sequences. The JCharMap link you mention would certainly be helpful if I were trying to write an IME from scratch, but that's exactly what I'm trying to avoid doing by asking if anyone knows of any Pure Java IME's already in existence.

I did find the following:

http://sourceforge.net/projects/jgim

But it appears there's not been much activity on it in a while. Still wondering if there are any other existing IME libs out there that I could use. Worst case, I can always try to revive jgim...

Other suggestions?

neoedmund

Posts: 2
Re: Pure Java IME / Input Method
Posted: May 9, 2008 3:16 AM   in response to: bhamail
  Click to reply to this thread Reply

have a look at neoeime.sf.net
but it's not support Spanish ime.

bhamail

Posts: 5
Re: Pure Java IME / Input Method
Posted: May 9, 2008 10:08 AM   in response to: neoedmund
  Click to reply to this thread Reply

Very cool! Thanks!

The bad news is I'm moving on to another job, but I'll pass this link on to the folks that might need it. For the Spanish IME, it was decided to go with a simple button based approach, but there may still be a need to someday replace some native Japanese and Chinese IME's with pure java, so this could still be a big help!

Dan




 XML java.net RSS