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

World: r4wp

[#Red] Red language group

DocKimbel
26-Sep-2012
[2225x2]
Pekr: you should look at our more recent posts, the first string 
I posted had the wrong codes. The right string is:

Dobr^(FD) den sv^(011B)t
You can find the codepoints you need here: http://en.wikipedia.org/wiki/List_of_Unicode_characters
Ladislav
26-Sep-2012
[2227]
Doc, a minor nitpicking: it is a vocative and thus the correct spelling 
should be

Dobr^(FD) den sv^(011B)te
Pekr
26-Sep-2012
[2228x3]
OK, but why do I need those codes in the first place?
In R3, if script is in the UTF-8 format, I can imo directly type 
it in Notepad ...
... but - it is a long time I tried it, so not sure ...
DocKimbel
26-Sep-2012
[2231x2]
Pekr: I'm giving you the codes because it seems something is going 
wrong with your editor. In my Notepad or any other decent text editor 
here, I can type (or copy/paste them from the web) without any issue.
Ladislav: nitpicking accepted in such case. :-)
Pekr
26-Sep-2012
[2233x2]
Doc - I can type without any issue, it is just that it does not display 
correctly in my console :-)
So, give me an email, I will send the exact script to you for you 
to try ....
DocKimbel
26-Sep-2012
[2235x2]
[nr-:-red-lang-:-org]
You should have zipped the hello.red script to preserve its original 
encoding.
Pekr
26-Sep-2012
[2237]
done
DocKimbel
26-Sep-2012
[2238]
I've reproduced your issue
Pekr
26-Sep-2012
[2239]
cool :-) So what's the issue about?
DocKimbel
26-Sep-2012
[2240x4]
Don't know, looking into it...the ! character seems correctly encoded.
Might be a corruption bug.
...or rather a null character termination bug.
Pekr: I've fixed several bugs thanks to your HelloWorld, thank you. 
:-) Let me know if it's fine with the new commit.
Pekr
26-Sep-2012
[2244]
partially fixed, but my suspicion is, there might be other related 
problems. Will explain - I replaced "Dobry den" (good day) with "Vitej" 
(Welcome), with the comma above "i" char. Or try with just ordinary 
"i". Simply put - insert following line after the Czech HelloWorld:

print "Vitej svete" 

here it prints onle "Vitej sv"
PeterWood
26-Sep-2012
[2245]
It works for me on OSX and Windows 7
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