home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk1.iso
/
answers
/
tcl-faq
/
part3
< prev
next >
Wrap
Text File
|
1994-09-28
|
24KB
|
582 lines
Newsgroups: comp.lang.tcl,comp.answers,news.answers
Path: bloom-beacon.mit.edu!grapevine.lcs.mit.edu!olivea!charnel.ecst.csuchico.edu!yeshua.marcam.com!news.kei.com!eff!wariat.org!malgudi.oar.net!chemabs!lvirden
From: lvirden@cas.org (Larry W. Virden)
Subject: FAQ: comp.lang.tcl Frequently Asked Questions (3/5)
(Last updated: August 19, 1994)
Message-ID: <tcl.p3_780761786@cas.org>
Followup-To: comp.lang.tcl
Summary: A regular posting of the comp.lang.tcl Frequently Asked Questions
(FAQ) and their answers. This is the third of five parts.
This part is a catalog of miscellaneous Tcl-based items.
Originator: lvirden@cas.org
Keywords: tcl, expect, extended tcl, wish, tk
Sender: lvirden@cas.org
Supersedes: <tcl.p3_778352339@cas.org>
Reply-To: lvirden@cas.org (Larry W. Virden)
Organization: Chemical Abstracts Service
References: <tcl.p2_780761786@cas.org>
Date: Wed, 28 Sep 1994 14:16:38 GMT
Approved: news-answers-request@MIT.Edu
Expires: Wed, 9 Nov 1994 14:16:26 GMT
X-Url: http://www.cis.ohio-state.edu/hypertext/faq/usenet/tcl-faq/part3/faq.html
Lines: 557
Xref: bloom-beacon.mit.edu comp.lang.tcl:18137 comp.answers:7486 news.answers:26438
Archive-name: tcl-faq/part3
Version: 6.0
Last-modified: August 19, 1994
For more information concerning Tcl (see "tcl-faq/part1"),
(see "tcl-faq/part2"), (see "tcl-faq/part4") or (see "tcl-faq/part5").
Index of questions:
XI. Where can I get these packages?
A. Retrieving Tcl and Tk
B. Accessing the Tcl/Tk User Contributions Archive
C. Expect available via e-mail.
D. EMACS modes for Tcl
E. The tk toolbox project
F. [tv]grind definitions for tcl/tk/expect
G. BNF style notation for Tcl
H. Tk Quick Reference Card
I. Hilit 19 Tcl mode
J. HTML versions of Tcl man pages and FAQ.
K. Japanese translation of Tk 3.6 manuals
L. Latex styles for the Tcl/Tk Workshop 94.
M. Tcl 7.3 Quick Reference card
N. "How do I speed up a Tcl/Tk application" doc
End of FAQ Index
----------------------------------------------------------------------
------------------------------
From: FAQ Tcl/Tk Package Catalog
Subject: -XI- Where can I get these packages?
Tcl and Extended Tcl have been posted to comp.sources.misc in the past,
appearing In volume 25 and then Tcl appeared again in volume 26 and can
be found at most comp.sources.misc archive sites in the tcl and tclx
directories. These are quite old versions actually, but are still usable.
A few of the sites which either mirror the Tcl/Tk submissions or have special
versions are:
<URL:ftp://syd.dit.csiro.au/pub/tk/> <- shadow of harbor and ftp.cs
<URL:ftp://iskut.ucs.ubc.ca/pub/X11/tcl/>
<URL:ftp://ftp.cs.tu-berlin.de/pub/tcl/> <- Does not seem to be answering
<URL:ftp://ftp.Germany.EU.net/pub/programming/tools/tcl/>
<URL:ftp://ftp.hrz.uni-kassel.de/pub/tcl/> <- berkeley
<URL:ftp://ftp.informatik.tu-muenchen.de/pub/comp/programming/languages/tcl/>
<URL:ftp://ftp.mpi-sb.mpg.de/pub/tcl/>
<URL:ftp://ftp.tu-bs.de/pub/languages/tcl/>
<URL:ftp://ftp.uni-paderborn.de/unix/tcl/>
<URL:ftp://ftp.funet.fi/pub/languages/tcl/> <- harbor
<URL:ftp://ftp.ibp.fr/pub/tcl/> <- shadow of berkeley,harbor,nist.gov (expect),
crl.dec.com (ak), uky.edu (tkwin), comp.lang.tcl archive
<URL:ftp://ftp.jussieu.fr/pub/tcl/>
<URL:ftp://ftphost.comp.vuw.ac.nz/> <- VUW
<URL:ftp://ftp.sra.co.jp/pub/lang/tcl/>
<URL:ftp://oskgate0.mei.co.jp/free/X/toolkits/tcl/> <- shadow of ftp.cs only
<URL:ftp://ftp.ncc.up.pt/pub/tcl/code/> <- some code mirrored
<URL:ftp://src.doc.ic.ac.uk/packages/tcl/tcl-archive> <- shadow of harbor
<URL:ftp://src.doc.ic.ac.uk/usenet/news.answers/comp.lang.tcl/> <- shadow of
FAQs
<URL:ftp://unix.hensa.ac.uk/pub/yggdrasil/usr/lib/xf-2.3/>
<URL:ftp://ftp.cs.berkeley.edu/ucb/tcl/> <- original home of Tcl/Tk
<URL:ftp://ftp.cs.columbia.edu/pub/archives/tcl/> <- shadow of harbor, etc.
<URL:ftp://ftp.neosoft.com/pub/tcl/distrib> <- original home of TclX
<URL:ftp://ftp.uu.net/languages/tcl/> <- shadow of ftp.cs only
<URL:ftp://gatekeeper.dec.com/pub/UCB/tcl/sprite/> <- shadow of ftp.cs only
<URL:ftp://harbor.ecn.purdue.edu/pub/tcl/> <- the original home of user
contribution archive
<URL:ftp://sunsite.unc.edu/pub/languages/tcl/>
<URL:ftp://sunsite.unc.edu/pub/Linux/> <- contains port of extended Tcl and
extended Tk to this OS.
------------------------------
From: -XI- Where can I get these packages?
Subject: -A- Retrieving Tcl and Tk
>From: ouster@cs.Berkeley.EDU (John Ousterhout)
>Newsgroups: comp.lang.tcl
>Subject: Obtaining Tcl/Tk sources
For people new to the Tcl/Tk community, here is information on how
to obtain Tcl and Tk sources. The information below describes what
I distribute; other information is available from other machines
also, such as harbor.ecn.purdue.edu.
The sources and documentation for the Tcl command
language library, for the Tk toolkit, and for a few Tcl-based
applications, are in the public FTP area on ftp.cs.berkeley.edu.
All of these files are in the "tcl" subdirectory of the FTP area.
Here is a catalog of what's available. Most of the files are
compressed tar files ("xxx.tar.Z"). There is some overlap
between the contents of the various packages.
tk3.6.tar.Z - This is the latest and most stable release of the
Tk toolkit, released in November 1993 (patch level
206). It includes the sources for the Tk library
and the "wish" windowing shell, plus reference
manual entries and a number of demonstration scripts.
tk3.6p1.patch.Z - Patch file that fixes bugs in Tk version 3.6.
See the beginning of the patch file for information
about the bugs it fixes and how to apply it.
tcl7.3.tar.Z - This is the latest and most stable release of the
Tcl library, released in November 1993 (patch level
106). It includes the sources for the Tcl library
and the "tclsh" application, plus reference manual
entries.
tclX7.3b.tar.Z - Extended Tcl (or NeoSoft Tcl), created by Mark
Diekhans and Karl Lehenbauer, which adds a number
of useful facilities to the base Tcl release.
Among the things in Extended Tcl are a Tcl shell,
many new commands for things like UNIX kernel
call access, keyed lists, and time conversion, and an
on-line help facility. This package works with Tcl
versions 7.3 or later and Tk versions 3.6 or later.
mx.tar.Z - Sources and documentation for a mouse-based text
editor (mx) and terminal emulator (tx) based on
Tcl. This is a very old release: it uses an old
version of Tcl (which is included) and doesn't
even use Tk; it uses an ancient toolkit called
"Sx". These tools will eventually be replaced
with new tools based on Tk and the newest Tcl.
mx-2.5.tar.Z - Newer version of mx (see above) that uses the
standard X selection mechanism rather than the
home-grown mechanism used by previous versions.
Version 2.5 is not backwards compatible with
previous versions (you can't cut and paste between
the two). Still uses sx and an old version of
Tcl (both of which are included).
book.p*.ps.Z Compressed Postscript for an early draft of the
book "Tcl and the Tk Toolkit", which was published
by Addison-Wesley in April 1994 (ISBN 0-201-63337-X).
The draft is in four parts, each in a separate file.
You're probably better off with the published version
of the book, though; it has a number of improvements
and an index.
book.p1.ps.Z This part describes the Tcl language and how to write
scripts in it. About 130 pages in length.
book.p2.ps.Z This part of the book describes how to write
Tcl scripts for Tk. About 125 pages in length.
book.p3.ps.Z This part of the book describes how to write Tcl
applications in C, using the Tcl library procedure.
64 pages in length.
book.p4.ps.Z This part of the book describes how to write new
widgets and geometry managers in C, using the Tk
library procedures. About 70 pages in length.
book.examples.Z Compressed file containing ASCII text for nearly all
of the examples from the Tcl book.
tclUsenix90.ps - Postscript for a paper on Tcl that appeared in the
Winter 1990 USENIX Conference.
tkUsenix91.ps - Postscript for a paper on Tk that appeared in the
Winter 1991 USENIX Conference.
tkF10.ps - Postscript for Figure 10 of the Tk paper.
tut.tar.Z - A collection of materials from a full-day tutorial
on Tcl and Tk. Includes viewgraphs from five one-hour
talks plus a sample widget.
tc-tcl93.ps.gz - PostScript formatted copy of Tcl Compiler paper
presented at the Tcl'93 Workshop.
tc-tcl93.tex.gz - LaTeX source for the Tcl Compiler paper presented
at the Tcl'93 Workshop.
In addition, there may be older releases of some or all of the above
files; look for files with earlier release numbers.
To retrieve any or all of these packages, use anonymous FTP to
ftp.cs.berkeley.edu (Internet address 128.32.149.78). Use user
"anonymous"; when asked for a password, type your email address. Then
retrieve the relevant file(s) with the commands like the following:
type image (try "type binary" if this command is rejected)
cd tcl
get tk3.6.tar.Z
Be sure to retrieve files in image mode (type "type image" to FTP)
in order to make sure that you end up with a corrupted file.
Any file with a .Z extension is a compressed file, which means you must
use the "uncompress" program to get back a normal file. For example, for
the file tk3.6.tar.Z, you should type
uncompress tk3.6.tar.Z
once you've retrieved the file. This will produce a file named "tk3.6.tar".
Then you will need to use tar to extract the members. Typically one
would use a command such as:
tar xv tk3.6.tar
to extract the pieces.
Any file with a .gz extension is a file compressed with gzip, the gnu
portable compression standard. To get a copy, ftp to prep.ai.mit.edu and
look in pub/gnu. For example, to uncompress tc-tcl93.ps.gz, type
gunzip tc-tcl93.ps.gz
once you've retrieved the file. This will produce a file named "tc-tcl93.ps".
Each of the releases has a README file in the top-level directory that
describes how to compile the release, where to find documentation, etc.
Questions or problems about any of these distributions should be directed
to John.Ousterhout@eng.sun.com (John Ousterhout).
------------------------------
From: -XI- Where can I get these packages?
Subject: -B- Accessing the Tcl/Tk User Contributions Archive
Contributions to the Tcl/Tk Contrib Archive are most welcome --
please upload them to:
<URL:ftp://harbor.ecn.purdue.edu/incoming [128.46.128.76]>
send the archive maintainer <tcl-archive@harbor.ecn.purdue.edu> a note stating
the names of the files you uploaded and a brief description for the
index.
Harbor is the central file server for the software staff of the
Engineering Computer Network, so please try to refrain from FTPing
stuff between 9am and 5pm EST (GMT -0500). No mail-archive service is
planned as yet -- users without FTP capability should use one of the
following mail-based FTP services (send mail to the appropriate address
with "help" in the body):
BITNET users: BITFTP <bitftp@pucc.princeton.edu>
Others: ftpmail@decwrl.dec.com (DEC ftpmail)
Europe: ftpmail@grasp1.univ-lyon1.fr
mail-server@ftp.tu-clausthal.de
WARNING! The archive maintainer will NOT be automatically archiving anything
posted to comp.lang.tcl or previously to the mailing list. So if you want
your nifty porting instructions for getting Tcl up on your Seiko wrist watch
or your pen computer to be saved for others benefit, be sure to ftp them into
the archive.
All contributions should be placed in harbor's ~ftp/incoming
subdirectory. Please send tcl-archive@harbor.ecn.purdue.edu and a short
mail message stating the filename(s) of your contribution and a brief
description (for the Index). If you've posted some code to
comp.lang.tcl or the Tcl mailing list, and you want it to be archived
at this site, please deposit it in ~ftp/incoming or mail it in a
suitable form (preferably uuencoded compressed tar file, but a shar
file's OK) to tcl-archive@harbor.ecn.purdue.edu.
Note: I have noticed that some authors prefer to use plain names rather than
version level type names. This means that you should a) make note of when
you get a package, and b) check the archive occasionally to see if a newer
version of the package has appeared.
------------------------------
From: -XI- Where can I get these packages?
Subject: -C- Expect available via e-mail.
Besides being available via <URL:ftp://ftp.cme.nist.gov/pub/expect/>,
expect can also be received by email by sending the message
"send pub/expect/expect.shar.Z" to library@cme.nist.gov .
------------------------------
From: -XI- Where can I get these packages?
Subject: -D- EMACS modes for Tcl
snl+@cs.cmu.edu (Sean Levy) has hacked a version of Emacs's C mode into
a tcl-mode.el. He mentions that you must use semi-colons at the end
of each statement to get indentation to work right, but he found that
easier than doing without.
The code is on [128.2.214.236]
<URL:ftp://ftp.cs.cmu.edu/afs/cs/user/snl/pub/tcl-mode.el.z>
(don't forget binary mode) as well as
<URL:ftp://harbor.ecn.purdue.edu/pub/tcl/distrib/tcl-mode.el.Z>.
jules@kauri.vuw.ac.nz (Julian Anderson) was also working on an Emacs Tcl
minor mode to fundamental.
cjl@lcs.mit.edu (Chris Lindblad) has contributed tcl.el, a Tcl mode for
GNU emacs. It's address is
<URL:ftp://harbor.ecn.purdue.edu/pub/tcl/extensions/tcl.el>.
tromey@cns.caltech.edu (Tom Tromey) has contributed a tcl.el which is
better than his former tcl-help.el. This is a modified version of
Chris Lindblad's Tcl editing mode. This new editing mode contains the
help code, a tcl interaction mode, menus, font lock support, etc. It
is available on the Emacs Lisp Archive at
<URL:ftp://archive.cis.ohio-state.edu/pub/emacs/elisp-archive/modes/tcl.el.Z>
and on
<URL:ftp://harbor.ecn.purdue.edu/pub/tcl/extensions/tcl.el.gz>
schmid@fb3-s7.math.TU-Berlin.DE (Gregor Schmid) has written a major mode
for tcl scripts. He posted tcl-mode 1.1 to gnu.emacs.sources in March and
it should be on archive.cis.ohio-state.edu - but I am not able to
locate it.
The latest version of xemacs (formerly lemacs) mentions that it has
a tcl-mode built in.
------------------------------
From: -XI- Where can I get these packages?
Subject: -E- The tk toolbox project
The Tk Toolbox & Toolchest project.
The Toolchest consists of convenience routines for Tcl and Tk - a kind of a
libc for Tcl. The toolbox is a collection of commonly used code and
some specialized code such as file selectors, dialogs that take care of
keyboard traversal through items automatically, etc.
The project has currently not yet reached a usable state, but each formal
release will be announced in comp.lang.tcl as well as other newsgroups.
There has been, in the past, a mailing list for discussion of the tk toolbox,
kindly provided by Ari Lemmke. To subscribe, write a message with the line:
X-Mn-Admin: join tktools
in the body or header of the message. Send this message to
linux-activists-request@niksula.cs.hut.fi .
To write to the list, send messages to to
linux-activists@niksula.cs.hut.fi
and add the line
X-Mn-Key: TKTOOLS
to the header or the body of the message. Especially remember this when
replying to messages from the list.
For more info about the list server (mailnet), write
an empty message to linux-activists-request@niksula.cs.hut.fi .
The intermediate snapshots are announced on this mailing list.
If you have problems or are willing to donate code or whatever,
you can contact the code maintainer (one of the three main implementors)
at tlukka@snakemail.hut.fi or lukka@helsinki.fi .
Unfortunately, the development effort has currently come to a stop on this
project and it is not yet known when it will be started again.
------------------------------
From: -XI- Where can I get these packages?
Subject: -F- [tv]grind definitions for tcl/tk/expect
M.T.Hamilton@lut.ac.uk (Martin Hamilton) has come up with a preliminary
grindcap definition for Tcl, Tk and expect. These are available as:
<URL:ftp://harbor.ecn.purdue.edu/pub/tcl/docs/vgrind.defs>
<URL:ftp://harbor.ecn.purdue.edu/pub/tcl/docs/vgrind.defs.README>
andyr@wizzy.com (Andy Rabagliati) has come up with a preliminary grindcap
definition for Tcl. Contact him for more details.
------------------------------
From: -XI- Where can I get these packages?
Subject: -G- BNF style notation for Tcl
tb06@CS2.cc.lehigh.edu (TERRENCE MONROE BRANNON) in July of 1993, posted
some yacc code for a tcl-to-c parser. This, along with Adam Sah's Tcl
compiler, are a couple of sources with which folk could start.
------------------------------
From: -XI- Where can I get these packages?
Subject: -H- Tk Quick Reference Card
raines@bohr.physics.upenn.edu (Paul E. Raines) has uploaded a quick
reference card for Tk 3.3. You may find it at:
<URL:ftp://harbor.ecn.purdue.edu/pub/tcl/docs/tkrefcard.tar.Z>
<URL:ftp://bohr.physics.upenn.edu/pub/tk/tkrefcard.tar.Z>
The tar contains the TeX and PostScript versions of a 3 column listing
of all widget methods and options and summaries of the wm, winfo, pack,
place and bind commands.
------------------------------
From: -XI- Where can I get these packages?
Subject: -I- Hilit 19 Tcl mode
AI. Aaron Roydhouse <aaron@comp.vuw.ac.nz> wrote, and
Julian.Anderson@comp.vuw.ac.nz (Julian Anderson) posted, the following:
(hilit-set-mode-patterns
'tcl-mode
'(("\\s #.*$" nil comment)
("^#.*$" nil comment)
("\"[^\\\"]*\\(\\\\\\(.\\|\n\\)[^\\\"]*\\)*\"" nil string)
("\\$[-_a-zA-Z]+" nil varref)
("^source.*$" nil include)
("\\b\\(global\\|upvar\\)\\b" nil decl)
("\\b\\(error\\|debug\\)\\b" nil decl)
("^\\s *proc\\s +\\(\\w\\|[_']\\)+" nil defun)
("\\b\\(set\\|lset\\|list\\|if\\|case\\|while\\|switch\\|then\\|else\\|
for\\|foreach\\|return\\|expr\\|catch\\)\\b" nil keyword)))
Dwight Shih <dwight@crl.com> later posted the following font lock mode:
(defvar tcl-font-lock-keywords
(list
(list (concat "\\b\\("
(mapconcat 'identity
'("set" "lset" "list" "if" "case" "while"
"switch" "then" "else" "for" "foreach"
"return" "expr" "catch" "puts" "proc"
"trace")
"\\|")
"\\)\\b")
1 'font-lock-keyword-face t)
(list (concat "\\b\\("
(mapconcat 'identity
'("global" "upvar" "uplevel" "error" "debug")
"\\|")
"\\)\\b")
1 'font-lock-type-face t)
(list "^\\s *proc\\s +\\(\\(\\w\\|[_']\\)+\\)" 1 'font-lock-function-name-fac
e t))
"keywords for tcl-mode")
(defun font-lock-set-defaults ()
"Set `font-lock-keywords' to something appropriate for this mode."
(setq font-lock-keywords
(cond ((eq major-mode 'lisp-mode) lisp-font-lock-keywords)
((eq major-mode 'emacs-lisp-mode) lisp-font-lock-keywords)
((eq major-mode 'c-mode) c-font-lock-keywords)
((eq major-mode 'c++-c-mode) c-font-lock-keywords)
((eq major-mode 'c++-mode) c++-font-lock-keywords)
((eq major-mode 'tex-mode) tex-font-lock-keywords)
((eq major-mode 'perl-mode) perl-font-lock-keywords)
((eq major-mode 'tcl-mode) tcl-font-lock-keywords)
((eq major-mode 'texinfo-mode) texi-font-lock-keywords)
(t nil))))
------------------------------
From: -XI- Where can I get these packages?
Subject: -J- HTML versions of Tcl man pages and FAQ.
Mike Hopkirk <hops@x.co.uk> has provided a tar archive of HyperText Markup
Language (HTML) versions of the comp.lang.tcl FAQ, the Tcl/Tk man pages,
index pages for the man pages, and a top level access page to tie together
all the above. It is
<URL:ftp://harbor.ecn.purdue.edu/pub/tcl/docs/tclhtml.tar.z>
Note that once these have been untarred, one can use a WorldWideWeb (WWW)
browser such as Mosaic, Lynx, etc. to begin at the Tcl.html page and read
the entire distribution. The original source of this package can be
examined at:
<URL:http://www.sco.com/IXI/of_interest/tcl/Tcl.html>
Having the package in this way provides a means for those behind a firewall
to examine the docs frozen at this point in time. There are no commitments
to continue providing updates to this package.
The man pages provided here were made using a perl script called
man2html originally written by bcutter@paradyne.com (Brooks Cutter)
and slightly post processed.
Note that the Tcl and Tk man pages are also available courtesy of Tom Phelps
<phelps@CS.Berkeley.EDU>, who has made the man pages available
at <URL:ftp://ftp.cs.berkeley.edu/pub/mhgs/tcltk/tcltk-man.html.tar.Z>
where, Tom tells us, they will be deleted later after TkMan has been updated
to generate these pages automatically.
------------------------------
From: -XI- Where can I get these packages?
Subject: -K- Japanese translation of Tk 3.6 manuals
Toshiya Kitayama <kitayama@sra.co.jp> and nakaya@sra.co.jp have made
a Japanese translation of Tk 3.6 manual pages except pack-old.n available
at <URL:ftp://ftp.sra.co.jp/pub/lang/tcl/jp/tk3.6jp.man.tar.gz>. If
you have questions or comments, send them to tcl-jp-bugs@sra.co.jp.
------------------------------
From: -XI- Where can I get these packages?
Subject: -L- Latex styles for the Tcl/Tk Workshop 94.
Yasuro Kawata <yasuro@maekawa.is.uec.ac.jp> released the Latex styles as
well as a sample document and sample .dvi file to the news group. Contact
this user directly for a copy.
------------------------------
From: -XI- Where can I get these packages?
Subject: -M- Tcl 7.3 Quick Reference card
Jeff Tranter <Jeff.Tranter@software.mitel.com> has written a Tcl Quick
Reference document in TeX. A PostScript version of the document is
provided in the file as well.
<URL:ftp://harbor.ecn.purdue.edu/pub/tcl/docs/QuickRef.tar.gz>
------------------------------
From: -XI- Where can I get these packages?
Subject: -N- "How do I speed up a Tcl/Tk application" doc
<URL:ftp://harbor.ecn.purdue.edu/pub/tcl/docs/speedup.doc.gz>
is a text document with examples on how to speed up Tcl/Tk applications.
Thanks to Stephen O. Lidie <lusol@turkey.cc.lehigh.edu> for the work!
------------------------------
End of comp.lang.tcl Frequently Asked Questions (3/5)
*****************************************************
--
:s Great net resources sought...
:s Larry W. Virden INET: lvirden@cas.org
:s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html>
The task of an educator should be to irrigate the desert not clear the forest.
--
:s Great net resources sought...
:s Larry W. Virden INET: lvirden@cas.org
:s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html>
The task of an educator should be to irrigate the desert not clear the forest.