We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Being new to Processing as I am and wishing to write a natural language processing program for a very dead language (Mycenaean Linear B), I have several questions. I have a TT font that will display the MLB script. How can I use it in Processing? The language is encoded in UTF-32 unlike almost everything else. Does this pose any problems? How do I declare it in a program?
Answers
Got no experience but I guess a UTF-32 text would need an
int[]
array in order to store each code point.Since Java's String is UTF-16, any code point above a certain limit gotta be converted into 2
char
values.Check it out my lousy attempt on it and see whether it's any help: :-??
You asked the question in a p5.js category, so is the question targeting specifically JS or is it a Java question? In the latter case, edit your question to move to a proper category (How To, likely, or Programming Question perhaps).
I think Java's String is able to handle surrogates to manipulate UTF-32 entities, and that the \u notation can work for such characters, but this has to be checked (no time right now).
Once again, being new to this forum, I wasn't sure where to post. I just saw some string related questions and posted there. Sorry. BYW, my query was not about JAVA but about PROCESSING. I do not want to write JAVA code.
Processing isn't a programming language per se but merely a framework!
What is known as Java Mode is Processing framework atop Java language! :-B
Of course, there are other Processing framework implementations for other programming languages too.
See http://www.oracle.com/us/technologies/java/supplementary-142654.html for more information.