• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Unicode text editor

 
Ranch Hand
Posts: 250
Python Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think, when you save data into file, you must use java.io.InputStream or java.io.OutputStream
 
Author
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Author
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 250
Python Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks verymuch both of you for the pointers. Exactly what I needed
 
We're all out of roofs. But we still have tiny ads:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic