World: r3wp
[Rebol School] Rebol School
older newer | first last |
[unknown: 5] 21-Nov-2008 [892] | The great thing about using ports in this case is that you can access the data as it is changed. So you don't have to wait until the whole script is finished executing. |
Gregg 21-Nov-2008 [893x4] | I posted a reply there, but don't hang out there, so let me know if I need to respond to answer a question about what I posted. |
Here's basically what I posted: | |
transform: func [ block [block!] "Datatset to transform" cmds [block!] "Transformation commands to perform" /local run-map-transform main= map-blk= src= dest= =map-blk =src =dest ][ run-map-transform: func [src [integer!] dest [integer!] map [any-block!] /local val] [ foreach item block [ if val: select/skip map item/:src 2 [change item/:dest val] ;print [val mold item] ] ] map-blk=: ['using set =map-blk word!] src=: ['field set =src integer!] dest=: ['into opt 'field set =dest integer!] map-cmd=: [ ['map src= map-blk= dest= | map-blk= 'map src= dest=] ;(print [=map-blk =src =dest]) (run-map-transform =src =dest get =map-blk) ] main=: [some map-cmd=] either parse cmds main= [dataset] [none] ; decide how to handle bad cmd scenario ] transform copy dataset [map field 2 using glcodehash into field 4] transform copy dataset [using glcodehash map field 2 into field 4] | |
Hacked quickly, not heavily tested. Caveat emptor. | |
Alexandr 21-Nov-2008 [897x4] | Thank you Pekr and Sunanda for your replies and suggestion on my question about unicode and cyrillic. I tried ascii-chart script and it unfortunately doesn't show any cyrillic letters :-( I understand you, I have to wait until r3 is released, but I don't want to wait for it (as I can see from forum posts it could be not very soon). |
Is there any other way to recode cyrilic letters? I mean ANY actually, coz I liked the way and philosophy of rebol which Carl wrote about in his blog very much and I'd like to be able to write rebol programs in my language, but how? I don't look now on any net-spicific programs, I want to try myself in very simple program for menu managment in my distro (http://www.puppylinux.org). It is Russian development of quite well-known Puppy Linux by Bary Cauler, so we need cyrillic. As for other languages like C, Python, Java etc - I'm not a programmer and (this is why) I really loved the way that "simple things can be done in a simple way". My few trials to write a program using Glade in Ubuntu were unhappy - it seems like a one big bug, I even couldn't make a little program! It seems to me that bash is more transparent that Glade sometimes... | |
Also I begin to understand why there is a problem with rebol popularity - absenbse of unicode in Rebol is only one of reasons. I was very surprised that there are almost no Russian resources about Rebol! How can people begin to use anything - if they cannot even read about it in their native language? I think it's a big mistake - not to have a translation group for Rebol - like one in Gnome dev, KDE etc. I could participate in it and to help promote Rebol in Russia, but it is a huge work which could not be done by one or two men, and surely, I can't start such a project - I think it should be done by you, Rebol-gurus. Then, you could coordinate translations and we could begin to make Rebol more international and popular. P.S. Not sure this is a right place to write about, but I didn't find something more suitable... | |
It is sad - I even can't start a Russian group here where people could write not only in English, but in Russian too. ALTME doesn't support cyrillic as well. No need to say that without unicode support, without ability to interact with other programs/processes from parent OS Rebol becomes almost useless for masses... | |
Graham 21-Nov-2008 [901] | Wait for Rebol 3 |
Gregg 21-Nov-2008 [902] | You'll be a great tester for Unicode support in R3 Alexandr. :-) |
PeterWood 21-Nov-2008 [903] | Great example of a DSL Gregg. |
Graham 21-Nov-2008 [904x3] | If you want to translate the documentation, I have copied the wiki to another wiki at http://www.compkarori.co.nzwhich has multilanguage support |
The current mediawiki is too old to support multiple languages | |
Since it is a vm, I can make the whole thing available for download sometime. | |
PeterWood 21-Nov-2008 [907] | Jerry Tsai was able to display ChineseJapanese and Korean text in Rebol. So it's wouldn't be impossible to dislay cyrillic text, just very difficult. Here's a glimpse ... http://jerrylovesrebol.blogspot.com/2008/01/animate-tabbedpane.html |
Steeve 21-Nov-2008 [908] | what technic he used ? some images of ideograms ? |
Graham 21-Nov-2008 [909] | Jerry using R3 |
Steeve 21-Nov-2008 [910] | holy sh*t, who he killed he to have a copy of R3 |
Graham 21-Nov-2008 [911] | no one, the current alpha release has unicode support |
Steeve 21-Nov-2008 [912] | the first one ? |
Graham 21-Nov-2008 [913] | the graphics subsystem was done ... just no VID |
Steeve 21-Nov-2008 [914x2] | hum it''s currently bugous, even the subsystem |
i tried caret-to-offset, offset-to-caret, it doesn't work | |
PeterWood 21-Nov-2008 [916x2] | Jerry didn't wait for r3. He did this in May 2007 - http://city.udn.com/v1/blog/photo/photo.jsp?uid=JerryTsai&f_PHOTO_ID=774988 |
It was reported on The Rebol Week by some fellow called Graham ;-) | |
Graham 21-Nov-2008 [918x2] | different |
see his screenshots of chinese in the R3 console | |
Steeve 21-Nov-2008 [920x2] | i over reacted, i'm not currently intersted by unicode ;-) |
i made some test to build an RTE editor using gobs, but as i said the current alpha is bugous | |
Graham 21-Nov-2008 [922x4] | well some decisions were made. |
so we should see a public release very soon .... | |
need a site to host the BBS and to select one. | |
probably phpBB3 | |
Alexandr 21-Nov-2008 [926] | Thank you for hint. But unfortunately current alpha release I have found is only for Windows and I don't use it :-( At least I had no luck to find rebol3 for Linux |
Sunanda 22-Nov-2008 [927x2] | Alexandr: < I tried ascii-chart script and it unfortunately doesn't show any cyrillic letters> What I did that showed me some cyrillic was this: ** download the ascii-chart.r script from rebol.org ** change this line [append hex-lo [box 25x25 blue] to [append hex-lo [box 25x25 blue font-name "WP CyrillicA"] WP CyrillicA is a Cyrillic font I happen to have installed on my Windows PC. Any Cyrilic font you have is likely to have a different name. When specifying the font name it is case sensitive. If this works for you. it may also help for many VID styles (BOX, BUTTON etc) It probably won't help for ALTER and other pop-up boxes |
Alter!? I mean ALERT of course. | |
RobertS 22-Nov-2008 [929] | I have found some errors in the rebol wiki book. I sent themto Carl but he must be far too busy for this sort of thing. The falws failed in 2.7.6 but failed with different result in th eold 3.0 alpha Is anyone here on altme interested in the wikibook ? |
Graham 22-Nov-2008 [930] | wikibook? |
Henrik 22-Nov-2008 [931] | Carl has nothing to do with the Wikibook. We have an old group for the Wikibook. |
Graham 22-Nov-2008 [932] | Yes, a few of us here are authors for it |
Henrik 22-Nov-2008 [933] | It was written before R3 was announced. I don't even know if anyone has updated it since then. |
Graham 22-Nov-2008 [934x3] | we should move the wikibook to the new wiki once it is up and running. |
Richard has offered us a PC to host the web BBS and new wiki | |
we should be able to use wiki tools to download it and I can then upload to the new wiki | |
Alexandr 22-Nov-2008 [937] | Sunanda, thanks for your help. Anyway, I tried all my fonts, which do have russian (cyrillic) letters, but still had no luck. Seems I really have to wait for Rebol3 as nobody knows how to solve this. |
Sunanda 23-Nov-2008 [938] | Sorry to hear that. Have you tried any of the available UNICODE-enabled R3 alphas to see if they work with Cyrillic? |
Vladimir 23-Nov-2008 [939] | This is of great importance for me to.... There are three alphabets in use in my county... Whitout these characters I can not enter any name properly into database and can not print forms required by law... There are ways around it offcourse.. but I want r3 so badly :) |
Alexandr 23-Nov-2008 [940] | Sunanda, I don't have Windows since this summer any more, and the only alpha I have found (http://www.rebol.net/builds/rebol3/alpha/rebol29904031.zip) works only under Win. I guess there was no alpha release for Linux yet... |
Henrik 23-Nov-2008 [941] | Not yet a linux release, as cursor management under the linux console would no longer be handled by the GNU tools for that. I don't remember the details, but it is seriously not fun to use, when you can only enter text and not use the cursor at all.. |
older newer | first last |