From: Peter Olcott on 22 May 2010 15:27 http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html I already have this link, and these seems to indicate that the only internationalization of the Java language pertains to identifiers. From this document it looks like no local (non ASCII) punctuation or local (non ASCII) decimal digits are allowed in the Java language. Its this definitively correct?
From: Jeff Higgins on 22 May 2010 15:41 On 5/22/2010 3:27 PM, Peter Olcott wrote: > http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html > > I already have this link, and these seems to indicate that > the only internationalization of the Java language pertains > to identifiers. From this document it looks like no local > (non ASCII) punctuation or local (non ASCII) decimal digits > are allowed in the Java language. Its this definitively > correct? > > <http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.1> Except for comments (�3.7), identifiers, and the contents of character and string literals (�3.10.4, �3.10.5), all input elements (�3.5) in a program are formed only from ASCII characters (or Unicode escapes (�3.3) which result in ASCII characters).
From: Lew on 22 May 2010 16:11 Peter Olcott wrote: > http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html > > I already have this link, and these seems to indicate that > the only internationalization of the Java language pertains > to identifiers. From this document it looks like no local > (non ASCII) punctuation or local (non ASCII) decimal digits > are allowed in the Java language. Its this definitively > correct? That is correct, insofar as non-String constants and other non-identifier elements outside of comments are concerned, but of course you can internationalize the display of those values to your heart's content. There really is no such thing as "punctuation" in the Java language, as the term is usually understood. There are non-alphabetic, non-numeric characters in the language like semicolon (';') that have specific semantics. You should not use an out-of-date language specification, though. Use the current one. -- Lew
From: Peter Olcott on 22 May 2010 16:28 "Lew" <noone(a)lewscanon.com> wrote in message news:ht9dor$icr$1(a)news.albasani.net... > Peter Olcott wrote: >> >> http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html >> >> I already have this link, and these seems to indicate >> that >> the only internationalization of the Java language >> pertains >> to identifiers. From this document it looks like no local >> (non ASCII) punctuation or local (non ASCII) decimal >> digits >> are allowed in the Java language. Its this definitively >> correct? > > That is correct, insofar as non-String constants and other > non-identifier elements outside of comments are concerned, > but of course you can internationalize the display of > those values to your heart's content. > > There really is no such thing as "punctuation" in the Java > language, as the term is usually understood. There are > non-alphabetic, non-numeric characters in the language > like semicolon (';') that have specific semantics. > > You should not use an out-of-date language specification, > though. Use the current one. Got a link to this? > > -- > Lew One guy in another group was telling me that the typical way to internationalize a computer language would be to take the local punctuation marks and translate them in their ASCII equivalents. The case in point was a Comma as the delimiter between parameters.
From: Jeff Higgins on 22 May 2010 16:39
On 5/22/2010 4:28 PM, Peter Olcott wrote: > "Lew"<noone(a)lewscanon.com> wrote in message > news:ht9dor$icr$1(a)news.albasani.net... >> Peter Olcott wrote: >>> >>> http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html >>> >>> I already have this link, and these seems to indicate >>> that >>> the only internationalization of the Java language >>> pertains >>> to identifiers. From this document it looks like no local >>> (non ASCII) punctuation or local (non ASCII) decimal >>> digits >>> are allowed in the Java language. Its this definitively >>> correct? >> >> That is correct, insofar as non-String constants and other >> non-identifier elements outside of comments are concerned, >> but of course you can internationalize the display of >> those values to your heart's content. >> >> There really is no such thing as "punctuation" in the Java >> language, as the term is usually understood. There are >> non-alphabetic, non-numeric characters in the language >> like semicolon (';') that have specific semantics. >> >> You should not use an out-of-date language specification, >> though. Use the current one. > > Got a link to this? > >> >> -- >> Lew > > One guy in another group was telling me that the typical way > to internationalize a computer language would be to take the > local punctuation marks and translate them in their ASCII > equivalents. The case in point was a Comma as the delimiter > between parameters. > > A preprocessor? |