Introduction ------------ TeD is a X-window GUI editor for Linux with automatic word wrap based on the C++ GUI application framework Qt. I wrote it to type TeX source codes: its name means Tex EDitor. Its use is so simple and intuitive that no manual pages or help is required. Just note the following: - The text is automatically justified as you type. There is no way to turn justification off (you have to change editor). - The maximum lenght of one line is 72 characters: it cannot be changed. - The most useful menu operations have short-cuts as indicated in the menus. - When it starts, TeD spawns the spell checker /usr/bin/ispell for later use. There is no way, for the moment, to respawn ispell but to quit TeD and rerun it. In particular, ispell will remember all the accepted words during previous sessions. - Each line is terminated either by a hard-return (marked by a paragraph sign at the end of the line), either by a soft-return (marked by a small dot), or by a continuation-mark (marked by a >> sign). A new paragraph is initiated by hitting the Enter key. Each paragraph is automatically justified as you type or modify it. Continuation-marked lines are created if one enters a `word' (i.e. a sequence of characters without any intervening spaces) longer than one line (72 characters). - The paragraph formatting information is written to the file without using any special characters. This allows the electronic trasmission of files created or modified by TeD without loosing the formatting informations and the use of files produced by TeD as input files for other programs (e.g. TeX) without any special treatment. The trick is the following: lines terminating with a soft-return are written to the file with a trailing blank appended. This means that any trailing blanks on a hard-returned line will be trimmed out when the file is written. Also, when a file is loaded, the text gets reformatted: each end of line is treated as a new paragraph, unless it is immediately preceded by a space. This allows to type `formatted text' also with other editors, or to modify the text produced by TeD with other editors without loosing the formatting informations. This formatting mechanism applies also to text copied from/to the clipboard. - Some informations about the TeD settings (fonts, size of the window, number of keystrokes between each auto-save) are saved in the file .TeD in the home directory each time TeD exits. - To invoke ted type ted <&> where is the optional name of an already existing file and is the optional line at which you want the cursor be placed at the beginning. The trailing & will allow to put TeD in the background (thus freeing your terminal). - Special cursor keys: + Right arrow moves to the next word; + Left arrow moves to the previous word; Home moves to the beginning of the current line; End moves to the end of the line; + Home moves to the beginning of the document; + End moves to the end of the document; - Special mouse actions: left click selects text, to extend the selection move the mouse; left double click selects the word below the mouse cursor; left click selects the text between the text cursor and the mouse cursor; right click copies the selected text to the clipboard (same as CTRL-C or Edit-Copy menu); middle click paste the clipboard starting form the text cursor (same as CTRL-V or Edit-Paste menu). During a paste action, the previously selected text, if any, is overwritten. This holds also if you type any character. There is no way to undo changes, so *pay attention*. Installation ------------ An ELF executable ted is already supplied. It requires the following shared libraries libqt.so.1 libg++.so.27 libc.so.5 libstdc++.so.27 libm.so.5 It can be recompiled (NB: you need Qt version 1.1 to do that, see later) by just running make To install ted, just move it to a directory in the PATH and check its permissions. Supposing that you install it in /usr/bin issue as root chown root.root /usr/bin/ted chmod 755 /usr/bin/ted Then, if you haven't it, get and install the 1.1 version of Qt (see http://www.troll.no for informations and downloading). To use the spell-checking capabilities you need to have ispell installed in /usr/bin. I tested ted on the International Ispell Version 3.1.20. VERSION ------- This is version 1.1 It is based on previous discontinued versions written for MSDOS and OS/2. BUGS ---- The source code comments are partially in italian. If the backspace key doesn't work, put in your .Xmodmap file the following line keycode 22 = BackSpace COPYRIGHT --------- Qt is copyright of Troll Tech: see http://www.troll.no for details. This program is supplied as is, without any warranty of any kind. You are free to use and distribute it in its original form. All modifications to the source code must be clearly marked as such. Binary redistributions based on modified source code must be clearly marked as modified versions in the documentation and/or other materials provided with the distribution. Also, you cannot charge anything for its distribution, other than a reasonable fee covering distribution costs. AUTHOR ------ Paolo Galatola