Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Looking for Applet for inputting non-ASCII characters

3 views
Skip to first unread message

tinyurl.com/uh3t

unread,
Oct 8, 2004, 1:28:35 PM10/8/04
to
I'm working on a CGI application that teaches foreign languages by
having the student fill in a missing word. A sample of the HTML form,
for Spanish, is here: http://www.rawbw.com/~rem/essamp.html
In that case the missing word doesn't use any non-ASCII characters, so
there's no problem, but if the missing word had an accented character,
or if I'm teaching some non-Latin language such as Russian, there's a
need for the student to type in some non-ASCII characters. For the
moment, for Spanish, I'm using sequences such as {n~} and {a'} to
represent accented characters, and would do something even more crufty
for Russian. But I'd rather generate real non-ASCII UniCode characters.
I've decided on using UTF-8 for all output. Here's a sample of my
generating such text: http://www.rawbw.com/~rem/tryutf.html
(click on the button to actually run the CGI program that generates the
UTF-8 output)

What I have in mind is an on-screen keyboard (such as KeyCaps on
Macintosh), or on-screen palette of special characters (such as in the
search window for McSink), whereby the user (student) clicks with mouse
or types keystroke which is converted to the desired UniCode character
which is then converted to UTF-8 and displayed within the textfield in
the form. Is this possible with a Java applet, and if so has somebody
already done it and have the code available for free use, so that I
could adapt it for my application?

Paul Lutus

unread,
Oct 8, 2004, 1:47:05 PM10/8/04
to
tinyurl.com/uh3t wrote:

/ ...

> What I have in mind is an on-screen keyboard (such as KeyCaps on
> Macintosh), or on-screen palette of special characters (such as in the
> search window for McSink), whereby the user (student) clicks with mouse
> or types keystroke which is converted to the desired UniCode character
> which is then converted to UTF-8 and displayed within the textfield in
> the form. Is this possible with a Java applet,

Yes, of course. The number of keys required might make this unwieldy on
small displays.

> and if so has somebody
> already done it and have the code available for free use, so that I
> could adapt it for my application?

Are you a Java programmer? This might not be the right newsgroup if not.

--
Paul Lutus
http://www.arachnoid.com

tinyurl.com/uh3t

unread,
Oct 9, 2004, 12:40:22 PM10/9/04
to
> From: Paul Lutus <nos...@nosite.zzz>

> The number of keys required might make this unwieldy on small
> displays.

For the time being, I'm thinking of a regular desktop/laptop as client
for this particular application.

> Are you a Java programmer? This might not be the right newsgroup if not.

I don't like to put labels on people, what they *are*. I prefer to talk
about what people *do* or can *do* or have done. I took a beginner's
Java programming class last Spring, and the last homework assignment
was to write a simple Java GUI application, either as a stand-alone
application or as an applet, and I chose an applet so that I could
present it on the Web: http://www.rawbw.com/~rem/Lab7.html
I'm currently taking an advanced Java programming class.

0 new messages