tag:blogger.com,1999:blog-5936111837781935054.post7121557240206884492..comments2024-03-17T14:07:44.438+01:00Comments on Red Programming Language: Plan for Unicode supportNenad Rakocevichttp://www.blogger.com/profile/06600325626233743055noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-5936111837781935054.post-24884331268856210092012-09-25T08:36:51.015+02:002012-09-25T08:36:51.015+02:00"When you refer to Latin-1 are you referring ..."When you refer to Latin-1 are you referring specifically to ISO-8859-1?" Yes.<br /><br />"In Python3 you can name variables in non ascii characters!" You can do the same in Red, forgot to include that in the screenshot...next time. ;-) I agree it's a bad practice to use non-ascii for variable/function names. In case of Red and REBOL-like languages, it's an intrinsic feature. The lexer could be restricting it, but at runtime, you would be able to workaround it anyway.<br /><br />"the hello_unicode.png says 2011 and not 2012, why?" I have copy/pasted the standard header I use from other files in the github repository. I keep it as is, because I need to update dozens of file headers to set them to 2012 and add other info using a batch script But there's always more important things to do, so, in the meantime, I try to keep file headers the same in order to make the batch processing easier.Nenad Rakocevichttps://www.blogger.com/profile/06600325626233743055noreply@blogger.comtag:blogger.com,1999:blog-5936111837781935054.post-16597969096517996472012-09-25T04:52:40.317+02:002012-09-25T04:52:40.317+02:00Yes, of course I like it. :)
The good think about...Yes, of course I like it. :) <br />The good think about polytonic in this case is that it "proves" unicode is in use. Monotonic can also be ISO-8859-7 or windows-1253, but polytonic only lives in unicodeland. <br /><br />A funny accident, both english and greek "hello, world" have the same numbers of letters. <br /><br />In Python3 you can name variables in non ascii characters! Although in most cases this would be a very bad practice as it may produce confusion. (Never seen a program like this and nobody mentions it but you can try it and see) One case that it may not be bad is if someone is not doing programming but mathematica-like computations. I wonder if this happens in red too<br /><br />the hello_unicode.png says 2011 and not 2012, why?Λύκινοςhttps://www.blogger.com/profile/10680255298496274615noreply@blogger.comtag:blogger.com,1999:blog-5936111837781935054.post-39280243653185909992012-09-25T03:22:48.785+02:002012-09-25T03:22:48.785+02:00When you refer to Latin-1 are you referring specif...When you refer to Latin-1 are you referring specifically to ISO-8859-1 ?Peter W A Wood, Programmerhttps://www.blogger.com/profile/06324252083386461247noreply@blogger.comtag:blogger.com,1999:blog-5936111837781935054.post-78833981658157338442012-09-25T02:00:32.664+02:002012-09-25T02:00:32.664+02:00I guess you will like this one: http://static.red-...I guess you will like this one: http://static.red-lang.org/hello_unicode.png ;-)Nenad Rakocevichttps://www.blogger.com/profile/06600325626233743055noreply@blogger.comtag:blogger.com,1999:blog-5936111837781935054.post-82092525580018576612012-09-24T12:25:29.851+02:002012-09-24T12:25:29.851+02:00nice! :)
Greek is my native language but I just ma...nice! :)<br />Greek is my native language but I just made some research to solve some questions, especially about the comma. I found the phrase even with no connection to computer programming (for example here: http://agonasax.blogspot.gr/2012_06_01_archive.html )<br />About the comma although I found both using it and not using it, I concluded that it is better to be used. What make my mind was mostly the akathist. There it is used (Χαῖρε, νύμφη ἀνύμφευτε)<br /><br />So <br />Χαῖρε, κόσμε!<br />might be better.<br /><br />;-)Λύκινοςhttps://www.blogger.com/profile/10680255298496274615noreply@blogger.comtag:blogger.com,1999:blog-5936111837781935054.post-3988917862286460362012-09-24T10:16:30.441+02:002012-09-24T10:16:30.441+02:00I'm already using greek in my early Unicode te...I'm already using greek in my early Unicode tests!<br /><br />greek: "αβγδεζηθικλμνξοπρςστυφχψω"<br /><br />I will add your HelloWorld greek version to the Chinese one for the final HelloWorld script, thanks! ;-)Nenad Rakocevichttps://www.blogger.com/profile/06600325626233743055noreply@blogger.comtag:blogger.com,1999:blog-5936111837781935054.post-12170347499485478012012-09-24T10:13:21.824+02:002012-09-24T10:13:21.824+02:00To show unicode support use Greek:
Χαῖρε κόσμε!
T...To show unicode support use Greek: <br />Χαῖρε κόσμε!<br />That is "Hello world!" in Greek (polytonic)Λύκινοςhttps://www.blogger.com/profile/10680255298496274615noreply@blogger.comtag:blogger.com,1999:blog-5936111837781935054.post-2943005606855989572012-09-23T11:03:56.309+02:002012-09-23T11:03:56.309+02:00That will depend on what encoding for the pressed ...That will depend on what encoding for the pressed key the host system gives us (codepoint, UTF-8, UTF-16, ...).Nenad Rakocevichttps://www.blogger.com/profile/06600325626233743055noreply@blogger.comtag:blogger.com,1999:blog-5936111837781935054.post-60686379401119904262012-09-23T02:01:56.863+02:002012-09-23T02:01:56.863+02:00Have you decided how to handle keyboard input? Wil...Have you decided how to handle keyboard input? Will Red expect all keyboard input to be either UTF-8 or UTF-16 or will it handle other encodings (e.g. Windows Codepages)?Peter W A Wood, Programmerhttps://www.blogger.com/profile/06324252083386461247noreply@blogger.comtag:blogger.com,1999:blog-5936111837781935054.post-19758982656487780522012-09-22T22:24:14.435+02:002012-09-22T22:24:14.435+02:00A true lightning start. And very wise not to inven...A true lightning start. And very wise not to invent the wheel on fire again. Arnoldnoreply@blogger.com