1998-04-10 06:59:06 -04:00
|
|
|
|
;;;;
|
|
|
|
|
;;;; w w w - t x t . s t k -- WWW for STk (txt files reader)
|
|
|
|
|
;;;;
|
1999-09-05 07:16:41 -04:00
|
|
|
|
;;;; Copyright <20> 1996-1999 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
|
1998-04-10 06:59:06 -04:00
|
|
|
|
;;;;
|
1999-09-05 07:16:41 -04:00
|
|
|
|
;;;; Permission to use, copy, modify, distribute,and license this
|
|
|
|
|
;;;; software and its documentation for any purpose is hereby granted,
|
|
|
|
|
;;;; provided that existing copyright notices are retained in all
|
|
|
|
|
;;;; copies and that this notice is included verbatim in any
|
|
|
|
|
;;;; distributions. No written agreement, license, or royalty fee is
|
|
|
|
|
;;;; required for any of the authorized uses.
|
|
|
|
|
;;;; This software is provided ``AS IS'' without express or implied
|
|
|
|
|
;;;; warranty.
|
1998-04-10 06:59:06 -04:00
|
|
|
|
;;;;
|
|
|
|
|
;;;; This version uses some of the enhancements done by Harvey J. Stein:
|
|
|
|
|
;;;; Copyright (c) 1995 Harvey J. Stein (hjstein@math.huji.ac.il)
|
|
|
|
|
;;;;
|
|
|
|
|
;;;; Author: Erick Gallesio [eg@unice.fr]
|
|
|
|
|
;;;; Creation date: 4-Oct-1996 22:27
|
1999-09-05 07:16:41 -04:00
|
|
|
|
;;;; Last file update: 3-Sep-1999 19:57 (eg)
|
1998-04-10 06:59:06 -04:00
|
|
|
|
;;;;
|
|
|
|
|
|
|
|
|
|
;; Add the Text viewer
|
|
|
|
|
|
|
|
|
|
(with-module WWW
|
|
|
|
|
(let ((view (lambda (txt fd url) (txt 'insert "end" (port->string fd)))))
|
|
|
|
|
(www:add-viewer (string->regexp "\\.txt$") view)
|
|
|
|
|
(www:add-viewer 'txt view)))
|
|
|
|
|
|
|
|
|
|
(provide "www-txt")
|