World: r3wp
[Rebol School] Rebol School
older newer | first last |
kib2 8-Feb-2009 [1948] | great ! and can you make some parts of text to be bold or italics, etc ? |
Geomol 8-Feb-2009 [1949] | view layout [text italic "italic text" text bold "bold text"] |
Henrik 8-Feb-2009 [1950] | there is limited freedom in VID for that in that each face must have one style, so if you want to render large chunks of formatted text, it may be a bit slow. this is solved in REBOL 3. |
Geomol 8-Feb-2009 [1951] | To make to look good with italic and bold text in the middle, you can use the function SIZE-TEXT to get the layout sizes. |
kib2 8-Feb-2009 [1952] | Geomol: so I've to study VID this week, but R3 seems so nice compared to R2 on this point. |
Geomol 8-Feb-2009 [1953x3] | Yes, it takes some more work to do it in R2. |
But still, compared with other languages, it's probably easy enough. | |
I'm going to bed. Night! And happy coding! :-) | |
Henrik 8-Feb-2009 [1956x2] | in R3, the DOC style is a miniaturized makedoc. |
night | |
kib2 8-Feb-2009 [1958x2] | good night Geomol, I follow you ! |
Good night Henrik, see you | |
Janko 8-Feb-2009 [1960] | incorporating webkit into rebol would certanly open whole new window of possibilites .. (but at this point it would also distract focus) |
Chris 8-Feb-2009 [1961x2] | K: If I could write the ALA article again, I would do it differently - even if the underlying principle endures. |
G: there was at least one View-based browser/HTML viewer, but it was one of FrankS's disappearing FX5 scripts. | |
DideC 9-Feb-2009 [1963] | I also give it a try. Not really a browser, just an HTML renderer with view/draw. But rendering HTML is a very complex thing to do, especially the layout, tables... So it is only able to render texte styles. |
Henrik 9-Feb-2009 [1964] | In the long run, it's probably better to adopt something like webkit. Creating a good HTML rendering engine is a monstrous task, but I would like to see an extension of the DOC style for good document reading. |
Janko 9-Feb-2009 [1965] | I fully agree wiht Henrik |
DideC 9-Feb-2009 [1966x2] | Yeah, DOC style is a good start. But there are already great things with R2 : remembering HyperNotes (In R2 Desktop, rebol.com, Contest) this is a Makedoc based and rendering is just fine, with links and so on !! |
It could be a good base for a remote Wiki editor. Just add an HTML generator to convert to static pages tree. | |
kib2 11-Feb-2009 [1968x2] | Hi ! |
How could I run a Rebol script from the command line (without using Rebol's own console). I've tried typing : "rebview.ewe myfile.r" (idem with rebcore) form a windows console, but the output disappear instantaneously. | |
Pekr 11-Feb-2009 [1970] | You want output to windows console? I am not sure it is possible with rebol console. It is possible with R3 though. If you want to stop your script, just add "halt" command at the end of your script, it will not close the console ... |
kib2 11-Feb-2009 [1971] | (I'm running under Windows 7) |
Pekr 11-Feb-2009 [1972x2] | Maybe I just don't understand, what you're trying to achieve ... |
also - type >> usage in rebol console to see possible options ... | |
kib2 11-Feb-2009 [1974x2] | Pekr: yes, I want to output to the console. |
But thanks, "halt" solved my problems as I can now launch my script from my editor and watch the Rebol's console output. | |
Janko 11-Feb-2009 [1976x2] | I am not sure if you can run rebol script in "real" console on windos, but on linux you can |
I mean , I didn't see that options on windows | |
kib2 11-Feb-2009 [1978x2] | Janko: it seems to me that it's not possible. |
Can someone help ? I want to know why my second title is not recognized : http://clojurepastebin.appspot.com/1007 | |
Henrik 11-Feb-2009 [1980] | Looks like the rest of the text is handled like one big paragraph. |
kib2 11-Feb-2009 [1981] | Henrik: sure, but why ? |
Henrik 11-Feb-2009 [1982] | I would guess you want a paragraph to be parsed until two newlines occur? |
kib2 11-Feb-2009 [1983] | Exactly! Also, running this snippet in R3 does not bring the same result. |
Henrik 11-Feb-2009 [1984] | I would not trust R3's parse for now. It's buggy and changing. |
kib2 11-Feb-2009 [1985] | ok, and for my paragraphs ? |
Henrik 11-Feb-2009 [1986] | I suggest you take a look at the makedoc parser. it does exactly that. I'm not sure how to solve that problem. |
kib2 11-Feb-2009 [1987] | Ok, thanks for the tip. |
Geomol 11-Feb-2009 [1988] | kib, you write: title: [ 1 6 "=" copy title to newline ] In that, you use the word title for two things, so you destroy your intention. Change one of them to another word (remember to do it again further down your code). |
kib2 11-Feb-2009 [1989] | Geomol: my fault, thanks a lot! I didn't notice I've used "title" for 2 different purpose. Changing the variable name solved the issue. |
Geomol 11-Feb-2009 [1990] | :-) You're welcome! |
kib2 11-Feb-2009 [1991] | I really enjoy playing with Rebol |
Geomol 11-Feb-2009 [1992] | Me 2! |
kib2 11-Feb-2009 [1993] | I mean I never saw something so 1/ simple and 2/ powerful |
Geomol 11-Feb-2009 [1994x2] | You might wanna use TRIM with your titles. |
Neither did all of us here. That's why we use REBOL. | |
kib2 11-Feb-2009 [1996x2] | Ok, I just checked TRIM : that's useful. |
I've somewhat modified the TextMate bundle for REBOL for e TextEditor, and made a new theme for it : http://tinyurl.com/dxt89p. I someone is interested, let me now. | |
older newer | first last |