• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[#Red] Red language group

Pekr
26-Sep-2012
[2246]
uh, in above line, in the word "svete", the first "e" has hook above 
it, like in the original HelloWorld you used for czech ...
Ladislav
26-Sep-2012
[2247]
By "hook" he means the "caron" diacritic, also known as "hacek", 
"wedge", "inverted circumflex" or "inverted hat".
Pekr
26-Sep-2012
[2248x4]
sent new file to Doc. Doc - btw - the last sentence (which prints 
correctly), means something like "Way too much yellow horse groaned 
devilish odes" :-) That sentece is known in our language to test 
all possible special chars in Czech language and still have some 
meaning ...
Ladislav - thanks for corrections ...
Strange observation - if I add another space between two words of 
"Vitej svete", it prints correctly in the console ...
Curious, if you are able to reproduce it. And also - third char in 
Greek HelloWorld is still not resolved ...
Ladislav
26-Sep-2012
[2252x2]
That sentece is known in our language to test all possible special 
chars in Czech language
 - actually, it does not contain e.g. the acute "i", does it?
aha, it does, sorry
Pekr
26-Sep-2012
[2254]
I never investigated it, it was just suggested to me, and the sentence 
sounds pretty weird, so I remembered it :-)
Ladislav
26-Sep-2012
[2255]
How about the acute "o" is it present?
DocKimbel
26-Sep-2012
[2256x2]
Pekr: thanks will look at it after lunch.
I can reproduce the "Vitej sv" issue, working on it...
Pekr
26-Sep-2012
[2258]
cool what one additional space may cause :-) It looks like some "buffer" 
overlap in final output, or something like that :-)
DocKimbel
26-Sep-2012
[2259x5]
Pekr: fixed.
I've fixed the "broken World". :-)
I haven't received your "special" sentence though.
third char in Greek HelloWorld is still not resolved ...
 What do you get instead of the "i"?
I have opened a piratepad page for copy/pasting Unicode strings: 
http://piratepad.net/782CD4w2Ni
MagnussonC
26-Sep-2012
[2264]
Tested "Hallå Världen!" on Win 7 (UTF-8) and it works. Saving the 
file as Notepads  "Unicode" doesn't work, but I understand "Unicode" 
isn't supposed to be UTF.
DocKimbel
26-Sep-2012
[2265x2]
I guess that "Unicode" mode of Notepad is UTF-16. Red accepts only 
UTF-8 input scripts.
You need to change the encoding selector when saving with Notepad 
to UTF-8.
MagnussonC
26-Sep-2012
[2267]
Yes, I testad with UTF-8 encoded file
Pekr
26-Sep-2012
[2268]
doc - in the greek case I get just a square ...
MagnussonC
26-Sep-2012
[2269]
tested
Pekr
26-Sep-2012
[2270]
the square char can be seen on the screenshot I posted - http://www.xidys.com/pekr/red/red-unicode-bug.jpg
DocKimbel
26-Sep-2012
[2271x3]
Pekr: see my piratepad page.
You can just copy/past your console output there.
Can you paste me your DOS output of the hello script I've provided 
there?
Pekr
26-Sep-2012
[2274]
Not yet ... deleting all the repository. I deleted hello.red, and 
no way I can get tortoisegit to get it sync - it just keeps telling 
me I am uptodate
DocKimbel
26-Sep-2012
[2275]
Just copy/paste the code from piratepad to %hello.red
Pekr
26-Sep-2012
[2276x4]
When copying back to piratepad, it looks ok, but I will make a screenshot 
...
Maybe it is a font problem with the console then?
http://xidys.com/pekr/red/red-unicode-bugs.jpg
as you can see in my output, Chinese is not there, and third greek 
char is not there too ... but when copying from the console and pasting 
into Notepad, it shows the chars ...
DocKimbel
26-Sep-2012
[2280]
Ah, the squares were for Chinese characters...that's normal, Consolas 
cannot display CJK on western Windows.
Pekr
26-Sep-2012
[2281x2]
yes, chinese, plus one greek char ...
I know about the chinese, you talked about it here, but the third 
greek char?
DocKimbel
26-Sep-2012
[2283x3]
Strange, that character displays fine on my Windows 7...
See: http://static.red-lang.org/hello_unicode.png
My Windows version is 6.1.7600 while yours is 6.0.6002. That might 
explain the differences.
Pekr
26-Sep-2012
[2286]
I am still on Vista, in 2 months on Windows 8 - another adventure 
:-)
DocKimbel
26-Sep-2012
[2287x2]
Are you sure you're not using Lucida? When I switch to Lucida, I 
get that 3rd greek character issue.
Vista, then Win8...you're not skipping the right Windows versions. 
;-)
Pekr
26-Sep-2012
[2289x2]
I know, but I need new NTB after almost 6 years - at least core i5, 
8GB RAM, SSD disk :-)
yes, my font is Lucida Console. There is only one other option - 
raster ... I can't select any other font in that dialog ...
DocKimbel
26-Sep-2012
[2291]
If you want you can manually install Consolas font as explained here: 
http://www.hanselman.com/blog/UsingConsolasAsTheWindowsConsoleFont.aspx
Pekr
26-Sep-2012
[2292]
OK, but the other reported things helped to find some bugs? All was 
it all just a font issue?
DocKimbel
26-Sep-2012
[2293]
No, there were bugs and that last one is a font issue.
Pekr
26-Sep-2012
[2294]
Downloaded Console2, which allows to have tabs, and allows me to 
change fonts, so I just choosed Consolas and the output is correct 
...
Andreas
26-Sep-2012
[2295]
Happy to report that Unicode on Linux with an all-UTF8 setup works 
just fine for me.