Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] First attempt at Rebol - 16 hours later

From: greg:schofield:iinet:au at: 23-Sep-2007 22:48

I am no programmer, as a quick glance here will tell: GUIs proved beyond me, at least a good quarter or more of the 16 hours proved that. I have now got to the point however, where I need to use them. The script is messy, and even has redundant code in it (from failed experiements mostly). The aim is simple enough - take a text file of a book from OCR, or in the exmples given, from the Gutenberg project and mark them up. The problem is that it necessarily a human undertaking (relying on grep, or search and replace is hazardess - the source material is not reliable or consistent). The aim is to use carriage returns as suggested markers, but allow the user to group and identify parts of the books as chapters, sections, etc.,. For this it generates a map of patterns and from these the user needs to click on the map and see the text before selecting what shoud be done with it. The idea is to make a dialect in plain English which identifies what is to be done with what and when satisified that the description fits the work, then have it processed. REBOL's block series has been a blessing, it makes a lot of things easy (but I still have a lot to learn). If anyone has the time please run my script with the examples found in the zip. Any comment would be welcomed. I am an English teacher and need to produce textbooks cheaply and easily - the long term aim is to have texts taged in TEI XML and generate PDFs from there, for both screen and paper reading. At the moment I am doing it all by hand via OpenOffice - the script even as it now stands (incomplete) already saves me hours, if I can get it to the next stage, it should only take a few minutes to get it ready for layout at least. BTW learning a language from scratch and at least creating something half-useful is a big complement to just how good REBOL is, especially as I would probably spend less than 50 hours a year doing any form of scripting (REXX). Greg Schofield Perth Australia