Mathematics and internationalization

C

craigugoretz

Hello,

I would like to make a Java application unicode mathematics
enabled. How does internationalization support this endeavor? If it
does not, what features of the JDK would make it possible?


Sincerely,

Craig Ugoretz
 
T

Tor Iver Wilhelmsen

hiwa said:
What is it?

I think he means Unicoe math symbols.

To the OP: You will probably need to use the \uxxxx syntax to get the
glyphs into your source code. You cannot expect the user's keyboard to
be able to produce them for input purposes, though.

I18n in Java is generally tied to Locales and things that vary between
regions, like number- and date formats. Mathematical symbols do not,
and in general terms everyone can use Arabic numerals even if many
languages have their own symbols for the numbers 0 to 9.

Did you want to also support e.g. the Japanese symbols for ichi, ni,
san etc?

As an aside, it's interesting to note how the Sanskrit names for the
numbers look almost exactly like the names they got in the Latin
language sphere:

http://sanskrit.farfromreal.com/index.php?x=writ_numb
 
C

craigugoretz

Dear Tor:

Thank you for your timely response to my inquiry. What I meant
was indeed unicode math symbols. I have an idea for input: use aspect
oriented programming to intercept all references to GUI components in
my sources code, create controls that allow input of unicode (in
particular mathematics) and render unicode output, and then link the
new controls into the application. Are there any steps that I am
missing on the "object oriented side of things"? In particular, I
think I briefly read about some "java properties" that would be need to
be set to support UTF-16 (correct term?).

Sincerely,
Craig
 
O

Oliver Wong

What I meant
was indeed unicode math symbols. I have an idea for input: use aspect
oriented programming to intercept all references to GUI components in
my sources code, create controls that allow input of unicode (in
particular mathematics) and render unicode output, and then link the
new controls into the application. Are there any steps that I am
missing on the "object oriented side of things"?

How about defining a new class which subclasses your input control
(JTextArea?) which just adds buttons that the user can click on to insert
certain symbols into the JTextArea?
In particular, I
think I briefly read about some "java properties" that would be need to
be set to support UTF-16 (correct term?).

There is nothing special you need to do to enable unicode support in
Java. It's hardcoded into the design of Java to be enabled all the time.
However, the host OS may need some tweaking (e.g. installing fonts which
contain the glyphs you wish to display to the user).

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,079
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top