From: lvirden@cas.org (Larry W. Virden) Newsgroups: comp.lang.tcl.announce,comp.lang.tcl,comp.lang.perl.tk,comp.answers,news.answers Subject: comp.lang.tcl Frequently Asked Questions (June 27, 1997) (3/5) Followup-To: comp.lang.tcl Date: 29 Jun 1997 04:07:18 -0700 Organization: The Tcl/Tk FAQ Group Sender: mitchellorg@non.non.net Expires: 1 Aug 97 23:59:00 GMT Message-ID: <pgpmoose.199706290406.12867@non.non.net> References: <pgpmoose.199706290355.12724@non.non.net> Reply-To: lvirden@cas.org (Larry W. Virden) 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. Keywords: tcl, extended tcl, tk X-Original-Sender: lvirden@cas.org X-Url: http://www.teraform.com/%7Elvirden/tcl-faq/part3.html Archive-name: tcl-faq/part3 X-Auth: PGPMoose V1.1 PGP comp.lang.tcl.announce iQCVAwUBM7ZB2cVCYQpvzJ9ZAQGu8gP+IKJ007AsjhGDHE8WZ2xAemA4/qhRYZTW 9c8ic280gx3nSDFRLirhm2lbaSzzyimrApcsJXkUPJ4bvXOSTqMVtJJAi3TGPv9X fc+6EiHRuBGhs8rDP8dHlnhEv97u2tHflxrWuZnCgQOKjT9iZ+cRUVvCNCozVbZ5 huzdc4Vaqao= =Fmg7 Posting-Frequency: monthly Last-modified: June 27, 1997 Version: 8.003 URL: http://www.teraform.com/%7Elvirden/tcl-faq/part3.html Comp-lang-tcl-archive-name: tcl-faq.part03 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. Tcl and Tk B. The Tcl/Tk User Contributions Archive C. Expect available via e-mail. D. EMACS modes for Tcl E. The tk toolbox project (obsolete) F. [tv]grind definitions for tcl/tk/expect G. BNF style notation for Tcl H. Tcl/Tk Quick Reference Cards 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 References for various platforms N. The "How do I speed up a Tcl/Tk application" doc O. http files without a WWW client P. The patch and gzip command Q. Source code from published books R. Documentation relating to Perl's Tk interface S. Tutorials on various subjects 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://ftp.sunlabs.com/pub/tcl/> :- official home of Tcl/Tk base code <URL:ftp://ftp.neosoft.com/languages/tcl/> :- official home for comp.lang.tcl contributed sources archive <URL:ftp://ftp.syd.dit.csiro.au/pub/tk/> :- shadow of the user contrib and base <URL:ftp://iskut.ucs.ubc.ca/pub/X11/tcl/> <URL:ftp://ftp.switch.ch/mirror/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/> :- base <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/> :- user archive <URL:ftp://ftp.ibp.fr/pub/tcl/> :- shadow of base,user,expect, ak, tkwin and 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://ftp.luth.se/pub/languages/tcl/> :- some code mirrored <URL:ftp://ftp.sunet.se/pub/lang/tcl/> :- some code mirrored <URL:ftp://src.doc.ic.ac.uk/packages/tcl/tcl-archive/> :- shadow of user archive <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.neosoft.com/pub/tcl/mirror/ftp.smli.com/> Mirror of sunlabs.com <URL:ftp://ftp.cs.columbia.edu/pub/archives/tcl/> :- shadow of user, etc. <URL:ftp://ftp.neosoft.com/languages/tcl/distrib/> :- original home of TclX <URL:ftp://ftp.sterling.com/programming/languages/tcl/> <URL:ftp://ftp.uu.net/languages/tcl/> :- shadow of base code only <URL:ftp://gatekeeper.dec.com/pub/UCB/tcl/sprite/> :- shadow of base only <URL:ftp://sunsite.unc.edu/pub/Linux/> :- contains port of extended Tcl and extended Tk to this OS. <URL:ftp://sunsite.unc.edu/pub/languages/tcl/> <URL:ftp://ftp.cs.uoregon.edu/pub/tcl/> :- shadow of ftp.sunlabs.com/pub/tcl <URL:ftp://ftp.rge.com/pub/languages/tcl/> <URL:ftp://wuarchive.wustl.edu/languages/tcl/> Note also that there are a number of CD-ROMs now available with a snapshot of various Tcl archive sites on them. (See "tcl-faq/bibliography/part1") for details. ------------------------------ From: -XI- Where can I get these packages? Subject: -A- Tcl and Tk >From <URL:ftp://ftp.sunlabs.com/pub/tcl/README>: This directory contains a collection of files related to Tcl and Tk, all of which are available for anonymous FTP. Below is a description of what is in the various files in this directory: tcl8.0a2.tar.Z This is the most recent experimental release of Tcl. It was released on January 24, 1997, and includes the sources for the Tcl library and the "tclsh" application, plus reference manual entries. tcl8.0a2.tar.gz Same as tcl8.0a2.tar.Z except compressed with gzip instead of compress. tcl80a2.zip Same as tcl8.0a2.tar.Z except archived with the zip utility instead of compress. tk8.0a2.tar.Z This is the most recent experimental release of Tk. It was released on January 24, 1997, and includes the sources for the Tk library and the "wish" windowing shell, plus reference manual entries and a number of demonstration scripts. tk8.0a2.tar.gz Same as tk8.0a2.tar.Z except compressed with gzip instead of compress. tk80a2.zip Same as tk8.0a2.tar.Z except archived with the zip utility, instead of compress. tcl80a2.exe A binary release of Tcl 8.0a2 and Tk 8.0a2 for Windows (Win32s, Windows 95, or Windows NT). Execute this file under Windows to install the Tcl and Tk libraries, executables, and documentation. vclibs80.zip This file contains the .LIB files needed to link against the Tcl 8.0a2 and Tk 8.0a2 binary release using Microsoft Visual C++. mactk8.0a2.sea.hqx Pre-compiled binaries of Tcl 8.0a2 and Tk 8.0a2 for the Macintosh (both 68k & PowerPC platforms). The file is in binhex format, which is understood by Fetch, StuffIt, and many other Mac utilities. The unpacked file is a self-installing archive: double-click on it and it will create a folder containing all you need to run Tcl/Tk on a Macintosh. tcl7.6p2.tar.Z This is the most recent stable release of Tcl. It was released on January 31, 1997, and includes the sources for the Tcl library and the "tclsh" application, plus reference manual entries. tcl7.6p2.tar.gz Same as tcl7.6p2.tar.Z except compressed with gzip instead of compress. tcl76p2.zip Same as tcl7.6p2.tar.Z except archived with the zip utility instead of compress. tk4.2.tar.Z This is the most recent stable release of Tk. It was released on January 31, 1997, and includes the sources for the Tk library and the "wish" windowing shell, plus reference manual entries and a number of demonstration scripts. tk4.2p2.tar.gz Same as tk4.2p2.tar.Z except compressed with gzip instead of compress. tk42p2.zip Same as tk4.2p2.tar.Z except archived with the zip utility, instead of compress. win76p2.exe A binary release of Tcl 7.6p2 and Tk 4.2p2 for Windows (Win32s, Windows 95, or Windows NT). Execute this file under Windows to install the Tcl and Tk libraries, executables, and documentation. vclibs76.zip This file contains the .LIB files needed to link against the Tcl 7.6 and Tk 4.2 binary release using Microsoft Visual C++. mactk4.2p2.sea.hqx Pre-compiled binaries of Tcl 7.6p2 and Tk 4.2p2 for the Macintosh (both 68k & PowerPC platforms). The file is in binhex format, which is understood by Fetch, StuffIt, and many other Mac utilities. The unpacked file is a self-installing archive: double-click on it and it will create a folder containing all you need to run Tcl/Tk on a Macintosh. mac This subdirectory contains several other useful things for the Macintosh, such as source releases organized for easy installation on Macs. w32s130.exe This self-extracting archive contains the setup files for Win32s v1.30, which is needed when running Tcl and Tk on PCs under Windows 3.1. Execute this file in an empty subdirectory on a Windows 3.1 or Windows for Workgroups 3.11 system to extract the Win32s setup files. Once this is done, run the new setup.exe file to install the Win32s system. unz512xN.exe UnZip version 5.12 for Win32. This is a free unzip utility for Windows NT and 95 that supports long file names. You can use this program to unzip the source distribution files with a .zip extension. example.tar.Z This file contains a sample loadable Tcl extension for Macintosh, Windows, and Unix platforms. example.tar.gz Same as example.tar.Z except compressed with gzip instead of compress. example.zip Same as example.tar.Z except archived with zip instead of tar and compress. tcljava0.2.tar.Z tcljava0.2.tar.gz Compress or gzipped file containing the source and examples for the tcljava integration library. Released 10 July 96. See http://www.sunlabs.com/%7Ekcorey/tcljava/refman.html for the reference manual. (also included) tcldde.zip An example of how to implement 'send' using dde functionality under Windows. jbrowser.tar.Z A silly little java class browser. Provides a tree widget in pure Tcl/Tk. SpecTcl10.exe Binary releases for the differing platforms of SpecTcl1.0.sit.hqx the SpecTcl GUI Builder, version 1.0 final. SpecTcl1.0.tar.gz SpecTcl1.0.tar.Z spec1b1.exe A notice describing how to obtain the latest SpecJ03.exe version of spectcl. SpecJava-0.3bin.tar.gz SpecJava-0.2bin.tar.gz SpecTcl-0.1a.tar.Z SpecTcl-0.1a.tar.gz SpecTcl-0.1_patch_a.gz menued09.tar.gz - A menu editor that runs standalone now, but will ultimately be able to run as a plug-in to SpecTcl. html_library-0.1.tar.gz Simple HTML parser and displayer, written entirely in Tcl. Gzip-ed tar file. html_library-0.3.tar.gz Enhanced version of html_library-0.1.tar.gz Supports all HTML/2.0 features, including forms. 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 homegrown 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). mx-2.5.patch.Z Patch file for converting mx 2.4 sources into 2.5. Invoke patch in the top-level mx directory with the "-p1" switch and an uncompressed version of this file, e.g. "patch -p1 < mx-2.5.patch". engManual.tar.Z Compressed tar file for a directory containing the Tcl/Tk Engineering Manual, which describes the coding and testing conventions used to develop Tcl and Tk. I strongly encourage other Tcl/Tk developers to follow these conventions, particularly if you want to submit code for possible inclusion into official releases. book.examples.Z Compressed file containing ASCII text for nearly all of the examples from the book "Tcl and the Tk Toolkit". 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 four one-hour talks. In addition, there may be older releases of some or all of the above files; look for files with earlier release numbers. Be sure to retrieve files in image mode (type "type image" to FTP) in order to make sure that you don't lose bits. Most of these files are compressed tar files; to get back the original directory hierarchies, type a command like the following for each file you retrieved: zcat tk4.2.tar.Z | tar xf - This will create a directory named tk4.2 with all the source files and documentation for that release. For files with ".gz" extensions, use a command like the following instead of the one above: gunzip -c tk4.2.tar.gz | tar xf - 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. In addition to the information here, there are many other Tcl/Tk extensions, scripts, and applications in the Tcl contributed archive, which is currently located in the public FTP directory <URL:ftp://ftp.neosoft.com/pub/tcl/>. There is also a collection of Web pages on Tcl and Tk at the URL <URL:http://www.sunlabs.com/research/tcl>. Questions or problems with any of these distributions should be directed to the <URL:news:comp.lang.tcl> newsgroup. SCCS: @(#) README 1.38 97/03/11 08:54:08 (slightly modified by Larry W. Virden <URL:mailto:lvirden@cas.org>) ------------------------------ From: -XI- Where can I get these packages? Subject: -B- The Tcl/Tk User Contributions Archive Contributions to the Tcl/Tk Contrib Archive are most welcome -- please upload them to: <URL:ftp://ftp.neosoft.com/languages/tcl/incoming/> send the archive maintainer <URL:mailto:tcl-archive@neosoft.com> a note stating the names of the files you uploaded and a brief description for the index. Otherwise, you must upload a README.filename along with your upload. Otherwise, your contribution probably won't get into the archives. 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 <URL:mailto:bitftp@pucc.princeton.edu> Others: <URL:mailto:ftpmail@decwrl.dec.com> (DEC ftpmail) Europe: <URL:mailto:ftpmail@grasp1.univ-lyon1.fr> <URL:mailto: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 submissions should be ftp'ed into the above subdirectory. Please send <URL:mailto:tcl-archive@neosoft.com> 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 <URL:ftp://ftp.neosoft.com/tcl/incoming/> or mail it in a suitable form (preferably uuencoded compressed tar file, but a shar file's OK) to <URL:mailto:tcl-archive@neosoft.com>. Also, PLEASE include a {packagename}.README file which describes the contribution. The Tcl/Tk archive can also be accessed via the World Wide Web (WWW) with the URL, <URL:http://www.neosoft.com/tcl/>. Check out this interface, which provides you the ability to register software, upload packages via the WWW browser, updated searching functions and more. 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 <URL:mailto:library@cme.nist.gov> . ------------------------------ From: -XI- Where can I get these packages? Subject: -D- EMACS modes for Tcl <URL:mailto: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://ftp.neosoft.com/languages/tcl/alcatel/distrib/tcl-mode.el.Z>. <URL:mailto:jules@kauri.vuw.ac.nz> (Julian Anderson) was also working on an Emacs Tcl minor mode to fundamental. <URL:mailto:tromey@busco.lanl.gov> (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://ftp.neosoft.com/languages/tcl/alcatel/extensions/tcl.el.gz> <URL:mailto: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. Donal K. Fellows <URL:mailto:fellowsd@cs.man.ac.uk> has an extra elisp library at <URL:http://r8h.cs.man.ac.uk:8000/tcl/> which provides enhanced highlighting. ------------------------------ From: -XI- Where can I get these packages? Subject: -E- The tk toolbox project (obsolete) The Tk Toolbox & Toolchest project. The Toolchest consisted of convenience routines for Tcl and Tk - a kind of a ibc for Tcl. The toolchest was 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. 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. There was, at one point in the past, a mailing list for discussion of the tk toolbox, kindly provided by Ari Lemmke. To subscribe, one wrote a message with the line: X-Mn-Admin: join tktools in the body or header of the message, and sent this message to <URL:mailto:linux-activists-request@niksula.cs.hut.fi> . Then to write to the list, messages were sent to <URL:mailto:linux-activists@niksula.cs.hut.fi> with the line X-Mn-Key: TKTOOLS added to the header or the body of the message. One especially had to remember this step when replying to messages from the list. For more info about the list server (mailnet), one sent an empty message to <URL:mailto:linux-activists-request@niksula.cs.hut.fi> . Intermediate snapshots were announced on this mailing list. If you had problems or were willing to donate code or whatever, you could contact the code maintainer (one of the three main implementors) at <URL:mailto:tlukka@snakemail.hut.fi> or <URL:mailto:lukka@helsinki.fi> . ------------------------------ From: -XI- Where can I get these packages? Subject: -F- [tv]grind definitions for tcl/tk/expect <URL:mailto: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://ftp.neosoft.com/languages/tcl/sorted/print/vgrind.defs>. <URL:mailto: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 <URL:mailto: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- Tcl/Tk Quick Reference Cards <URL:mailto:raines@slac.stanford.edu> (Paul E. Raines) has uploaded a quick reference card for Tcl 7.6/Tk 4.2. You may find it at: <URL:ftp://ftp.neosoft.com/languages/tcl/sorted/info/ref/tkrefcard.tar.gz> Paul Raines' <URL:mailto:raines@slac.stanford.edu> reference card for Tcl 7.4/Tk 4.0 is at <URL:ftp://ftp.slac.stanford.edu/software/TkMail/tkref-4.0.3.tar.gz> His reference card for Tcl 7.5/Tk 4.1 is at <URL:ftp://ftp.slac.stanford.edu/software/TkMail/tkref-4.1.0.tar.gz>. 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. Jeff Tranter <URL:mailto: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://ftp.neosoft.com/languages/tcl/sorted/info/ref/QuickRef.tar.gz> ------------------------------ From: -XI- Where can I get these packages? Subject: -I- Hilit 19 Tcl mode AI. Aaron Roydhouse <URL:mailto:aaron@comp.vuw.ac.nz> wrote, and <URL:mailto: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 <URL:mailto: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 <URL:mailto: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://ftp.neosoft.com/languages/tcl/sorted/info/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/Technology/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 <URL:mailto:bcutter@paradyne.com> (Brooks Cutter) and slightly post processed. Tom Phelps <URL:mailto:phelps@cs.berkeley.edu> has written RosettaMan, which allows one to translate man pages into many formats, including HTML. (see "tcl-faq/part4") for details. <URL:mailto:rec@elf.org> (Roger Critchlow) has built HTML versions of the Tcl 7.6b1 and Tk 4.2b1 man pages, adding links for various commands that wasn't already present in the original doc. One can find these interactively at <URL:http://www.elf.org/tcltk-man-html/contents.html> as well as at <URL:ftp://ftp.bdt.com/home/elf/tcltk-man-src/tcltk-man-html1.tar.gz> and <URL:ftp://ftp.neosoft.com/languages/tcl/sorted/info/man/tcltk-man-html4.tar.gz>. A description of the package can be found at <URL:http://www.elf.org/tcltk-man-html.html>. Tar files for Tcl 7.4 and 7.4 based HTML man pages are also available at <URL:http://www.elf.org/>. There are HTML pages for Tcl 7.4/Tk 4.0 located at <URL:http://www.xpi.com/tix/doc/tcltkman/>. Tom L. Davis <URL:mailto:davis@adrs1.dseg.ti.com> has provided HTML versions of the Tcl 7.6/Tk 4.2 man pages at <URL:ftp://ftp.neosoft.com/pub/tcl/sorted/info/man/Tcl-Tk_docs_v2.html.tar.gz>. These pages use HTML tables and forms. <URL:ftp://ftp.neosoft.com/pub/tcl/sorted/info/man/Tcl-Tk_docs_8.0a1.html.tar.gz> covers the alpha 1 release of Tcl 8.0/Tk 8.0. There is a frame based version of the Tcl/Tk man pages at <URL:http://www.tcltk.com/TclTkMan/TclTkManPages.html>. Also at the same site is a keyword cross reference. See it at <URL:http://www.sco.com/Technology/tcl/man-7.6-4.2/xref/xref.html>. Sun has the man pages for Tcl 7.5/Tk 4.1, Tcl 7.6/Tk 4.2 and Tcl 8.0/Tk 8.0 at <URL:http://sunscript.sun.com/man/>. ------------------------------ From: -XI- Where can I get these packages? Subject: -K- Japanese translation of Tk 3.6 manuals Toshiya Kitayama <URL:mailto: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 <URL:mailto: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 <URL:mailto: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 References for various platforms o Duane Murphy <URL:mailto:duane_murphy@wc_smtp_knet.WC.Novell.COM> provided a way for Macintosh users to access the information regarding Tcl built-in commands via a tool known as ZigRef. It can be found at <URL:ftp://hitchhiker.space.lockheed.com/pub/TCL/TclBuiltInRef.sea.hqx>. This version corresponds to Tcl 7.3. o The AGOCG Tcl/Tk Cookbook is available at <URL:http://www.cis.rl.ac.uk/proj/TclTk>. The source code examples, html, and Postscript files are available for ftp from <URL:ftp://ftp.cc.rl.ac.uk/pub/graphics/>. o The Cookbook is partly sponsored by the UK Advisory On Computer Graphics. It is aimed at novice window-based interactive application developers and newcomers to Tcl/Tk. o A commercial tutorial available online can be found at <URL:http://www.skillshare.com/skillshare/dr/tcl/mod1.html>. Note that this is a commercial project - see the page for details of cost. o PostScript version of the tcl7.6p2/tk4.2p2 manual pages (with page numbers, generated Table of Contents as well as index) have been uploaded to ftp.neosoft.com. You will find the following files in <URL:ftp://ftp.neosoft.com/languages/tcl/info/man/>. tcl7.6p2-tk4.2p2-man-2ps.README # README for the double sided PS file. tcl7.6p2-tk4.2p2-man-2ps.tar.gz # The double sided PostScript files. README # The same as the README above. tcl.ps # The user's manual pages (388 pages/194 sheets of paper) tcl-c.ps # The C interface manual pages (342 pages/171 sheets of paper) tcl7.6p2-tk4.2p2-man-1ps.README # README for the single sided PS file. tcl7.6p2-tk4.2p2-man-1ps.tar.gz # The single sided PostScript files. README # The same as the README above. tcl.ps # The user's manual pages (299 pages/sheets of paper) tcl-c.ps # The C interface manual pages (251 pages/sheets of paper) Some things to note are the following: 1. The PostScript files can be printed on either a LETTER or A4 size printer. 2. Manual pages that have multiple links are only printed the first time they are found. The rest of the links have a table of contents entry that points to the first one. 3. Most linked manual pages are for multiple commands. In the table of contents the current name is followed by the other name(s) parenthesized and at a reduced point size. 4. The index is built using the commands name and the items in the KEYWORDS section of the manual page. The page number in the index is the first page of the referenced manual page. Commands and the page they are defined on are shown in bold. See the individual README files for more specific information. These were provided by Cary D. Renzema <URL:mailto:caryr@mxim.com>. <URL:ftp://ftp.neosoft.com/languages/tcl/info/man/tcl7.6-tk4.2-man-html.tar.gz> covers the HTML version of these files. ------------------------------ From: -XI- Where can I get these packages? Subject: -N- The "How do I speed up a Tcl/Tk application" doc <URL:ftp://ftp.neosoft.com/languages/tcl/sorted/info/doc/speedup.doc.gz> is a text document with examples on how to speed up Tcl 6.x/Tk 3.x application performance. Thanks to Stephen O. Lidie <URL:mailto:lusol@turkey.cc.lehigh.edu> for the work! Another document on this subject can be found at <URL:http://ptolemy.eecs.berkeley.edu/tycho/tycho0.2/tycho0.2/doc/coding/performance.html>. ------------------------------ From: -XI- Where can I get these packages? Subject: -O- http files without a WWW client The following information has been gathered from a variety of sources. Within the various TCL FAQs there are references to items in the form of http://host.name/path/to/file . These are in a form which are useful to WorldWideWeb (WWW) clients. But for those unable to use WWW for some reason, there is a modicum of relief. To access these files via email: 1. Address a message to: <URL:mailto:webmail@www.ucc.ie> 2. There is no need for a Subject: line. 3. In the body of the message, type: GO http://www.w3.org/hypertext/WWW/MarkUp/html-spec/html-spec.txt 4. Any URL can be substituted for the sample above. Eventually you should get back the file in question. 5. The only restriction is this serves text (HTML and plain) by HTTP only, no graphics, and no FTP. For more information about accessing internet files via e-mail, pick up a copy of the following document: "INTERNET BY-EMAIL" Summary: This guide will show you how to retrieve files from FTP sites, explore the Internet via Gopher, search for information with Archie, Veronica, or WAIS, tap into the World-Wide Web (WWW), and even access Usenet newsgroups using E-MAIL AS YOUR ONLY TOOL. This document is now available from several automated mail servers. To get the latest edition, send e-mail to one of the addresses below. To: <URL:mailto:listserv@ubvm.cc.buffalo.edu> (for US/Canada/etc.) Leave Subject blank, and enter only this line in the body of the note: GET INTERNET BY-EMAIL NETTRAIN F=MAIL To: <URL:mailto:mail-server@rtfm.mit.edu> (for Eastern US) Leave Subject blank, and enter only this line in the body of the note: send usenet/news.answers/internet-services/access-via-email To: <URL:mailto:mailbase@mailbase.ac.uk> (for UK/Europe/etc.) Leave Subject blank, and enter only this line in the body of the note: send lis-iis e-access-inet.txt You can also get the file at <URL:ftp://ubvm.cc.buffalo.edu/NETTRAIN/INTERNET.BY-EMAIL>, <URL:ftp://rtfm.mit.edu/pub/usenet/news.answers/internet-services/access-via-email>, <URL:ftp://mailbase.ac.uk/pub/lists/lis-iis/files/e-access-inet.txt> Note this file is available in over 30 languages. For the list of translations, send email to <URL:mailto:BobRankin@MHV.net> with Subject: send list as the subject of the message. Sometimes, folk ask how to post to usenet via email. Here's what I have seen mentioned: To post, use an e-mail->Usenet gateway. Send an a e-mail messages to <newsgroup>@<servername>. For example, to post to comp.lang.tcl through nic.funet.fi, address your mail to <URL:mailto:comp.lang.tcl@nic.funet.fi>. Here are a few e-mail->Usenet gateways that have been reported. A recent email indicates that none of these may be operational any longer. group.name@news.demon.co.uk group.name@charm.magnus.acs.ohio-state.edu group.name@undergrad.math.uwaterloo.ca group.name@nic.funet.fi group.name.usenet@decwrl.dec.com ------------------------------ From: -XI- Where can I get these packages? Subject: -P- The patch and gzip command The patch command is used to apply updates to a source package. It assumes that you have the previous version of the source package in an uncompressed format as well as a file containing one or more modifications that need to be applied to the original code. The GNU project's version of the patch command is the one most commonly used on USENET. The primary archive for this project is <URL:ftp://prep.ai.mit.edu/pub/gnu/>. You will find the source code located at this FTP site. Source code for the gzip package, a very common compression format used on Unix, can be found at this site as well. For binary versions of either of these programs, you will have to search what ever the appropriate archive sites are for your machine. First, get a version of patch and compile and install it. Then you might follow a scenario such as this: The tcl7.4/README says "apply them to the source directory"! $ mkdir /usr/tcl74 # Pick this directory as appropriate $ cd /usr3/tcl74 $ mv $HOME/tcl7.4.tar.gz $HOME/tcl7.4p1.patch.gz $HOME/tcl7.4p2.patch.gz $HOME/tcl7.4p3.patch.gz /usr3/tcl74 $ gzip -d < tcl7.4.tar.gz | tar xvvf - $ cd tcl7.4 $ gzip -d < ../tcl7.4p1.patch.gz | patch -p $ gzip -d < ../tcl7.4p2.patch.gz | patch -p $ gzip -d < ../tcl7.4p3.patch.gz | patch -p $ ./configure --prefix=/usr3/tcl74 $ make $ make test $ make install assuming your *.gz files all reside in your $HOME directory initially. If you already have gunzip-ed the files in a different directory (such as /usr3/tcl74/patch/), you could use them like this: $ cd /usr3/tcl74/tcl7.4 $ patch -p < ../patch/tcl7.4p1.patch You will get messages from patch "hmm, this looks like" and "hunk #n succeeded", which will scroll off your screen quite fast. One user has suggested that if you are using Unix, you can use the script command to keep all of the output in a log file which you can then peruse later. You should not get rejected, failed, or wrong version messages. If you get those types of messages, you may have missed a patch that needed to be made, or may be attempting to patch a version of the files not intended to be patched. If the patch is being applied later, you will want to execute a "make clean" before the make without arguments, to be sure that you have gotten rid of any files which need to be recreated during the install process. You need to be careful as well trying to perform make on different machines - if you have to switch computers between makes, you should execute a "make distclean" followed by another configure command. This ensures that the various assumptions made by the configuration program are accurate. ------------------------------ From: -XI- Where can I get these packages? Subject: -Q- Source code from published books The source code from Brent Welch's book can be found at <URL:ftp://ftp.prenhall.com/pub/software/welch/tkbook.tar>. The source code from John Ousterhout's book can be found at <URL:ftp://ftp.sunlabs.com/pub/tcl/book.examples.Z>. The source code from Don Libes' book can be found with the expect source code itself. (See "tcl-faq/part4") for more details. ------------------------------ From: -XI- Where can I get these packages? Subject: -R- Documentation relating to Perl's Tk interface A PostScript format overview of Perl's Tk interface is available from <URL:ftp://mox.perl.com/pub/perl/ext/TK/tk-userguide.ps.gz>. A remedial course in perl/Tk, based on the mini-scripts distributed in the UserGuide.pod file, can be found at <URL:http://w4.lns.cornell.edu/%7Epvhp/ptk/pod/>. The perl/Tk proto-FAQ can be found at <URL:http://w4.lns.cornell.edu/%7Epvhp/ptk/ptkFAQ.html> Both of these are maintained by <URL:mailto:PVHP@LNS62.LNS.CORNELL.EDU> Peter Prymmer. John Stoffel <URL:mailto:john@WPI.EDU> wrote some thoughts comparing Malcom Beatties tcl/tk perl extension and pTk (perl/Tk). This can be found at <URL:http://pubweb.bnl.gov/%7Eptk/> along with the rest of the mailing list comments, code samples, help, etc. ------------------------------ From: -XI- Where can I get these packages? Subject: -S- Tutorials on various subjects There are often questions concerning X security, in particular relating to Tk's default requirment to refuse to perform send actions when the user is using xhost rather than xauth for his/her security. See <URL:http://ciac.llnl.gov/ciac/documents/ciac2316.html> for a tutorial on X security. Another good document on Xauth is available at <URL:ftp://ph-meter.beckman.uiuc.edu/security/xsecurity.ps> or <URL:ftp://ph-meter.beckman.uiuc.edu/security/xsecurity.txt>. Vivek Khera <URL:mailto:khera@cs.duke.edu> has written a primer on setting up your environment for xauth (by default a requirement under Tk 3.3) in the document <URL:ftp://ftp.neosoft.com/pub/tcl/sorted/misc/Xauthority.gz>. Kevin Kenny <URL:mailto:kennykb@crd.ge.com> has also written a document on how to resolve the xauth situation. <URL:http://ce-toolkit.crd.ge.com/tkxauth/> Nat Pryce <URL:mailto:np2@doc.ic.ac.uk> has begun a project to collect Tcl programming idioms or patterns. See <URL:http://www-dse.doc.ic.ac.uk/%7Enp2/patterns/tcl/> for the root of this document. Frank Pilhofer <URL:mailto:fp@informatik.uni-frankfurt.de> has written an article on getting dynamic extensions written in C++ to work. It can be found at <URL:http://www.uni-frankfurt.de/%7Efp/Tcl/tcl-c++.txt>. Cameron Laird <URL:mailto:claird@Starbase.NeoSoft.COM> has written a number of extremely useful Web pages full of tips for Tcl programmers. Start at <URL:http://starbase.neosoft.com/%7Eclaird/comp.lang.tcl/> and look through the pages there. Also, take a look at <URL:http://starbase.neosoft.com/%7Eclaird/comp.software-eng/remediation.html> which covers the considerations that should be taken when modularizing one's code. At <URL:http://starbase.neosoft.com/%7Eclaird/comp.lang.tcl/tcl_compilers.html> you will find an article discussing Tcl compilers. At <URL:http://starbase.neosoft.com/%7Eclaird/comp.unix.programmer/linking-unix.html> you will find discussions relating to the various problems relating to linking programs under the various Unix platforms. Ken Corey <URL:mailto:kcorey@eng.sun.com> has a great Tcl/Tk "answers" page <URL:http://www.sunlabs.com/%7Ekcorey/answers/answers.html> covering code illustrations on how to do various things in Tcl that are not immediately obvious. A brief introductory tutorial to Tcl/Tk can be found at <URL:http://http2.brunel.ac.uk:8080/%7Ecsstddm/TCL2/TCL2.html>. Another one is available at <URL:http://www.pconline.com/%7Eerc/tcl.htm>. Yet another tutorial is a software package that is downloadable. See <URL:http://www.msen.com/%7Eclif/TclTutor.html> for the details. A tutorial from 1994 is located at <URL:http://www.decus.org/decus/papers/tcl.html>. Another tutorial, on Tcl and Tk in 5 easy lessions, can be found at <URL:http://herzberg.ca.sandia.gov/TclCourse/>. An introduction on Tcl 7.3 can be found at <URL:http://www.dtek.chalmers.se/Datorsys/Kurser/Tcl/>. You can check out the first module to a Tcl/Tk class, which is available at a price from the author, at <URL:http://www.skillshare.com/skillshare/dr/tcl/mod1.html>. An online "cookbook", which is a great resource, can be found at <URL:http://www.cis.rl.ac.uk/struct/AISD/VSG/publications/cookbook/>. A brief tutorial on Tcl, Tk, and Expect can be found at <URL:ftp://ftp.lgc.com/landmark/users/papers/WMorse/wmorse.tcltk>. This was written by Will Morse <URL:mailto:will@Starbase.NeoSoft.COM>. A tutorial on Tcl written in French can be found at <URL:http://www.loria.fr/moyens-info/logiciels/tcltk/>. Another Tcl presentation appears at <URL:http://kiwi.emse.fr/JJG/SC/TCL/tcl.html>. Foils from a Tcl/Tk class taught in German by M.Boltes <URL:mailto:m.boltes@fz-juelich.de> can be found under <URL:http://www.kfa-juelich.de/zam/newsevents/courses/Folien.html>. Materials from a course taught at the University of Chicago can be found at <URL:http://www.lib.uchicago.edu/keith/tcl-course/tcl-course.html>. Tom Tromey <URL:mailto:tromey@creche.cygnus.com> has provided his Tcl style guide at <URL:http://drip.colorado.edu/%7Etromey/tcl-style-guide.html>. John Ousterhout has written an engineering style guide that describes the coding, documentation, and testing conventions that will be used at Sun and has graciously made it available to other Tcl/Tk developers. It is located at <URL:ftp://ftp.sunlabs.com/pub/tcl/engManual.tar.Z>. Many of the above, unfortunate, do not seem to be kept up to date with regards to ftp site URLs, reflecting code from the current versions of Tcl, etc. ------------------------------ End of comp.lang.tcl Frequently Asked Questions (3/5) ***************************************************** -- Larry W. Virden INET: lvirden@cas.org <URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh." Unless explicitly stated to the contrary, nothing in this posting should be construed as representing my employer's opinions. [[Send Tcl/Tk announcements to tcl-announce@mitchell.org Send administrivia to tcl-announce-request@mitchell.org Announcements archived at http://www.xpi.com/tcl/comp.lang.tcl.announce/ The primary Tcl/Tk archive is ftp://ftp.neosoft.com/pub/tcl/ ]]
Send corrections/additions to the FAQ Maintainer:
Last Update July 11 1997 @ 03:30 AM