Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unicode text editor

 
Debashish Chakrabarty
Ranch Hand
Posts: 231
Firefox Browser Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My exposure to Swings have only been academic so do pardon me if this question is too lame. I have been working on a Unicode Text editor (for Hindi). I also hacked the Notepad application and was able to display all Menu/Toolbar items in Hindi. I am also now able to open a Hindi UTF file and see the Hindi text in JTextArea properly. I am also able to save any UTF text pasted from another application.
What I have no clue about is how can one type in Hindi in the JTextArea. How will I map the keystrokes correponding with required Hindi Unicode characters etc? For eg.if I press K (and assuming that the key K has been mapped with /u0915) Hindi character "ka" must be inserted in the JTextArea.
Any guidelines and links would be appreciated.
[ April 28, 2004: Message edited by: Debashish Chakrabarty ]
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think, when you save data into file, you must use java.io.InputStream or java.io.OutputStream
 
Kathy Walrath
Author
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe you need to look into input methods. One link that looks promising is this one:
http://developers.sun.com/dev/gadc/technicalpublications/presentations/iuc22_thai_hindi.pdf
[ April 28, 2004: Message edited by: Kathy Walrath ]
 
Sharon Zakhour
Author
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also edited a relevant article that Naoto wrote for The Swing Connection --
Using Input Methods on the Java Platform. Naoto recently updated this article
for release 1.5 -- it will probably be released on the javadesktop.org
website.
Sharon Zakhour
 
Debashish Chakrabarty
Ranch Hand
Posts: 231
Firefox Browser Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks verymuch both of you for the pointers. Exactly what I needed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic