' and press 'Go'.
+You see now that the interessing area is shown in blue. Press the Match '1'
+button which will extract the blue text (the regexp to use to get this text
+is then printed on the console).
+Now use '(.*?) | .*?(.*?) | ' to get the information you need.
+
+Optimization of regexps
+
+
When you need to match a list of words, use the menu
+'Insert regexp/Make regexp' to design an optimized version of the word list.
+
+
For example, the list 'aa aab ab ad' is optimized into 'a(ab?|b|d)'.
+
+
Processing the sample text
+
+
Use can use VisualREGEXP to perform modification of a text.
+Just use the menu 'Select mode/Use replace'. You can now design a regexp to
+match what you want. Then use the replace text widget to enter the substitution
+you want to apply (use \0, \1, \2, ... to match the subregexp, use the color
+to map the number with the matched sub-expressions).
+
+
After the substitution, you can save the new text using the 'File/Save ...'
+menu. You can let the program choose the end-of-line format or force them for
+a specific environment (Unix, Windows, Mac).
+
+
CONTACT
+
+
Send your bug reports, suggestions or any feedback to:
+
+laurent.riesterer@free.fr
+http://laurent.riesterer.free.fr
+
+
diff --git a/hlp/en/projman/pmtkdiff.html b/hlp/en/projman/pmtkdiff.html
new file mode 100644
index 0000000..a80ae7b
--- /dev/null
+++ b/hlp/en/projman/pmtkdiff.html
@@ -0,0 +1,108 @@
+TkDIFF+
+TkDIFF+
+
+The top row contains the File, Edit, View, Mark, Merge and Help menus. The second row contains the labels which identify the contents of each text window. Below that is a toolbar which contains navigation and merge selection tools.
+
+
The left-most text widget displays the contents of FILE1, the most recently checked-in revision, REV or REV1, respectively (as per the startup options described in the "On Command Line" help). The right-most widget displays the contents of FILE2, FILE or REV2, respectively. Clicking the right mouse button over either of these windows will give you a context sensitive menu with actions that will act on the window you clicked over. For example, if you click right over the right hand window and select "Edit", the file displayed on the right hand side will be loaded into a text editor.
+
+
At the bottom of the display is a two line window called the "Line Comparison" window. This will show the "current line" from the left and right windows, one on top of the other. The "current line" is defined by the line that has the blinking insertion cursor, which can be set by merely clicking on any line in the display. This window may be hidden if the View menu item Show Line Comparison is deselected.
+
All difference regions (DRs) are highlighted to set them apart from the surrounding text. The current difference region, or CDR, is further set apart so that it can be correlated to its partner in the other text widget (that is, the CDR on the left matches the CDR on the right).
+
+
Changing the CDR
+
+
The CDR can be changed in a sequential manner by means of the Next and Previous buttons. The First and Last buttons allow you to quickly navigate to the first or last CDR, respectively. For random access to the DRs, use the dropdown listbox in the toolbar or the diff map, described below.
+
+
By clicking right over a window and using the popup menu you can select Find Nearest Diff to find the diff record nearest the point where you clicked.
+
+
You may also select any highlighted diff region as the current diff region by double-clicking on it.
+
+
Operations
+
+
1. From the File menu:
+
+
The New... button displays a dialog where you may choose two files to compare. Selecting "Ok" from the dialog will diff the two files. The Recompute Diffs button recomputes the differences between the two files whose names appear at the top of the TkDiff window. The Write Report... lets you create a report file that contains the information visible in the windows. Lastly, the Exit button terminates TkDiff.
+
+
2. From the Edit menu:
+
+
Copy copies the currently selected text to the system clipboard. Find pops up a dialog to let you search either text window for a specified text string. Edit File 1 and Edit File 2 launch an editor on the files displayed in the left- and right-hand panes. Preferences pops up a dialog box from which display (and other) options can be
+changed and saved.
+
+
3. From the View menu:
+
+
Show Line Numbers toggles the display of line numbers in the text widgets. If Synchronize Scrollbars is on, the left and right text widgets are synchronized i.e. scrolling one of the windows scrolls the other. If Auto Center is on, pressing the Next or Prev buttons centers the new CDR automatically. Show Diff Map toggles the display of the diff map (see below) on or off. Show Merge Preview shows or hides the merge preview (see below). Show Line Comparison toggles the display of the "line comparison" window at the bottom of the display.
+
+
4. From the Mark menu:
+
+The Mark Current Diff creates a new toolbar button that will jump to the current diff region. The Clear Current Diff Mark will remove the toolbar mark button associated with the current diff region, if one exists.
+
+
5. From the Merge menu:
+
+The Show Merge Window button pops up a window with the current merged version of the two files. The Write Merge File button will allow you to save the contents of that window to a file.
+
+
6. From the Help menu:
+
+The About TkDiff button displays copyright and author information. The On GUI button generates this window. The On Command Line button displays help on the TkDiff command line options. The On Preferences button displays help on the user-settable preferences.
+
+
7. From the toolbar:
+
+The first tool is a dropdown list of all of the differences in a standard diff-type format. You may use this list to go directly to any diff record. The Next and Previous buttons take you to the "next" and "previous" DR, respectively. The First and Last buttons take you to the "first" and "last" DR. The Center button centers the CDRs in their respective text windows. You can set Auto Center in Preferences to do this automatically for you as you navigate through the diff records.
+
+
Keyboard Navigation
+
+
When a text widget has the focus, you may use the following shortcut keys:
+
+ f First diff
+ c Center current diff
+ l Last diff
+ n Next diff
+ p Previous diff
+ 1 Merge Choice 1
+ 2 Merge Choice 2
+ u Switch back to directories view
+
+The cursor, Home, End, PageUp and PageDown keys work as expected, adjusting the view in whichever text window has the focus. Note that if Synchronize Scrollbars is set in Preferences, both windows will scroll at the same time.
+
+
Scrolling
+
+
To scroll the text widgets independently, make sure Synchronize Scrollbars in Preferences is off. If it is on, scrolling any text widget scrolls all others. Scrolling does not change the current diff record (CDR).
+
+
Diff Marks
+
+
You can set "markers" at specific diff regions for easier navigation. To do this, click on the Set Mark button. It will create a new toolbar button that will jump back to this diff region. To clear a diff mark, go to that diff record and click on the Clear Mark button.
+
+
Diff Map
+
+
The diff map is a map of all the diff regions. It is shown in the middle of the main window if "Diff Map" on the View menu is on. The map is a miniature of the file's diff regions from top to bottom. Each diff region is rendered as a patch of color, Delete as red, Insert as green and Change as blue. In the case of a 3-way merge, overlap regions are marked in yellow. The height of each patch corresponds to the relative size of the diff region. A thumb lets you interact with the map as if it were a scrollbar.
+All diff regions are drawn on the map even if too small to be visible. For large files with small diff regions, this may result in patches overwriting each other.
+
+
Merging
+
+
To merge the two files, go through the difference regions (via "Next", "Prev" or whatever other means you prefer) and select "Left" or "Right" (next to the "Merge Choice:" label) for each. Selecting "Left" means that the the left-most file's version of the difference will be used in creating the final result; choosing "Right" means that the right-most file's difference will be used. Each choice is recorded, and can be changed arbitrarily many times. To commit the final, merged result to disk, choose "Write Merge File..." from the Merge menu.
+
+
Merge Preview
+
+
To see a preview of the file that would be written by "Write Merge File...", select "Show Merge Window" in the View menu. A separate window is shown containing the preview. It is updated as you change merge choices. It is synchronized with the other text widgets if "Synchronize Scrollbars" is on.
+
+
Credits
+
+
Thanks to Wayne Throop for beta testing, and for giving valuable suggestions (and code!) along the way. Thanks (and credit) to John Heidemann for his window tags routines, which I shamelessly stole (with permission) out of his great Tk-based Solitaire game, Klondike. Thanks to D. Elson (author of tkCVS) for writing the code that extends the RCS support to include CVS. Thanks to John Brown for writing the code that extends the revision control support to SCCS.
+
+
Major thanks to Warren Jones (wjones@tc.fluke.com) and Peter Brandstrom (qraprbm@era-lvk.ericsson.se) for going way above and beyond the call. Warren added support for NT and cleaned up the Unix code as well. Peter, independently, did the same thing and then added the new interface. The end result was the 2.x series... Many, many thanks to you both!
+
+
Major thanks also to Bryan Oakley (boakley@vignette.com), who made the GUI even more appealing... Bryan did a ton of work, the result of which was the 3.x series. Dorothy Robinson provided helpful comments and patches for 3.x, too. Thanks, Bryan and Dorothy!
+
+
Thanks to Dean Jones (dean@gallant.com) for permission to use his icons in the toolbar.
+
+
Thanks to Laurent Riesterer (laurent.riesterer@free.fr) for adding support to display the differences between files in directories.
+
+
Many, many thanks also to the many others who have written and provided ideas and encouragement and code since TkDiff was first released! I haven't done much coding since the 1.x series; almost every new feature that has come about since then has been the result of volunteer efforts. Thanks, folks!
+
Author
+
John M. Klassa
+
Comments
+
+
Questions and comments should be sent to the TkDiff mailing list at
+http://www.accurev.com/free/tkdiff.
+
+
To get it, please visit:
+
http://www.gnu.org/gnulist/production/diffutils.html
+
diff --git a/hlp/en/projman/projman.toc.html b/hlp/en/projman/projman.toc.html
new file mode 100644
index 0000000..6f20fc6
--- /dev/null
+++ b/hlp/en/projman/projman.toc.html
@@ -0,0 +1,12 @@
+Tcl/Tk Project Manager
+About
+Working with projman
+Help system
+Working with VisualREGEXP
+Working with TkDIFF+
+Hot keys
+License
+
+
+
+
diff --git a/hlp/en/tcl/Tcl.htm b/hlp/en/tcl/Tcl.htm
new file mode 100644
index 0000000..f5ccb2f
--- /dev/null
+++ b/hlp/en/tcl/Tcl.htm
@@ -0,0 +1,194 @@
+
Tcl Built-In Commands - Tcl manual page
+
+- NAME
+
- Tcl - Summary of Tcl language syntax.
+- DESCRIPTION
+
+
+- $name
+
- $name(index)
+
- ${name}
+
+
+- \a
+
- \b
+
- \f
+
- \n
+
- \r
+
- \t
+
- \v
+
- \<newline>whiteSpace
+
- \\
+
- \ooo
+
- \xhh
+
- \uhhhh
+
+
+
+
+Tcl - Summary of Tcl language syntax.
+
+The following rules define the syntax and semantics of the Tcl language:
+
+
+- [1]
-
+A Tcl script is a string containing one or more commands.
+Semi-colons and newlines are command separators unless quoted as
+described below.
+Close brackets are command terminators during command substitution
+(see below) unless quoted.
+
- [2]
-
+A command is evaluated in two steps.
+First, the Tcl interpreter breaks the command into words
+and performs substitutions as described below.
+These substitutions are performed in the same way for all
+commands.
+The first word is used to locate a command procedure to
+carry out the command, then all of the words of the command are
+passed to the command procedure.
+The command procedure is free to interpret each of its words
+in any way it likes, such as an integer, variable name, list,
+or Tcl script.
+Different commands interpret their words differently.
+
- [3]
-
+Words of a command are separated by white space (except for
+newlines, which are command separators).
+
- [4]
-
+If the first character of a word is double-quote (``"'') then
+the word is terminated by the next double-quote character.
+If semi-colons, close brackets, or white space characters
+(including newlines) appear between the quotes then they are treated
+as ordinary characters and included in the word.
+Command substitution, variable substitution, and backslash substitution
+are performed on the characters between the quotes as described below.
+The double-quotes are not retained as part of the word.
+
- [5]
-
+If the first character of a word is an open brace (``{'') then
+the word is terminated by the matching close brace (``}'').
+Braces nest within the word: for each additional open
+brace there must be an additional close brace (however,
+if an open brace or close brace within the word is
+quoted with a backslash then it is not counted in locating the
+matching close brace).
+No substitutions are performed on the characters between the
+braces except for backslash-newline substitutions described
+below, nor do semi-colons, newlines, close brackets,
+or white space receive any special interpretation.
+The word will consist of exactly the characters between the
+outer braces, not including the braces themselves.
+
- [6]
-
+If a word contains an open bracket (``['') then Tcl performs
+command substitution.
+To do this it invokes the Tcl interpreter recursively to process
+the characters following the open bracket as a Tcl script.
+The script may contain any number of commands and must be terminated
+by a close bracket (``]'').
+The result of the script (i.e. the result of its last command) is
+substituted into the word in place of the brackets and all of the
+characters between them.
+There may be any number of command substitutions in a single word.
+Command substitution is not performed on words enclosed in braces.
+
- [7]
-
+If a word contains a dollar-sign (``$'') then Tcl performs variable
+substitution: the dollar-sign and the following characters are
+replaced in the word by the value of a variable.
+Variable substitution may take any of the following forms:
+
+
+- $name
-
+Name is the name of a scalar variable; the name is terminated
+by any character that isn't a letter, digit, or underscore.
+
- $name(index)
-
+Name gives the name of an array variable and index gives
+the name of an element within that array.
+Name must contain only letters, digits, and underscores.
+Command substitutions, variable substitutions, and backslash
+substitutions are performed on the characters of index.
+
- ${name}
-
+Name is the name of a scalar variable. It may contain any
+characters whatsoever except for close braces.
+
There may be any number of variable substitutions in a single word.
+Variable substitution is not performed on words enclosed in braces.
+
+ - [8]
-
+If a backslash (``\'') appears within a word then
+backslash substitution occurs.
+In all cases but those described below the backslash is dropped and
+the following character is treated as an ordinary
+character and included in the word.
+This allows characters such as double quotes, close brackets,
+and dollar signs to be included in words without triggering
+special processing.
+The following table lists the backslash sequences that are
+handled specially, along with the value that replaces each sequence.
+
+
+- \a
-
+Audible alert (bell) (0x7).
+
- \b
-
+Backspace (0x8).
+
- \f
-
+Form feed (0xc).
+
- \n
-
+Newline (0xa).
+
- \r
-
+Carriage-return (0xd).
+
- \t
-
+Tab (0x9).
+
- \v
-
+Vertical tab (0xb).
+
- \<newline>whiteSpace
-
+A single space character replaces the backslash, newline, and all spaces
+and tabs after the newline. This backslash sequence is unique in that it
+is replaced in a separate pre-pass before the command is actually parsed.
+This means that it will be replaced even when it occurs between braces,
+and the resulting space will be treated as a word separator if it isn't
+in braces or quotes.
+
- \\
-
+Backslash (``\'').
+
- \ooo
-
+The digits ooo (one, two, or three of them) give an eight-bit octal
+value for the Unicode character that will be inserted. The upper bits of the
+Unicode character will be 0.
+
- \xhh
-
+The hexadecimal digits hh give an eight-bit hexadecimal value for the
+Unicode character that will be inserted. Any number of hexadecimal digits
+may be present; however, all but the last two are ignored (the result is
+always a one-byte quantity). The upper bits of the Unicode character will
+be 0.
+
- \uhhhh
-
+The hexadecimal digits hhhh (one, two, three, or four of them) give a
+sixteen-bit hexadecimal value for the Unicode character that will be
+inserted.
+
Backslash substitution is not performed on words enclosed in braces,
+except for backslash-newline as described above.
+
+ - [9]
-
+If a hash character (``#'') appears at a point where Tcl is
+expecting the first character of the first word of a command,
+then the hash character and the characters that follow it, up
+through the next newline, are treated as a comment and ignored.
+The comment character only has significance when it appears
+at the beginning of a command.
+
- [10]
-
+Each character is processed exactly once by the Tcl interpreter
+as part of creating the words of a command.
+For example, if variable substitution occurs then no further
+substitutions are performed on the value of the variable; the
+value is inserted into the word verbatim.
+If command substitution occurs then the nested command is
+processed entirely by the recursive call to the Tcl interpreter;
+no substitutions are performed before making the recursive
+call and no additional substitutions are performed on the result
+of the nested script.
+
- [11]
-
+Substitutions do not affect the word boundaries of a command.
+For example, during variable substitution the entire value of
+the variable becomes part of a single word, even if the variable's
+value contains spaces.
+
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/after.htm b/hlp/en/tcl/after.htm
new file mode 100644
index 0000000..08551db
--- /dev/null
+++ b/hlp/en/tcl/after.htm
@@ -0,0 +1,114 @@
+Tcl Built-In Commands - after manual page
+
+- NAME
+
- after - Execute a command after a time delay
+- SYNOPSIS
+
+- after ms
+
- after ms ?script script script ...?
+
- after cancel id
+
- after cancel script script script ...
+
- after idle ?script script script ...?
+
- after info ?id?
+
+- DESCRIPTION
+
+- after ms
+
- after ms ?script script script ...?
+
- after cancel id
+
- after cancel script script ...
+
- after idle script ?script script ...?
+
- after info ?id?
+
+- SEE ALSO
+
- KEYWORDS
+
+
+after - Execute a command after a time delay
+
+after ms
+after ms ?script script script ...?
+after cancel id
+after cancel script script script ...
+after idle ?script script script ...?
+after info ?id?
+
+This command is used to delay execution of the program or to execute
+a command in background sometime in the future. It has several forms,
+depending on the first argument to the command:
+
+
+- after ms
-
+Ms must be an integer giving a time in milliseconds.
+The command sleeps for ms milliseconds and then returns.
+While the command is sleeping the application does not respond to
+events.
+
- after ms ?script script script ...?
-
+In this form the command returns immediately, but it arranges
+for a Tcl command to be executed ms milliseconds later as an
+event handler.
+The command will be executed exactly once, at the given time.
+The delayed command is formed by concatenating all the script
+arguments in the same fashion as the concat command.
+The command will be executed at global level (outside the context
+of any Tcl procedure).
+If an error occurs while executing the delayed command then the
+bgerror mechanism is used to report the error.
+The after command returns an identifier that can be used
+to cancel the delayed command using after cancel.
+
- after cancel id
-
+Cancels the execution of a delayed command that
+was previously scheduled.
+Id indicates which command should be canceled; it must have
+been the return value from a previous after command.
+If the command given by id has already been executed then
+the after cancel command has no effect.
+
- after cancel script script ...
-
+This command also cancels the execution of a delayed command.
+The script arguments are concatenated together with space
+separators (just as in the concat command).
+If there is a pending command that matches the string, it is
+cancelled and will never be executed; if no such command is
+currently pending then the after cancel command has no effect.
+
- after idle script ?script script ...?
-
+Concatenates the script arguments together with space
+separators (just as in the concat command), and arranges
+for the resulting script to be evaluated later as an idle callback.
+The script will be run exactly once, the next time the event
+loop is entered and there are no events to process.
+The command returns an identifier that can be used
+to cancel the delayed command using after cancel.
+If an error occurs while executing the script then the
+bgerror mechanism is used to report the error.
+
- after info ?id?
-
+This command returns information about existing event handlers.
+If no id argument is supplied, the command returns
+a list of the identifiers for all existing
+event handlers created by the after command for this
+interpreter.
+If id is supplied, it specifies an existing handler;
+id must have been the return value from some previous call
+to after and it must not have triggered yet or been cancelled.
+In this case the command returns a list with two elements.
+The first element of the list is the script associated
+with id, and the second element is either
+idle or timer to indicate what kind of event
+handler it is.
+
+
+The after ms and after idle forms of the command
+assume that the application is event driven: the delayed commands
+will not be executed unless the application enters the event loop.
+In applications that are not normally event-driven, such as
+tclsh, the event loop can be entered with the vwait
+and update commands.
+
+
+bgerror, concat, update, vwait
+
+cancel, delay, idle callback, sleep, time
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/append.htm b/hlp/en/tcl/append.htm
new file mode 100644
index 0000000..923cfa5
--- /dev/null
+++ b/hlp/en/tcl/append.htm
@@ -0,0 +1,24 @@
+Built-In Commands - append manual page
+
+append - Append to variable
+
+append varName ?value value value ...?
+
+Append all of the value arguments to the current value
+of variable varName. If varName doesn't exist,
+it is given a value equal to the concatenation of all the
+value arguments.
+This command provides an efficient way to build up long
+variables incrementally.
+For example, ``append a $b'' is much more efficient than
+``set a $a$b'' if $a is long.
+
+
+concat, lappend
+
+append, variable
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/array.htm b/hlp/en/tcl/array.htm
new file mode 100644
index 0000000..8aa2ecb
--- /dev/null
+++ b/hlp/en/tcl/array.htm
@@ -0,0 +1,128 @@
+Tcl Built-In Commands - array manual page
+
+- NAME
+
- array - Manipulate array variables
+- SYNOPSIS
+
+- array option arrayName ?arg arg ...?
+
+- DESCRIPTION
+
+- array anymore arrayName searchId
+
- array donesearch arrayName searchId
+
- array exists arrayName
+
- array get arrayName ?pattern?
+
- array names arrayName ?pattern?
+
- array nextelement arrayName searchId
+
- array set arrayName list
+
- array size arrayName
+
- array startsearch arrayName
+
- array unset arrayName ?pattern?
+
+- KEYWORDS
+
+
+array - Manipulate array variables
+
+array option arrayName ?arg arg ...?
+
+This command performs one of several operations on the
+variable given by arrayName.
+Unless otherwise specified for individual commands below,
+arrayName must be the name of an existing array variable.
+The option argument determines what action is carried
+out by the command.
+The legal options (which may be abbreviated) are:
+
+
+- array anymore arrayName searchId
-
+Returns 1 if there are any more elements left to be processed
+in an array search, 0 if all elements have already been
+returned.
+SearchId indicates which search on arrayName to
+check, and must have been the return value from a previous
+invocation of array startsearch.
+This option is particularly useful if an array has an element
+with an empty name, since the return value from
+array nextelement won't indicate whether the search
+has been completed.
+
- array donesearch arrayName searchId
-
+This command terminates an array search and destroys all the
+state associated with that search. SearchId indicates
+which search on arrayName to destroy, and must have
+been the return value from a previous invocation of
+array startsearch. Returns an empty string.
+
- array exists arrayName
-
+Returns 1 if arrayName is an array variable, 0 if there
+is no variable by that name or if it is a scalar variable.
+
- array get arrayName ?pattern?
-
+Returns a list containing pairs of elements. The first
+element in each pair is the name of an element in arrayName
+and the second element of each pair is the value of the
+array element. The order of the pairs is undefined.
+If pattern is not specified, then all of the elements of the
+array are included in the result.
+If pattern is specified, then only those elements whose names
+match pattern (using the matching rules of
+string match) are included.
+If arrayName isn't the name of an array variable, or if
+the array contains no elements, then an empty list is returned.
+
- array names arrayName ?pattern?
-
+Returns a list containing the names of all of the elements in
+the array that match pattern (using the matching
+rules of string match).
+If pattern is omitted then the command returns all of
+the element names in the array.
+If there are no (matching) elements in the array, or if arrayName
+isn't the name of an array variable, then an empty string is
+returned.
+
- array nextelement arrayName searchId
-
+Returns the name of the next element in arrayName, or
+an empty string if all elements of arrayName have
+already been returned in this search. The searchId
+argument identifies the search, and must have
+been the return value of an array startsearch command.
+Warning: if elements are added to or deleted from the array,
+then all searches are automatically terminated just as if
+array donesearch had been invoked; this will cause
+array nextelement operations to fail for those searches.
+
- array set arrayName list
-
+Sets the values of one or more elements in arrayName.
+list must have a form like that returned by array get,
+consisting of an even number of elements.
+Each odd-numbered element in list is treated as an element
+name within arrayName, and the following element in list
+is used as a new value for that array element.
+If the variable arrayName does not already exist
+and list is empty,
+arrayName is created with an empty array value.
+
- array size arrayName
-
+Returns a decimal string giving the number of elements in the
+array.
+If arrayName isn't the name of an array then 0 is returned.
+
- array startsearch arrayName
-
+This command initializes an element-by-element search through the
+array given by arrayName, such that invocations of the
+array nextelement command will return the names of the
+individual elements in the array.
+When the search has been completed, the array donesearch
+command should be invoked.
+The return value is a
+search identifier that must be used in array nextelement
+and array donesearch commands; it allows multiple
+searches to be underway simultaneously for the same array.
+
- array unset arrayName ?pattern?
-
+Unsets all of the elements in the array that match pattern (using the
+matching rules of string match). If arrayName isn't the name
+of an array variable or there are no matching elements in the array, then
+an empty string is returned. If pattern is omitted and is it an
+array variable, then the command unsets the entire array.
+
+
+
+array, element names, search
+
+Copyright © 1993-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/bgerror.htm b/hlp/en/tcl/bgerror.htm
new file mode 100644
index 0000000..89af49d
--- /dev/null
+++ b/hlp/en/tcl/bgerror.htm
@@ -0,0 +1,68 @@
+Tcl Built-In Commands - bgerror manual page
+
+bgerror - Command invoked to process background errors
+
+bgerror message
+
+The bgerror command doesn't exist as built-in part of Tcl. Instead,
+individual applications or users can define a bgerror
+command (e.g. as a Tcl procedure) if they wish to handle background
+errors.
+
+A background error is one that occurs in an event handler or some
+other command that didn't originate with the application.
+For example, if an error occurs while executing a command specified
+with the after command, then it is a background error.
+For a non-background error, the error can simply be returned up
+through nested Tcl command evaluations until it reaches the top-level
+code in the application; then the application can report the error
+in whatever way it wishes. When a background error occurs, the
+unwinding ends in the Tcl library and there is no obvious way for Tcl
+to report the error.
+
+When Tcl detects a background error, it saves information about the
+error and invokes the bgerror command later as an idle event
+handler. Before invoking bgerror, Tcl restores the
+errorInfo and errorCode variables to their values at the
+time the error occurred, then it invokes bgerror with the error
+message as its only argument. Tcl assumes that the application has
+implemented the bgerror command, and that the command will
+report the error in a way that makes sense for the application. Tcl
+will ignore any result returned by the bgerror command as long
+as no error is generated.
+
+If another Tcl error occurs within the bgerror command (for
+example, because no bgerror command has been defined) then Tcl
+reports the error itself by writing a message to stderr.
+
+If several background errors accumulate before bgerror is
+invoked to process them, bgerror will be invoked once for each
+error, in the order they occurred. However, if bgerror returns
+with a break exception, then any remaining errors are skipped without
+calling bgerror.
+
+Tcl has no default implementation for bgerror. However, in
+applications using Tk there is a default bgerror procedure which
+posts a dialog box containing the error message and offers the user a
+chance to see a stack trace showing where the error occurred. In
+addition to allowing the user to view the stack trace, the dialog
+provides an additional application configurable button which may be
+used, for example, to save the stack trace to a file. By default,
+this is the behavior associated with that button. This behavior can
+be redefined by setting the option database values
+*ErrorDialog.function.text, to specify the caption for the
+function button, and *ErrorDialog.function.command, to specify
+the command to be run. The text of the stack trace is appended to the
+command when it is evaluated. If either of these options is set to
+the empty string, then the additional button will not be displayed in
+the dialog.
+
+
+after, tclvars
+
+background error, reporting
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/binary.htm b/hlp/en/tcl/binary.htm
new file mode 100644
index 0000000..d3375fb
--- /dev/null
+++ b/hlp/en/tcl/binary.htm
@@ -0,0 +1,451 @@
+Tcl Built-In Commands - binary manual page
+
+- NAME
+
- binary - Insert and extract fields from binary strings
+- SYNOPSIS
+
+- binary format formatString ?arg arg ...?
+
- binary scan string formatString ?varName varName ...?
+
+- DESCRIPTION
+
- BINARY FORMAT
+
+- a
+
- A
+
- b
+
- B
+
- h
+
- H
+
- c
+
- s
+
- S
+
- i
+
- I
+
- f
+
- d
+
- x
+
- X
+
- @
+
+- BINARY SCAN
+
+- a
+
- A
+
- b
+
- B
+
- h
+
- H
+
- c
+
- s
+
- S
+
- i
+
- I
+
- f
+
- d
+
- x
+
- X
+
- @
+
+- PLATFORM ISSUES
+
- SEE ALSO
+
- KEYWORDS
+
+
+binary - Insert and extract fields from binary strings
+
+binary format formatString ?arg arg ...?
+binary scan string formatString ?varName varName ...?
+
+This command provides facilities for manipulating binary data. The
+first form, binary format, creates a binary string from normal
+Tcl values. For example, given the values 16 and 22, on a 32 bit
+architecture, it might produce an 8-byte binary string consisting of
+two 4-byte integers, one for each of the numbers. The second form of
+the command, binary scan, does the opposite: it extracts data
+from a binary string and returns it as ordinary Tcl string values.
+
+
+The binary format command generates a binary string whose layout
+is specified by the formatString and whose contents come from
+the additional arguments. The resulting binary value is returned.
+
+The formatString consists of a sequence of zero or more field
+specifiers separated by zero or more spaces. Each field specifier is
+a single type character followed by an optional numeric count.
+Most field specifiers consume one argument to obtain the value to be
+formatted. The type character specifies how the value is to be
+formatted. The count typically indicates how many items of the
+specified type are taken from the value. If present, the count
+is a non-negative decimal integer or *, which normally indicates
+that all of the items in the value are to be used. If the number of
+arguments does not match the number of fields in the format string
+that consume arguments, then an error is generated.
+
+Each type-count pair moves an imaginary cursor through the binary
+data, storing bytes at the current position and advancing the cursor
+to just after the last byte stored. The cursor is initially at
+position 0 at the beginning of the data. The type may be any one of
+the following characters:
+
+
+- a
-
+Stores a character string of length count in the output string.
+If arg has fewer than count bytes, then additional zero
+bytes are used to pad out the field. If arg is longer than the
+specified length, the extra characters will be ignored. If
+count is *, then all of the bytes in arg will be
+formatted. If count is omitted, then one character will be
+formatted. For example,
+
binary format a7a*a alpha bravo charlie
+will return a string equivalent to alpha\000\000bravoc.
+ - A
-
+This form is the same as a except that spaces are used for
+padding instead of nulls. For example,
+
binary format A6A*A alpha bravo charlie
+will return alpha bravoc.
+ - b
-
+Stores a string of count binary digits in low-to-high order
+within each byte in the output string. Arg must contain a
+sequence of 1 and 0 characters. The resulting bytes are
+emitted in first to last order with the bits being formatted in
+low-to-high order within each byte. If arg has fewer than
+count digits, then zeros will be used for the remaining bits.
+If arg has more than the specified number of digits, the extra
+digits will be ignored. If count is *, then all of the
+digits in arg will be formatted. If count is omitted,
+then one digit will be formatted. If the number of bits formatted
+does not end at a byte boundary, the remaining bits of the last byte
+will be zeros. For example,
+
binary format b5b* 11100 111000011010
+will return a string equivalent to \x07\x87\x05.
+ - B
-
+This form is the same as b except that the bits are stored in
+high-to-low order within each byte. For example,
+
binary format B5B* 11100 111000011010
+will return a string equivalent to \xe0\xe1\xa0.
+ - h
-
+Stores a string of count hexadecimal digits in low-to-high
+within each byte in the output string. Arg must contain a
+sequence of characters in the set ``0123456789abcdefABCDEF''. The
+resulting bytes are emitted in first to last order with the hex digits
+being formatted in low-to-high order within each byte. If arg
+has fewer than count digits, then zeros will be used for the
+remaining digits. If arg has more than the specified number of
+digits, the extra digits will be ignored. If count is
+*, then all of the digits in arg will be formatted. If
+count is omitted, then one digit will be formatted. If the
+number of digits formatted does not end at a byte boundary, the
+remaining bits of the last byte will be zeros. For example,
+
binary format h3h* AB def
+will return a string equivalent to \xba\x00\xed\x0f.
+ - H
-
+This form is the same as h except that the digits are stored in
+high-to-low order within each byte. For example,
+
binary format H3H* ab DEF
+will return a string equivalent to \xab\x00\xde\xf0.
+ - c
-
+Stores one or more 8-bit integer values in the output string. If no
+count is specified, then arg must consist of an integer
+value; otherwise arg must consist of a list containing at least
+count integer elements. The low-order 8 bits of each integer
+are stored as a one-byte value at the cursor position. If count
+is *, then all of the integers in the list are formatted. If
+the number of elements in the list is fewer than count, then an
+error is generated. If the number of elements in the list is greater
+than count, then the extra elements are ignored. For example,
+
binary format c3cc* {3 -3 128 1} 260 {2 5}
+will return a string equivalent to
+\x03\xfd\x80\x04\x02\x05, whereas
+binary format c {2 5}
+will generate an error.
+ - s
-
+This form is the same as c except that it stores one or more
+16-bit integers in little-endian byte order in the output string. The
+low-order 16-bits of each integer are stored as a two-byte value at
+the cursor position with the least significant byte stored first. For
+example,
+
binary format s3 {3 -3 258 1}
+will return a string equivalent to
+\x03\x00\xfd\xff\x02\x01.
+ - S
-
+This form is the same as s except that it stores one or more
+16-bit integers in big-endian byte order in the output string. For
+example,
+
binary format S3 {3 -3 258 1}
+will return a string equivalent to
+\x00\x03\xff\xfd\x01\x02.
+ - i
-
+This form is the same as c except that it stores one or more
+32-bit integers in little-endian byte order in the output string. The
+low-order 32-bits of each integer are stored as a four-byte value at
+the cursor position with the least significant byte stored first. For
+example,
+
binary format i3 {3 -3 65536 1}
+will return a string equivalent to
+\x03\x00\x00\x00\xfd\xff\xff\xff\x00\x00\x01\x00
+ - I
-
+This form is the same as i except that it stores one or more one
+or more 32-bit integers in big-endian byte order in the output string.
+For example,
+
binary format I3 {3 -3 65536 1}
+will return a string equivalent to
+\x00\x00\x00\x03\xff\xff\xff\xfd\x00\x01\x00\x00
+ - f
-
+This form is the same as c except that it stores one or more one
+or more single-precision floating in the machine's native
+representation in the output string. This representation is not
+portable across architectures, so it should not be used to communicate
+floating point numbers across the network. The size of a floating
+point number may vary across architectures, so the number of bytes
+that are generated may vary. If the value overflows the
+machine's native representation, then the value of FLT_MAX
+as defined by the system will be used instead. Because Tcl uses
+double-precision floating-point numbers internally, there may be some
+loss of precision in the conversion to single-precision. For example,
+on a Windows system running on an Intel Pentium processor,
+
binary format f2 {1.6 3.4}
+will return a string equivalent to
+\xcd\xcc\xcc\x3f\x9a\x99\x59\x40.
+ - d
-
+This form is the same as f except that it stores one or more one
+or more double-precision floating in the machine's native
+representation in the output string. For example, on a
+Windows system running on an Intel Pentium processor,
+
binary format d1 {1.6}
+will return a string equivalent to
+\x9a\x99\x99\x99\x99\x99\xf9\x3f.
+ - x
-
+Stores count null bytes in the output string. If count is
+not specified, stores one null byte. If count is *,
+generates an error. This type does not consume an argument. For
+example,
+
binary format a3xa3x2a3 abc def ghi
+will return a string equivalent to abc\000def\000\000ghi.
+ - X
-
+Moves the cursor back count bytes in the output string. If
+count is * or is larger than the current cursor position,
+then the cursor is positioned at location 0 so that the next byte
+stored will be the first byte in the result string. If count is
+omitted then the cursor is moved back one byte. This type does not
+consume an argument. For example,
+
binary format a3X*a3X2a3 abc def ghi
+will return dghi.
+ - @
-
+Moves the cursor to the absolute location in the output string
+specified by count. Position 0 refers to the first byte in the
+output string. If count refers to a position beyond the last
+byte stored so far, then null bytes will be placed in the unitialized
+locations and the cursor will be placed at the specified location. If
+count is *, then the cursor is moved to the current end of
+the output string. If count is omitted, then an error will be
+generated. This type does not consume an argument. For example,
+
binary format a5@2a1@*a3@10a1 abcde f ghi j
+will return abfdeghi\000\000j.
+
+
+The binary scan command parses fields from a binary string,
+returning the number of conversions performed. String gives the
+input to be parsed and formatString indicates how to parse it.
+Each varName gives the name of a variable; when a field is
+scanned from string the result is assigned to the corresponding
+variable.
+
+As with binary format, the formatString consists of a
+sequence of zero or more field specifiers separated by zero or more
+spaces. Each field specifier is a single type character followed by
+an optional numeric count. Most field specifiers consume one
+argument to obtain the variable into which the scanned values should
+be placed. The type character specifies how the binary data is to be
+interpreted. The count typically indicates how many items of
+the specified type are taken from the data. If present, the
+count is a non-negative decimal integer or *, which
+normally indicates that all of the remaining items in the data are to
+be used. If there are not enough bytes left after the current cursor
+position to satisfy the current field specifier, then the
+corresponding variable is left untouched and binary scan returns
+immediately with the number of variables that were set. If there are
+not enough arguments for all of the fields in the format string that
+consume arguments, then an error is generated.
+
+It is important to note that the c, s, and S
+(and i and I on 64bit systems) will be scanned into
+long data size values. In doing this, values that have their high
+bit set (0x80 for chars, 0x8000 for shorts, 0x80000000 for ints),
+will be sign extended. Thus the following will occur:
+
set signShort [binary format s1 0x8000]
+binary scan $signShort s1 val; # val == 0xFFFF8000
+If you want to produce an unsigned value, then you can mask the return
+value to the desired size. For example, to produce an unsigned short
+value:
+set val [expr {$val & 0xFFFF}]; # val == 0x8000
+
+Each type-count pair moves an imaginary cursor through the binary data,
+reading bytes from the current position. The cursor is initially
+at position 0 at the beginning of the data. The type may be any one of
+the following characters:
+
+
+- a
-
+The data is a character string of length count. If count
+is *, then all of the remaining bytes in string will be
+scanned into the variable. If count is omitted, then one
+character will be scanned. For example,
+
binary scan abcde\000fghi a6a10 var1 var2
+will return 1 with the string equivalent to abcde\000
+stored in var1 and var2 left unmodified.
+ - A
-
+This form is the same as a, except trailing blanks and nulls are stripped from
+the scanned value before it is stored in the variable. For example,
+
binary scan "abc efghi \000" A* var1
+will return 1 with abc efghi stored in var1.
+ - b
-
+The data is turned into a string of count binary digits in
+low-to-high order represented as a sequence of ``1'' and ``0''
+characters. The data bytes are scanned in first to last order with
+the bits being taken in low-to-high order within each byte. Any extra
+bits in the last byte are ignored. If count is *, then
+all of the remaining bits in string will be scanned. If
+count is omitted, then one bit will be scanned. For example,
+
binary scan \x07\x87\x05 b5b* var1 var2
+will return 2 with 11100 stored in var1 and
+1110000110100000 stored in var2.
+ - B
-
+This form is the same as b, except the bits are taken in
+high-to-low order within each byte. For example,
+
binary scan \x70\x87\x05 B5B* var1 var2
+will return 2 with 01110 stored in var1 and
+1000011100000101 stored in var2.
+ - h
-
+The data is turned into a string of count hexadecimal digits in
+low-to-high order represented as a sequence of characters in the set
+``0123456789abcdef''. The data bytes are scanned in first to last
+order with the hex digits being taken in low-to-high order within each
+byte. Any extra bits in the last byte are ignored. If count
+is *, then all of the remaining hex digits in string will be
+scanned. If count is omitted, then one hex digit will be
+scanned. For example,
+
binary scan \x07\x86\x05 h3h* var1 var2
+will return 2 with 706 stored in var1 and
+50 stored in var2.
+ - H
-
+This form is the same as h, except the digits are taken in
+high-to-low order within each byte. For example,
+
binary scan \x07\x86\x05 H3H* var1 var2
+will return 2 with 078 stored in var1 and
+05 stored in var2.
+ - c
-
+The data is turned into count 8-bit signed integers and stored
+in the corresponding variable as a list. If count is *,
+then all of the remaining bytes in string will be scanned. If
+count is omitted, then one 8-bit integer will be scanned. For
+example,
+
binary scan \x07\x86\x05 c2c* var1 var2
+will return 2 with 7 -122 stored in var1 and 5
+stored in var2. Note that the integers returned are signed, but
+they can be converted to unsigned 8-bit quantities using an expression
+like:
+expr ( $num + 0x100 ) % 0x100
+ - s
-
+The data is interpreted as count 16-bit signed integers
+represented in little-endian byte order. The integers are stored in
+the corresponding variable as a list. If count is *, then
+all of the remaining bytes in string will be scanned. If
+count is omitted, then one 16-bit integer will be scanned. For
+example,
+
binary scan \x05\x00\x07\x00\xf0\xff s2s* var1 var2
+will return 2 with 5 7 stored in var1 and -16
+stored in var2. Note that the integers returned are signed, but
+they can be converted to unsigned 16-bit quantities using an expression
+like:
+expr ( $num + 0x10000 ) % 0x10000
+ - S
-
+This form is the same as s except that the data is interpreted
+as count 16-bit signed integers represented in big-endian byte
+order. For example,
+
binary scan \x00\x05\x00\x07\xff\xf0 S2S* var1 var2
+will return 2 with 5 7 stored in var1 and -16
+stored in var2.
+ - i
-
+The data is interpreted as count 32-bit signed integers
+represented in little-endian byte order. The integers are stored in
+the corresponding variable as a list. If count is *, then
+all of the remaining bytes in string will be scanned. If
+count is omitted, then one 32-bit integer will be scanned. For
+example,
+
binary scan \x05\x00\x00\x00\x07\x00\x00\x00\xf0\xff\xff\xff i2i* var1 var2
+will return 2 with 5 7 stored in var1 and -16
+stored in var2. Note that the integers returned are signed and
+cannot be represented by Tcl as unsigned values.
+ - I
-
+This form is the same as I except that the data is interpreted
+as count 32-bit signed integers represented in big-endian byte
+order. For example,
+
binary \x00\x00\x00\x05\x00\x00\x00\x07\xff\xff\xff\xf0 I2I* var1 var2
+will return 2 with 5 7 stored in var1 and -16
+stored in var2.
+ - f
-
+The data is interpreted as count single-precision floating point
+numbers in the machine's native representation. The floating point
+numbers are stored in the corresponding variable as a list. If
+count is *, then all of the remaining bytes in
+string will be scanned. If count is omitted, then one
+single-precision floating point number will be scanned. The size of a
+floating point number may vary across architectures, so the number of
+bytes that are scanned may vary. If the data does not represent a
+valid floating point number, the resulting value is undefined and
+compiler dependent. For example, on a Windows system running on an
+Intel Pentium processor,
+
binary scan \x3f\xcc\xcc\xcd f var1
+will return 1 with 1.6000000238418579 stored in
+var1.
+ - d
-
+This form is the same as f except that the data is interpreted
+as count double-precision floating point numbers in the
+machine's native representation. For example, on a Windows system
+running on an Intel Pentium processor,
+
binary scan \x9a\x99\x99\x99\x99\x99\xf9\x3f d var1
+will return 1 with 1.6000000000000001
+stored in var1.
+ - x
-
+Moves the cursor forward count bytes in string. If
+count is * or is larger than the number of bytes after the
+current cursor cursor position, then the cursor is positioned after
+the last byte in string. If count is omitted, then the
+cursor is moved forward one byte. Note that this type does not
+consume an argument. For example,
+
binary scan \x01\x02\x03\x04 x2H* var1
+will return 1 with 0304 stored in var1.
+ - X
-
+Moves the cursor back count bytes in string. If
+count is * or is larger than the current cursor position,
+then the cursor is positioned at location 0 so that the next byte
+scanned will be the first byte in string. If count
+is omitted then the cursor is moved back one byte. Note that this
+type does not consume an argument. For example,
+
binary scan \x01\x02\x03\x04 c2XH* var1 var2
+will return 2 with 1 2 stored in var1 and 020304
+stored in var2.
+ - @
-
+Moves the cursor to the absolute location in the data string specified
+by count. Note that position 0 refers to the first byte in
+string. If count refers to a position beyond the end of
+string, then the cursor is positioned after the last byte. If
+count is omitted, then an error will be generated. For example,
+
binary scan \x01\x02\x03\x04 c2@1H* var1 var2
+will return 2 with 1 2 stored in var1 and 020304
+stored in var2.
+
+
+Sometimes it is desirable to format or scan integer values in the
+native byte order for the machine. Refer to the byteOrder
+element of the tcl_platform array to decide which type character
+to use when formatting or scanning integers.
+
+
+format, scan, tclvars
+
+binary, format, scan
+
+Copyright © 1997 by Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/break.htm b/hlp/en/tcl/break.htm
new file mode 100644
index 0000000..22d3176
--- /dev/null
+++ b/hlp/en/tcl/break.htm
@@ -0,0 +1,26 @@
+Built-In Commands - break manual page
+
+break - Abort looping command
+
+break
+
+This command is typically invoked inside the body of a looping command
+such as for or foreach or while.
+It returns a TCL_BREAK code, which causes a break exception
+to occur.
+The exception causes the current script to be aborted
+out to the innermost containing loop command, which then
+aborts its execution and returns normally.
+Break exceptions are also handled in a few other situations, such
+as the catch command, Tk event bindings, and the outermost
+scripts of procedure bodies.
+
+
+catch, continue, for, foreach, while
+
+abort, break, loop
+
+Copyright © 1993-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/catch.htm b/hlp/en/tcl/catch.htm
new file mode 100644
index 0000000..c37747f
--- /dev/null
+++ b/hlp/en/tcl/catch.htm
@@ -0,0 +1,50 @@
+Tcl Built-In Commands - catch manual page
+
+catch - Evaluate script and trap exceptional returns
+
+catch script ?varName?
+
+The catch command may be used to prevent errors from aborting command
+interpretation. Catch calls the Tcl interpreter recursively to
+execute script, and always returns without raising an error,
+regardless of any errors that might occur while executing script.
+
+If script raises an error, catch will return a non-zero integer
+value corresponding to one of the exceptional return codes (see tcl.h
+for the definitions of code values). If the varName argument is
+given, then the variable it names is set to the error message from
+interpreting script.
+
+If script does not raise an error, catch will return 0
+(TCL_OK) and set the variable to the value returned from script.
+
+Note that catch catches all exceptions, including those
+generated by break and continue as well as errors. The
+only errors that are not caught are syntax errors found when the
+script is compiled. This is because the catch command only catches
+errors during runtime. When the catch statement is compiled, the
+script is compiled as well and any syntax errors will generate a Tcl
+error.
+
+
+The catch command may be used in an if to branch based on
+the success of a script.
+
+if { [catch {open $someFile w} fid] } {
+ puts stderr "Could not open $someFile for writing\n$fid"
+ exit 1
+}
+The catch command will not catch compiled syntax errors. The
+first time proc foo is called, the body will be compiled and a
+Tcl error will be generated.
+
+proc foo {} {
+ catch {expr {1 +- }}
+}
+
+catch, error
+
+Copyright © 1993-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/cd.htm b/hlp/en/tcl/cd.htm
new file mode 100644
index 0000000..93dcc4f
--- /dev/null
+++ b/hlp/en/tcl/cd.htm
@@ -0,0 +1,20 @@
+Built-In Commands - cd manual page
+
+cd - Change working directory
+
+cd ?dirName?
+
+Change the current working directory to dirName, or to the
+home directory (as specified in the HOME environment variable) if
+dirName is not given.
+Returns an empty string.
+
+
+filename, glob, pwd
+
+working directory
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/clock.htm b/hlp/en/tcl/clock.htm
new file mode 100644
index 0000000..287a309
--- /dev/null
+++ b/hlp/en/tcl/clock.htm
@@ -0,0 +1,251 @@
+Tcl Built-In Commands - clock manual page
+
+- NAME
+
- clock - Obtain and manipulate time
+- SYNOPSIS
+
+- clock option ?arg arg ...?
+
+- DESCRIPTION
+
+- .VS 8.3
+
- clock format clockValue ?-format string? ?-gmt boolean?
+
+- %%
+
- %a
+
- %A
+
- %b
+
- %B
+
- %c
+
- %d
+
- %H
+
- %I
+
- %j
+
- %m
+
- %M
+
- %p
+
- %S
+
- %U
+
- %w
+
- %W
+
- %x
+
- %X
+
- %y
+
- %Y
+
- %Z
+
+
+- %D
+
- %e
+
- %h
+
- %n
+
- %r
+
- %R
+
- %t
+
- %T
+
+- clock scan dateString ?-base clockVal? ?-gmt boolean?
+
+- time
+
- date
+
- ISO 8601 point-in-time
+
- relative time
+
+- clock seconds
+
+- KEYWORDS
+
+
+clock - Obtain and manipulate time
+
+clock option ?arg arg ...?
+
+This command performs one of several operations that may obtain
+or manipulate strings or values that represent some notion of
+time. The option argument determines what action is carried
+out by the command. The legal options (which may be
+abbreviated) are:
+
+
+- .VS 8.3
-
+clock clicks ?-milliseconds?
+Return a high-resolution time value as a system-dependent integer
+value. The unit of the value is system-dependent but should be the
+highest resolution clock available on the system such as a CPU cycle
+counter. If -milliseconds is specified, then the value is
+guaranteed to be of millisecond granularity.
+This value should only be used for the relative measurement
+of elapsed time.
+
- clock format clockValue ?-format string? ?-gmt boolean?
-
+Converts an integer time value, typically returned by
+clock seconds, clock scan, or the atime, mtime,
+or ctime options of the file command, to human-readable
+form. If the -format argument is present the next argument is a
+string that describes how the date and time are to be formatted.
+Field descriptors consist of a % followed by a field
+descriptor character. All other characters are copied into the result.
+Valid field descriptors are:
+
+
+- %%
-
+Insert a %.
+
- %a
-
+Abbreviated weekday name (Mon, Tue, etc.).
+
- %A
-
+Full weekday name (Monday, Tuesday, etc.).
+
- %b
-
+Abbreviated month name (Jan, Feb, etc.).
+
- %B
-
+Full month name.
+
- %c
-
+Locale specific date and time.
+
- %d
-
+Day of month (01 - 31).
+
- %H
-
+Hour in 24-hour format (00 - 23).
+
- %I
-
+Hour in 12-hour format (00 - 12).
+
- %j
-
+Day of year (001 - 366).
+
- %m
-
+Month number (01 - 12).
+
- %M
-
+Minute (00 - 59).
+
- %p
-
+AM/PM indicator.
+
- %S
-
+Seconds (00 - 59).
+
- %U
-
+Week of year (00 - 52), Sunday is the first day of the week.
+
- %w
-
+Weekday number (Sunday = 0).
+
- %W
-
+Week of year (00 - 52), Monday is the first day of the week.
+
- %x
-
+Locale specific date format.
+
- %X
-
+Locale specific time format.
+
- %y
-
+Year without century (00 - 99).
+
- %Y
-
+Year with century (e.g. 1990)
+
- %Z
-
+Time zone name.
+
+
+
-
+In addition, the following field descriptors may be supported on some
+systems (e.g. Unix but not Windows):
+
+
+- %D
-
+Date as %m/%d/%y.
+
- %e
-
+Day of month (1 - 31), no leading zeros.
+
- %h
-
+Abbreviated month name.
+
- %n
-
+Insert a newline.
+
- %r
-
+Time as %I:%M:%S %p.
+
- %R
-
+Time as %H:%M.
+
- %t
-
+Insert a tab.
+
- %T
-
+Time as %H:%M:%S.
+
+
+
+
-
+If the -format argument is not specified, the format string
+"%a %b %d %H:%M:%S %Z %Y" is used. If the -gmt argument
+is present the next argument must be a boolean which if true specifies
+that the time will be formatted as Greenwich Mean Time. If false
+then the local timezone will be used as defined by the operating
+environment.
+
+ - clock scan dateString ?-base clockVal? ?-gmt boolean?
-
+Convert dateString to an integer clock value (see clock seconds).
+This command can parse and convert virtually any standard date and/or time
+string, which can include standard time zone mnemonics. If only a time is
+specified, the current date is assumed. If the string does not contain a
+time zone mnemonic, the local time zone is assumed, unless the -gmt
+argument is true, in which case the clock value is calculated assuming
+that the specified time is relative to Greenwich Mean Time.
+-gmt, if specified, affects only the computed time value; it does not
+impact the interpretation of -base.
+
+If the -base flag is specified, the next argument should contain
+an integer clock value. Only the date in this value is used, not the
+time. This is useful for determining the time on a specific day or
+doing other date-relative conversions.
+
+The dateString consists of zero or more specifications of the
+following form:
+
+
+- time
-
+A time of day, which is of the form: hh?:mm?:ss??
+?meridian? ?zone? or hhmm ?meridian?
+?zone?. If no meridian is specified, hh is interpreted on
+a 24-hour clock.
+
- date
-
+A specific month and day with optional year. The
+acceptable formats are mm/dd?/yy?, monthname dd
+?, yy?, dd monthname ?yy?, day, dd monthname
+yy, ?CC?yymmdd, ?CC?yy-mm-dd, dd-monthname-?CC?yy.
+The default year is the current year. If the year is less
+than 100, we treat the years 00-68 as 2000-2068 and the years 69-99
+as 1969-1999. Not all platforms can represent the years 38-70, so
+an error may result if these years are used.
+
- ISO 8601 point-in-time
-
+An ISO 8601 point-in-time specification, such as CCyymmddThhmmss, where
+T is the literal T, CCyymmdd hhmmss, or
+CCyymmddThh:mm:ss.
+
- relative time
-
+A specification relative to the current time. The format is number
+unit acceptable units are year, fortnight, month, week, day,
+hour, minute (or min), and second (or sec). The
+unit can be specified as a singular or plural, as in 3 weeks.
+These modifiers may also be specified:
+tomorrow, yesterday, today, now,
+last, this, next, ago.
+
+
+
-
+The actual date is calculated according to the following steps.
+First, any absolute date and/or time is processed and converted.
+Using that time as the base, day-of-week specifications are added.
+Next, relative specifications are used. If a date or day is
+specified, and no absolute or relative time is given, midnight is
+used. Finally, a correction is applied so that the correct hour of
+the day is produced after allowing for daylight savings time
+differences and the correct date is given when going from the end
+of a long month to a short month.
+
+Daylight savings time correction is applied only when the relative time
+is specified in units of days or more, ie, days, weeks, fortnights, months or
+years. This means that when crossing the daylight savings time boundary,
+different results will be given for clock scan "1 day" and
+clock scan "24 hours":
+
% clock scan "1 day" -base [clock scan 1999-10-31]
+941443200
+% clock scan "24 hours" -base [clock scan 1999-10-31]
+941439600
+
+ - clock seconds
-
+Return the current date and time as a system-dependent integer value. The
+unit of the value is seconds, allowing it to be used for relative time
+calculations. The value is usually defined as total elapsed time from
+an ``epoch''. You shouldn't assume the value of the epoch.
+
+
+
+clock, date, time
+
+Copyright © 1992-1995 Karl Lehenbauer and Mark Diekhans.
+Copyright © 1995-1997 Sun Microsystems, Inc.
+Copyright © 1998-1999 Scriptics Corporation
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/close.htm b/hlp/en/tcl/close.htm
new file mode 100644
index 0000000..af60eb0
--- /dev/null
+++ b/hlp/en/tcl/close.htm
@@ -0,0 +1,47 @@
+Tcl Built-In Commands - close manual page
+
+close - Close an open channel.
+
+close channelId
+
+Closes the channel given by channelId. ChannelId must be a
+channel identifier such as the return value from a previous open
+or socket command.
+All buffered output is flushed to the channel's output device,
+any buffered input is discarded, the underlying file or device is closed,
+and channelId becomes unavailable for use.
+
+If the channel is blocking, the command does not return until all output
+is flushed.
+If the channel is nonblocking and there is unflushed output, the
+channel remains open and the command
+returns immediately; output will be flushed in the background and the
+channel will be closed when all the flushing is complete.
+
+If channelId is a blocking channel for a command pipeline then
+close waits for the child processes to complete.
+
+If the channel is shared between interpreters, then close
+makes channelId unavailable in the invoking interpreter but has no
+other effect until all of the sharing interpreters have closed the
+channel.
+When the last interpreter in which the channel is registered invokes
+close, the cleanup actions described above occur. See the
+interp command for a description of channel sharing.
+
+Channels are automatically closed when an interpreter is destroyed and
+when the process exits. Channels are switched to blocking mode, to ensure
+that all output is correctly flushed before the process exits.
+
+The command returns an empty string, and may generate an error if
+an error occurs while flushing output.
+
+
+file, open, socket, eof
+
+blocking, channel, close, nonblocking
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/concat.htm b/hlp/en/tcl/concat.htm
new file mode 100644
index 0000000..88a4322
--- /dev/null
+++ b/hlp/en/tcl/concat.htm
@@ -0,0 +1,28 @@
+Built-In Commands - concat manual page
+
+concat - Join lists together
+
+concat ?arg arg ...?
+
+This command treats each argument as a list and concatenates them
+into a single list.
+It also eliminates leading and trailing spaces in the arg's
+and adds a single separator space between arg's.
+It permits any number of arguments. For example,
+the command
+concat a b {c d e} {f {g h}}
+will return
+a b c d e f {g h}
+as its result.
+
+If no args are supplied, the result is an empty string.
+
+
+append, eval
+
+concatenate, join, lists
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/continue.htm b/hlp/en/tcl/continue.htm
new file mode 100644
index 0000000..64f1e61
--- /dev/null
+++ b/hlp/en/tcl/continue.htm
@@ -0,0 +1,26 @@
+Built-In Commands - continue manual page
+
+continue - Skip to the next iteration of a loop
+
+continue
+
+This command is typically invoked inside the body of a looping command
+such as for or foreach or while.
+It returns a TCL_CONTINUE code, which causes a continue exception
+to occur.
+The exception causes the current script to be aborted
+out to the innermost containing loop command, which then
+continues with the next iteration of the loop.
+Catch exceptions are also handled in a few other situations, such
+as the catch command and the outermost scripts of procedure
+bodies.
+
+
+break, for, foreach, while
+
+continue, iteration, loop
+
+Copyright © 1993-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/dde.htm b/hlp/en/tcl/dde.htm
new file mode 100644
index 0000000..4289cd7
--- /dev/null
+++ b/hlp/en/tcl/dde.htm
@@ -0,0 +1,146 @@
+Tcl Built-In Commands - dde manual page
+
+- NAME
+
- dde - Execute a Dynamic Data Exchange command
+- SYNOPSIS
+
+- package require dde 1.1
+
- dde servername ?topic?
+
- dde ?-async? command service topic ?data?
+
+- DESCRIPTION
+
+- -async
+
+- DDE COMMANDS
+
+- dde servername ?topic?
+
- dde execute service topic data
+
- dde poke service topic item data
+
- dde request service topic item
+
- dde services service topic
+
- dde eval topic cmd ?arg arg ...?
+
+- DDE AND TCL
+
- SEE ALSO
+
- KEYWORDS
+
+
+dde - Execute a Dynamic Data Exchange command
+
+package require dde 1.1
+dde servername ?topic?
+dde ?-async? command service topic ?data?
+
+This command allows an application to send Dynamic Data Exchange (DDE)
+command when running under Microsoft Windows. Dynamic Data Exchange is
+a mechanism where applications can exchange raw data. Each DDE
+transaction needs a service name and a topic. Both the
+service name and topic are application defined; Tcl uses
+the service name TclEval, while the topic name is the name of the
+interpreter given by dde servername. Other applications have their
+own service names and topics. For instance, Microsoft Excel
+has the service name Excel.
+
+The only option to the dde command is:
+
+
+- -async
-
+Requests asynchronous invocation. This is valid only for the
+execute subcommand. Normally, the dde execute subcommand
+waits until the command completes, returning appropriate error
+messages. When the -async option is used, the command returns
+immediately, and no error information is available.
+
+
+The following commands are a subset of the full Dynamic Data Exchange
+set of commands.
+
+
+- dde servername ?topic?
-
+dde servername registers the interpreter as a DDE server with
+the service name TclEval and the topic name specified by topic.
+If no topic is given, dde servername returns the name
+of the current topic or the empty string if it is not registered as a service.
+
- dde execute service topic data
-
+dde execute takes the data and sends it to the server
+indicated by service with the topic indicated by
+topic. Typically, service is the name of an application,
+and topic is a file to work on. The data field is given
+to the remote application. Typically, the application treats the
+data field as a script, and the script is run in the
+application. The command returns an error if the script did not
+run. If the -async flag was used, the command
+returns immediately with no error.
+
- dde poke service topic item data
-
+dde poke passes the data to the server indicated by
+service using the topic and item specified. Typically,
+service is the name of an application. topic is application
+specific but can be a command to the server or the name of a file to work
+on. The item is also application specific and is often not used, but
+it must always be non-null. The data field is given to the remote
+application.
+
- dde request service topic item
-
+dde request is typically used to get the value of something; the
+value of a cell in Microsoft Excel or the text of a selection in
+Microsoft Word. service is typically the name of an application,
+topic is typically the name of the file, and item is
+application-specific. The command returns the value of item as
+defined in the application.
+
- dde services service topic
-
+dde services returns a list of service-topic pairs that
+currently exist on the machine. If service and topic are
+both null strings ({}), then all service-topic pairs currently
+available on the system are returned. If service is null and
+topic is not, then all services with the specified topic are
+returned. If service is not null and topic is, all topics
+for a given service are returned. If both are not null, if that
+service-topic pair currently exists, it is returned; otherwise, null
+is returned.
+
- dde eval topic cmd ?arg arg ...?
-
+dde eval evaluates a command and its arguments using the
+interpreter specified by topic. The DDE service must be the
+TclEval service. This command can be used to replace send on
+Windows.
+
+
+A Tcl interpreter always has a service name of TclEval. Each
+different interpreter of all running Tcl applications must be
+given a unique
+name specified by dde servername. Each interp is available as a
+DDE topic only if the dde servername command was used to set the
+name of the topic for each interp. So a dde services TclEval {}
+command will return a list of service-topic pairs, where each of the
+currently running interps will be a topic.
+
+When Tcl processes a dde execute command, the data for the
+execute is run as a script in the interp named by the topic of the
+dde execute command.
+
+When Tcl processes a dde request command, it returns the value of the
+variable given in the dde command in the context of the interp named by the
+dde topic. Tcl reserves the variable $TCLEVAL$EXECUTE$RESULT for
+internal use, and dde request commands for that variable will give
+unpredictable results.
+
+An external application which wishes to run a script in Tcl should have
+that script store its result in a variable, run the dde execute
+command, and the run dde request to get the value of the
+variable.
+
+When using DDE, be careful to ensure that the event queue is flushed
+using either update or vwait. This happens by default
+when using wish unless a blocking command is called (such as exec
+without adding the & to place the process in the background).
+If for any reason the event queue is not flushed, DDE commands may
+hang until the event queue is flushed. This can create a deadlock
+situation.
+
+
+tk, winfo, send
+
+application, dde, name, remote execution
+
+Copyright © 1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/encoding.htm b/hlp/en/tcl/encoding.htm
new file mode 100644
index 0000000..19d7938
--- /dev/null
+++ b/hlp/en/tcl/encoding.htm
@@ -0,0 +1,83 @@
+Tcl Built-In Commands - encoding manual page
+
+- NAME
+
- encoding - Manipulate encodings
+- SYNOPSIS
+
+- encoding option ?arg arg ...?
+
+- INTRODUCTION
+
- DESCRIPTION
+
+- encoding convertfrom ?encoding? data
+
- encoding convertto ?encoding? string
+
- encoding names
+
- encoding system ?encoding?
+
+- EXAMPLE
+
- SEE ALSO
+
- KEYWORDS
+
+
+encoding - Manipulate encodings
+
+encoding option ?arg arg ...?
+
+Strings in Tcl are encoded using 16-bit Unicode characters. Different
+operating system interfaces or applications may generate strings in
+other encodings such as Shift-JIS. The encoding command helps
+to bridge the gap between Unicode and these other formats.
+
+
+Performs one of several encoding related operations, depending on
+option. The legal options are:
+
+
+- encoding convertfrom ?encoding? data
-
+Convert data to Unicode from the specified encoding. The
+characters in data are treated as binary data where the lower
+8-bits of each character is taken as a single byte. The resulting
+sequence of bytes is treated as a string in the specified
+encoding. If encoding is not specified, the current
+system encoding is used.
+
- encoding convertto ?encoding? string
-
+Convert string from Unicode to the specified encoding.
+The result is a sequence of bytes that represents the converted
+string. Each byte is stored in the lower 8-bits of a Unicode
+character. If encoding is not specified, the current
+system encoding is used.
+
- encoding names
-
+Returns a list containing the names of all of the encodings that are
+currently available.
+
- encoding system ?encoding?
-
+Set the system encoding to encoding. If encoding is
+omitted then the command returns the current system encoding. The
+system encoding is used whenever Tcl passes strings to system calls.
+
+
+
+It is common practice to write script files using a text editor that
+produces output in the euc-jp encoding, which represents the ASCII
+characters as singe bytes and Japanese characters as two bytes. This
+makes it easy to embed literal strings that correspond to non-ASCII
+characters by simply typing the strings in place in the script.
+However, because the source command always reads files using the
+ISO8859-1 encoding, Tcl will treat each byte in the file as a separate
+character that maps to the 00 page in Unicode. The
+resulting Tcl strings will not contain the expected Japanese
+characters. Instead, they will contain a sequence of Latin-1
+characters that correspond to the bytes of the original string. The
+encoding command can be used to convert this string to the
+expected Japanese Unicode characters. For example,
+set s [encoding convertfrom euc-jp "\xA4\xCF"]
+would return the Unicode string "\u306F", which is the Hiragana
+letter HA.
+
+
+Tcl_GetEncoding
+
+encoding
+
+Copyright © 1998 by Scriptics Corporation.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/eof.htm b/hlp/en/tcl/eof.htm
new file mode 100644
index 0000000..2be89ad
--- /dev/null
+++ b/hlp/en/tcl/eof.htm
@@ -0,0 +1,19 @@
+Tcl Built-In Commands - eof manual page
+
+eof - Check for end of file condition on channel
+
+eof channelId
+
+Returns 1 if an end of file condition occurred during the most
+recent input operation on channelId (such as gets),
+0 otherwise.
+
+
+file, open, close, fblocked
+
+channel, end of file
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/error.htm b/hlp/en/tcl/error.htm
new file mode 100644
index 0000000..55d6872
--- /dev/null
+++ b/hlp/en/tcl/error.htm
@@ -0,0 +1,48 @@
+Built-In Commands - error manual page
+
+error - Generate an error
+
+error message ?info? ?code?
+
+Returns a TCL_ERROR code, which causes command interpretation to be
+unwound. Message is a string that is returned to the application
+to indicate what went wrong.
+
+If the info argument is provided and is non-empty,
+it is used to initialize the global variable errorInfo.
+errorInfo is used to accumulate a stack trace of what
+was in progress when an error occurred; as nested commands unwind,
+the Tcl interpreter adds information to errorInfo. If the
+info argument is present, it is used to initialize
+errorInfo and the first increment of unwind information
+will not be added by the Tcl interpreter. In other
+words, the command containing the error command will not appear
+in errorInfo; in its place will be info.
+This feature is most useful in conjunction with the catch command:
+if a caught error cannot be handled successfully, info can be used
+to return a stack trace reflecting the original point of occurrence
+of the error:
+
catch {...} errMsg
+set savedInfo $errorInfo
+ ...
+error $errMsg $savedInfo
+
+If the code argument is present, then its value is stored
+in the errorCode global variable. This variable is intended
+to hold a machine-readable description of the error in cases where
+such information is available; see the tclvars manual
+page for information on the proper format for the variable.
+If the code argument is not
+present, then errorCode is automatically reset to
+``NONE'' by the Tcl interpreter as part of processing the
+error generated by the command.
+
+
+catch, tclvars
+
+error, errorCode, errorInfo
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/eval.htm b/hlp/en/tcl/eval.htm
new file mode 100644
index 0000000..1603459
--- /dev/null
+++ b/hlp/en/tcl/eval.htm
@@ -0,0 +1,22 @@
+Built-In Commands - eval manual page
+
+eval - Evaluate a Tcl script
+
+eval arg ?arg ...?
+
+Eval takes one or more arguments, which together comprise a Tcl
+script containing one or more commands.
+Eval concatenates all its arguments in the same
+fashion as the concat command, passes the concatenated string to the
+Tcl interpreter recursively, and returns the result of that
+evaluation (or any error generated by it).
+
+
+concatenate, evaluate, script
+
+catch, concat, error, subs, tclvars
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/exec.htm b/hlp/en/tcl/exec.htm
new file mode 100644
index 0000000..c1daecb
--- /dev/null
+++ b/hlp/en/tcl/exec.htm
@@ -0,0 +1,314 @@
+Tcl Built-In Commands - exec manual page
+
+- NAME
+
- exec - Invoke subprocess(es)
+- SYNOPSIS
+
+- exec ?switches? arg ?arg ...?
+
+- DESCRIPTION
+
+- -keepnewline
+
- - -
+
+
+- |
+
- |&
+
- < fileName
+
- <@ fileId
+
- << value
+
- > fileName
+
- 2> fileName
+
- >& fileName
+
- >> fileName
+
- 2>> fileName
+
- >>& fileName
+
- >@ fileId
+
- 2>@ fileId
+
- >&@ fileId
+
+- PORTABILITY ISSUES
+
+- Windows (all versions)
+
- Windows NT
+
- Windows 95
+
- Macintosh
+
- Unix
+
+- SEE ALSO
+
- KEYWORDS
+
+
+exec - Invoke subprocess(es)
+
+exec ?switches? arg ?arg ...?
+
+This command treats its arguments as the specification
+of one or more subprocesses to execute.
+The arguments take the form of a standard shell pipeline
+where each arg becomes one word of a command, and
+each distinct command becomes a subprocess.
+
+If the initial arguments to exec start with - then
+they are treated as command-line switches and are not part
+of the pipeline specification. The following switches are
+currently supported:
+
+
+- -keepnewline
-
+Retains a trailing newline in the pipeline's output.
+Normally a trailing newline will be deleted.
+
- - -
-
+Marks the end of switches. The argument following this one will
+be treated as the first arg even if it starts with a -.
+
+
+If an arg (or pair of arg's) has one of the forms
+described below then it is used by exec to control the
+flow of input and output among the subprocess(es).
+Such arguments will not be passed to the subprocess(es). In forms
+such as ``< fileName'' fileName may either be in a
+separate argument from ``<'' or in the same argument with no
+intervening space (i.e. ``<fileName'').
+
+
+- |
-
+Separates distinct commands in the pipeline. The standard output
+of the preceding command will be piped into the standard input
+of the next command.
+
- |&
-
+Separates distinct commands in the pipeline. Both standard output
+and standard error of the preceding command will be piped into
+the standard input of the next command.
+This form of redirection overrides forms such as 2> and >&.
+
- < fileName
-
+The file named by fileName is opened and used as the standard
+input for the first command in the pipeline.
+
- <@ fileId
-
+FileId must be the identifier for an open file, such as the return
+value from a previous call to open.
+It is used as the standard input for the first command in the pipeline.
+FileId must have been opened for reading.
+
- << value
-
+Value is passed to the first command as its standard input.
+
- > fileName
-
+Standard output from the last command is redirected to the file named
+fileName, overwriting its previous contents.
+
- 2> fileName
-
+Standard error from all commands in the pipeline is redirected to the
+file named fileName, overwriting its previous contents.
+
- >& fileName
-
+Both standard output from the last command and standard error from all
+commands are redirected to the file named fileName, overwriting
+its previous contents.
+
- >> fileName
-
+Standard output from the last command is
+redirected to the file named fileName, appending to it rather
+than overwriting it.
+
- 2>> fileName
-
+Standard error from all commands in the pipeline is
+redirected to the file named fileName, appending to it rather
+than overwriting it.
+
- >>& fileName
-
+Both standard output from the last command and standard error from
+all commands are redirected to the file named fileName,
+appending to it rather than overwriting it.
+
- >@ fileId
-
+FileId must be the identifier for an open file, such as the return
+value from a previous call to open.
+Standard output from the last command is redirected to fileId's
+file, which must have been opened for writing.
+
- 2>@ fileId
-
+FileId must be the identifier for an open file, such as the return
+value from a previous call to open.
+Standard error from all commands in the pipeline is
+redirected to fileId's file.
+The file must have been opened for writing.
+
- >&@ fileId
-
+FileId must be the identifier for an open file, such as the return
+value from a previous call to open.
+Both standard output from the last command and standard error from
+all commands are redirected to fileId's file.
+The file must have been opened for writing.
+
+
+If standard output has not been redirected then the exec
+command returns the standard output from the last command
+in the pipeline.
+If any of the commands in the pipeline exit abnormally or
+are killed or suspended, then exec will return an error
+and the error message will include the pipeline's output followed by
+error messages describing the abnormal terminations; the
+errorCode variable will contain additional information
+about the last abnormal termination encountered.
+If any of the commands writes to its standard error file and that
+standard error isn't redirected,
+then exec will return an error; the error message
+will include the pipeline's standard output, followed by messages
+about abnormal terminations (if any), followed by the standard error
+output.
+
+If the last character of the result or error message
+is a newline then that character is normally deleted
+from the result or error message.
+This is consistent with other Tcl return values, which don't
+normally end with newlines.
+However, if -keepnewline is specified then the trailing
+newline is retained.
+
+If standard input isn't redirected with ``<'' or ``<<''
+or ``<@'' then the standard input for the first command in the
+pipeline is taken from the application's current standard input.
+
+If the last arg is ``&'' then the pipeline will be
+executed in background.
+In this case the exec command will return a list whose
+elements are the process identifiers for all of the subprocesses
+in the pipeline.
+The standard output from the last command in the pipeline will
+go to the application's standard output if it hasn't been
+redirected, and error output from all of
+the commands in the pipeline will go to the application's
+standard error file unless redirected.
+
+The first word in each command is taken as the command name;
+tilde-substitution is performed on it, and if the result contains
+no slashes then the directories
+in the PATH environment variable are searched for
+an executable by the given name.
+If the name contains a slash then it must refer to an executable
+reachable from the current directory.
+No ``glob'' expansion or other shell-like substitutions
+are performed on the arguments to commands.
+
+
+
+- Windows (all versions)
-
+Reading from or writing to a socket, using the ``@ fileId''
+notation, does not work. When reading from a socket, a 16-bit DOS
+application will hang and a 32-bit application will return immediately with
+end-of-file. When either type of application writes to a socket, the
+information is instead sent to the console, if one is present, or is
+discarded.
+
+The Tk console text widget does not provide real standard IO capabilities.
+Under Tk, when redirecting from standard input, all applications will see an
+immediate end-of-file; information redirected to standard output or standard
+error will be discarded.
+
+Either forward or backward slashes are accepted as path separators for
+arguments to Tcl commands. When executing an application, the path name
+specified for the application may also contain forward or backward slashes
+as path separators. Bear in mind, however, that most Windows applications
+accept arguments with forward slashes only as option delimiters and
+backslashes only in paths. Any arguments to an application that specify a
+path name with forward slashes will not automatically be converted to use
+the backslash character. If an argument contains forward slashes as the
+path separator, it may or may not be recognized as a path name, depending on
+the program.
+
+Additionally, when calling a 16-bit DOS or Windows 3.X application, all path
+names must use the short, cryptic, path format (e.g., using ``applba~1.def''
+instead of ``applbakery.default'').
+
+Two or more forward or backward slashes in a row in a path refer to a
+network path. For example, a simple concatenation of the root directory
+c:/ with a subdirectory /windows/system will yield
+c://windows/system (two slashes together), which refers to the mount
+point called system on the machine called windows (and the
+c:/ is ignored), and is not equivalent to c:/windows/system,
+which describes a directory on the current computer. The file join
+command should be used to concatenate path components.
+
- Windows NT
-
+When attempting to execute an application, exec first searches for the
+name as it was specified. Then, in order, .com, .exe, and .bat
+are appended to the end of the specified name and it searches for
+the longer name. If a directory name was not specified as part of the
+application name, the following directories are automatically searched in
+order when attempting to locate the application:
+
+
-
+The directory from which the Tcl executable was loaded.
+
+The current directory.
+
+The Windows NT 32-bit system directory.
+
+The Windows NT 16-bit system directory.
+
+The Windows NT home directory.
+
+The directories listed in the path.
+
+
+In order to execute the shell builtin commands like dir and copy,
+the caller must prepend ``cmd.exe /c '' to the desired command.
+
+
- Windows 95
-
+When attempting to execute an application, exec first searches for the
+name as it was specified. Then, in order, .com, .exe, and .bat
+are appended to the end of the specified name and it searches for
+the longer name. If a directory name was not specified as part of the
+application name, the following directories are automatically searched in
+order when attempting to locate the application:
+
+
-
+The directory from which the Tcl executable was loaded.
+
+The current directory.
+
+The Windows 95 system directory.
+
+The Windows 95 home directory.
+
+The directories listed in the path.
+
+
+In order to execute the shell builtin commands like dir and copy,
+the caller must prepend ``command.com /c '' to the desired command.
+
+Once a 16-bit DOS application has read standard input from a console and
+then quit, all subsequently run 16-bit DOS applications will see the
+standard input as already closed. 32-bit applications do not have this
+problem and will run correctly, even after a 16-bit DOS application thinks
+that standard input is closed. There is no known workaround for this bug
+at this time.
+
+Redirection between the NUL: device and a 16-bit application does not
+always work. When redirecting from NUL:, some applications may hang,
+others will get an infinite stream of ``0x01'' bytes, and some will actually
+correctly get an immediate end-of-file; the behavior seems to depend upon
+something compiled into the application itself. When redirecting greater than
+4K or so to NUL:, some applications will hang. The above problems do not
+happen with 32-bit applications.
+
+All DOS 16-bit applications are run synchronously. All standard input from
+a pipe to a 16-bit DOS application is collected into a temporary file; the
+other end of the pipe must be closed before the 16-bit DOS application
+begins executing. All standard output or error from a 16-bit DOS
+application to a pipe is collected into temporary files; the application
+must terminate before the temporary files are redirected to the next stage
+of the pipeline. This is due to a workaround for a Windows 95 bug in the
+implementation of pipes, and is how the standard Windows 95 DOS shell
+handles pipes itself.
+
+Certain applications, such as command.com, should not be executed
+interactively. Applications which directly access the console window,
+rather than reading from their standard input and writing to their standard
+output may fail, hang Tcl, or even hang the system if their own private
+console window is not available to them.
+
- Macintosh
-
+The exec command is not implemented and does not exist under Macintosh.
+
- Unix
-
+The exec command is fully functional and works as described.
+
+
+
+error, open
+
+execute, pipeline, redirection, subprocess
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/exit.htm b/hlp/en/tcl/exit.htm
new file mode 100644
index 0000000..77cd8b3
--- /dev/null
+++ b/hlp/en/tcl/exit.htm
@@ -0,0 +1,20 @@
+Built-In Commands - exit manual page
+
+exit - End the application
+
+exit ?returnCode?
+
+Terminate the process, returning returnCode to the
+system as the exit status.
+If returnCode isn't specified then it defaults
+to 0.
+
+
+exec, tclvars
+
+exit, process
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/expr.htm b/hlp/en/tcl/expr.htm
new file mode 100644
index 0000000..2cfd8d8
--- /dev/null
+++ b/hlp/en/tcl/expr.htm
@@ -0,0 +1,380 @@
+Tcl Built-In Commands - expr manual page
+
+- NAME
+
- expr - Evaluate an expression
+- SYNOPSIS
+
+- expr arg ?arg arg ...?
+
+- DESCRIPTION
+
- OPERANDS
+
+
+- OPERATORS
+
+- - + ~ !
+
- * / %
+
- + -
+
- << >>
+
- < > <= >=
+
- == !=
+
- &
+
- ^
+
- |
+
- &&
+
- ||
+
- x?y:z
+
+- MATH FUNCTIONS
+
+- abs(arg)
+
- acos(arg)
+
- asin(arg)
+
- atan(arg)
+
- atan2(x, y)
+
- ceil(arg)
+
- cos(arg)
+
- cosh(arg)
+
- double(arg)
+
- exp(arg)
+
- floor(arg)
+
- fmod(x, y)
+
- hypot(x, y)
+
- int(arg)
+
- log(arg)
+
- log10(arg)
+
- pow(x, y)
+
- rand()
+
- round(arg)
+
- sin(arg)
+
- sinh(arg)
+
- sqrt(arg)
+
- srand(arg)
+
- tan(arg)
+
- tanh(arg)
+
+- TYPES, OVERFLOW, AND PRECISION
+
- STRING OPERATIONS
+
- PERFORMANCE CONSIDERATIONS
+
- KEYWORDS
+
+
+expr - Evaluate an expression
+
+expr arg ?arg arg ...?
+
+Concatenates arg's (adding separator spaces between them),
+evaluates the result as a Tcl expression, and returns the value.
+The operators permitted in Tcl expressions are a subset of
+the operators permitted in C expressions, and they have the
+same meaning and precedence as the corresponding C operators.
+Expressions almost always yield numeric results
+(integer or floating-point values).
+For example, the expression
+expr 8.2 + 6
+evaluates to 14.2.
+Tcl expressions differ from C expressions in the way that
+operands are specified. Also, Tcl expressions support
+non-numeric operands and string comparisons.
+
+A Tcl expression consists of a combination of operands, operators,
+and parentheses.
+White space may be used between the operands and operators and
+parentheses; it is ignored by the expression's instructions.
+Where possible, operands are interpreted as integer values.
+Integer values may be specified in decimal (the normal case), in octal (if the
+first character of the operand is 0), or in hexadecimal (if the first
+two characters of the operand are 0x).
+If an operand does not have one of the integer formats given
+above, then it is treated as a floating-point number if that is
+possible. Floating-point numbers may be specified in any of the
+ways accepted by an ANSI-compliant C compiler (except that the
+f, F, l, and L suffixes will not be permitted in
+most installations). For example, all of the
+following are valid floating-point numbers: 2.1, 3., 6e4, 7.91e+16.
+If no numeric interpretation is possible, then an operand is left
+as a string (and only a limited set of operators may be applied to
+it).
+
+Operands may be specified in any of the following ways:
+
+
+- [1]
-
+As an numeric value, either integer or floating-point.
+
- [2]
-
+As a Tcl variable, using standard $ notation.
+The variable's value will be used as the operand.
+
- [3]
-
+As a string enclosed in double-quotes.
+The expression parser will perform backslash, variable, and
+command substitutions on the information between the quotes,
+and use the resulting value as the operand
+
- [4]
-
+As a string enclosed in braces.
+The characters between the open brace and matching close brace
+will be used as the operand without any substitutions.
+
- [5]
-
+As a Tcl command enclosed in brackets.
+The command will be executed and its result will be used as
+the operand.
+
- [6]
-
+As a mathematical function whose arguments have any of the above
+forms for operands, such as sin($x). See below for a list of defined
+functions.
+
+
+Where substitutions occur above (e.g. inside quoted strings), they
+are performed by the expression's instructions.
+However, an additional layer of substitution may already have
+been performed by the command parser before the expression
+processor was called.
+As discussed below, it is usually best to enclose expressions
+in braces to prevent the command parser from performing substitutions
+on the contents.
+
+For some examples of simple expressions, suppose the variable
+a has the value 3 and
+the variable b has the value 6.
+Then the command on the left side of each of the lines below
+will produce the value on the right side of the line:
+
expr 3.1 + $a 6.1
+expr 2 + "$a.$b" 5.6
+expr 4*[llength "6 2"] 8
+expr {{word one} < "word $a"} 0
+
+The valid operators are listed below, grouped in decreasing order
+of precedence:
+
+
+- - + ~ !
-
+Unary minus, unary plus, bit-wise NOT, logical NOT. None of these operands
+may be applied to string operands, and bit-wise NOT may be
+applied only to integers.
+
- * / %
-
+Multiply, divide, remainder. None of these operands may be
+applied to string operands, and remainder may be applied only
+to integers.
+The remainder will always have the same sign as the divisor and
+an absolute value smaller than the divisor.
+
- + -
-
+Add and subtract. Valid for any numeric operands.
+
- << >>
-
+Left and right shift. Valid for integer operands only.
+A right shift always propagates the sign bit.
+
- < > <= >=
-
+Boolean less, greater, less than or equal, and greater than or equal.
+Each operator produces 1 if the condition is true, 0 otherwise.
+These operators may be applied to strings as well as numeric operands,
+in which case string comparison is used.
+
- == !=
-
+Boolean equal and not equal. Each operator produces a zero/one result.
+Valid for all operand types.
+
- &
-
+Bit-wise AND. Valid for integer operands only.
+
- ^
-
+Bit-wise exclusive OR. Valid for integer operands only.
+
- |
-
+Bit-wise OR. Valid for integer operands only.
+
- &&
-
+Logical AND. Produces a 1 result if both operands are non-zero,
+0 otherwise.
+Valid for boolean and numeric (integers or floating-point) operands only.
+
- ||
-
+Logical OR. Produces a 0 result if both operands are zero, 1 otherwise.
+Valid for boolean and numeric (integers or floating-point) operands only.
+
- x?y:z
-
+If-then-else, as in C. If x
+evaluates to non-zero, then the result is the value of y.
+Otherwise the result is the value of z.
+The x operand must have a numeric value.
+
+
+See the C manual for more details on the results
+produced by each operator.
+All of the binary operators group left-to-right within the same
+precedence level. For example, the command
+
expr 4*2 < 7
+returns 0.
+
+The &&, ||, and ?: operators have ``lazy
+evaluation'', just as in C,
+which means that operands are not evaluated if they are
+not needed to determine the outcome. For example, in the command
+
expr {$v ? [a] : [b]}
+only one of [a] or [b] will actually be evaluated,
+depending on the value of $v. Note, however, that this is
+only true if the entire expression is enclosed in braces; otherwise
+the Tcl parser will evaluate both [a] and [b] before
+invoking the expr command.
+
+Tcl supports the following mathematical functions in expressions:
+abs cosh log sqrt
+acos double log10 srand
+asin exp pow tan
+atan floor rand tanh
+atan2 fmod round
+ceil hypot sin
+cos int sinh
+
+
+
+- abs(arg)
-
+Returns the absolute value of arg. Arg may be either
+integer or floating-point, and the result is returned in the same form.
+
- acos(arg)
-
+Returns the arc cosine of arg, in the range [0,pi]
+radians. Arg should be in the range [-1,1].
+
- asin(arg)
-
+Returns the arc sine of arg, in the range [-pi/2,pi/2] radians.
+Arg should be in the range [-1,1].
+
- atan(arg)
-
+Returns the arc tangent of arg, in the range [-pi/2,pi/2] radians.
+
- atan2(x, y)
-
+Returns the arc tangent of y/x, in the range [-pi,pi]
+radians. x and y cannot both be 0.
+
- ceil(arg)
-
+Returns the smallest integer value not less than arg.
+
- cos(arg)
-
+Returns the cosine of arg, measured in radians.
+
- cosh(arg)
-
+Returns the hyperbolic cosine of arg. If the result would cause
+an overflow, an error is returned.
+
- double(arg)
-
+If arg is a floating value, returns arg, otherwise converts
+arg to floating and returns the converted value.
+
- exp(arg)
-
+Returns the exponential of arg, defined as e**arg. If the
+result would cause an overflow, an error is returned.
+
- floor(arg)
-
+Returns the largest integral value not greater than arg.
+
- fmod(x, y)
-
+Returns the floating-point remainder of the division of x by
+y. If y is 0, an error is returned.
+
- hypot(x, y)
-
+Computes the length of the hypotenuse of a right-angled triangle
+(x*x+y*y).
+
- int(arg)
-
+If arg is an integer value, returns arg, otherwise converts
+arg to integer by truncation and returns the converted value.
+
- log(arg)
-
+Returns the natural logarithm of arg. Arg must be a
+positive value.
+
- log10(arg)
-
+Returns the base 10 logarithm of arg. Arg must be a
+positive value.
+
- pow(x, y)
-
+Computes the value of x raised to the power y. If x
+is negative, y must be an integer value.
+
- rand()
-
+Returns a floating point number from zero to just less than one or,
+in mathematical terms, the range [0,1). The seed comes from the
+internal clock of the machine or may be set manual with the srand
+function.
+
- round(arg)
-
+If arg is an integer value, returns arg, otherwise converts
+arg to integer by rounding and returns the converted value.
+
- sin(arg)
-
+Returns the sine of arg, measured in radians.
+
- sinh(arg)
-
+Returns the hyperbolic sine of arg. If the result would cause
+an overflow, an error is returned.
+
- sqrt(arg)
-
+Returns the square root of arg. Arg must be non-negative.
+
- srand(arg)
-
+The arg, which must be an integer, is used to reset the seed for
+the random number generator. Returns the first random number from
+that seed. Each interpreter has it's own seed.
+
- tan(arg)
-
+Returns the tangent of arg, measured in radians.
+
- tanh(arg)
-
+Returns the hyperbolic tangent of arg.
+
+
+In addition to these predefined functions, applications may
+define additional functions using Tcl_CreateMathFunc().
+
+All internal computations involving integers are done with the C type
+long, and all internal computations involving floating-point are
+done with the C type double.
+When converting a string to floating-point, exponent overflow is
+detected and results in a Tcl error.
+For conversion to integer from string, detection of overflow depends
+on the behavior of some routines in the local C library, so it should
+be regarded as unreliable.
+In any case, integer overflow and underflow are generally not detected
+reliably for intermediate results. Floating-point overflow and underflow
+are detected to the degree supported by the hardware, which is generally
+pretty reliable.
+
+Conversion among internal representations for integer, floating-point,
+and string operands is done automatically as needed.
+For arithmetic computations, integers are used until some
+floating-point number is introduced, after which floating-point is used.
+For example,
+
expr 5 / 4
+returns 1, while
+expr 5 / 4.0
+expr 5 / ( [string length "abcd"] + 0.0 )
+both return 1.25.
+Floating-point values are always returned with a ``.''
+or an e so that they will not look like integer values. For
+example,
+expr 20.0/5.0
+returns 4.0, not 4.
+
+
+String values may be used as operands of the comparison operators,
+although the expression evaluator tries to do comparisons as integer
+or floating-point when it can.
+If one of the operands of a comparison is a string and the other
+has a numeric value, the numeric operand is converted back to
+a string using the C sprintf format specifier
+%d for integers and %g for floating-point values.
+For example, the commands
+expr {"0x03" > "2"}
+expr {"0y" < "0x12"}
+both return 1. The first comparison is done using integer
+comparison, and the second is done using string comparison after
+the second operand is converted to the string 18.
+Because of Tcl's tendency to treat values as numbers whenever
+possible, it isn't generally a good idea to use operators like ==
+when you really want string comparison and the values of the
+operands could be arbitrary; it's better in these cases to use
+the string command instead.
+
+
+Enclose expressions in braces for the best speed and the smallest
+storage requirements.
+This allows the Tcl bytecode compiler to generate the best code.
+
+As mentioned above, expressions are substituted twice:
+once by the Tcl parser and once by the expr command.
+For example, the commands
+
set a 3
+set b {$a + 2}
+expr $b*4
+return 11, not a multiple of 4.
+This is because the Tcl parser will first substitute $a + 2 for
+the variable b,
+then the expr command will evaluate the expression $a + 2*4.
+
+Most expressions do not require a second round of substitutions.
+Either they are enclosed in braces or, if not,
+their variable and command substitutions yield numbers or strings
+that don't themselves require substitutions.
+However, because a few unbraced expressions
+need two rounds of substitutions,
+the bytecode compiler must emit
+additional instructions to handle this situation.
+The most expensive code is required for
+unbraced expressions that contain command substitutions.
+These expressions must be implemented by generating new code
+each time the expression is executed.
+
+
+arithmetic, boolean, compare, expression, fuzzy comparison
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-2000 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/fblocked.htm b/hlp/en/tcl/fblocked.htm
new file mode 100644
index 0000000..4398a6d
--- /dev/null
+++ b/hlp/en/tcl/fblocked.htm
@@ -0,0 +1,22 @@
+Tcl Built-In Commands - fblocked manual page
+
+fblocked - Test whether the last input operation exhausted all available input
+
+fblocked channelId
+
+The fblocked command returns 1 if the most recent input operation
+on channelId returned less information than requested because all
+available input was exhausted.
+For example, if gets is invoked when there are only three
+characters available for input and no end-of-line sequence, gets
+returns an empty string and a subsequent call to fblocked will
+return 1.
+
+
+gets, open, read
+
+blocking, nonblocking
+
+Copyright © 1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/fconfigure.htm b/hlp/en/tcl/fconfigure.htm
new file mode 100644
index 0000000..6ee6997
--- /dev/null
+++ b/hlp/en/tcl/fconfigure.htm
@@ -0,0 +1,189 @@
+Tcl Built-In Commands - fconfigure manual page
+
+- NAME
+
- fconfigure - Set and get options on a channel
+- SYNOPSIS
+
+- fconfigure channelId
+
- fconfigure channelId name
+
- fconfigure channelId name value ?name value ...?
+
+- DESCRIPTION
+
+- -blocking boolean
+
- -buffering newValue
+
- -buffersize newSize
+
- -encoding name
+
- -eofchar char
+
- -eofchar {inChar outChar}
+
- -translation mode
+
- -translation {inMode outMode}
+
+- auto
+
- binary
+
- cr
+
- crlf
+
- lf
+
+
+- SEE ALSO
+
- KEYWORDS
+
+
+fconfigure - Set and get options on a channel
+
+fconfigure channelId
+fconfigure channelId name
+fconfigure channelId name value ?name value ...?
+
+The fconfigure command sets and retrieves options for channels.
+ChannelId identifies the channel for which to set or query an option.
+If no name or value arguments are supplied, the command
+returns a list containing alternating option names and values for the channel.
+If name is supplied but no value then the command returns
+the current value of the given option.
+If one or more pairs of name and value are supplied, the
+command sets each of the named options to the corresponding value;
+in this case the return value is an empty string.
+
+The options described below are supported for all channels. In addition,
+each channel type may add options that only it supports. See the manual
+entry for the command that creates each type of channels for the options
+that that specific type of channel supports. For example, see the manual
+entry for the socket command for its additional options.
+
+
+- -blocking boolean
-
+The -blocking option determines whether I/O operations on the
+channel can cause the process to block indefinitely.
+The value of the option must be a proper boolean value.
+Channels are normally in blocking mode; if a channel is placed into
+nonblocking mode it will affect the operation of the gets,
+read, puts, flush, and close commands;
+see the documentation for those commands for details.
+For nonblocking mode to work correctly, the application must be
+using the Tcl event loop (e.g. by calling Tcl_DoOneEvent or
+invoking the vwait command).
+
- -buffering newValue
-
+If newValue is full then the I/O system will buffer output
+until its internal buffer is full or until the flush command is
+invoked. If newValue is line, then the I/O system will
+automatically flush output for the channel whenever a newline character
+is output. If newValue is none, the I/O system will flush
+automatically after every output operation. The default is for
+-buffering to be set to full except for channels that
+connect to terminal-like devices; for these channels the initial setting
+is line. Additionally, stdin and stdout are
+intially set to line, and stderr is set to none.
+
- -buffersize newSize
-
+Newvalue must be an integer; its value is used to set the size of
+buffers, in bytes, subsequently allocated for this channel to store input
+or output. Newvalue must be between ten and one million, allowing
+buffers of ten to one million bytes in size.
+
- -encoding name
-
+This option is used to specify the encoding of the channel, so that the data
+can be converted to and from Unicode for use in Tcl. For instance, in
+order for Tcl to read characters from a Japanese file in shiftjis
+and properly process and display the contents, the encoding would be set
+to shiftjis. Thereafter, when reading from the channel, the bytes in
+the Japanese file would be converted to Unicode as they are read.
+Writing is also supported - as Tcl strings are written to the channel they
+will automatically be converted to the specified encoding on output.
+
+If a file contains pure binary data (for instance, a JPEG image), the
+encoding for the channel should be configured to be binary. Tcl
+will then assign no interpretation to the data in the file and simply read or
+write raw bytes. The Tcl binary command can be used to manipulate this
+byte-oriented data.
+
The default encoding for newly opened channels is the same platform- and
+locale-dependent system encoding used for interfacing with the operating
+system.
+
- -eofchar char
-
+
- -eofchar {inChar outChar}
-
+This option supports DOS file systems that use Control-z (\x1a) as an
+end of file marker. If char is not an empty string, then this
+character signals end-of-file when it is encountered during input. For
+output, the end-of-file character is output when the channel is closed.
+If char is the empty string, then there is no special end of file
+character marker. For read-write channels, a two-element list specifies
+the end of file marker for input and output, respectively. As a
+convenience, when setting the end-of-file character for a read-write
+channel you can specify a single value that will apply to both reading
+and writing. When querying the end-of-file character of a read-write
+channel, a two-element list will always be returned. The default value
+for -eofchar is the empty string in all cases except for files
+under Windows. In that case the -eofchar is Control-z (\x1a) for
+reading and the empty string for writing.
+
- -translation mode
-
+
- -translation {inMode outMode}
-
+In Tcl scripts the end of a line is always represented using a single
+newline character (\n). However, in actual files and devices the end of
+a line may be represented differently on different platforms, or even for
+different devices on the same platform. For example, under UNIX newlines
+are used in files, whereas carriage-return-linefeed sequences are
+normally used in network connections. On input (i.e., with gets
+and read) the Tcl I/O system automatically translates the external
+end-of-line representation into newline characters. Upon output (i.e.,
+with puts), the I/O system translates newlines to the external
+end-of-line representation. The default translation mode, auto,
+handles all the common cases automatically, but the -translation
+option provides explicit control over the end of line translations.
+
+The value associated with -translation is a single item for
+read-only and write-only channels. The value is a two-element list for
+read-write channels; the read translation mode is the first element of
+the list, and the write translation mode is the second element. As a
+convenience, when setting the translation mode for a read-write channel
+you can specify a single value that will apply to both reading and
+writing. When querying the translation mode of a read-write channel, a
+two-element list will always be returned. The following values are
+currently supported:
+
+
+- auto
-
+As the input translation mode, auto treats any of newline
+(lf), carriage return (cr), or carriage return followed by a
+newline (crlf) as the end of line representation. The end of line
+representation can even change from line-to-line, and all cases are
+translated to a newline. As the output translation mode, auto
+chooses a platform specific representation; for sockets on all platforms
+Tcl chooses crlf, for all Unix flavors, it chooses lf, for the
+Macintosh platform it chooses cr and for the various flavors of
+Windows it chooses crlf. The default setting for
+-translation is auto for both input and output.
+
- binary
-
+No end-of-line translations are performed. This is nearly identical to
+lf mode, except that in addition binary mode also sets the
+end-of-file character to the empty string (which disables it) and sets the
+encoding to binary (which disables encoding filtering). See the
+description of -eofchar and -encoding for more information.
+
- cr
-
+The end of a line in the underlying file or device is represented by a
+single carriage return character. As the input translation mode,
+cr mode converts carriage returns to newline characters. As the
+output translation mode, cr mode translates newline characters to
+carriage returns. This mode is typically used on Macintosh platforms.
+
- crlf
-
+The end of a line in the underlying file or device is represented by a
+carriage return character followed by a linefeed character. As the input
+translation mode, crlf mode converts carriage-return-linefeed
+sequences to newline characters. As the output translation mode,
+crlf mode translates newline characters to carriage-return-linefeed
+sequences. This mode is typically used on Windows platforms and for
+network connections.
+
- lf
-
+The end of a line in the underlying file or device is represented by a
+single newline (linefeed) character. In this mode no translations occur
+during either input or output. This mode is typically used on UNIX
+platforms.
+
+
+
+
+close, flush, gets, puts, read, socket
+
+blocking, buffering, carriage return, end of line, flushing, linemode, newline, nonblocking, platform, translation, encoding, filter, byte array, binary
+
+Copyright © 1995-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/fcopy.htm b/hlp/en/tcl/fcopy.htm
new file mode 100644
index 0000000..123e48d
--- /dev/null
+++ b/hlp/en/tcl/fcopy.htm
@@ -0,0 +1,108 @@
+Tcl Built-In Commands - fcopy manual page
+
+fcopy - Copy data from one channel to another.
+
+fcopy inchan outchan ?-size size? ?-command callback?
+
+The fcopy command copies data from one I/O channel, inchan to another I/O channel, outchan.
+The fcopy command leverages the buffering in the Tcl I/O system to
+avoid extra copies and to avoid buffering too much data in
+main memory when copying large files to slow destinations like
+network sockets.
+
+The fcopy
+command transfers data from inchan until end of file
+or size bytes have been
+transferred. If no -size argument is given,
+then the copy goes until end of file.
+All the data read from inchan is copied to outchan.
+Without the -command option, fcopy blocks until the copy is complete
+and returns the number of bytes written to outchan.
+
+The -command argument makes fcopy work in the background.
+In this case it returns immediately and the callback is invoked
+later when the copy completes.
+The callback is called with
+one or two additional
+arguments that indicates how many bytes were written to outchan.
+If an error occurred during the background copy, the second argument is the
+error string associated with the error.
+With a background copy,
+it is not necessary to put inchan or outchan into
+non-blocking mode; the fcopy command takes care of that automatically.
+However, it is necessary to enter the event loop by using
+the vwait command or by using Tk.
+
+You are not allowed to do other I/O operations with
+inchan or outchan during a background fcopy.
+If either inchan or outchan get closed
+while the copy is in progress, the current copy is stopped
+and the command callback is not made.
+If inchan is closed,
+then all data already queued for outchan is written out.
+
+Note that inchan can become readable during a background copy.
+You should turn off any fileevent handlers during a background
+copy so those handlers do not interfere with the copy.
+Any I/O attempted by a fileevent handler will get a "channel busy" error.
+
+Fcopy translates end-of-line sequences in inchan and outchan
+according to the -translation option
+for these channels.
+See the manual entry for fconfigure for details on the
+-translation option.
+The translations mean that the number of bytes read from inchan
+can be different than the number of bytes written to outchan.
+Only the number of bytes written to outchan is reported,
+either as the return value of a synchronous fcopy or
+as the argument to the callback for an asynchronous fcopy.
+
+
+This first example shows how the callback gets
+passed the number of bytes transferred.
+It also uses vwait to put the application into the event loop.
+Of course, this simplified example could be done without the command
+callback.
+proc Cleanup {in out bytes {error {}}} {
+ global total
+ set total $bytes
+ close $in
+ close $out
+ if {[string length $error] != 0} {
+ # error occurred during the copy
+ }
+}
+set in [open $file1]
+set out [socket $server $port]
+fcopy $in $out -command [list Cleanup $in $out]
+vwait total
+
+The second example copies in chunks and tests for end of file
+in the command callback
+
proc CopyMore {in out chunk bytes {error {}}} {
+ global total done
+ incr total $bytes
+ if {([string length $error] != 0) || [eof $in] {
+ set done $total
+ close $in
+ close $out
+ } else {
+ fcopy $in $out -command [list CopyMore $in $out $chunk] \
+ -size $chunk
+ }
+}
+set in [open $file1]
+set out [socket $server $port]
+set chunk 1024
+set total 0
+fcopy $in $out -command [list CopyMore $in $out $chunk] -size $chunk
+vwait done
+
+eof, fblocked, fconfigure
+
+blocking, channel, end of line, end of file, nonblocking, read, translation
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/file.htm b/hlp/en/tcl/file.htm
new file mode 100644
index 0000000..f2dd988
--- /dev/null
+++ b/hlp/en/tcl/file.htm
@@ -0,0 +1,307 @@
+Tcl Built-In Commands - file manual page
+
+- NAME
+
- file - Manipulate file names and attributes
+- SYNOPSIS
+
+- file option name ?arg arg ...?
+
+- DESCRIPTION
+
+- file atime name ?time?
+
- file attributes name
+
- file channels ?pattern?
+
- file copy ?-force? ?- -? source target
+
- file delete ?-force? ?- -? pathname ?pathname ... ?
+
- file dirname name
+
- file executable name
+
- file exists name
+
- file extension name
+
- file isdirectory name
+
- file isfile name
+
- file join name ?name ...?
+
- file lstat name varName
+
- file mkdir dir ?dir ...?
+
- file mtime name ?time?
+
- file nativename name
+
- file owned name
+
- file pathtype name
+
- file readable name
+
- file readlink name
+
- file rename ?-force? ?- -? source target
+
- file rename ?-force? ?- -? source ?source ...? targetDir
+
- file rootname name
+
- file size name
+
- file split name
+
- file stat name varName
+
- file tail name
+
- file type name
+
- file volume
+
- file writable name
+
+- PORTABILITY ISSUES
+
+- Unix
+
+- SEE ALSO
+
- KEYWORDS
+
+
+file - Manipulate file names and attributes
+
+file option name ?arg arg ...?
+
+This command provides several operations on a file's name or attributes.
+Name is the name of a file; if it starts with a tilde, then tilde
+substitution is done before executing the command (see the manual entry for
+filename for details). Option indicates what to do with the
+file name. Any unique abbreviation for option is acceptable. The
+valid options are:
+
+
+- file atime name ?time?
-
+Returns a decimal string giving the time at which file name was last
+accessed. If time is specified, it is an access time to set
+for the file. The time is measured in the standard POSIX fashion as
+seconds from a fixed starting time (often January 1, 1970). If the file
+doesn't exist or its access time cannot be queried or set then an error is
+generated. On Windows, FAT file systems do not support access time.
+
- file attributes name
-
+
+file attributes name ?option?
+
+file attributes name ?option value option value...?
+-
+This subcommand returns or sets platform specific values associated
+with a file. The first form returns a list of the platform specific
+flags and their values. The second form returns the value for the
+specific option. The third form sets one or more of the values. The
+values are as follows:
+
+On Unix, -group gets or sets the group name for the file. A group id
+can be given to the command, but it returns a group name. -owner gets
+or sets the user name of the owner of the file. The command returns the
+owner name, but the numerical id can be passed when setting the
+owner. -permissions sets or retrieves the octal code that chmod(1)
+uses. This command does also has limited support for setting using the
+symbolic attributes for chmod(1), of the form [ugo]?[[+-=][rwxst],[...]],
+where multiple symbolic attributes can be separated by commas (example:
+u+s,go-rw add sticky bit for user, remove read and write
+permissions for group and other). A simplified ls style string,
+of the form rwxrwxrwx (must be 9 characters), is also supported
+(example: rwxr-xr-t is equivalent to 01755).
+
+On Windows, -archive gives the value or sets or clears the
+archive attribute of the file. -hidden gives the value or sets
+or clears the hidden attribute of the file. -longname will
+expand each path element to its long version. This attribute cannot be
+set. -readonly gives the value or sets or clears the readonly
+attribute of the file. -shortname gives a string where every
+path element is replaced with its short (8.3) version of the
+name. This attribute cannot be set. -system gives or sets or
+clears the value of the system attribute of the file.
+
+On Macintosh, -creator gives or sets the Finder creator type of
+the file. -hidden gives or sets or clears the hidden attribute
+of the file. -readonly gives or sets or clears the readonly
+attribute of the file. Note that directories can only be locked if
+File Sharing is turned on. -type gives or sets the Finder file
+type for the file.
+
+ - file channels ?pattern?
-
+If pattern isn't specified, returns a list of names of all
+registered open channels in this interpreter. If pattern is
+specified, only those names matching pattern are returned. Matching
+is determined using the same rules as for string match.
+
- file copy ?-force? ?- -? source target
-
+
+file copy ?-force? ?- -? source ?source ...? targetDir
+-
+The first form makes a copy of the file or directory source under
+the pathname target. If target is an existing directory,
+then the second form is used. The second form makes a copy inside
+targetDir of each source file listed. If a directory is
+specified as a source, then the contents of the directory will be
+recursively copied into targetDir. Existing files will not be
+overwritten unless the -force option is specified. Trying to
+overwrite a non-empty directory, overwrite a directory with a file, or a
+file with a directory will all result in errors even if -force was
+specified. Arguments are processed in the order specified, halting at the
+first error, if any. A - - marks the end of switches; the argument
+following the - - will be treated as a source even if it
+starts with a -.
+
+ - file delete ?-force? ?- -? pathname ?pathname ... ?
-
+Removes the file or directory specified by each pathname argument.
+Non-empty directories will be removed only if the -force option is
+specified. Trying to delete a non-existant file is not considered an
+error. Trying to delete a read-only file will cause the file to be deleted,
+even if the -force flags is not specified. Arguments are processed
+in the order specified, halting at the first error, if any. A - -
+marks the end of switches; the argument following the - - will be
+treated as a pathname even if it starts with a -.
+
- file dirname name
-
+Returns a name comprised of all of the path components in name
+excluding the last element. If name is a relative file name and
+only contains one path element, then returns ``.'' (or ``:''
+on the Macintosh). If name refers to a root directory, then the
+root directory is returned. For example,
+
file dirname c:/
+returns c:/.
+
+Note that tilde substitution will only be
+performed if it is necessary to complete the command. For example,
+
file dirname ~/src/foo.c
+returns ~/src, whereas
+file dirname ~
+returns /home (or something similar).
+ - file executable name
-
+Returns 1 if file name is executable by the current user,
+0 otherwise.
+
- file exists name
-
+Returns 1 if file name exists and the current user has
+search privileges for the directories leading to it, 0 otherwise.
+
- file extension name
-
+Returns all of the characters in name after and including the last
+dot in the last element of name. If there is no dot in the last
+element of name then returns the empty string.
+
- file isdirectory name
-
+Returns 1 if file name is a directory, 0 otherwise.
+
- file isfile name
-
+Returns 1 if file name is a regular file, 0 otherwise.
+
- file join name ?name ...?
-
+Takes one or more file names and combines them, using the correct path
+separator for the current platform. If a particular name is
+relative, then it will be joined to the previous file name argument.
+Otherwise, any earlier arguments will be discarded, and joining will
+proceed from the current argument. For example,
+
file join a b /foo bar
+returns /foo/bar.
+Note that any of the names can contain separators, and that the result
+is always canonical for the current platform: / for Unix and
+Windows, and : for Macintosh.
+
- file lstat name varName
-
+Same as stat option (see below) except uses the lstat
+kernel call instead of stat. This means that if name
+refers to a symbolic link the information returned in varName
+is for the link rather than the file it refers to. On systems that
+don't support symbolic links this option behaves exactly the same
+as the stat option.
+
- file mkdir dir ?dir ...?
-
+Creates each directory specified. For each pathname dir specified,
+this command will create all non-existing parent directories as
+well as dir itself. If an existing directory is specified, then
+no action is taken and no error is returned. Trying to overwrite an existing
+file with a directory will result in an error. Arguments are processed in
+the order specified, halting at the first error, if any.
+
- file mtime name ?time?
-
+Returns a decimal string giving the time at which file name was last
+modified. If time is specified, it is a modification time to set for
+the file (equivalent to Unix touch). The time is measured in the
+standard POSIX fashion as seconds from a fixed starting time (often January
+1, 1970). If the file doesn't exist or its modified time cannot be queried
+or set then an error is generated.
+
- file nativename name
-
+Returns the platform-specific name of the file. This is useful if the
+filename is needed to pass to a platform-specific call, such as exec
+under Windows or AppleScript on the Macintosh.
+
- file owned name
-
+Returns 1 if file name is owned by the current user, 0
+otherwise.
+
- file pathtype name
-
+Returns one of absolute, relative, volumerelative. If
+name refers to a specific file on a specific volume, the path type
+will be absolute. If name refers to a file relative to the
+current working directory, then the path type will be relative. If
+name refers to a file relative to the current working directory on
+a specified volume, or to a specific file on the current working volume, then
+the file type is volumerelative.
+
- file readable name
-
+Returns 1 if file name is readable by the current user,
+0 otherwise.
+
- file readlink name
-
+Returns the value of the symbolic link given by name (i.e. the name
+of the file it points to). If name isn't a symbolic link or its
+value cannot be read, then an error is returned. On systems that don't
+support symbolic links this option is undefined.
+
- file rename ?-force? ?- -? source target
+
- file rename ?-force? ?- -? source ?source ...? targetDir
-
+The first form takes the file or directory specified by pathname
+source and renames it to target, moving the file if the
+pathname target specifies a name in a different directory. If
+target is an existing directory, then the second form is used. The
+second form moves each source file or directory into the directory
+targetDir. Existing files will not be overwritten unless the
+-force option is specified. Trying to overwrite a non-empty
+directory, overwrite a directory with a file, or a file with a directory
+will all result in errors. Arguments are processed in the order specified,
+halting at the first error, if any. A - - marks the end of
+switches; the argument following the - - will be treated as a
+source even if it starts with a -.
+
- file rootname name
-
+Returns all of the characters in name up to but not including the
+last ``.'' character in the last component of name. If the last
+component of name doesn't contain a dot, then returns name.
+
- file size name
-
+Returns a decimal string giving the size of file name in bytes. If
+the file doesn't exist or its size cannot be queried then an error is
+generated.
+
- file split name
-
+Returns a list whose elements are the path components in name. The
+first element of the list will have the same path type as name.
+All other elements will be relative. Path separators will be discarded
+unless they are needed ensure that an element is unambiguously relative.
+For example, under Unix
+
file split /foo/~bar/baz
+returns / foo ./~bar baz to ensure that later commands
+that use the third component do not attempt to perform tilde
+substitution.
+ - file stat name varName
-
+Invokes the stat kernel call on name, and uses the variable
+given by varName to hold information returned from the kernel call.
+VarName is treated as an array variable, and the following elements
+of that variable are set: atime, ctime, dev, gid,
+ino, mode, mtime, nlink, size, type,
+uid. Each element except type is a decimal string with the
+value of the corresponding field from the stat return structure;
+see the manual entry for stat for details on the meanings of the
+values. The type element gives the type of the file in the same
+form returned by the command file type. This command returns an
+empty string.
+
- file tail name
-
+Returns all of the characters in name after the last directory
+separator. If name contains no separators then returns
+name.
+
- file type name
-
+Returns a string giving the type of file name, which will be one of
+file, directory, characterSpecial, blockSpecial,
+fifo, link, or socket.
+
- file volume
-
+Returns the absolute paths to the volumes mounted on the system, as a
+proper Tcl list. On the Macintosh, this will be a list of the mounted
+drives, both local and network. N.B. if two drives have the same name,
+they will both appear on the volume list, but there is currently no way,
+from Tcl, to access any but the first of these drives. On UNIX, the
+command will always return "/", since all filesystems are locally mounted.
+On Windows, it will return a list of the available local drives
+(e.g. {a:/ c:/}).
+
- file writable name
-
+Returns 1 if file name is writable by the current user,
+0 otherwise.
+
+
+
+- Unix
-
+These commands always operate using the real user and group identifiers,
+not the effective ones.
+
+
+
+filename
+
+attributes, copy files, delete files, directory, file, move files, name, rename files, stat
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/fileevent.htm b/hlp/en/tcl/fileevent.htm
new file mode 100644
index 0000000..7185722
--- /dev/null
+++ b/hlp/en/tcl/fileevent.htm
@@ -0,0 +1,95 @@
+Tcl Built-In Commands - fileevent manual page
+
+fileevent - Execute a script when a channel becomes readable or writable
+
+fileevent channelId readable ?script?
+fileevent channelId writable ?script?
+
+This command is used to create file event handlers. A file event
+handler is a binding between a channel and a script, such that the script
+is evaluated whenever the channel becomes readable or writable. File event
+handlers are most commonly used to allow data to be received from another
+process on an event-driven basis, so that the receiver can continue to
+interact with the user while waiting for the data to arrive. If an
+application invokes gets or read on a blocking channel when
+there is no input data available, the process will block; until the input
+data arrives, it will not be able to service other events, so it will
+appear to the user to ``freeze up''. With fileevent, the process can
+tell when data is present and only invoke gets or read when
+they won't block.
+
+The channelId argument to fileevent refers to an open channel,
+such as the return value from a previous open or socket
+command.
+If the script argument is specified, then fileevent
+creates a new event handler: script will be evaluated
+whenever the channel becomes readable or writable (depending on the
+second argument to fileevent).
+In this case fileevent returns an empty string.
+The readable and writable event handlers for a file
+are independent, and may be created and deleted separately.
+However, there may be at most one readable and one writable
+handler for a file at a given time in a given interpreter.
+If fileevent is called when the specified handler already
+exists in the invoking interpreter, the new script replaces the old one.
+
+If the script argument is not specified, fileevent
+returns the current script for channelId, or an empty string
+if there is none.
+If the script argument is specified as an empty string
+then the event handler is deleted, so that no script will be invoked.
+A file event handler is also deleted automatically whenever
+its channel is closed or its interpreter is deleted.
+
+A channel is considered to be readable if there is unread data
+available on the underlying device.
+A channel is also considered to be readable if there is unread
+data in an input buffer, except in the special case where the
+most recent attempt to read from the channel was a gets
+call that could not find a complete line in the input buffer.
+This feature allows a file to be read a line at a time in nonblocking mode
+using events.
+A channel is also considered to be readable if an end of file or
+error condition is present on the underlying file or device.
+It is important for script to check for these conditions
+and handle them appropriately; for example, if there is no special
+check for end of file, an infinite loop may occur where script
+reads no data, returns, and is immediately invoked again.
+
+A channel is considered to be writable if at least one byte of data
+can be written to the underlying file or device without blocking,
+or if an error condition is present on the underlying file or device.
+
+Event-driven I/O works best for channels that have been
+placed into nonblocking mode with the fconfigure command.
+In blocking mode, a puts command may block if you give it
+more data than the underlying file or device can accept, and a
+gets or read command will block if you attempt to read
+more data than is ready; no events will be processed while the
+commands block.
+In nonblocking mode puts, read, and gets never block.
+See the documentation for the individual commands for information
+on how they handle blocking and nonblocking channels.
+
+The script for a file event is executed at global level (outside the
+context of any Tcl procedure) in the interpreter in which the
+fileevent command was invoked.
+If an error occurs while executing the script then the
+bgerror mechanism is used to report the error.
+In addition, the file event handler is deleted if it ever returns
+an error; this is done in order to prevent infinite loops due to
+buggy handlers.
+
+
+fileevent is based on the addinput command created
+by Mark Diekhans.
+
+
+bgerror, fconfigure, gets, puts, read
+
+asynchronous I/O, blocking, channel, event handler, nonblocking, readable, script, writable.
+
+Copyright © 1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/filename.htm b/hlp/en/tcl/filename.htm
new file mode 100644
index 0000000..a404238
--- /dev/null
+++ b/hlp/en/tcl/filename.htm
@@ -0,0 +1,209 @@
+Tcl Built-In Commands - filename manual page
+
+- NAME
+
- filename - File name conventions supported by Tcl commands
+- INTRODUCTION
+
- PATH TYPES
+
- PATH SYNTAX
+
+- mac
+
+- :
+
- MyFile
+
- MyDisk:MyFile
+
- :MyDir:MyFile
+
- ::MyFile
+
- :::MyFile
+
- /MyDisk/MyFile
+
- ../MyFile
+
+- unix
+
+- /
+
- /etc/passwd
+
- .
+
- foo
+
- foo/bar
+
- ../foo
+
+- windows
+
+- \\Host\share/file
+
- c:foo
+
- c:/foo
+
- foo\bar
+
- \foo
+
+
+- TILDE SUBSTITUTION
+
- PORTABILITY ISSUES
+
- KEYWORDS
+
- SEE ALSO
+
+
+filename - File name conventions supported by Tcl commands
+
+All Tcl commands and C procedures that take file names as arguments
+expect the file names to be in one of three forms, depending on the
+current platform. On each platform, Tcl supports file names in the
+standard forms(s) for that platform. In addition, on all platforms,
+Tcl supports a Unix-like syntax intended to provide a convenient way
+of constructing simple file names. However, scripts that are intended
+to be portable should not assume a particular form for file names.
+Instead, portable scripts must use the file split and file
+join commands to manipulate file names (see the file manual
+entry for more details).
+
+
+File names are grouped into three general types based on the starting point
+for the path used to specify the file: absolute, relative, and
+volume-relative. Absolute names are completely qualified, giving a path to
+the file relative to a particular volume and the root directory on that
+volume. Relative names are unqualified, giving a path to the file relative
+to the current working directory. Volume-relative names are partially
+qualified, either giving the path relative to the root directory on the
+current volume, or relative to the current directory of the specified
+volume. The file pathtype command can be used to determine the
+type of a given path.
+
+
+The rules for native names depend on the value reported in the Tcl
+array element tcl_platform(platform):
+
+
+- mac
-
+On Apple Macintosh systems, Tcl supports two forms of path names. The
+normal Mac style names use colons as path separators. Paths may be
+relative or absolute, and file names may contain any character other
+than colon. A leading colon causes the rest of the path to be
+interpreted relative to the current directory. If a path contains a
+colon that is not at the beginning, then the path is interpreted as an
+absolute path. Sequences of two or more colons anywhere in the path
+are used to construct relative paths where :: refers to the
+parent of the current directory, ::: refers to the parent of the
+parent, and so forth.
+
+In addition to Macintosh style names, Tcl also supports a subset of
+Unix-like names. If a path contains no colons, then it is interpreted
+like a Unix path. Slash is used as the path separator. The file name
+ . refers to the current directory, and .. refers to the
+parent of the current directory. However, some names like / or
+/.. have no mapping, and are interpreted as Macintosh names. In
+general, commands that generate file names will return Macintosh style
+names, but commands that accept file names will take both Macintosh
+and Unix-style names.
+
+The following examples illustrate various forms of path names:
+
+
+- :
-
+Relative path to the current folder.
+
- MyFile
-
+Relative path to a file named MyFile in the current folder.
+
- MyDisk:MyFile
-
+Absolute path to a file named MyFile on the device named MyDisk.
+
- :MyDir:MyFile
-
+Relative path to a file name MyFile in a folder named
+MyDir in the current folder.
+
- ::MyFile
-
+Relative path to a file named MyFile in the folder above the
+current folder.
+
- :::MyFile
-
+Relative path to a file named MyFile in the folder two levels above the
+current folder.
+
- /MyDisk/MyFile
-
+Absolute path to a file named MyFile on the device named
+MyDisk.
+
- ../MyFile
-
+Relative path to a file named MyFile in the folder above the
+current folder.
+
+ - unix
-
+On Unix platforms, Tcl uses path names where the components are
+separated by slashes. Path names may be relative or absolute, and
+file names may contain any character other than slash. The file names
+ . and .. are special and refer to the current directory
+and the parent of the current directory respectively. Multiple
+adjacent slash characters are interpreted as a single separator.
+The following examples illustrate various forms of path names:
+
+
+- /
-
+Absolute path to the root directory.
+
- /etc/passwd
-
+Absolute path to the file named passwd in the directory
+etc in the root directory.
+
- .
-
+Relative path to the current directory.
+
- foo
-
+Relative path to the file foo in the current directory.
+
- foo/bar
-
+Relative path to the file bar in the directory foo in the
+current directory.
+
- ../foo
-
+Relative path to the file foo in the directory above the current
+directory.
+
+ - windows
-
+On Microsoft Windows platforms, Tcl supports both drive-relative and UNC
+style names. Both / and \ may be used as directory separators
+in either type of name. Drive-relative names consist of an optional drive
+specifier followed by an absolute or relative path. UNC paths follow the
+general form \\servername\sharename\path\file. In both forms,
+the file names . and .. are special and refer to the current
+directory and the parent of the current directory respectively. The
+following examples illustrate various forms of path names:
+
+
+- \\Host\share/file
-
+Absolute UNC path to a file called file in the root directory of
+the export point share on the host Host.
+
- c:foo
-
+Volume-relative path to a file foo in the current directory on drive
+c.
+
- c:/foo
-
+Absolute path to a file foo in the root directory of drive
+c.
+
- foo\bar
-
+Relative path to a file bar in the foo directory in the current
+directory on the current volume.
+
- \foo
-
+Volume-relative path to a file foo in the root directory of the current
+volume.
+
+
+
+In addition to the file name rules described above, Tcl also supports
+csh-style tilde substitution. If a file name starts with a
+tilde, then the file name will be interpreted as if the first element
+is replaced with the location of the home directory for the given
+user. If the tilde is followed immediately by a separator, then the
+$HOME environment variable is substituted. Otherwise the
+characters between the tilde and the next separator are taken as a
+user name, which is used to retrieve the user's home directory for
+substitution.
+
+The Macintosh and Windows platforms do not support tilde substitution
+when a user name follows the tilde. On these platforms, attempts to
+use a tilde followed by a user name will generate an error. File
+names that have a tilde without a user name will be substituted using
+the $HOME environment variable, just like for Unix.
+
+
+Not all file systems are case sensitive, so scripts should avoid code
+that depends on the case of characters in a file name. In addition,
+the character sets allowed on different devices may differ, so scripts
+should choose file names that do not contain special characters like:
+<>:"/\|. The safest approach is to use names consisting of
+alphanumeric characters only. Also Windows 3.1 only supports file
+names with a root of no more than 8 characters and an extension of no
+more than 3 characters.
+
+
+current directory, absolute file name, relative file name, volume-relative file name, portability
+
+file, glob
+
+Copyright © 1995-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/flush.htm b/hlp/en/tcl/flush.htm
new file mode 100644
index 0000000..f1eb8e2
--- /dev/null
+++ b/hlp/en/tcl/flush.htm
@@ -0,0 +1,24 @@
+Tcl Built-In Commands - flush manual page
+
+flush - Flush buffered output for a channel
+
+flush channelId
+
+Flushes any output that has been buffered for channelId.
+ChannelId must be a channel identifier such as returned by a previous
+open or socket command, and it must have been opened for writing.
+If the channel is in blocking mode the command does not return until all the
+buffered output has been flushed to the channel. If the channel is in
+nonblocking mode, the command may return before all buffered output has been
+flushed; the remainder will be flushed in the background as fast as the
+underlying file or device is able to absorb it.
+
+
+file, open, socket
+
+blocking, buffer, channel, flush, nonblocking, output
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/for.htm b/hlp/en/tcl/for.htm
new file mode 100644
index 0000000..57a2a67
--- /dev/null
+++ b/hlp/en/tcl/for.htm
@@ -0,0 +1,49 @@
+Built-In Commands - for manual page
+
+for - ``For'' loop
+
+for start test next body
+
+For is a looping command, similar in structure to the C
+for statement. The start, next, and
+body arguments must be Tcl command strings, and test
+is an expression string.
+The for command first invokes the Tcl interpreter to
+execute start. Then it repeatedly evaluates test as
+an expression; if the result is non-zero it invokes the Tcl
+interpreter on body, then invokes the Tcl interpreter on next,
+then repeats the loop. The command terminates when test evaluates
+to 0. If a continue command is invoked within body then
+any remaining commands in the current execution of body are skipped;
+processing continues by invoking the Tcl interpreter on next, then
+evaluating test, and so on. If a break command is invoked
+within body
+or next,
+then the for command will
+return immediately.
+The operation of break and continue are similar to the
+corresponding statements in C.
+For returns an empty string.
+
+Note: test should almost always be enclosed in braces. If not,
+variable substitutions will be made before the for
+command starts executing, which means that variable changes
+made by the loop body will not be considered in the expression.
+This is likely to result in an infinite loop. If test is
+enclosed in braces, variable substitutions are delayed until the
+expression is evaluated (before
+each loop iteration), so changes in the variables will be visible.
+For an example, try the following script with and without the braces
+around $x<10:
+
for {set x 0} {$x<10} {incr x} {
+ puts "x is $x"
+}
+
+break, continue, foreach, while
+
+for, iteration, looping
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/foreach.htm b/hlp/en/tcl/foreach.htm
new file mode 100644
index 0000000..6d77e48
--- /dev/null
+++ b/hlp/en/tcl/foreach.htm
@@ -0,0 +1,70 @@
+Built-In Commands - foreach manual page
+
+foreach - Iterate over all elements in one or more lists
+
+foreach varname list body
+foreach varlist1 list1 ?varlist2 list2 ...? body
+
+The foreach command implements a loop where the loop
+variable(s) take on values from one or more lists.
+In the simplest case there is one loop variable, varname,
+and one list, list, that is a list of values to assign to varname.
+The body argument is a Tcl script.
+For each element of list (in order
+from first to last), foreach assigns the contents of the
+element to varname as if the lindex command had been used
+to extract the element, then calls the Tcl interpreter to execute
+body.
+
+In the general case there can be more than one value list
+(e.g., list1 and list2),
+and each value list can be associated with a list of loop variables
+(e.g., varlist1 and varlist2).
+During each iteration of the loop
+the variables of each varlist are assigned
+consecutive values from the corresponding list.
+Values in each list are used in order from first to last,
+and each value is used exactly once.
+The total number of loop iterations is large enough to use
+up all the values from all the value lists.
+If a value list does not contain enough
+elements for each of its loop variables in each iteration,
+empty values are used for the missing elements.
+
+The break and continue statements may be
+invoked inside body, with the same effect as in the for
+command. Foreach returns an empty string.
+
+The following loop uses i and j as loop variables to iterate over
+pairs of elements of a single list.
+set x {}
+foreach {i j} {a b c d e f} {
+ lappend x $j $i
+}
+# The value of x is "b a d c f e"
+# There are 3 iterations of the loop.
+
+The next loop uses i and j to iterate over two lists in parallel.
+
set x {}
+foreach i {a b c} j {d e f g} {
+ lappend x $i $j
+}
+# The value of x is "a d b e c f {} g"
+# There are 4 iterations of the loop.
+
+The two forms are combined in the following example.
+
set x {}
+foreach i {a b c} {j k} {d e f g} {
+ lappend x $i $j $k
+}
+# The value of x is "a d e b f g c {} {}"
+# There are 3 iterations of the loop.
+
+for, while, break, continue
+
+foreach, iteration, list, looping
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/format.htm b/hlp/en/tcl/format.htm
new file mode 100644
index 0000000..363d8e8
--- /dev/null
+++ b/hlp/en/tcl/format.htm
@@ -0,0 +1,230 @@
+Tcl Built-In Commands - format manual page
+
+- NAME
+
- format - Format a string in the style of sprintf
+- SYNOPSIS
+
+- format formatString ?arg arg ...?
+
+- INTRODUCTION
+
- DETAILS ON FORMATTING
+
+- -
+
- +
+
- space
+
- 0
+
- #
+
+
+- d
+
- u
+
- i
+
- o
+
- x or X
+
- c
+
- s
+
- f
+
- e or e
+
- g or G
+
- %
+
+- DIFFERENCES FROM ANSI SPRINTF
+
+
+- SEE ALSO
+
- KEYWORDS
+
+
+format - Format a string in the style of sprintf
+
+format formatString ?arg arg ...?
+
+This command generates a formatted string in the same way as the
+ANSI C sprintf procedure (it uses sprintf in its
+implementation).
+FormatString indicates how to format the result, using
+% conversion specifiers as in sprintf, and the additional
+arguments, if any, provide values to be substituted into the result.
+The return value from format is the formatted string.
+
+
+The command operates by scanning formatString from left to right.
+Each character from the format string is appended to the result
+string unless it is a percent sign.
+If the character is a % then it is not copied to the result string.
+Instead, the characters following the % character are treated as
+a conversion specifier.
+The conversion specifier controls the conversion of the next successive
+arg to a particular format and the result is appended to
+the result string in place of the conversion specifier.
+If there are multiple conversion specifiers in the format string,
+then each one controls the conversion of one additional arg.
+The format command must be given enough args to meet the needs
+of all of the conversion specifiers in formatString.
+
+Each conversion specifier may contain up to six different parts:
+an XPG3 position specifier,
+a set of flags, a minimum field width, a precision, a length modifier,
+and a conversion character.
+Any of these fields may be omitted except for the conversion character.
+The fields that are present must appear in the order given above.
+The paragraphs below discuss each of these fields in turn.
+
+If the % is followed by a decimal number and a $, as in
+``%2$d'', then the value to convert is not taken from the
+next sequential argument.
+Instead, it is taken from the argument indicated by the number,
+where 1 corresponds to the first arg.
+If the conversion specifier requires multiple arguments because
+of * characters in the specifier then
+successive arguments are used, starting with the argument
+given by the number.
+This follows the XPG3 conventions for positional specifiers.
+If there are any positional specifiers in formatString
+then all of the specifiers must be positional.
+
+The second portion of a conversion specifier may contain any of the
+following flag characters, in any order:
+
+
+- -
-
+Specifies that the converted argument should be left-justified
+in its field (numbers are normally right-justified with leading
+spaces if needed).
+
- +
-
+Specifies that a number should always be printed with a sign,
+even if positive.
+
- space
-
+Specifies that a space should be added to the beginning of the
+number if the first character isn't a sign.
+
- 0
-
+Specifies that the number should be padded on the left with
+zeroes instead of spaces.
+
- #
-
+Requests an alternate output form. For o and O
+conversions it guarantees that the first digit is always 0.
+For x or X conversions, 0x or 0X (respectively)
+will be added to the beginning of the result unless it is zero.
+For all floating-point conversions (e, E, f,
+g, and G) it guarantees that the result always
+has a decimal point.
+For g and G conversions it specifies that
+trailing zeroes should not be removed.
+
+
+The third portion of a conversion specifier is a number giving a
+minimum field width for this conversion.
+It is typically used to make columns line up in tabular printouts.
+If the converted argument contains fewer characters than the
+minimum field width then it will be padded so that it is as wide
+as the minimum field width.
+Padding normally occurs by adding extra spaces on the left of the
+converted argument, but the 0 and - flags
+may be used to specify padding with zeroes on the left or with
+spaces on the right, respectively.
+If the minimum field width is specified as * rather than
+a number, then the next argument to the format command
+determines the minimum field width; it must be a numeric string.
+
+The fourth portion of a conversion specifier is a precision,
+which consists of a period followed by a number.
+The number is used in different ways for different conversions.
+For e, E, and f conversions it specifies the number
+of digits to appear to the right of the decimal point.
+For g and G conversions it specifies the total number
+of digits to appear, including those on both sides of the decimal
+point (however, trailing zeroes after the decimal point will still
+be omitted unless the # flag has been specified).
+For integer conversions, it specifies a minimum number of digits
+to print (leading zeroes will be added if necessary).
+For s conversions it specifies the maximum number of characters to be
+printed; if the string is longer than this then the trailing characters will be dropped.
+If the precision is specified with * rather than a number
+then the next argument to the format command determines the precision;
+it must be a numeric string.
+
+The fifth part of a conversion specifier is a length modifier,
+which must be h or l.
+If it is h it specifies that the numeric value should be
+truncated to a 16-bit value before converting.
+This option is rarely useful.
+The l modifier is ignored.
+
+The last thing in a conversion specifier is an alphabetic character
+that determines what kind of conversion to perform.
+The following conversion characters are currently supported:
+
+
+- d
-
+Convert integer to signed decimal string.
+
- u
-
+Convert integer to unsigned decimal string.
+
- i
-
+Convert integer to signed decimal string; the integer may either be
+in decimal, in octal (with a leading 0) or in hexadecimal
+(with a leading 0x).
+
- o
-
+Convert integer to unsigned octal string.
+
- x or X
-
+Convert integer to unsigned hexadecimal string, using digits
+``0123456789abcdef'' for x and ``0123456789ABCDEF'' for X).
+
- c
-
+Convert integer to the Unicode character it represents.
+
- s
-
+No conversion; just insert string.
+
- f
-
+Convert floating-point number to signed decimal string of
+the form xx.yyy, where the number of y's is determined by
+the precision (default: 6).
+If the precision is 0 then no decimal point is output.
+
- e or e
-
+Convert floating-point number to scientific notation in the
+form x.yyye±zz, where the number of y's is determined
+by the precision (default: 6).
+If the precision is 0 then no decimal point is output.
+If the E form is used then E is
+printed instead of e.
+
- g or G
-
+If the exponent is less than -4 or greater than or equal to the
+precision, then convert floating-point number as for %e or
+%E.
+Otherwise convert as for %f.
+Trailing zeroes and a trailing decimal point are omitted.
+
- %
-
+No conversion: just insert %.
+
+
+For the numerical conversions the argument being converted must
+be an integer or floating-point string; format converts the argument
+to binary and then converts it back to a string according to
+the conversion specifier.
+
+
+The behavior of the format command is the same as the
+ANSI C sprintf procedure except for the following
+differences:
+
+
+- [1]
-
+%p and %n specifiers are not currently supported.
+
- [2]
-
+For %c conversions the argument must be a decimal string,
+which will then be converted to the corresponding character value.
+
- [3]
-
+The l modifier is ignored; integer values are always converted
+as if there were no modifier present and real values are always
+converted as if the l modifier were present (i.e. type
+double is used for the internal representation).
+If the h modifier is specified then integer values are truncated
+to short before conversion.
+
+
+
+sprintf, string
+
+conversion specifier, format, sprintf, string, substitution
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/gets.htm b/hlp/en/tcl/gets.htm
new file mode 100644
index 0000000..be851e9
--- /dev/null
+++ b/hlp/en/tcl/gets.htm
@@ -0,0 +1,39 @@
+Tcl Built-In Commands - gets manual page
+
+gets - Read a line from a channel
+
+gets channelId ?varName?
+
+This command reads the next line from channelId, returns everything
+in the line up to (but not including) the end-of-line character(s), and
+discards the end-of-line character(s).
+If varName is omitted the line is returned as the result of the
+command.
+If varName is specified then the line is placed in the variable by
+that name and the return value is a count of the number of characters
+returned.
+
+If end of file occurs while scanning for an end of
+line, the command returns whatever input is available up to the end of file.
+If channelId is in nonblocking mode and there is not a full
+line of input available, the command returns an empty string and
+does not consume any input.
+If varName is specified and an empty string is returned in
+varName because of end-of-file or because of insufficient
+data in nonblocking mode, then the return count is -1.
+Note that if varName is not specified then the end-of-file
+and no-full-line-available cases can
+produce the same results as if there were an input line consisting
+only of the end-of-line character(s).
+The eof and fblocked commands can be used to distinguish
+these three cases.
+
+
+file, eof, fblocked
+
+blocking, channel, end of file, end of line, line, nonblocking, read
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/glob.htm b/hlp/en/tcl/glob.htm
new file mode 100644
index 0000000..5b7f485
--- /dev/null
+++ b/hlp/en/tcl/glob.htm
@@ -0,0 +1,164 @@
+Tcl Built-In Commands - glob manual page
+
+- NAME
+
- glob - Return names of files that match patterns
+- SYNOPSIS
+
+- glob ?switches? pattern ?pattern ...?
+
+- DESCRIPTION
+
+- -directory directory
+
- -join
+
- -nocomplain
+
- -path pathPrefix
+
- -types typeList
+
- - -
+
+
+- ?
+
- *
+
- [chars]
+
- \x
+
- {a,b,...}
+
+- PORTABILITY ISSUES
+
+- Windows
+
- Macintosh
+
+- SEE ALSO
+
- KEYWORDS
+
+
+glob - Return names of files that match patterns
+
+glob ?switches? pattern ?pattern ...?
+
+This command performs file name ``globbing'' in a fashion similar to
+the csh shell. It returns a list of the files whose names match any
+of the pattern arguments.
+
+If the initial arguments to glob start with - then
+they are treated as switches. The following switches are
+currently supported:
+
+
+- -directory directory
-
+Search for files which match the given patterns starting in the given
+directory. This allows searching of directories whose name
+contains glob-sensitive characters without the need to quote such
+characters explicitly. This option may not be used in conjunction with
+-path.
+
- -join
-
+The remaining pattern arguments are treated as a single pattern
+obtained by joining the arguments with directory separators.
+
- -nocomplain
-
+Allows an empty list to be returned without error; without this
+switch an error is returned if the result list would be empty.
+
- -path pathPrefix
-
+Search for files with the given pathPrefix where the rest of the name
+matches the given patterns. This allows searching for files with names
+similar to a given file even when the names contain glob-sensitive
+characters. This option may not be used in conjunction with
+-directory.
+
- -types typeList
-
+Only list files or directories which match typeList, where the items
+in the list have two forms. The first form is like the -type option of
+the Unix find command:
+b (block special file),
+c (character special file),
+d (directory),
+f (plain file),
+l (symbolic link),
+p (named pipe),
+or s (socket), where multiple types may be specified in the list.
+Glob will return all files which match at least one of the types given.
+
+The second form specifies types where all the types given must match.
+These are r, w, x as file permissions, and
+readonly, hidden as special permission cases. On the
+Macintosh, MacOS types and creators are also supported, where any item
+which is four characters long is assumed to be a MacOS type
+(e.g. TEXT). Items which are of the form {macintosh type XXXX}
+or {macintosh creator XXXX} will match types or creators
+respectively. Unrecognised types, or specifications of multiple MacOS
+types/creators will signal an error.
+
+The two forms may be mixed, so -types {d f r w} will find all
+regular files OR directories that have both read AND write permissions.
+The following are equivalent:
+
glob -type d *
+glob */
+except that the first case doesn't return the trailing ``/'' and
+is more platform independent.
+ - - -
-
+Marks the end of switches. The argument following this one will
+be treated as a pattern even if it starts with a -.
+
+
+The pattern arguments may contain any of the following
+special characters:
+
+
+- ?
-
+Matches any single character.
+
- *
-
+Matches any sequence of zero or more characters.
+
- [chars]
-
+Matches any single character in chars. If chars
+contains a sequence of the form a-b then any
+character between a and b (inclusive) will match.
+
- \x
-
+Matches the character x.
+
- {a,b,...}
-
+Matches any of the strings a, b, etc.
+
+
+As with csh, a ``.'' at the beginning of a file's name or just
+after a ``/'' must be matched explicitly or with a {} construct.
+In addition, all ``/'' characters must be matched explicitly.
+
+If the first character in a pattern is ``~'' then it refers
+to the home directory for the user whose name follows the ``~''.
+If the ``~'' is followed immediately by ``/'' then the value of
+the HOME environment variable is used.
+
+The glob command differs from csh globbing in two ways.
+First, it does not sort its result list (use the lsort
+command if you want the list sorted).
+Second, glob only returns the names of files that actually
+exist; in csh no check for existence is made unless a pattern
+contains a ?, *, or [] construct.
+
+
+Unlike other Tcl commands that will accept both network and native
+style names (see the filename manual entry for details on how
+native and network names are specified), the glob command only
+accepts native names.
+
+
+- Windows
-
+For Windows UNC names, the servername and sharename components of the path
+may not contain ?, *, or [] constructs. On Windows NT, if pattern is
+of the form ``~username@domain'' it refers to the home
+directory of the user whose account information resides on the specified NT
+domain server. Otherwise, user account information is obtained from
+the local computer. On Windows 95 and 98, glob accepts patterns
+like ``.../'' and ``..../'' for successively higher up parent directories.
+
- Macintosh
-
+When using the options, -dir, -join or -path, glob
+assumes the directory separator for the entire pattern is the standard
+``:''. When not using these options, glob examines each pattern argument
+and uses ``/'' unless the pattern contains a ``:''.
+
+
+
+file
+
+exist, file, glob, pattern
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/global.htm b/hlp/en/tcl/global.htm
new file mode 100644
index 0000000..2f752e3
--- /dev/null
+++ b/hlp/en/tcl/global.htm
@@ -0,0 +1,28 @@
+Built-In Commands - global manual page
+
+global - Access global variables
+
+global varname ?varname ...?
+
+This command is ignored unless a Tcl procedure is being interpreted.
+If so then it declares the given varname's to be global variables
+rather than local ones.
+Global variables are variables in the global namespace.
+For the duration of the current procedure
+(and only while executing in the current procedure),
+any reference to any of the varnames
+will refer to the global variable by the same name.
+
+Please note that this is done by creating local variables that are
+linked to the global variables, and therefore that these variables
+will be listed by info locals like all other local variables.
+
+
+namespace, upvar, variable
+
+global, namespace, procedure, variable
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/history.htm b/hlp/en/tcl/history.htm
new file mode 100644
index 0000000..00fd169
--- /dev/null
+++ b/hlp/en/tcl/history.htm
@@ -0,0 +1,114 @@
+Built-In Commands - history manual page
+
+- NAME
+
- history - Manipulate the history list
+- SYNOPSIS
+
+- history ?option? ?arg arg ...?
+
+- DESCRIPTION
+
+
+
+- history
+
- history add command ?exec?
+
- history change newValue ?event?
+
- history clear
+
- history event ?event?
+
- history info ?count?
+
- history keep ?count?
+
- history nextid
+
- history redo ?event?
+
+- HISTORY REVISION
+
- KEYWORDS
+
+
+history - Manipulate the history list
+
+history ?option? ?arg arg ...?
+
+The history command performs one of several operations related to
+recently-executed commands recorded in a history list. Each of
+these recorded commands is referred to as an ``event''. When
+specifying an event to the history command, the following
+forms may be used:
+
+
+- [1]
-
+A number: if positive, it refers to the event with
+that number (all events are numbered starting at 1). If the number
+is negative, it selects an event relative to the current event
+(-1 refers to the previous event, -2 to the one before that, and
+so on). Event 0 refers to the current event.
+
- [2]
-
+A string: selects the most recent event that matches the string.
+An event is considered to match the string either if the string is
+the same as the first characters of the event, or if the string
+matches the event in the sense of the string match command.
+
+
+The history command can take any of the following forms:
+
+
+- history
-
+Same
+as history info, described below.
+
- history add command ?exec?
-
+Adds the command argument to the history list as a new event. If
+exec is specified (or abbreviated) then the command is also
+executed and its result is returned. If exec isn't specified
+then an empty string is returned as result.
+
- history change newValue ?event?
-
+Replaces the value recorded for an event with newValue. Event
+specifies the event to replace, and
+defaults to the current event (not event -1). This command
+is intended for use in commands that implement new forms of history
+substitution and wish to replace the current event (which invokes the
+substitution) with the command created through substitution. The return
+value is an empty string.
+
- history clear
-
+Erase the history list. The current keep limit is retained.
+The history event numbers are reset.
+
- history event ?event?
-
+Returns the value of the event given by event. Event
+defaults to -1.
+
- history info ?count?
-
+Returns a formatted string (intended for humans to read) giving
+the event number and contents for each of the events in the history
+list except the current event. If count is specified
+then only the most recent count events are returned.
+
- history keep ?count?
-
+This command may be used to change the size of the history list to
+count events. Initially, 20 events are retained in the history
+list. If count is not specified, the current keep limit is returned.
+
- history nextid
-
+Returns the number of the next event to be recorded
+in the history list. It is useful for things like printing the
+event number in command-line prompts.
+
- history redo ?event?
-
+Re-executes the command indicated by event and return its result.
+Event defaults to -1. This command results in history
+revision: see below for details.
+
+
+Pre-8.0 Tcl had a complex history revision mechanism.
+The current mechanism is more limited, and the old
+history operations substitute and words have been removed.
+(As a consolation, the clear operation was added.)
+
+The history option redo results in much simpler ``history revision''.
+When this option is invoked then the most recent event
+is modified to eliminate the history command and replace it with
+the result of the history command.
+If you want to redo an event without modifying history, then use
+the event operation to retrieve some event,
+and the add operation to add it to history and execute it.
+
+
+event, history, record
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/http.htm b/hlp/en/tcl/http.htm
new file mode 100644
index 0000000..c39e5a7
--- /dev/null
+++ b/hlp/en/tcl/http.htm
@@ -0,0 +1,522 @@
+Tcl Built-In Commands - Http manual page
+
+- NAME
+
- Http - Client-side implementation of the HTTP/1.0 protocol.
+- SYNOPSIS
+
+- package require http ?2.4?
+
- ::http::config ?options?
+
- ::http::geturl url ?options?
+
- ::http::formatQuery list
+
- ::http::reset token
+
- ::http::wait token
+
- ::http::status token
+
- ::http::size token
+
- ::http::code token
+
- ::http::ncode token
+
- ::http::data token
+
- ::http::error token
+
- ::http::cleanup token
+
- ::http::register proto port command
+
- ::http::unregister proto
+
+- DESCRIPTION
+
- COMMANDS
+
+- ::http::config ?options?
+
+- -accept mimetypes
+
- -proxyhost hostname
+
- -proxyport number
+
- -proxyfilter command
+
- -useragent string
+
+- ::http::geturl url ?options?
+
+- -binary boolean
+
- -blocksize size
+
- -channel name
+
- -command callback
+
- -handler callback
+
- -headers keyvaluelist
+
- -progress callback
+
- -query query
+
- -queryblocksize size
+
- -querychannel channelID
+
- -queryprogress callback
+
- -timeout milliseconds
+
- -type mime-type
+
- -validate boolean
+
+- ::http::formatQuery key value ?key value ...?
+
- ::http::reset token ?why?
+
- ::http::wait token
+
- ::http::data token
+
- ::http::error token
+
- ::http::status token
+
- ::http::code token
+
- ::http::ncode token
+
- ::http::size token
+
- ::http::cleanup token
+
- ::http::register proto port command
+
- ::http::unregister proto
+
+- ERRORS
+
+- ok
+
- eof
+
- error
+
+- STATE ARRAY
+
+- body
+
- charset
+
- coding
+
- currentsize
+
- error
+
- http
+
- meta
+
+- Content-Type
+
- Content-Length
+
- Location
+
+- posterror
+
- status
+
- totalsize
+
- type
+
- url
+
+- EXAMPLE
+
- SEE ALSO
+
- KEYWORDS
+
+
+Http - Client-side implementation of the HTTP/1.0 protocol.
+
+package require http ?2.4?
+::http::config ?options?
+::http::geturl url ?options?
+::http::formatQuery list
+::http::reset token
+::http::wait token
+::http::status token
+::http::size token
+::http::code token
+::http::ncode token
+::http::data token
+::http::error token
+::http::cleanup token
+::http::register proto port command
+::http::unregister proto
+
+The http package provides the client side of the HTTP/1.0
+protocol. The package implements the GET, POST, and HEAD operations
+of HTTP/1.0. It allows configuration of a proxy host to get through
+firewalls. The package is compatible with the Safesock security
+policy, so it can be used by untrusted applets to do URL fetching from
+a restricted set of hosts. This package can be extened to support
+additional HTTP transport protocols, such as HTTPS, by providing
+a custom socket command, via http::register.
+
+The ::http::geturl procedure does a HTTP transaction.
+Its options determine whether a GET, POST, or HEAD transaction
+is performed.
+The return value of ::http::geturl is a token for the transaction.
+The value is also the name of an array in the ::http namespace
+that contains state information about the transaction. The elements
+of this array are described in the STATE ARRAY section.
+
+If the -command option is specified, then
+the HTTP operation is done in the background.
+::http::geturl returns immediately after generating the
+HTTP request and the callback is invoked
+when the transaction completes. For this to work, the Tcl event loop
+must be active. In Tk applications this is always true. For pure-Tcl
+applications, the caller can use ::http::wait after calling
+::http::geturl to start the event loop.
+
+
+- ::http::config ?options?
-
+The ::http::config command is used to set and query the name of the
+proxy server and port, and the User-Agent name used in the HTTP
+requests. If no options are specified, then the current configuration
+is returned. If a single argument is specified, then it should be one
+of the flags described below. In this case the current value of
+that setting is returned. Otherwise, the options should be a set of
+flags and values that define the configuration:
+
+
+- -accept mimetypes
-
+The Accept header of the request. The default is */*, which means that
+all types of documents are accepted. Otherwise you can supply a
+comma separated list of mime type patterns that you are
+willing to receive. For example, "image/gif, image/jpeg, text/*".
+
- -proxyhost hostname
-
+The name of the proxy host, if any. If this value is the
+empty string, the URL host is contacted directly.
+
- -proxyport number
-
+The proxy port number.
+
- -proxyfilter command
-
+The command is a callback that is made during
+::http::geturl
+to determine if a proxy is required for a given host. One argument, a
+host name, is added to command when it is invoked. If a proxy
+is required, the callback should return a two element list containing
+the proxy server and proxy port. Otherwise the filter should return
+an empty list. The default filter returns the values of the
+-proxyhost and -proxyport settings if they are
+non-empty.
+
- -useragent string
-
+The value of the User-Agent header in the HTTP request. The default
+is "Tcl http client package 2.2."
+
+ - ::http::geturl url ?options?
-
+The ::http::geturl command is the main procedure in the package.
+The -query option causes a POST operation and
+the -validate option causes a HEAD operation;
+otherwise, a GET operation is performed. The ::http::geturl command
+returns a token value that can be used to get
+information about the transaction. See the STATE ARRAY and ERRORS section for
+details. The ::http::geturl command blocks until the operation
+completes, unless the -command option specifies a callback
+that is invoked when the HTTP transaction completes.
+::http::geturl takes several options:
+
+
+- -binary boolean
-
+Specifies whether to force interpreting the url data as binary. Normally
+this is auto-detected (anything not beginning with a text content
+type or whose content encoding is gzip or compress is
+considered binary data).
+
- -blocksize size
-
+The blocksize used when reading the URL.
+At most size bytes are read at once. After each block, a call to the
+-progress callback is made (if that option is specified).
+
- -channel name
-
+Copy the URL contents to channel name instead of saving it in
+state(body).
+
- -command callback
-
+Invoke callback after the HTTP transaction completes.
+This option causes ::http::geturl to return immediately.
+The callback gets an additional argument that is the token returned
+from ::http::geturl. This token is the name of an array that is
+described in the STATE ARRAY section. Here is a template for the
+callback:
+
proc httpCallback {token} {
+ upvar #0 $token state
+ # Access state as a Tcl array
+}
+ - -handler callback
-
+Invoke callback whenever HTTP data is available; if present, nothing
+else will be done with the HTTP data. This procedure gets two additional
+arguments: the socket for the HTTP data and the token returned from
+::http::geturl. The token is the name of a global array that is described
+in the STATE ARRAY section. The procedure is expected to return the number
+of bytes read from the socket. Here is a template for the callback:
+
proc httpHandlerCallback {socket token} {
+ upvar #0 $token state
+ # Access socket, and state as a Tcl array
+ ...
+ (example: set data [read $socket 1000];set nbytes [string length $data])
+ ...
+ return nbytes
+}
+ - -headers keyvaluelist
-
+This option is used to add extra headers to the HTTP request. The
+keyvaluelist argument must be a list with an even number of
+elements that alternate between keys and values. The keys become
+header field names. Newlines are stripped from the values so the
+header cannot be corrupted. For example, if keyvaluelist is
+Pragma no-cache then the following header is included in the
+HTTP request:
+
Pragma: no-cache
+ - -progress callback
-
+The callback is made after each transfer of data from the URL.
+The callback gets three additional arguments: the token from
+::http::geturl, the expected total size of the contents from the
+Content-Length meta-data, and the current number of bytes
+transferred so far. The expected total size may be unknown, in which
+case zero is passed to the callback. Here is a template for the
+progress callback:
+
proc httpProgress {token total current} {
+ upvar #0 $token state
+}
+ - -query query
-
+This flag causes ::http::geturl to do a POST request that passes the
+query to the server. The query must be a x-url-encoding
+formatted query. The ::http::formatQuery procedure can be used to
+do the formatting.
+
- -queryblocksize size
-
+The blocksize used when posting query data to the URL.
+At most
+size
+bytes are written at once. After each block, a call to the
+-queryprogress
+callback is made (if that option is specified).
+
- -querychannel channelID
-
+This flag causes ::http::geturl to do a POST request that passes the
+data contained in channelID to the server. The data contained in channelID must be a x-url-encoding
+formatted query unless the -type option below is used.
+If a Content-Length header is not specified via the -headers options,
+::http::geturl attempts to determine the size of the post data
+in order to create that header. If it is
+unable to determine the size, it returns an error.
+
- -queryprogress callback
-
+The callback is made after each transfer of data to the URL
+(i.e. POST) and acts exactly like the -progress option (the
+callback format is the same).
+
- -timeout milliseconds
-
+If milliseconds is non-zero, then ::http::geturl sets up a timeout
+to occur after the specified number of milliseconds.
+A timeout results in a call to ::http::reset and to
+the -command callback, if specified.
+The return value of ::http::status is timeout
+after a timeout has occurred.
+
- -type mime-type
-
+Use mime-type as the Content-Type value, instead of the
+default value (application/x-www-form-urlencoded) during a
+POST operation.
+
- -validate boolean
-
+If boolean is non-zero, then ::http::geturl does an HTTP HEAD
+request. This request returns meta information about the URL, but the
+contents are not returned. The meta information is available in the
+state(meta) variable after the transaction. See the STATE
+ARRAY section for details.
+
+ - ::http::formatQuery key value ?key value ...?
-
+This procedure does x-url-encoding of query data. It takes an even
+number of arguments that are the keys and values of the query. It
+encodes the keys and values, and generates one string that has the
+proper & and = separators. The result is suitable for the
+-query value passed to ::http::geturl.
+
- ::http::reset token ?why?
-
+This command resets the HTTP transaction identified by token, if
+any. This sets the state(status) value to why, which defaults to reset, and then calls the registered -command callback.
+
- ::http::wait token
-
+This is a convenience procedure that blocks and waits for the
+transaction to complete. This only works in trusted code because it
+uses vwait. Also, it's not useful for the case where
+::http::geturl is called without the -command option
+because in this case the ::http::geturl call doesn't return
+until the HTTP transaction is complete, and thus there's nothing to
+wait for.
+
- ::http::data token
-
+This is a convenience procedure that returns the body element
+(i.e., the URL data) of the state array.
+
- ::http::error token
-
+This is a convenience procedure that returns the error element
+of the state array.
+
- ::http::status token
-
+This is a convenience procedure that returns the status element of
+the state array.
+
- ::http::code token
-
+This is a convenience procedure that returns the http element of the
+state array.
+
- ::http::ncode token
-
+This is a convenience procedure that returns just the numeric return
+code (200, 404, etc.) from the http element of the state array.
+
- ::http::size token
-
+This is a convenience procedure that returns the currentsize
+element of the state array, which represents the number of bytes
+received from the URL in the ::http::geturl call.
+
- ::http::cleanup token
-
+This procedure cleans up the state associated with the connection
+identified by token. After this call, the procedures
+like ::http::data cannot be used to get information
+about the operation. It is strongly recommended that you call
+this function after you're done with a given HTTP request. Not doing
+so will result in memory not being freed, and if your app calls
+::http::geturl enough times, the memory leak could cause a
+performance hit...or worse.
+
- ::http::register proto port command
-
+This procedure allows one to provide custom HTTP transport types
+such as HTTPS, by registering a prefix, the default port, and the
+command to execute to create the Tcl channel. E.g.:
+
package require http
+package require tls
+
+http::register https 443 ::tls::socket
+
+set token [http::geturl https://my.secure.site/]
+ - ::http::unregister proto
-
+This procedure unregisters a protocol handler that was previously
+registered via http::register.
+
+
+
+The http::geturl procedure will raise errors in the following cases:
+invalid command line options,
+an invalid URL,
+a URL on a non-existent host,
+or a URL at a bad port on an existing host.
+These errors mean that it
+cannot even start the network transaction.
+It will also raise an error if it gets an I/O error while
+writing out the HTTP request header.
+For synchronous ::http::geturl calls (where -command is
+not specified), it will raise an error if it gets an I/O error while
+reading the HTTP reply headers or data. Because ::http::geturl
+doesn't return a token in these cases, it does all the required
+cleanup and there's no issue of your app having to call
+::http::cleanup.
+
+For asynchronous ::http::geturl calls, all of the above error
+situations apply, except that if there's any error while
+reading the
+HTTP reply headers or data, no exception is thrown. This is because
+after writing the HTTP headers, ::http::geturl returns, and the
+rest of the HTTP transaction occurs in the background. The command
+callback can check if any error occurred during the read by calling
+::http::status to check the status and if it's error,
+calling ::http::error to get the error message.
+
+Alternatively, if the main program flow reaches a point where it needs
+to know the result of the asynchronous HTTP request, it can call
+::http::wait and then check status and error, just as the
+callback does.
+
+In any case, you must still call
+http::cleanup to delete the state array when you're done.
+
+There are other possible results of the HTTP transaction
+determined by examining the status from http::status.
+These are described below.
+
+
+- ok
-
+If the HTTP transaction completes entirely, then status will be ok.
+However, you should still check the http::code value to get
+the HTTP status. The http::ncode procedure provides just
+the numeric error (e.g., 200, 404 or 500) while the http::code
+procedure returns a value like "HTTP 404 File not found".
+
- eof
-
+If the server closes the socket without replying, then no error
+is raised, but the status of the transaction will be eof.
+
- error
-
+The error message will also be stored in the error status
+array element, accessible via ::http::error.
+
+
+Another error possibility is that http::geturl is unable to
+write all the post query data to the server before the server
+responds and closes the socket.
+The error message is saved in the posterror status array
+element and then http::geturl attempts to complete the
+transaction.
+If it can read the server's response
+it will end up with an ok status, otherwise it will have
+an eof status.
+
+
+The ::http::geturl procedure returns a token that can be used to
+get to the state of the HTTP transaction in the form of a Tcl array.
+Use this construct to create an easy-to-use array variable:
+upvar #0 $token state
+Once the data associated with the url is no longer needed, the state
+array should be unset to free up storage.
+The http::cleanup procedure is provided for that purpose.
+The following elements of
+the array are supported:
+
+
+- body
-
+The contents of the URL. This will be empty if the -channel
+option has been specified. This value is returned by the ::http::data command.
+
- charset
-
+The value of the charset attribute from the Content-Type meta-data
+value. If none was specified, this defaults to the RFC standard
+iso8859-1, or the value of $::http::defaultCharset. Incoming
+text data will be automatically converted from this charset to utf-8.
+
- coding
-
+A copy of the Content-Encoding meta-data value.
+
- currentsize
-
+The current number of bytes fetched from the URL.
+This value is returned by the ::http::size command.
+
- error
-
+If defined, this is the error string seen when the HTTP transaction
+was aborted.
+
- http
-
+The HTTP status reply from the server. This value
+is returned by the ::http::code command. The format of this value is:
+
HTTP/1.0 code string
+The code is a three-digit number defined in the HTTP standard.
+A code of 200 is OK. Codes beginning with 4 or 5 indicate errors.
+Codes beginning with 3 are redirection errors. In this case the
+Location meta-data specifies a new URL that contains the
+requested information.
+ - meta
-
+The HTTP protocol returns meta-data that describes the URL contents.
+The meta element of the state array is a list of the keys and
+values of the meta-data. This is in a format useful for initializing
+an array that just contains the meta-data:
+
array set meta $state(meta)
+Some of the meta-data keys are listed below, but the HTTP standard defines
+more, and servers are free to add their own.
+
+
+- Content-Type
-
+The type of the URL contents. Examples include text/html,
+image/gif, application/postscript and
+application/x-tcl.
+
- Content-Length
-
+The advertised size of the contents. The actual size obtained by
+::http::geturl is available as state(size).
+
- Location
-
+An alternate URL that contains the requested data.
+
+ - posterror
-
+The error, if any, that occurred while writing
+the post query data to the server.
+
- status
-
+Either ok, for successful completion, reset for
+user-reset, timeout if a timeout occurred before the transaction
+could complete, or error for an error condition. During the
+transaction this value is the empty string.
+
- totalsize
-
+A copy of the Content-Length meta-data value.
+
- type
-
+A copy of the Content-Type meta-data value.
+
- url
-
+The requested URL.
+
+
+# Copy a URL to a file and print meta-data
+proc ::http::copy { url file {chunk 4096} } {
+ set out [open $file w]
+ set token [geturl $url -channel $out -progress ::http::Progress \
+ -blocksize $chunk]
+ close $out
+ # This ends the line started by http::Progress
+ puts stderr ""
+ upvar #0 $token state
+ set max 0
+ foreach {name value} $state(meta) {
+ if {[string length $name] > $max} {
+ set max [string length $name]
+ }
+ if {[regexp -nocase ^location$ $name]} {
+ # Handle URL redirects
+ puts stderr "Location:$value"
+ return [copy [string trim $value] $file $chunk]
+ }
+ }
+ incr max
+ foreach {name value} $state(meta) {
+ puts [format "%-*s %s" $max $name: $value]
+ }
+
+ return $token
+}
+proc ::http::Progress {args} {
+ puts -nonewline stderr . ; flush stderr
+}
+
+safe, socket, safesock
+
+security policy, socket
+
+Copyright © 1995-1997 Sun Microsystems, Inc.
+Copyright © 1998-2000 by Ajuba Solutions.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/if.htm b/hlp/en/tcl/if.htm
new file mode 100644
index 0000000..b0115ac
--- /dev/null
+++ b/hlp/en/tcl/if.htm
@@ -0,0 +1,35 @@
+Built-In Commands - if manual page
+
+if - Execute scripts conditionally
+
+if expr1 ?then? body1 elseif expr2 ?then? body2 elseif ... ?else? ?bodyN?
+
+The if command evaluates expr1 as an expression (in the
+same way that expr evaluates its argument). The value of the
+expression must be a boolean
+(a numeric value, where 0 is false and
+anything is true, or a string value such as true or yes
+for true and false or no for false);
+if it is true then body1 is executed by passing it to the
+Tcl interpreter.
+Otherwise expr2 is evaluated as an expression and if it is true
+then body2 is executed, and so on.
+If none of the expressions evaluates to true then bodyN is
+executed.
+The then and else arguments are optional
+``noise words'' to make the command easier to read.
+There may be any number of elseif clauses, including zero.
+BodyN may also be omitted as long as else is omitted too.
+The return value from the command is the result of the body script
+that was executed, or an empty string
+if none of the expressions was non-zero and there was no bodyN.
+
+
+expr, for, foreach
+
+boolean, conditional, else, false, if, true
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/incr.htm b/hlp/en/tcl/incr.htm
new file mode 100644
index 0000000..3067512
--- /dev/null
+++ b/hlp/en/tcl/incr.htm
@@ -0,0 +1,23 @@
+Built-In Commands - incr manual page
+
+incr - Increment the value of a variable
+
+incr varName ?increment?
+
+Increments the value stored in the variable whose name is varName.
+The value of the variable must be an integer.
+If increment is supplied then its value (which must be an
+integer) is added to the value of variable varName; otherwise
+1 is added to varName.
+The new value is stored as a decimal string in variable varName
+and also returned as result.
+
+
+expr
+
+add, increment, variable, value
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/info.htm b/hlp/en/tcl/info.htm
new file mode 100644
index 0000000..a64b4b5
--- /dev/null
+++ b/hlp/en/tcl/info.htm
@@ -0,0 +1,190 @@
+Tcl Built-In Commands - info manual page
+
+- NAME
+
- info - Return information about the state of the Tcl interpreter
+- SYNOPSIS
+
+- info option ?arg arg ...?
+
+- DESCRIPTION
+
+- info args procname
+
- info body procname
+
- info cmdcount
+
- info commands ?pattern?
+
- info complete command
+
- info default procname arg varname
+
- info exists varName
+
- info globals ?pattern?
+
- info hostname
+
- info level ?number?
+
- info library
+
- info loaded ?interp?
+
- info locals ?pattern?
+
- info nameofexecutable
+
- info patchlevel
+
- info procs ?pattern?
+
- info script
+
- info sharedlibextension
+
- info tclversion
+
- info vars ?pattern?
+
+- KEYWORDS
+
+
+info - Return information about the state of the Tcl interpreter
+
+info option ?arg arg ...?
+
+This command provides information about various internals of the Tcl
+interpreter.
+The legal option's (which may be abbreviated) are:
+
+
+- info args procname
-
+Returns a list containing the names of the arguments to procedure
+procname, in order. Procname must be the name of a
+Tcl command procedure.
+
- info body procname
-
+Returns the body of procedure procname. Procname must be
+the name of a Tcl command procedure.
+
- info cmdcount
-
+Returns a count of the total number of commands that have been invoked
+in this interpreter.
+
- info commands ?pattern?
-
+If pattern isn't specified,
+returns a list of names of all the Tcl commands in the current namespace,
+including both the built-in commands written in C and
+the command procedures defined using the proc command.
+If pattern is specified,
+only those names matching pattern are returned.
+Matching is determined using the same rules as for string match.
+pattern can be a qualified name like Foo::print*.
+That is, it may specify a particular namespace
+using a sequence of namespace names separated by ::s,
+and may have pattern matching special characters
+at the end to specify a set of commands in that namespace.
+If pattern is a qualified name,
+the resulting list of command names has each one qualified with the name
+of the specified namespace.
+
- info complete command
-
+Returns 1 if command is a complete Tcl command in the sense of
+having no unclosed quotes, braces, brackets or array element names,
+If the command doesn't appear to be complete then 0 is returned.
+This command is typically used in line-oriented input environments
+to allow users to type in commands that span multiple lines; if the
+command isn't complete, the script can delay evaluating it until additional
+lines have been typed to complete the command.
+
- info default procname arg varname
-
+Procname must be the name of a Tcl command procedure and arg
+must be the name of an argument to that procedure. If arg
+doesn't have a default value then the command returns 0.
+Otherwise it returns 1 and places the default value of arg
+into variable varname.
+
- info exists varName
-
+Returns 1 if the variable named varName exists in the
+current context (either as a global or local variable) and has been
+defined by being given a value, returns 0 otherwise.
+
- info globals ?pattern?
-
+If pattern isn't specified, returns a list of all the names
+of currently-defined global variables.
+Global variables are variables in the global namespace.
+If pattern is specified, only those names matching pattern
+are returned. Matching is determined using the same rules as for
+string match.
+
- info hostname
-
+Returns the name of the computer on which this invocation is being
+executed.
+
- info level ?number?
-
+If number is not specified, this command returns a number
+giving the stack level of the invoking procedure, or 0 if the
+command is invoked at top-level. If number is specified,
+then the result is a list consisting of the name and arguments for the
+procedure call at level number on the stack. If number
+is positive then it selects a particular stack level (1 refers
+to the top-most active procedure, 2 to the procedure it called, and
+so on); otherwise it gives a level relative to the current level
+(0 refers to the current procedure, -1 to its caller, and so on).
+See the uplevel command for more information on what stack
+levels mean.
+
- info library
-
+Returns the name of the library directory in which standard Tcl
+scripts are stored.
+This is actually the value of the tcl_library
+variable and may be changed by setting tcl_library.
+See the tclvars manual entry for more information.
+
- info loaded ?interp?
-
+Returns a list describing all of the packages that have been loaded into
+interp with the load command.
+Each list element is a sub-list with two elements consisting of the
+name of the file from which the package was loaded and the name of
+the package.
+For statically-loaded packages the file name will be an empty string.
+If interp is omitted then information is returned for all packages
+loaded in any interpreter in the process.
+To get a list of just the packages in the current interpreter, specify
+an empty string for the interp argument.
+
- info locals ?pattern?
-
+If pattern isn't specified, returns a list of all the names
+of currently-defined local variables, including arguments to the
+current procedure, if any.
+Variables defined with the global and upvar commands
+will not be returned.
+If pattern is specified, only those names matching pattern
+are returned. Matching is determined using the same rules as for
+string match.
+
- info nameofexecutable
-
+Returns the full path name of the binary file from which the application
+was invoked. If Tcl was unable to identify the file, then an empty
+string is returned.
+
- info patchlevel
-
+Returns the value of the global variable tcl_patchLevel; see
+the tclvars manual entry for more information.
+
- info procs ?pattern?
-
+If pattern isn't specified, returns a list of all the
+names of Tcl command procedures in the current namespace.
+If pattern is specified,
+only those procedure names in the current namespace
+matching pattern are returned.
+Matching is determined using the same rules as for
+string match.
+
- info script
-
+If a Tcl script file is currently being evaluated (i.e. there is a
+call to Tcl_EvalFile active or there is an active invocation
+of the source command), then this command returns the name
+of the innermost file being processed. Otherwise the command returns an
+empty string.
+
- info sharedlibextension
-
+Returns the extension used on this platform for the names of files
+containing shared libraries (for example, .so under Solaris).
+If shared libraries aren't supported on this platform then an empty
+string is returned.
+
- info tclversion
-
+Returns the value of the global variable tcl_version; see
+the tclvars manual entry for more information.
+
- info vars ?pattern?
-
+If pattern isn't specified,
+returns a list of all the names of currently-visible variables.
+This includes locals and currently-visible globals.
+If pattern is specified, only those names matching pattern
+are returned. Matching is determined using the same rules as for
+string match.
+pattern can be a qualified name like Foo::option*.
+That is, it may specify a particular namespace
+using a sequence of namespace names separated by ::s,
+and may have pattern matching special characters
+at the end to specify a set of variables in that namespace.
+If pattern is a qualified name,
+the resulting list of variable names
+has each matching namespace variable qualified with the name
+of its namespace.
+
+
+
+command, information, interpreter, level, namespace, procedure, variable
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1993-1997 Bell Labs Innovations for Lucent Technologies
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/interp.htm b/hlp/en/tcl/interp.htm
new file mode 100644
index 0000000..797a170
--- /dev/null
+++ b/hlp/en/tcl/interp.htm
@@ -0,0 +1,528 @@
+Tcl Built-In Commands - interp manual page
+
+- NAME
+
- interp - Create and manipulate Tcl interpreters
+- SYNOPSIS
+
+- interp option ?arg arg ...?
+
+- DESCRIPTION
+
- THE INTERP COMMAND
+
+- interp alias srcPath srcCmd
+
- interp alias srcPath srcCmd {}
+
- interp alias srcPath srcCmd targetPath targetCmd ?arg arg ...?
+
- interp aliases ?path?
+
- interp create ?-safe? ?- -? ?path?
+
- interp delete ?path ...?
+
- interp eval path arg ?arg ...?
+
- interp exists path
+
- interp expose path hiddenName ?exposedCmdName?
+
- interp hide path exposedCmdName ?hiddenCmdName?
+
- interp hidden path
+
- interp invokehidden path ?-global? hiddenCmdName ?arg ...?
+
- interp issafe ?path?
+
- interp marktrusted path
+
- interp share srcPath channelId destPath
+
- interp slaves ?path?
+
- interp target path alias
+
- interp transfer srcPath channelId destPath
+
+- SLAVE COMMAND
+
+- slave aliases
+
- slave alias srcCmd
+
- slave alias srcCmd {}
+
- slave alias srcCmd targetCmd ?arg ..?
+
- slave eval arg ?arg ..?
+
- slave expose hiddenName ?exposedCmdName?
+
- slave hide exposedCmdName ?hiddenCmdName?
+
- slave hidden
+
- slave invokehidden ?-global hiddenName ?arg ..?
+
- slave issafe
+
- slave marktrusted
+
+- SAFE INTERPRETERS
+
- ALIAS INVOCATION
+
- HIDDEN COMMANDS
+
- CREDITS
+
- SEE ALSO
+
- KEYWORDS
+
+
+interp - Create and manipulate Tcl interpreters
+
+interp option ?arg arg ...?
+
+This command makes it possible to create one or more new Tcl
+interpreters that co-exist with the creating interpreter in the
+same application. The creating interpreter is called the master
+and the new interpreter is called a slave.
+A master can create any number of slaves, and each slave can
+itself create additional slaves for which it is master, resulting
+in a hierarchy of interpreters.
+
+Each interpreter is independent from the others: it has its own name
+space for commands, procedures, and global variables.
+A master interpreter may create connections between its slaves and
+itself using a mechanism called an alias. An alias is
+a command in a slave interpreter which, when invoked, causes a
+command to be invoked in its master interpreter or in another slave
+interpreter. The only other connections between interpreters are
+through environment variables (the env variable), which are
+normally shared among all interpreters in the application. Note that the
+name space for files (such as the names returned by the open command)
+is no longer shared between interpreters. Explicit commands are provided to
+share files and to transfer references to open files from one interpreter
+to another.
+
+The interp command also provides support for safe
+interpreters. A safe interpreter is a slave whose functions have
+been greatly restricted, so that it is safe to execute untrusted
+scripts without fear of them damaging other interpreters or the
+application's environment. For example, all IO channel creation
+commands and subprocess creation commands are made inaccessible to safe
+interpreters.
+See SAFE INTERPRETERS below for more information on
+what features are present in a safe interpreter.
+The dangerous functionality is not removed from the safe interpreter;
+instead, it is hidden, so that only trusted interpreters can obtain
+access to it. For a detailed explanation of hidden commands, see
+HIDDEN COMMANDS, below.
+The alias mechanism can be used for protected communication (analogous to a
+kernel call) between a slave interpreter and its master. See ALIAS
+INVOCATION, below, for more details on how the alias mechanism works.
+
+A qualified interpreter name is a proper Tcl lists containing a subset of its
+ancestors in the interpreter hierarchy, terminated by the string naming the
+interpreter in its immediate master. Interpreter names are relative to the
+interpreter in which they are used. For example, if a is a slave of
+the current interpreter and it has a slave a1, which in turn has a
+slave a11, the qualified name of a11 in a is the list
+a1 a11.
+
+The interp command, described below, accepts qualified interpreter
+names as arguments; the interpreter in which the command is being evaluated
+can always be referred to as {} (the empty list or string). Note that
+it is impossible to refer to a master (ancestor) interpreter by name in a
+slave interpreter except through aliases. Also, there is no global name by
+which one can refer to the first interpreter created in an application.
+Both restrictions are motivated by safety concerns.
+
+
+The interp command is used to create, delete, and manipulate
+slave interpreters, and to share or transfer
+channels between interpreters. It can have any of several forms, depending
+on the option argument:
+
+
+- interp alias srcPath srcCmd
-
+Returns a Tcl list whose elements are the targetCmd and
+args associated with the alias named srcCmd
+(all of these are the values specified when the alias was
+created; it is possible that the actual source command in the
+slave is different from srcCmd if it was renamed).
+
- interp alias srcPath srcCmd {}
-
+Deletes the alias for srcCmd in the slave interpreter identified by
+srcPath.
+srcCmd refers to the name under which the alias
+was created; if the source command has been renamed, the renamed
+command will be deleted.
+
- interp alias srcPath srcCmd targetPath targetCmd ?arg arg ...?
-
+This command creates an alias between one slave and another (see the
+alias slave command below for creating aliases between a slave
+and its master). In this command, either of the slave interpreters
+may be anywhere in the hierarchy of interpreters under the interpreter
+invoking the command.
+SrcPath and srcCmd identify the source of the alias.
+SrcPath is a Tcl list whose elements select a particular
+interpreter. For example, ``a b'' identifies an interpreter
+b, which is a slave of interpreter a, which is a slave
+of the invoking interpreter. An empty list specifies the interpreter
+invoking the command. srcCmd gives the name of a new
+command, which will be created in the source interpreter.
+TargetPath and targetCmd specify a target interpreter
+and command, and the arg arguments, if any, specify additional
+arguments to targetCmd which are prepended to any arguments specified
+in the invocation of srcCmd.
+TargetCmd may be undefined at the time of this call, or it may
+already exist; it is not created by this command.
+The alias arranges for the given target command to be invoked
+in the target interpreter whenever the given source command is
+invoked in the source interpreter. See ALIAS INVOCATION below for
+more details.
+
- interp aliases ?path?
-
+This command returns a Tcl list of the names of all the source commands for
+aliases defined in the interpreter identified by path.
+
- interp create ?-safe? ?- -? ?path?
-
+Creates a slave interpreter identified by path and a new command,
+called a slave command. The name of the slave command is the last
+component of path. The new slave interpreter and the slave command
+are created in the interpreter identified by the path obtained by removing
+the last component from path. For example, if path is a b
+c then a new slave interpreter and slave command named c are
+created in the interpreter identified by the path a b.
+The slave command may be used to manipulate the new interpreter as
+described below. If path is omitted, Tcl creates a unique name of the
+form interpx, where x is an integer, and uses it for the
+interpreter and the slave command. If the -safe switch is specified
+(or if the master interpreter is a safe interpreter), the new slave
+interpreter will be created as a safe interpreter with limited
+functionality; otherwise the slave will include the full set of Tcl
+built-in commands and variables. The - - switch can be used to
+mark the end of switches; it may be needed if path is an unusual
+value such as -safe. The result of the command is the name of the
+new interpreter. The name of a slave interpreter must be unique among all
+the slaves for its master; an error occurs if a slave interpreter by the
+given name already exists in this master.
+
- interp delete ?path ...?
-
+Deletes zero or more interpreters given by the optional path
+arguments, and for each interpreter, it also deletes its slaves. The
+command also deletes the slave command for each interpreter deleted.
+For each path argument, if no interpreter by that name
+exists, the command raises an error.
+
- interp eval path arg ?arg ...?
-
+This command concatenates all of the arg arguments in the same
+fashion as the concat command, then evaluates the resulting string as
+a Tcl script in the slave interpreter identified by path. The result
+of this evaluation (including error information such as the errorInfo
+and errorCode variables, if an error occurs) is returned to the
+invoking interpreter.
+
- interp exists path
-
+Returns 1 if a slave interpreter by the specified path
+exists in this master, 0 otherwise. If path is omitted, the
+invoking interpreter is used.
+
- interp expose path hiddenName ?exposedCmdName?
-
+Makes the hidden command hiddenName exposed, eventually bringing
+it back under a new exposedCmdName name (this name is currently
+accepted only if it is a valid global name space name without any ::),
+in the interpreter
+denoted by path.
+If an exposed command with the targetted name already exists, this command
+fails.
+Hidden commands are explained in more detail in HIDDEN COMMANDS, below.
+
- interp hide path exposedCmdName ?hiddenCmdName?
-
+Makes the exposed command exposedCmdName hidden, renaming
+it to the hidden command hiddenCmdName, or keeping the same name if
+hiddenCmdName is not given, in the interpreter denoted
+by path.
+If a hidden command with the targetted name already exists, this command
+fails.
+Currently both exposedCmdName and hiddenCmdName can
+not contain namespace qualifiers, or an error is raised.
+Commands to be hidden by interp hide are looked up in the global
+namespace even if the current namespace is not the global one. This
+prevents slaves from fooling a master interpreter into hiding the wrong
+command, by making the current namespace be different from the global one.
+Hidden commands are explained in more detail in HIDDEN COMMANDS, below.
+
- interp hidden path
-
+Returns a list of the names of all hidden commands in the interpreter
+identified by path.
+
- interp invokehidden path ?-global? hiddenCmdName ?arg ...?
-
+Invokes the hidden command hiddenCmdName with the arguments supplied
+in the interpreter denoted by path. No substitutions or evaluation
+are applied to the arguments.
+If the -global flag is present, the hidden command is invoked at the
+global level in the target interpreter; otherwise it is invoked at the
+current call frame and can access local variables in that and outer call
+frames.
+Hidden commands are explained in more detail in HIDDEN COMMANDS, below.
+
- interp issafe ?path?
-
+Returns 1 if the interpreter identified by the specified path
+is safe, 0 otherwise.
+
- interp marktrusted path
-
+Marks the interpreter identified by path as trusted. Does
+not expose the hidden commands. This command can only be invoked from a
+trusted interpreter.
+The command has no effect if the interpreter identified by path is
+already trusted.
+
- interp share srcPath channelId destPath
-
+Causes the IO channel identified by channelId to become shared
+between the interpreter identified by srcPath and the interpreter
+identified by destPath. Both interpreters have the same permissions
+on the IO channel.
+Both interpreters must close it to close the underlying IO channel; IO
+channels accessible in an interpreter are automatically closed when an
+interpreter is destroyed.
+
- interp slaves ?path?
-
+Returns a Tcl list of the names of all the slave interpreters associated
+with the interpreter identified by path. If path is omitted,
+the invoking interpreter is used.
+
- interp target path alias
-
+Returns a Tcl list describing the target interpreter for an alias. The
+alias is specified with an interpreter path and source command name, just
+as in interp alias above. The name of the target interpreter is
+returned as an interpreter path, relative to the invoking interpreter.
+If the target interpreter for the alias is the invoking interpreter then an
+empty list is returned. If the target interpreter for the alias is not the
+invoking interpreter or one of its descendants then an error is generated.
+The target command does not have to be defined at the time of this invocation.
+
- interp transfer srcPath channelId destPath
-
+Causes the IO channel identified by channelId to become available in
+the interpreter identified by destPath and unavailable in the
+interpreter identified by srcPath.
+
+
+
+For each slave interpreter created with the interp command, a
+new Tcl command is created in the master interpreter with the same
+name as the new interpreter. This command may be used to invoke
+various operations on the interpreter. It has the following
+general form:
+slave command ?arg arg ...?
+Slave is the name of the interpreter, and command
+and the args determine the exact behavior of the command.
+The valid forms of this command are:
+
+
+- slave aliases
-
+Returns a Tcl list whose elements are the names of all the
+aliases in slave. The names returned are the srcCmd
+values used when the aliases were created (which may not be the same
+as the current names of the commands, if they have been
+renamed).
+
- slave alias srcCmd
-
+Returns a Tcl list whose elements are the targetCmd and
+args associated with the alias named srcCmd
+(all of these are the values specified when the alias was
+created; it is possible that the actual source command in the
+slave is different from srcCmd if it was renamed).
+
- slave alias srcCmd {}
-
+Deletes the alias for srcCmd in the slave interpreter.
+srcCmd refers to the name under which the alias
+was created; if the source command has been renamed, the renamed
+command will be deleted.
+
- slave alias srcCmd targetCmd ?arg ..?
-
+Creates an alias such that whenever srcCmd is invoked
+in slave, targetCmd is invoked in the master.
+The arg arguments will be passed to targetCmd as additional
+arguments, prepended before any arguments passed in the invocation of
+srcCmd.
+See ALIAS INVOCATION below for details.
+
- slave eval arg ?arg ..?
-
+This command concatenates all of the arg arguments in
+the same fashion as the concat command, then evaluates
+the resulting string as a Tcl script in slave.
+The result of this evaluation (including error information
+such as the errorInfo and errorCode variables, if an
+error occurs) is returned to the invoking interpreter.
+
- slave expose hiddenName ?exposedCmdName?
-
+This command exposes the hidden command hiddenName, eventually bringing
+it back under a new exposedCmdName name (this name is currently
+accepted only if it is a valid global name space name without any ::),
+in slave.
+If an exposed command with the targetted name already exists, this command
+fails.
+For more details on hidden commands, see HIDDEN COMMANDS, below.
+
- slave hide exposedCmdName ?hiddenCmdName?
-
+This command hides the exposed command exposedCmdName, renaming it to
+the hidden command hiddenCmdName, or keeping the same name if the
+the argument is not given, in the slave interpreter.
+If a hidden command with the targetted name already exists, this command
+fails.
+Currently both exposedCmdName and hiddenCmdName can
+not contain namespace qualifiers, or an error is raised.
+Commands to be hidden are looked up in the global
+namespace even if the current namespace is not the global one. This
+prevents slaves from fooling a master interpreter into hiding the wrong
+command, by making the current namespace be different from the global one.
+For more details on hidden commands, see HIDDEN COMMANDS, below.
+
- slave hidden
-
+Returns a list of the names of all hidden commands in slave.
+
- slave invokehidden ?-global hiddenName ?arg ..?
-
+This command invokes the hidden command hiddenName with the
+supplied arguments, in slave. No substitutions or evaluations are
+applied to the arguments.
+If the -global flag is given, the command is invoked at the global
+level in the slave; otherwise it is invoked at the current call frame and
+can access local variables in that or outer call frames.
+For more details on hidden commands, see HIDDEN
+COMMANDS, below.
+
- slave issafe
-
+Returns 1 if the slave interpreter is safe, 0 otherwise.
+
- slave marktrusted
-
+Marks the slave interpreter as trusted. Can only be invoked by a
+trusted interpreter. This command does not expose any hidden
+commands in the slave interpreter. The command has no effect if the slave
+is already trusted.
+
+
+
+A safe interpreter is one with restricted functionality, so that
+is safe to execute an arbitrary script from your worst enemy without
+fear of that script damaging the enclosing application or the rest
+of your computing environment. In order to make an interpreter
+safe, certain commands and variables are removed from the interpreter.
+For example, commands to create files on disk are removed, and the
+exec command is removed, since it could be used to cause damage
+through subprocesses.
+Limited access to these facilities can be provided, by creating
+aliases to the master interpreter which check their arguments carefully
+and provide restricted access to a safe subset of facilities.
+For example, file creation might be allowed in a particular subdirectory
+and subprocess invocation might be allowed for a carefully selected and
+fixed set of programs.
+
+A safe interpreter is created by specifying the -safe switch
+to the interp create command. Furthermore, any slave created
+by a safe interpreter will also be safe.
+
+A safe interpreter is created with exactly the following set of
+built-in commands:
+
after append array binary
+break case catch clock
+close concat continue eof
+error eval expr fblocked
+fcopy fileevent flush for
+foreach format gets global
+history if incr info
+interp join lappend lindex
+linsert list llength lrange
+lreplace lsearch lsort namespace
+package pid proc puts
+read regexp regsub rename
+return scan seek set
+split string subst switch
+tell trace unset update
+uplevel upvar variable vwait
+while
+The following commands are hidden by interp create when it
+creates a safe interpreter:
+cd exec exit fconfigure
+file glob load open
+pwd socket source vwait
+These commands can be recreated later as Tcl procedures or aliases, or
+re-exposed by interp expose.
+
+In addition, the env variable is not present in a safe interpreter,
+so it cannot share environment variables with other interpreters. The
+env variable poses a security risk, because users can store
+sensitive information in an environment variable. For example, the PGP
+manual recommends storing the PGP private key protection password in
+the environment variable PGPPASS. Making this variable available
+to untrusted code executing in a safe interpreter would incur a
+security risk.
+
+If extensions are loaded into a safe interpreter, they may also restrict
+their own functionality to eliminate unsafe commands. For a discussion of
+management of extensions for safety see the manual entries for
+Safe-Tcl and the load Tcl command.
+
+
+The alias mechanism has been carefully designed so that it can
+be used safely when an untrusted script is executing
+in a safe slave and the target of the alias is a trusted
+master. The most important thing in guaranteeing safety is to
+ensure that information passed from the slave to the master is
+never evaluated or substituted in the master; if this were to
+occur, it would enable an evil script in the slave to invoke
+arbitrary functions in the master, which would compromise security.
+
+When the source for an alias is invoked in the slave interpreter, the
+usual Tcl substitutions are performed when parsing that command.
+These substitutions are carried out in the source interpreter just
+as they would be for any other command invoked in that interpreter.
+The command procedure for the source command takes its arguments
+and merges them with the targetCmd and args for the
+alias to create a new array of arguments. If the words
+of srcCmd were ``srcCmd arg1 arg2 ... argN'',
+the new set of words will be
+``targetCmd arg arg ... arg arg1 arg2 ... argN'',
+where targetCmd and args are the values supplied when the
+alias was created. TargetCmd is then used to locate a command
+procedure in the target interpreter, and that command procedure
+is invoked with the new set of arguments. An error occurs if
+there is no command named targetCmd in the target interpreter.
+No additional substitutions are performed on the words: the
+target command procedure is invoked directly, without
+going through the normal Tcl evaluation mechanism.
+Substitutions are thus performed on each word exactly once:
+targetCmd and args were substituted when parsing the command
+that created the alias, and arg1 - argN are substituted when
+the alias's source command is parsed in the source interpreter.
+
+When writing the targetCmds for aliases in safe interpreters,
+it is very important that the arguments to that command never be
+evaluated or substituted, since this would provide an escape
+mechanism whereby the slave interpreter could execute arbitrary
+code in the master. This in turn would compromise the security
+of the system.
+
+
+Safe interpreters greatly restrict the functionality available to Tcl
+programs executing within them.
+Allowing the untrusted Tcl program to have direct access to this
+functionality is unsafe, because it can be used for a variety of
+attacks on the environment.
+However, there are times when there is a legitimate need to use the
+dangerous functionality in the context of the safe interpreter. For
+example, sometimes a program must be sourced into the interpreter.
+Another example is Tk, where windows are bound to the hierarchy of windows
+for a specific interpreter; some potentially dangerous functions, e.g.
+window management, must be performed on these windows within the
+interpreter context.
+
+The interp command provides a solution to this problem in the form of
+hidden commands. Instead of removing the dangerous commands entirely
+from a safe interpreter, these commands are hidden so they become
+unavailable to Tcl scripts executing in the interpreter. However, such
+hidden commands can be invoked by any trusted ancestor of the safe
+interpreter, in the context of the safe interpreter, using interp
+invoke. Hidden commands and exposed commands reside in separate name
+spaces. It is possible to define a hidden command and an exposed command by
+the same name within one interpreter.
+
+Hidden commands in a slave interpreter can be invoked in the body of
+procedures called in the master during alias invocation. For example, an
+alias for source could be created in a slave interpreter. When it is
+invoked in the slave interpreter, a procedure is called in the master
+interpreter to check that the operation is allowable (e.g. it asks to
+source a file that the slave interpreter is allowed to access). The
+procedure then it invokes the hidden source command in the slave
+interpreter to actually source in the contents of the file. Note that two
+commands named source exist in the slave interpreter: the alias, and
+the hidden command.
+
+Because a master interpreter may invoke a hidden command as part of
+handling an alias invocation, great care must be taken to avoid evaluating
+any arguments passed in through the alias invocation.
+Otherwise, malicious slave interpreters could cause a trusted master
+interpreter to execute dangerous commands on their behalf. See the section
+on ALIAS INVOCATION for a more complete discussion of this topic.
+To help avoid this problem, no substitutions or evaluations are
+applied to arguments of interp invokehidden.
+
+Safe interpreters are not allowed to invoke hidden commands in themselves
+or in their descendants. This prevents safe slaves from gaining access to
+hidden functionality in themselves or their descendants.
+
+The set of hidden commands in an interpreter can be manipulated by a trusted
+interpreter using interp expose and interp hide. The interp
+expose command moves a hidden command to the
+set of exposed commands in the interpreter identified by path,
+potentially renaming the command in the process. If an exposed command by
+the targetted name already exists, the operation fails. Similarly,
+interp hide moves an exposed command to the set of hidden commands in
+that interpreter. Safe interpreters are not allowed to move commands
+between the set of hidden and exposed commands, in either themselves or
+their descendants.
+
+Currently, the names of hidden commands cannot contain namespace
+qualifiers, and you must first rename a command in a namespace to the
+global namespace before you can hide it.
+Commands to be hidden by interp hide are looked up in the global
+namespace even if the current namespace is not the global one. This
+prevents slaves from fooling a master interpreter into hiding the wrong
+command, by making the current namespace be different from the global one.
+
+This mechanism is based on the Safe-Tcl prototype implemented
+by Nathaniel Borenstein and Marshall Rose.
+
+
+load, safe, Tcl_CreateSlave
+
+alias, master interpreter, safe interpreter, slave interpreter
+
+Copyright © 1995-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/join.htm b/hlp/en/tcl/join.htm
new file mode 100644
index 0000000..e85099e
--- /dev/null
+++ b/hlp/en/tcl/join.htm
@@ -0,0 +1,21 @@
+Built-In Commands - join manual page
+
+join - Create a string by joining together list elements
+
+join list ?joinString?
+
+The list argument must be a valid Tcl list.
+This command returns the string
+formed by joining all of the elements of list together with
+joinString separating each adjacent pair of elements.
+The joinString argument defaults to a space character.
+
+
+list, lappend
+
+element, join, list, separator
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/lappend.htm b/hlp/en/tcl/lappend.htm
new file mode 100644
index 0000000..53da1b3
--- /dev/null
+++ b/hlp/en/tcl/lappend.htm
@@ -0,0 +1,27 @@
+Built-In Commands - lappend manual page
+
+lappend - Append list elements onto a variable
+
+lappend varName ?value value value ...?
+
+This command treats the variable given by varName as a list
+and appends each of the value arguments to that list as a separate
+element, with spaces between elements.
+If varName doesn't exist, it is created as a list with elements
+given by the value arguments.
+Lappend is similar to append except that the values
+are appended as list elements rather than raw text.
+This command provides a relatively efficient way to build up
+large lists. For example, ``lappend a $b'' is much
+more efficient than ``set a [concat $a [list $b]]'' when
+$a is long.
+
+
+list, lindex, linsert, llength, lsort, lrange
+
+append, element, list, variable
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/library.htm b/hlp/en/tcl/library.htm
new file mode 100644
index 0000000..f8e62e0
--- /dev/null
+++ b/hlp/en/tcl/library.htm
@@ -0,0 +1,320 @@
+Tcl Built-In Commands - library manual page
+
+- NAME
+
- auto_execok, auto_import, auto_load, auto_mkindex, auto_mkindex_old, auto_qualify, auto_reset, tcl_findLibrary, parray, tcl_endOfWord, tcl_startOfNextWord, tcl_startOfPreviousWord, tcl_wordBreakAfter, tcl_wordBreakBefore - standard library of Tcl procedures
+- SYNOPSIS
+
+- auto_execok cmd
+
- auto_import pattern
+
- auto_load cmd
+
- auto_mkindex dir pattern pattern ...
+
- auto_mkindex_old dir pattern pattern ...
+
- auto_qualify command namespace
+
- auto_reset
+
- tcl_findLibrary basename version patch initScript enVarName varName
+
- parray arrayName
+
- tcl_endOfWord str start
+
- tcl_startOfNextWord str start
+
- tcl_startOfPreviousWord str start
+
- tcl_wordBreakAfter str start
+
- tcl_wordBreakBefore str start
+
+- INTRODUCTION
+
- COMMAND PROCEDURES
+
+- auto_execok cmd
+
- auto_import pattern
+
- auto_load cmd
+
- auto_mkindex dir pattern pattern ...
+
- auto_reset
+
- auto_qualify command namespace
+
- tcl_findLibrary basename version patch initScript enVarName varName
+
- parray arrayName
+
- tcl_endOfWord str start
+
- tcl_startOfNextWord str start
+
- tcl_startOfPreviousWord str start
+
- tcl_wordBreakAfter str start
+
- tcl_wordBreakBefore str start
+
+- VARIABLES
+
+- auto_execs
+
- auto_index
+
- auto_noexec
+
- auto_noload
+
- auto_path
+
- env(TCL_LIBRARY)
+
- env(TCLLIBPATH)
+
- tcl_nonwordchars
+
- tcl_wordchars
+
- unknown_pending
+
+- SEE ALSO
+
- KEYWORDS
+
+
+auto_execok, auto_import, auto_load, auto_mkindex, auto_mkindex_old, auto_qualify, auto_reset, tcl_findLibrary, parray, tcl_endOfWord, tcl_startOfNextWord, tcl_startOfPreviousWord, tcl_wordBreakAfter, tcl_wordBreakBefore - standard library of Tcl procedures
+
+auto_execok cmd
+auto_import pattern
+auto_load cmd
+auto_mkindex dir pattern pattern ...
+auto_mkindex_old dir pattern pattern ...
+auto_qualify command namespace
+auto_reset
+tcl_findLibrary basename version patch initScript enVarName varName
+parray arrayName
+tcl_endOfWord str start
+tcl_startOfNextWord str start
+tcl_startOfPreviousWord str start
+tcl_wordBreakAfter str start
+tcl_wordBreakBefore str start
+
+Tcl includes a library of Tcl procedures for commonly-needed functions.
+The procedures defined in the Tcl library are generic ones suitable
+for use by many different applications.
+The location of the Tcl library is returned by the info library
+command.
+In addition to the Tcl library, each application will normally have
+its own library of support procedures as well; the location of this
+library is normally given by the value of the $app_library
+global variable, where app is the name of the application.
+For example, the location of the Tk library is kept in the variable
+$tk_library.
+
+To access the procedures in the Tcl library, an application should
+source the file init.tcl in the library, for example with
+the Tcl command
+
source [file join [info library] init.tcl]
+If the library procedure Tcl_Init is invoked from an application's
+Tcl_AppInit procedure, this happens automatically.
+The code in init.tcl will define the unknown procedure
+and arrange for the other procedures to be loaded on-demand using
+the auto-load mechanism defined below.
+
+
+The following procedures are provided in the Tcl library:
+
+
+- auto_execok cmd
-
+Determines whether there is an executable file or shell builtin
+by the name cmd. If so, it returns a list of arguments to be
+passed to exec to execute the executable file or shell builtin
+named by cmd. If not, it returns an empty string. This command
+examines the directories in the current search path (given by the PATH
+environment variable) in its search for an executable file named
+cmd. On Windows platforms, the search is expanded with the same
+directories and file extensions as used by exec. Auto_exec
+remembers information about previous searches in an array named
+auto_execs; this avoids the path search in future calls for the
+same cmd. The command auto_reset may be used to force
+auto_execok to forget its cached information.
+
- auto_import pattern
-
+Auto_import is invoked during namespace import to see if
+the imported commands specified by pattern reside in an
+autoloaded library. If so, the commands are loaded so that they will
+be available to the interpreter for creating the import links. If the
+commands do not reside in an autoloaded library, auto_import
+does nothing. The pattern matching is performed according to the
+matching rules of namespace import.
+
- auto_load cmd
-
+This command attempts to load the definition for a Tcl command named
+cmd. To do this, it searches an auto-load path, which is
+a list of one or more directories. The auto-load path is given by the
+global variable $auto_path if it exists. If there is no
+$auto_path variable, then the TCLLIBPATH environment variable is
+used, if it exists. Otherwise the auto-load path consists of just the
+Tcl library directory. Within each directory in the auto-load path
+there must be a file tclIndex that describes one or more
+commands defined in that directory and a script to evaluate to load
+each of the commands. The tclIndex file should be generated
+with the auto_mkindex command. If cmd is found in an
+index file, then the appropriate script is evaluated to create the
+command. The auto_load command returns 1 if cmd was
+successfully created. The command returns 0 if there was no index
+entry for cmd or if the script didn't actually define cmd
+(e.g. because index information is out of date). If an error occurs
+while processing the script, then that error is returned.
+Auto_load only reads the index information once and saves it in
+the array auto_index; future calls to auto_load check for
+cmd in the array rather than re-reading the index files. The
+cached index information may be deleted with the command
+auto_reset. This will force the next auto_load command to
+reload the index database from disk.
+
- auto_mkindex dir pattern pattern ...
-
+Generates an index suitable for use by auto_load. The command
+searches dir for all files whose names match any of the
+pattern arguments (matching is done with the glob
+command), generates an index of all the Tcl command procedures defined
+in all the matching files, and stores the index information in a file
+named tclIndex in dir. If no pattern is given a pattern of
+*.tcl will be assumed. For example, the command
+
auto_mkindex foo *.tcl
+
+will read all the .tcl files in subdirectory foo and
+generate a new index file foo/tclIndex.
+
+Auto_mkindex parses the Tcl scripts by sourcing them into a
+slave interpreter and monitoring the proc and namespace commands that
+are executed. Extensions can use the (undocumented)
+auto_mkindex_parser package to register other commands that can
+contribute to the auto_load index. You will have to read through
+auto.tcl to see how this works.
+
Auto_mkindex_old parses the Tcl scripts in a relatively
+unsophisticated way: if any line contains the word proc
+as its first characters then it is assumed to be a procedure
+definition and the next word of the line is taken as the
+procedure's name.
+Procedure definitions that don't appear in this way (e.g. they
+have spaces before the proc) will not be indexed. If your
+script contains "dangerous" code, such as global initialization
+code or procedure names with special characters like $,
+*, [ or ], you are safer using auto_mkindex_old.
+
- auto_reset
-
+Destroys all the information cached by auto_execok and
+auto_load. This information will be re-read from disk the next
+time it is needed. Auto_reset also deletes any procedures
+listed in the auto-load index, so that fresh copies of them will be
+loaded the next time that they're used.
+
- auto_qualify command namespace
-
+Computes a list of fully qualified names for command. This list
+mirrors the path a standard Tcl interpreter follows for command
+lookups: first it looks for the command in the current namespace, and
+then in the global namespace. Accordingly, if command is
+relative and namespace is not ::, the list returned has
+two elements: command scoped by namespace, as if it were
+a command in the namespace namespace; and command as if it
+were a command in the global namespace. Otherwise, if either
+command is absolute (it begins with ::), or
+namespace is ::, the list contains only command as
+if it were a command in the global namespace.
+
+Auto_qualify is used by the auto-loading facilities in Tcl, both
+for producing auto-loading indexes such as pkgIndex.tcl, and for
+performing the actual auto-loading of functions at runtime.
+
- tcl_findLibrary basename version patch initScript enVarName varName
-
+This is a standard search procedure for use by extensions during
+their initialization. They call this procedure to look for their
+script library in several standard directories.
+The last component of the name of the library directory is
+normally basenameversion
+(e.g., tk8.0), but it might be "library" when in the build hierarchies.
+The initScript file will be sourced into the interpreter
+once it is found. The directory in which this file is found is
+stored into the global variable varName.
+If this variable is already defined (e.g., by C code during
+application initialization) then no searching is done.
+Otherwise the search looks in these directories:
+the directory named by the environment variable enVarName;
+relative to the Tcl library directory;
+relative to the executable file in the standard installation
+bin or bin/arch directory;
+relative to the executable file in the current build tree;
+relative to the executable file in a parallel build tree.
+
- parray arrayName
-
+Prints on standard output the names and values of all the elements
+in the array arrayName.
+ArrayName must be an array accessible to the caller of parray.
+It may be either local or global.
+
- tcl_endOfWord str start
-
+Returns the index of the first end-of-word location that occurs after
+a starting index start in the string str. An end-of-word
+location is defined to be the first non-word character following the
+first word character after the starting point. Returns -1 if there
+are no more end-of-word locations after the starting point. See the
+description of tcl_wordchars and tcl_nonwordchars below
+for more details on how Tcl determines which characters are word
+characters.
+
- tcl_startOfNextWord str start
-
+Returns the index of the first start-of-word location that occurs
+after a starting index start in the string str. A
+start-of-word location is defined to be the first word character
+following a non-word character. Returns -1 if there are no more
+start-of-word locations after the starting point.
+
- tcl_startOfPreviousWord str start
-
+Returns the index of the first start-of-word location that occurs
+before a starting index start in the string str. Returns
+-1 if there are no more start-of-word locations before the starting
+point.
+
- tcl_wordBreakAfter str start
-
+Returns the index of the first word boundary after the starting index
+start in the string str. Returns -1 if there are no more
+boundaries after the starting point in the given string. The index
+returned refers to the second character of the pair that comprises a
+boundary.
+
- tcl_wordBreakBefore str start
-
+Returns the index of the first word boundary before the starting index
+start in the string str. Returns -1 if there are no more
+boundaries before the starting point in the given string. The index
+returned refers to the second character of the pair that comprises a
+boundary.
+
+
+
+The following global variables are defined or used by the procedures in
+the Tcl library:
+
+
+- auto_execs
-
+Used by auto_execok to record information about whether
+particular commands exist as executable files.
+
- auto_index
-
+Used by auto_load to save the index information read from
+disk.
+
- auto_noexec
-
+If set to any value, then unknown will not attempt to auto-exec
+any commands.
+
- auto_noload
-
+If set to any value, then unknown will not attempt to auto-load
+any commands.
+
- auto_path
-
+If set, then it must contain a valid Tcl list giving directories to
+search during auto-load operations.
+This variable is initialized during startup to contain, in order:
+the directories listed in the TCLLIBPATH environment variable,
+the directory named by the $tcl_library variable,
+the parent directory of $tcl_library,
+the directories listed in the $tcl_pkgPath variable.
+
- env(TCL_LIBRARY)
-
+If set, then it specifies the location of the directory containing
+library scripts (the value of this variable will be
+assigned to the tcl_library variable and therefore returned by
+the command info library). If this variable isn't set then
+a default value is used.
+
- env(TCLLIBPATH)
-
+If set, then it must contain a valid Tcl list giving directories to
+search during auto-load operations. Directories must be specified in
+Tcl format, using "/" as the path separator, regardless of platform.
+This variable is only used when initializing the auto_path variable.
+
- tcl_nonwordchars
-
+This variable contains a regular expression that is used by routines
+like tcl_endOfWord to identify whether a character is part of a
+word or not. If the pattern matches a character, the character is
+considered to be a non-word character. On Windows platforms, spaces,
+tabs, and newlines are considered non-word characters. Under Unix,
+everything but numbers, letters and underscores are considered
+non-word characters.
+
- tcl_wordchars
-
+This variable contains a regular expression that is used by routines
+like tcl_endOfWord to identify whether a character is part of a
+word or not. If the pattern matches a character, the character is
+considered to be a word character. On Windows platforms, words are
+comprised of any character that is not a space, tab, or newline. Under
+Unix, words are comprised of numbers, letters or underscores.
+
- unknown_pending
-
+Used by unknown to record the command(s) for which it is
+searching.
+It is used to detect errors where unknown recurses on itself
+infinitely.
+The variable is unset before unknown returns.
+
+
+
+info, re_syntax
+
+auto-exec, auto-load, library, unknown, word, whitespace
+
+Copyright © 1991-1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/lindex.htm b/hlp/en/tcl/lindex.htm
new file mode 100644
index 0000000..3af78ba
--- /dev/null
+++ b/hlp/en/tcl/lindex.htm
@@ -0,0 +1,28 @@
+Tcl Built-In Commands - lindex manual page
+
+lindex - Retrieve an element from a list
+
+lindex list index
+
+This command treats list as a Tcl list and returns the
+index'th element from it (0 refers to the first element of the list).
+In extracting the element, lindex observes the same rules
+concerning braces and quotes and backslashes as the Tcl command
+interpreter; however, variable
+substitution and command substitution do not occur.
+If index is negative or greater than or equal to the number
+of elements in value, then an empty
+string is returned.
+If index has the value end, it refers to the last element
+in the list, and end-integer refers to the last element in
+the list minus the specified integer offset.
+
+
+list, lappend, linsert, llength, lsearch, lsort, lrange, lreplace
+
+element, index, list
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/linsert.htm b/hlp/en/tcl/linsert.htm
new file mode 100644
index 0000000..cef74ea
--- /dev/null
+++ b/hlp/en/tcl/linsert.htm
@@ -0,0 +1,25 @@
+Tcl Built-In Commands - linsert manual page
+
+linsert - Insert elements into a list
+
+linsert list index element ?element element ...?
+
+This command produces a new list from list by inserting all of the
+element arguments just before the indexth element of
+list. Each element argument will become a separate element of
+the new list. If index is less than or equal to zero, then the new
+elements are inserted at the beginning of the list. If index has the
+value end, or if it is greater than or equal to the number of
+elements in the list, then the new elements are appended to the list.
+end-integer refers to the last element in the list minus the
+specified integer offset.
+
+
+list, lappend, llength
+
+element, insert, list
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/list.htm b/hlp/en/tcl/list.htm
new file mode 100644
index 0000000..9f51783
--- /dev/null
+++ b/hlp/en/tcl/list.htm
@@ -0,0 +1,30 @@
+Built-In Commands - list manual page
+
+list - Create a list
+
+list ?arg arg ...?
+
+This command returns a list comprised of all the args,
+or an empty string if no args are specified.
+Braces and backslashes get added as necessary, so that the index command
+may be used on the result to re-extract the original arguments, and also
+so that eval may be used to execute the resulting list, with
+arg1 comprising the command's name and the other args comprising
+its arguments. List produces slightly different results than
+concat: concat removes one level of grouping before forming
+the list, while list works directly from the original arguments.
+For example, the command
+list a b {c d e} {f {g h}}
+will return
+a b {c d e} {f {g h}}
+while concat with the same arguments will return
+a b c d e f {g h}
+
+lappend, lindex, linsert, llength, lsearch, lsort, lrange, lreplace
+
+element, list
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/llength.htm b/hlp/en/tcl/llength.htm
new file mode 100644
index 0000000..9ae3c7a
--- /dev/null
+++ b/hlp/en/tcl/llength.htm
@@ -0,0 +1,18 @@
+Built-In Commands - llength manual page
+
+llength - Count the number of elements in a list
+
+llength list
+
+Treats list as a list and returns a decimal string giving
+the number of elements in it.
+
+
+list, lindex, lrange
+
+element, list, length
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/load.htm b/hlp/en/tcl/load.htm
new file mode 100644
index 0000000..0dd08da
--- /dev/null
+++ b/hlp/en/tcl/load.htm
@@ -0,0 +1,130 @@
+Tcl Built-In Commands - load manual page
+
+- NAME
+
- load - Load machine code and initialize new commands.
+- SYNOPSIS
+
+- load fileName
+
- load fileName packageName
+
- load fileName packageName interp
+
+- DESCRIPTION
+
- PORTABILITY ISSUES
+
+- Windows
+
+- BUGS
+
- SEE ALSO
+
- KEYWORDS
+
+
+load - Load machine code and initialize new commands.
+
+load fileName
+load fileName packageName
+load fileName packageName interp
+
+This command loads binary code from a file into the
+application's address space and calls an initialization procedure
+in the package to incorporate it into an interpreter. fileName
+is the name of the file containing the code; its exact form varies
+from system to system but on most systems it is a shared library,
+such as a .so file under Solaris or a DLL under Windows.
+packageName is the name of the package, and is used to
+compute the name of an initialization procedure.
+interp is the path name of the interpreter into which to load
+the package (see the interp manual entry for details);
+if interp is omitted, it defaults to the
+interpreter in which the load command was invoked.
+
+Once the file has been loaded into the application's address space,
+one of two initialization procedures will be invoked in the new code.
+Typically the initialization procedure will add new commands to a
+Tcl interpreter.
+The name of the initialization procedure is determined by
+packageName and whether or not the target interpreter
+is a safe one. For normal interpreters the name of the initialization
+procedure will have the form pkg_Init, where pkg
+is the same as packageName except that the first letter is
+converted to upper case and all other letters
+are converted to lower case. For example, if packageName is
+foo or FOo, the initialization procedure's name will
+be Foo_Init.
+
+If the target interpreter is a safe interpreter, then the name
+of the initialization procedure will be pkg_SafeInit
+instead of pkg_Init.
+The pkg_SafeInit function should be written carefully, so that it
+initializes the safe interpreter only with partial functionality provided
+by the package that is safe for use by untrusted code. For more information
+on Safe-Tcl, see the safe manual entry.
+
+The initialization procedure must match the following prototype:
+
typedef int Tcl_PackageInitProc(Tcl_Interp *interp);
+The interp argument identifies the interpreter in which the
+package is to be loaded. The initialization procedure must return
+TCL_OK or TCL_ERROR to indicate whether or not it completed
+successfully; in the event of an error it should set the interpreter's result
+to point to an error message. The result of the load command
+will be the result returned by the initialization procedure.
+
+The actual loading of a file will only be done once for each fileName
+in an application. If a given fileName is loaded into multiple
+interpreters, then the first load will load the code and
+call the initialization procedure; subsequent loads will
+call the initialization procedure without loading the code again.
+It is not possible to unload or reload a package.
+
+The load command also supports packages that are statically
+linked with the application, if those packages have been registered
+by calling the Tcl_StaticPackage procedure.
+If fileName is an empty string, then packageName must
+be specified.
+
+If packageName is omitted or specified as an empty string,
+Tcl tries to guess the name of the package.
+This may be done differently on different platforms.
+The default guess, which is used on most UNIX platforms, is to
+take the last element of fileName, strip off the first
+three characters if they are lib, and use any following
+alphabetic and underline characters as the module name.
+For example, the command load libxyz4.2.so uses the module
+name xyz and the command load bin/last.so {} uses the
+module name last.
+
+If fileName is an empty string, then packageName must
+be specified.
+The load command first searches for a statically loaded package
+(one that has been registered by calling the Tcl_StaticPackage
+procedure) by that name; if one is found, it is used.
+Otherwise, the load command searches for a dynamically loaded
+package by that name, and uses it if it is found. If several
+different files have been loaded with different versions of
+the package, Tcl picks the file that was loaded first.
+
+
+
+- Windows
-
+When a load fails with "library not found" error, it is also possible
+that a dependent library was not found. To see the dependent libraries,
+type ``dumpbin -imports <dllname>'' in a DOS console to see what the
+library must import.
+When loading a DLL in the current directory, Windows will ignore ``./'' as
+a path specifier and use a search heuristic to find the DLL instead.
+To avoid this, load the DLL with
+
load [file join [pwd] mylib.DLL]
+
+
+If the same file is loaded by different fileNames, it will
+be loaded into the process's address space multiple times. The
+behavior of this varies from system to system (some systems may
+detect the redundant loads, others may not).
+
+
+info sharedlibextension, Tcl_StaticPackage, safe
+
+binary code, loading, safe interpreter, shared library
+
+Copyright © 1995-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/lrange.htm b/hlp/en/tcl/lrange.htm
new file mode 100644
index 0000000..133874e
--- /dev/null
+++ b/hlp/en/tcl/lrange.htm
@@ -0,0 +1,31 @@
+Tcl Built-In Commands - lrange manual page
+
+lrange - Return one or more adjacent elements from a list
+
+lrange list first last
+
+List must be a valid Tcl list. This command will
+return a new list consisting of elements
+first through last, inclusive.
+First or last
+may be end (or any abbreviation of it) to refer to the last
+element of the list.
+If first is less than zero, it is treated as if it were zero.
+If last is greater than or equal to the number of elements
+in the list, then it is treated as if it were end.
+If first is greater than last then an empty string
+is returned.
+Note: ``lrange list first first'' does not always produce the
+same result as ``lindex list first'' (although it often does
+for simple fields that aren't enclosed in braces); it does, however,
+produce exactly the same results as ``list [lindex list first]''
+
+
+lappend, lindex, linsert, list, llength, lreplace
+
+element, list, range, sublist
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/lreplace.htm b/hlp/en/tcl/lreplace.htm
new file mode 100644
index 0000000..dbe6f4f
--- /dev/null
+++ b/hlp/en/tcl/lreplace.htm
@@ -0,0 +1,39 @@
+Tcl Built-In Commands - lreplace manual page
+
+lreplace - Replace elements in a list with new elements
+
+lreplace list first last ?element element ...?
+
+lreplace returns a new list formed by replacing one or more elements of
+list with the element arguments.
+first and last specify the first and last index of the
+range of elements to replace. 0 refers to the first element of the
+list, and end (or any abbreviation of it) may be used to refer
+to the last element of the list. If list is empty, then
+first and last are ignored.
+
+If first is less than zero, it is considered to refer to the
+first element of the list. For non-empty lists, the element indicated
+by first must exist.
+
+If last is less than zero but greater than first, then any
+specified elements will be prepended to the list. If last is
+less than first then no elements are deleted; the new elements
+are simply inserted before first.
+
+The element arguments specify zero or more new arguments to
+be added to the list in place of those that were deleted.
+Each element argument will become a separate element of
+the list. If no element arguments are specified, then the elements
+between first and last are simply deleted. If list
+is empty, any element arguments are added to the end of the list.
+
+
+lappend, lindex, linsert, list, llength, lrange, lsearch, lsort
+
+element, list, replace
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/lsearch.htm b/hlp/en/tcl/lsearch.htm
new file mode 100644
index 0000000..909ddfa
--- /dev/null
+++ b/hlp/en/tcl/lsearch.htm
@@ -0,0 +1,36 @@
+Tcl Built-In Commands - lsearch manual page
+
+lsearch - See if a list contains a particular element
+
+lsearch ?mode? list pattern
+
+This command searches the elements of list to see if one
+of them matches pattern.
+If so, the command returns the index of the first matching
+element.
+If not, the command returns -1.
+The mode argument indicates how the elements of the list are to
+be matched against pattern and it must have one of the following
+values:
+
+
+- -exact
-
+The list element must contain exactly the same string as pattern.
+
- -glob
-
+Pattern is a glob-style pattern which is matched against each list
+element using the same rules as the string match command.
+
- -regexp
-
+Pattern is treated as a regular expression and matched against
+each list element using the rules described in the re_syntax
+reference page.
+
+
+If mode is omitted then it defaults to -glob.
+
+
+list, match, pattern, regular expression, search, string
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/lsort.htm b/hlp/en/tcl/lsort.htm
new file mode 100644
index 0000000..2d54e54
--- /dev/null
+++ b/hlp/en/tcl/lsort.htm
@@ -0,0 +1,160 @@
+Tcl Built-In Commands - lsort manual page
+
+- NAME
+
- lsort - Sort the elements of a list
+- SYNOPSIS
+
+- lsort ?options? list
+
+- DESCRIPTION
+
+- -ascii
+
- -dictionary
+
- -integer
+
- -real
+
- -command command
+
- -increasing
+
- -decreasing
+
- -index index
+
- -unique
+
+- NOTES
+
- EXAMPLES
+
- SEE ALSO
+
- KEYWORDS
+
+
+lsort - Sort the elements of a list
+
+lsort ?options? list
+
+This command sorts the elements of list, returning a new
+list in sorted order. The implementation of the lsort command
+uses the merge-sort algorithm which is a stable sort that has O(n log
+n) performance characteristics.
+
+By default ASCII sorting is used with the result returned in
+increasing order. However, any of the following options may be
+specified before list to control the sorting process (unique
+abbreviations are accepted):
+
+
+- -ascii
-
+Use string comparison with ASCII collation order. This is the default.
+
- -dictionary
-
+Use dictionary-style comparison. This is the same as -ascii
+except (a) case is ignored except as a tie-breaker and (b) if two
+strings contain embedded numbers, the numbers compare as integers,
+not characters. For example, in -dictionary mode, bigBoy
+sorts between bigbang and bigboy, and x10y
+sorts between x9y and x11y.
+
- -integer
-
+Convert list elements to integers and use integer comparison.
+
- -real
-
+Convert list elements to floating-point values and use floating comparison.
+
- -command command
-
+Use command as a comparison command.
+To compare two elements, evaluate a Tcl script consisting of
+command with the two elements appended as additional
+arguments. The script should return an integer less than,
+equal to, or greater than zero if the first element is to
+be considered less than, equal to, or greater than the second,
+respectively.
+
- -increasing
-
+Sort the list in increasing order (``smallest'' items first).
+This is the default.
+
- -decreasing
-
+Sort the list in decreasing order (``largest'' items first).
+
- -index index
-
+If this option is specified, each of the elements of list must
+itself be a proper Tcl sublist. Instead of sorting based on whole
+sublists, lsort will extract the index'th element from
+each sublist and sort based on the given element. The keyword
+end is allowed for the index to sort on the last sublist
+element,
+and end-index sorts on a sublist element offset from
+the end.
+For example,
+
lsort -integer -index 1 {{First 24} {Second 18} {Third 30}}
+returns {Second 18} {First 24} {Third 30}, and
+lsort -index end-1 {{a 1 e i} {b 2 3 f g} {c 4 5 6 d h}}
+returns {c 4 5 6 d h} {a 1 e i} {b 2 3 f g}.
+This option is much more efficient than using -command
+to achieve the same effect.
+ - -unique
-
+If this option is specified, then only the last set of duplicate
+elements found in the list will be retained. Note that duplicates are
+determined relative to the comparison used in the sort. Thus if
+-index 0 is used, {1 a} and {1 b} would be
+considered duplicates and only the second element, {1 b}, would
+be retained.
+
+
+
+The options to lsort only control what sort of comparison is
+used, and do not necessarily constrain what the values themselves
+actually are. This distinction is only noticeable when the list to be
+sorted has fewer than two elements.
+
+The lsort command is reentrant, meaning it is safe to use as
+part of the implementation of a command used in the -command
+option.
+
+
+Sorting a list using ASCII sorting:
+% lsort {a10 B2 b1 a1 a2}
+B2 a1 a10 a2 b1
+
+Sorting a list using Dictionary sorting:
+
% lsort -dictionary {a10 B2 b1 a1 a2}
+a1 a2 a10 b1 B2
+
+Sorting lists of integers:
+
% lsort -integer {5 3 1 2 11 4}
+1 2 3 4 5 11
+% lsort -integer {1 2 0x5 7 0 4 -1}
+-1 0 1 2 4 0x5 7
+
+Sorting lists of floating-point numbers:
+
% lsort -real {5 3 1 2 11 4}
+1 2 3 4 5 11
+% lsort -real {.5 0.07e1 0.4 6e-1}
+0.4 .5 6e-1 0.07e1
+
+Sorting using indices:
+
% # Note the space character before the c
+% lsort {{a 5} { c 3} {b 4} {e 1} {d 2}}
+{ c 3} {a 5} {b 4} {d 2} {e 1}
+% lsort -index 0 {{a 5} { c 3} {b 4} {e 1} {d 2}}
+{a 5} {b 4} { c 3} {d 2} {e 1}
+% lsort -index 1 {{a 5} { c 3} {b 4} {e 1} {d 2}}
+{e 1} {d 2} { c 3} {b 4} {a 5}
+
+Stripping duplicate values using sorting:
+
% lsort -unique {a b c a b c a b c}
+a b c
+
+More complex sorting using a comparison function:
+
% proc compare {a b} {
+ set a0 [lindex $a 0]
+ set b0 [lindex $b 0]
+ if {$a0 < $b0} {
+ return -1
+ } elseif {$a0 > $b0} {
+ return 1
+ }
+ return [string compare [lindex $a 1] [lindex $b 1]]
+}
+% lsort -command compare \
+ {{3 apple} {0x2 carrot} {1 dingo} {2 banana}}
+{1 dingo} {2 banana} {0x2 carrot} {3 apple}
+
+lappend, lindex, linsert, list, llength, lrange, lreplace, lsearch
+
+element, list, order, sort
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1999 Scriptics Corporation
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/memory.htm b/hlp/en/tcl/memory.htm
new file mode 100644
index 0000000..7ce50cc
--- /dev/null
+++ b/hlp/en/tcl/memory.htm
@@ -0,0 +1,89 @@
+Tcl Built-In Commands - memory manual page
+
+- NAME
+
- memory - Control Tcl memory debugging capabilities.
+- SYNOPSIS
+
+- memory option ?arg arg ...?
+
-
+
+- DESCRIPTION
+
+- memory info
+
- memory trace [on|off]
+
- memory validate [on|off]
+
- memory trace_on_at_malloc count
+
- memory break_on_malloc count
+
- memory display file
+
+- SEE ALSO
+
- KEYWORDS
+
+
+memory - Control Tcl memory debugging capabilities.
+
+memory option ?arg arg ...?
+
+
+The memory command gives the Tcl developer control of Tcl's memory
+debugging capabilities. The memory command has several suboptions, which are
+described below. It is only available when Tcl has been compiled with
+memory debugging enabled (when TCL_MEM_DEBUG is defined at
+compile time).
+
+
+- memory info
-
+Produces a report containing the total allocations and frees since
+Tcl began, the current packets allocated (the current
+number of calls to ckalloc not met by a corresponding call
+to ckfree), the current bytes allocated, and the maximum number
+of packets and bytes allocated.
+
- memory trace [on|off]
-
+
+Turns memory tracing on or off. When memory tracing is on, every call
+to ckalloc causes a line of trace information to be written to
+stderr, consisting of the word ckalloc, followed by the
+address returned, the amount of memory allocated, and the C filename
+and line number of the code performing the allocation. For example:
+ckalloc 40e478 98 tclProc.c 1406
+Calls to ckfree are traced in the same manner.
+ - memory validate [on|off]
-
+Turns memory validation on or off. When memory validation is enabled,
+on every call to ckalloc or ckfree, the guard zones are
+checked for every piece of memory currently in existence that was
+allocated by ckalloc. This has a large performance impact and
+should only be used when overwrite problems are strongly suspected.
+The advantage of enabling memory validation is that a guard zone
+overwrite can be detected on the first call to ckalloc or
+ckfree after the overwrite occurred, rather than when the
+specific memory with the overwritten guard zone(s) is freed, which may
+occur long after the overwrite occurred.
+
- memory trace_on_at_malloc count
-
+Enable memory tracing after count ckalloc's have been performed.
+For example, if you enter memory trace_on_at_malloc 100,
+after the 100th call to ckalloc, memory trace information will begin
+being displayed for all allocations and frees. Since there can be a lot
+of memory activity before a problem occurs, judicious use of this option
+can reduce the slowdown caused by tracing (and the amount of trace information
+produced), if you can identify a number of allocations that occur before
+the problem sets in. The current number of memory allocations that have
+occurred since Tcl started is printed on a guard zone failure.
+
- memory break_on_malloc count
-
+After the count allocations have been performed, ckalloc's
+output a message to this effect and that it is now attempting to enter
+the C debugger. Tcl will then issue a SIGINT signal against itself.
+If you are running Tcl under a C debugger, it should then enter the debugger
+command mode.
+
- memory display file
-
+Write a list of all currently allocated memory to the specified file.
+
+
+
+ckalloc, ckfree, Tcl_ValidateAllMemory, Tcl_DumpActiveMemory, TCL_MEM_DEBUG
+
+memory, debug
+
+Copyright © 1992-1999 by Karl Lehenbauer and Mark Diekhans
+Copyright © 2000 by Scriptics Corporation.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/msgcat.htm b/hlp/en/tcl/msgcat.htm
new file mode 100644
index 0000000..70c89b2
--- /dev/null
+++ b/hlp/en/tcl/msgcat.htm
@@ -0,0 +1,244 @@
+Tcl Built-In Commands - msgcat manual page
+
+- NAME
+
- msgcat - Tcl message catalog
+- SYNOPSIS
+
+- ::msgcat::mc src-string
+
- ::msgcat::mclocale ?newLocale?
+
- ::msgcat::mcpreferences
+
- ::msgcat::mcload dirname
+
- ::msgcat::mcset locale src-string ?translate-string?
+
- ::msgcat::mcunknown locale src-string
+
+- DESCRIPTION
+
- COMMANDS
+
+- ::msgcat::mc src-string ?arg arg ...?
+
+
+- ::msgcat::mclocale ?newLocale?
+
- ::msgcat::mcpreferences
+
- ::msgcat::mcload dirname
+
- ::msgcat::mcset locale src-string ?translate-string?
+
- ::msgcat::mcunknown locale src-string
+
+- LOCALE AND SUBLOCALE SPECIFICATION
+
- NAMESPACES AND MESSAGE CATALOGS
+
- LOCATION AND FORMAT OF MESSAGE FILES
+
+
+- RECOMMENDED MESSAGE SETUP FOR PACKAGES
+
+
+- POSTITIONAL CODES FOR FORMAT AND SCAN COMMANDS
+
- CREDITS
+
- SEE ALSO
+
- KEYWORDS
+
+
+msgcat - Tcl message catalog
+
+::msgcat::mc src-string
+::msgcat::mclocale ?newLocale?
+::msgcat::mcpreferences
+::msgcat::mcload dirname
+::msgcat::mcset locale src-string ?translate-string?
+::msgcat::mcunknown locale src-string
+
+The msgcat package provides a set of functions
+that can be used to manage multi-lingual user interfaces.
+Text strings are defined in a ``message catalog'' which
+is independent from the application, and
+which can be edited or localized without modifying
+the application source code. New languages
+or locales are provided by adding a new file to
+the message catalog.
+
+Use of the message catalog is optional by any application
+or package, but is encouraged if the application or package
+wishes to be enabled for multi-lingual applications.
+
+
+
+- ::msgcat::mc src-string ?arg arg ...?
-
+Returns a translation of src-string according to the
+user's current locale. If additional arguments past src-string
+are given, the format command is used to substitute the
+additional arguments in the translation of src-string.
+
+::msgcat::mc will search the messages defined
+in the current namespace for a translation of src-string; if
+none is found, it will search in the parent of the current namespace,
+and so on until it reaches the global namespace. If no translation
+string exists, ::msgcat::mcunknown is called and the string
+returned from ::msgcat::mcunknown is returned.
+
+
+::msgcat::mc is the main function used to localize an
+application. Instead of using an English string directly, an
+applicaton can pass the English string through ::msgcat::mc and
+use the result. If an application is written for a single language in
+this fashion, then it is easy to add support for additional languages
+later simply by defining new message catalog entries.
+
+
+- ::msgcat::mclocale ?newLocale?
-
+This function sets the locale to newLocale. If newLocale
+is omitted, the current locale is returned, otherwise the current locale
+is set to newLocale.
+The initial locale defaults to the locale specified in
+the user's environment. See LOCALE AND SUBLOCALE SPECIFICATION
+below for a description of the locale string format.
+
- ::msgcat::mcpreferences
-
+Returns an ordered list of the locales preferred by
+the user, based on the user's language specification.
+The list is ordered from most specific to least
+preference. If the user has specified LANG=en_US_funky,
+this procedure would return {en_US_funky en_US en}.
+
- ::msgcat::mcload dirname
-
+Searches the specified directory for files that match
+the language specifications returned by ::msgcat::mcpreferences.
+Each file located is sourced. The file extension is ``.msg''.
+The number of message files which matched the specification
+and were loaded is returned.
+
- ::msgcat::mcset locale src-string ?translate-string?
-
+Sets the translation for src-string to translate-string
+in the specified locale. If translate-string is not
+specified, src-string is used for both. The function
+returns translate-string.
+
- ::msgcat::mcunknown locale src-string
-
+This routine is called by ::msgcat::mc in the case when
+a translation for src-string is not defined in the
+current locale. The default action is to return
+src-string. This procedure can be redefined by the
+application, for example to log error messages for each unknown
+string. The ::msgcat::mcunknown procedure is invoked at the
+same stack context as the call to ::msgcat::mc. The return vaue
+of ::msgcat::mcunknown is used as the return vaue for the call
+to ::msgcat::mc.
+
+
+
+The locale is specified by a locale string.
+The locale string consists of
+a language code, an optional country code, and an optional
+system-specific code, each separated by ``_''. The country and language
+codes are specified in standards ISO-639 and ISO-3166.
+For example, the locale ``en'' specifies English and
+ ``en_US'' specifes U.S. English.
+
+The locale defaults to the value in env(LANG) at the time the
+msgcat package is loaded. If env(LANG) is not defined, then the
+locale defaults to ``C''.
+
+When a locale is specified by the user, a ``best match'' search is
+performed during string translation. For example, if a user specifies
+en_UK_Funky, the locales ``en_UK_Funky'', ``en_UK'', and ``en'' are
+searched in order until a matching translation string is found. If no
+translation string is available, then ::msgcat::unknown is
+called.
+
+
+Strings stored in the message catalog are stored relative
+to the namespace from which they were added. This allows
+multiple packages to use the same strings without fear
+of collisions with other packages. It also allows the
+source string to be shorter and less prone to typographical
+error.
+
+For example, executing the code
+
mcset en hello "hello from ::"
+namespace eval foo {mcset en hello "hello from ::foo"}
+puts [mc hello]
+namespace eval foo {puts [mc hello]}
+will print
+hello from ::
+hello from ::foo
+
+When searching for a translation of a message, the
+message catalog will search first the current namespace,
+then the parent of the current namespace, and so on until
+the global namespace is reached. This allows child namespaces
+to "inherit" messages from their parent namespace.
+
+For example, executing the code
+
mcset en m1 ":: message1"
+mcset en m2 ":: message2"
+mcset en m3 ":: message3"
+namespace eval ::foo {
+ mcset en m2 "::foo message2"
+ mcset en m3 "::foo message3"
+}
+namespace eval ::foo::bar {
+ mcset en m3 "::foo::bar message3"
+}
+puts "[mc m1]; [mc m2]; [mc m3]"
+namespace eval ::foo {puts "[mc m1]; [mc m2]; [mc m3]"}
+namespace eval ::foo::bar {puts "[mc m1]; [mc m2]; [mc m3]"}
+will print
+:: message1; :: message2; :: message3
+:: message1; ::foo message2; ::foo message3
+:: message1; ::foo message2; ::foo::bar message3
+
+Message files can be located in any directory, subject
+to the following conditions:
+
+
+- [1]
-
+All message files for a package are in the same directory.
+
- [2]
-
+The message file name is a locale specifier followed
+by ``.msg''. For example:
+
es.msg -- spanish
+en_UK.msg -- UK English
+ - [3]
-
+The file contains a series of calls to mcset, setting the
+necessary translation strings for the language. For example:
+
::msgcat::mcset es "Free Beer!" "Cerveza Gracias!"
+
+
+If a package is installed into a subdirectory of the
+tcl_pkgPath and loaded via package require, the
+following procedure is recommended.
+
+
+- [1]
-
+During package installation, create a subdirectory
+msgs under your package directory.
+
- [2]
-
+Copy your *.msg files into that directory.
+
- [3]
-
+ Add the following command to your package
+initialization script:
+
# load language files, stored in msgs subdirectory
+::msgcat::mcload [file join [file dirname [info script]] msgs]
+
+
+It is possible that a message string used as an argument
+to format might have positionally dependent parameters that
+might need to be repositioned. For example, it might be
+syntactically desirable to rearrange the sentence structure
+while translating.
+format "We produced %d units in location %s" $num $city
+format "In location %s we produced %d units" $city $num
+
+This can be handled by using the positional
+parameters:
+
format "We produced %1\$d units in location %2\$s" $num $city
+format "In location %2\$s we produced %1\$d units" $num $city
+
+Similarly, positional parameters can be used with scan to
+extract values from internationalized strings.
+
+
+The message catalog code was developed by Mark Harrison.
+
+
+format, scan, namespace, package
+
+internationalization, i18n, localization, l10n, message, text, translation
+
+Copyright © 1998 Mark Harrison.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/namespace.htm b/hlp/en/tcl/namespace.htm
new file mode 100644
index 0000000..14a9849
--- /dev/null
+++ b/hlp/en/tcl/namespace.htm
@@ -0,0 +1,532 @@
+Tcl Built-In Commands - namespace manual page
+
+- NAME
+
- namespace - create and manipulate contexts for commands and variables
+- SYNOPSIS
+
+- namespace ?option? ?arg ...?
+
+- DESCRIPTION
+
+- namespace children ?namespace? ?pattern?
+
- namespace code script
+
- namespace current
+
- namespace delete ?namespace namespace ...?
+
- namespace eval namespace arg ?arg ...?
+
- namespace export ?-clear? ?pattern pattern ...?
+
- namespace forget ?pattern pattern ...?
+
- namespace import ?-force? ?pattern pattern ...?
+
- namespace inscope namespace arg ?arg ...?
+
- namespace origin command
+
- namespace parent ?namespace?
+
- namespace qualifiers string
+
- namespace tail string
+
- namespace which ?-command? ?-variable? name
+
+- WHAT IS A NAMESPACE?
+
- QUALIFIED NAMES
+
- NAME RESOLUTION
+
- IMPORTING COMMANDS
+
- EXPORTING COMMANDS
+
- SEE ALSO
+
- KEYWORDS
+
+
+namespace - create and manipulate contexts for commands and variables
+
+namespace ?option? ?arg ...?
+
+The namespace command lets you create, access, and destroy
+separate contexts for commands and variables.
+See the section WHAT IS A NAMESPACE? below
+for a brief overview of namespaces.
+The legal option's are listed below.
+Note that you can abbreviate the option's.
+
+
+- namespace children ?namespace? ?pattern?
-
+Returns a list of all child namespaces that belong to the
+namespace namespace.
+If namespace is not specified,
+then the children are returned for the current namespace.
+This command returns fully-qualified names,
+which start with ::.
+If the optional pattern is given,
+then this command returns only the names that match the glob-style pattern.
+The actual pattern used is determined as follows:
+a pattern that starts with :: is used directly,
+otherwise the namespace namespace
+(or the fully-qualified name of the current namespace)
+is prepended onto the the pattern.
+
- namespace code script
-
+Captures the current namespace context for later execution
+of the script script.
+It returns a new script in which script has been wrapped
+in a namespace code command.
+The new script has two important properties.
+First, it can be evaluated in any namespace and will cause
+script to be evaluated in the current namespace
+(the one where the namespace code command was invoked).
+Second, additional arguments can be appended to the resulting script
+and they will be passed to script as additional arguments.
+For example, suppose the command
+set script [namespace code {foo bar}]
+is invoked in namespace ::a::b.
+Then eval "$script x y"
+can be executed in any namespace (assuming the value of
+script has been passed in properly)
+and will have the same effect as the command
+namespace eval ::a::b {foo bar x y}.
+This command is needed because
+extensions like Tk normally execute callback scripts
+in the global namespace.
+A scoped command captures a command together with its namespace context
+in a way that allows it to be executed properly later.
+See the section SCOPED VALUES for some examples
+of how this is used to create callback scripts.
+
- namespace current
-
+Returns the fully-qualified name for the current namespace.
+The actual name of the global namespace is ``''
+(i.e., an empty string),
+but this command returns :: for the global namespace
+as a convenience to programmers.
+
- namespace delete ?namespace namespace ...?
-
+Each namespace namespace is deleted
+and all variables, procedures, and child namespaces
+contained in the namespace are deleted.
+If a procedure is currently executing inside the namespace,
+the namespace will be kept alive until the procedure returns;
+however, the namespace is marked to prevent other code from
+looking it up by name.
+If a namespace doesn't exist, this command returns an error.
+If no namespace names are given, this command does nothing.
+
- namespace eval namespace arg ?arg ...?
-
+Activates a namespace called namespace and evaluates some code
+in that context.
+If the namespace does not already exist, it is created.
+If more than one arg argument is specified,
+the arguments are concatenated together with a space between each one
+in the same fashion as the eval command,
+and the result is evaluated.
+
+
+If namespace has leading namespace qualifiers
+and any leading namespaces do not exist,
+they are automatically created.
+
- namespace export ?-clear? ?pattern pattern ...?
-
+Specifies which commands are exported from a namespace.
+The exported commands are those that can be later imported
+into another namespace using a namespace import command.
+Both commands defined in a namespace and
+commands the namespace has previously imported
+can be exported by a namespace.
+The commands do not have to be defined
+at the time the namespace export command is executed.
+Each pattern may contain glob-style special characters,
+but it may not include any namespace qualifiers.
+That is, the pattern can only specify commands
+in the current (exporting) namespace.
+Each pattern is appended onto the namespace's list of export patterns.
+If the -clear flag is given,
+the namespace's export pattern list is reset to empty before any
+pattern arguments are appended.
+If no patterns are given and the -clear flag isn't given,
+this command returns the namespace's current export list.
+
- namespace forget ?pattern pattern ...?
-
+Removes previously imported commands from a namespace.
+Each pattern is a qualified name such as
+foo::x or a::b::p*.
+Qualified names contain ::s and qualify a name
+with the name of one or more namespaces.
+Each pattern is qualified with the name of an exporting namespace
+and may have glob-style special characters in the command name
+at the end of the qualified name.
+Glob characters may not appear in a namespace name.
+This command first finds the matching exported commands.
+It then checks whether any of those those commands
+were previously imported by the current namespace.
+If so, this command deletes the corresponding imported commands.
+In effect, this un-does the action of a namespace import command.
+
- namespace import ?-force? ?pattern pattern ...?
-
+Imports commands into a namespace.
+Each pattern is a qualified name like
+foo::x or a::p*.
+That is, it includes the name of an exporting namespace
+and may have glob-style special characters in the command name
+at the end of the qualified name.
+Glob characters may not appear in a namespace name.
+All the commands that match a pattern string
+and which are currently exported from their namespace
+are added to the current namespace.
+This is done by creating a new command in the current namespace
+that points to the exported command in its original namespace;
+when the new imported command is called, it invokes the exported command.
+This command normally returns an error
+if an imported command conflicts with an existing command.
+However, if the -force option is given,
+imported commands will silently replace existing commands.
+The namespace import command has snapshot semantics:
+that is, only requested commands that are currently defined
+in the exporting namespace are imported.
+In other words, you can import only the commands that are in a namespace
+at the time when the namespace import command is executed.
+If another command is defined and exported in this namespace later on,
+it will not be imported.
+
- namespace inscope namespace arg ?arg ...?
-
+Executes a script in the context of a particular namespace.
+This command is not expected to be used directly by programmers;
+calls to it are generated implicitly when applications
+use namespace code commands to create callback scripts
+that the applications then register with, e.g., Tk widgets.
+The namespace inscope command is much like the namespace eval
+command except that it has lappend semantics
+and the namespace must already exist.
+It treats the first argument as a list,
+and appends any arguments after the first
+onto the end as proper list elements.
+namespace inscope ::foo a x y z
+is equivalent to
+namespace eval ::foo [concat a [list x y z]]
+This lappend semantics is important because many callback scripts
+are actually prefixes.
+
- namespace origin command
-
+Returns the fully-qualified name of the original command
+to which the imported command command refers.
+When a command is imported into a namespace,
+a new command is created in that namespace
+that points to the actual command in the exporting namespace.
+If a command is imported into a sequence of namespaces
+a, b,...,n where each successive namespace
+just imports the command from the previous namespace,
+this command returns the fully-qualified name of the original command
+in the first namespace, a.
+If command does not refer to an imported command,
+the command's own fully-qualified name is returned.
+
- namespace parent ?namespace?
-
+Returns the fully-qualified name of the parent namespace
+for namespace namespace.
+If namespace is not specified,
+the fully-qualified name of the current namespace's parent is returned.
+
- namespace qualifiers string
-
+Returns any leading namespace qualifiers for string.
+Qualifiers are namespace names separated by ::s.
+For the string ::foo::bar::x,
+this command returns ::foo::bar,
+and for :: it returns an empty string.
+This command is the complement of the namespace tail command.
+Note that it does not check whether the
+namespace names are, in fact,
+the names of currently defined namespaces.
+
- namespace tail string
-
+Returns the simple name at the end of a qualified string.
+Qualifiers are namespace names separated by ::s.
+For the string ::foo::bar::x,
+this command returns x,
+and for :: it returns an empty string.
+This command is the complement of the namespace qualifiers command.
+It does not check whether the namespace names are, in fact,
+the names of currently defined namespaces.
+
- namespace which ?-command? ?-variable? name
-
+Looks up name as either a command or variable
+and returns its fully-qualified name.
+For example, if name does not exist in the current namespace
+but does exist in the global namespace,
+this command returns a fully-qualified name in the global namespace.
+If the command or variable does not exist,
+this command returns an empty string. If the variable has been
+created but not defined, such as with the variable command
+or through a trace on the variable, this command will return the
+fully-qualified name of the variable.
+If no flag is given, name is treated as a command name.
+See the section NAME RESOLUTION below for an explanation of
+the rules regarding name resolution.
+
+
+
+A namespace is a collection of commands and variables.
+It encapsulates the commands and variables to ensure that they
+won't interfere with the commands and variables of other namespaces.
+Tcl has always had one such collection,
+which we refer to as the global namespace.
+The global namespace holds all global variables and commands.
+The namespace eval command lets you create new namespaces.
+For example,
+namespace eval Counter {
+ namespace export bump
+ variable num 0
+
+ proc bump {} {
+ variable num
+ incr num
+ }
+}
+creates a new namespace containing the variable num and
+the procedure bump.
+The commands and variables in this namespace are separate from
+other commands and variables in the same program.
+If there is a command named bump in the global namespace,
+for example, it will be different from the command bump
+in the Counter namespace.
+
+Namespace variables resemble global variables in Tcl.
+They exist outside of the procedures in a namespace
+but can be accessed in a procedure via the variable command,
+as shown in the example above.
+
+Namespaces are dynamic.
+You can add and delete commands and variables at any time,
+so you can build up the contents of a
+namespace over time using a series of namespace eval commands.
+For example, the following series of commands has the same effect
+as the namespace definition shown above:
+
namespace eval Counter {
+ variable num 0
+ proc bump {} {
+ variable num
+ return [incr num]
+ }
+}
+namespace eval Counter {
+ proc test {args} {
+ return $args
+ }
+}
+namespace eval Counter {
+ rename test ""
+}
+Note that the test procedure is added to the Counter namespace,
+and later removed via the rename command.
+
+Namespaces can have other namespaces within them,
+so they nest hierarchically.
+A nested namespace is encapsulated inside its parent namespace
+and can not interfere with other namespaces.
+
+
+Each namespace has a textual name such as
+history or ::safe::interp.
+Since namespaces may nest,
+qualified names are used to refer to
+commands, variables, and child namespaces contained inside namespaces.
+Qualified names are similar to the hierarchical path names for
+Unix files or Tk widgets,
+except that :: is used as the separator
+instead of / or ..
+The topmost or global namespace has the name ``'' (i.e., an empty string),
+although :: is a synonym.
+As an example, the name ::safe::interp::create
+refers to the command create in the namespace interp
+that is a child of of namespace ::safe,
+which in turn is a child of the global namespace ::.
+
+If you want to access commands and variables from another namespace,
+you must use some extra syntax.
+Names must be qualified by the namespace that contains them.
+From the global namespace,
+we might access the Counter procedures like this:
+
Counter::bump 5
+Counter::Reset
+We could access the current count like this:
+puts "count = $Counter::num"
+When one namespace contains another, you may need more than one
+qualifier to reach its elements.
+If we had a namespace Foo that contained the namespace Counter,
+you could invoke its bump procedure
+from the global namespace like this:
+Foo::Counter::bump 3
+
+You can also use qualified names when you create and rename commands.
+For example, you could add a procedure to the Foo
+namespace like this:
+
proc Foo::Test {args} {return $args}
+And you could move the same procedure to another namespace like this:
+rename Foo::Test Bar::Test
+
+There are a few remaining points about qualified names
+that we should cover.
+Namespaces have nonempty names except for the global namespace.
+:: is disallowed in simple command, variable, and namespace names
+except as a namespace separator.
+Extra :s in a qualified name are ignored;
+that is, two or more :s are treated as a namespace separator.
+A trailing :: in a qualified variable or command name
+refers to the variable or command named {}.
+However, a trailing :: in a qualified namespace name is ignored.
+
+
+In general, all Tcl commands that take variable and command names
+support qualified names.
+This means you can give qualified names to such commands as
+set, proc, rename, and interp alias.
+If you provide a fully-qualified name that starts with a ::,
+there is no question about what command, variable, or namespace
+you mean.
+However, if the name does not start with a ::
+(i.e., is relative),
+Tcl follows a fixed rule for looking it up:
+Command and variable names are always resolved
+by looking first in the current namespace,
+and then in the global namespace.
+Namespace names, on the other hand, are always resolved
+by looking in only the current namespace.
+
+In the following example,
+
set traceLevel 0
+namespace eval Debug {
+ printTrace $traceLevel
+}
+Tcl looks for traceLevel in the namespace Debug
+and then in the global namespace.
+It looks up the command printTrace in the same way.
+If a variable or command name is not found in either context,
+the name is undefined.
+To make this point absolutely clear, consider the following example:
+set traceLevel 0
+namespace eval Foo {
+ variable traceLevel 3
+
+ namespace eval Debug {
+ printTrace $traceLevel
+ }
+}
+Here Tcl looks for traceLevel first in the namespace Foo::Debug.
+Since it is not found there, Tcl then looks for it
+in the global namespace.
+The variable Foo::traceLevel is completely ignored
+during the name resolution process.
+
+You can use the namespace which command to clear up any question
+about name resolution.
+For example, the command:
+
namespace eval Foo::Debug {namespace which -variable traceLevel}
+returns ::traceLevel.
+On the other hand, the command,
+namespace eval Foo {namespace which -variable traceLevel}
+returns ::Foo::traceLevel.
+
+As mentioned above,
+namespace names are looked up differently
+than the names of variables and commands.
+Namespace names are always resolved in the current namespace.
+This means, for example,
+that a namespace eval command that creates a new namespace
+always creates a child of the current namespace
+unless the new namespace name begins with a ::.
+
+Tcl has no access control to limit what variables, commands,
+or namespaces you can reference.
+If you provide a qualified name that resolves to an element
+by the name resolution rule above,
+you can access the element.
+
+You can access a namespace variable
+from a procedure in the same namespace
+by using the variable command.
+Much like the global command,
+this creates a local link to the namespace variable.
+If necessary, it also creates the variable in the current namespace
+and initializes it.
+Note that the global command only creates links
+to variables in the global namespace.
+It is not necessary to use a variable command
+if you always refer to the namespace variable using an
+appropriate qualified name.
+
+
+Namespaces are often used to represent libraries.
+Some library commands are used so frequently
+that it is a nuisance to type their qualified names.
+For example, suppose that all of the commands in a package
+like BLT are contained in a namespace called Blt.
+Then you might access these commands like this:
+Blt::graph .g -background red
+Blt::table . .g 0,0
+If you use the graph and table commands frequently,
+you may want to access them without the Blt:: prefix.
+You can do this by importing the commands into the current namespace,
+like this:
+namespace import Blt::*
+This adds all exported commands from the Blt namespace
+into the current namespace context, so you can write code like this:
+graph .g -background red
+table . .g 0,0
+The namespace import command only imports commands
+from a namespace that that namespace exported
+with a namespace export command.
+
+Importing every command from a namespace is generally
+a bad idea since you don't know what you will get.
+It is better to import just the specific commands you need.
+For example, the command
+
namespace import Blt::graph Blt::table
+imports only the graph and table commands into the
+current context.
+
+If you try to import a command that already exists, you will get an
+error. This prevents you from importing the same command from two
+different packages. But from time to time (perhaps when debugging),
+you may want to get around this restriction. You may want to
+reissue the namespace import command to pick up new commands
+that have appeared in a namespace. In that case, you can use the
+-force option, and existing commands will be silently overwritten:
+
namespace import -force Blt::graph Blt::table
+If for some reason, you want to stop using the imported commands,
+you can remove them with an namespace forget command, like this:
+namespace forget Blt::*
+This searches the current namespace for any commands imported from Blt.
+If it finds any, it removes them. Otherwise, it does nothing.
+After this, the Blt commands must be accessed with the Blt::
+prefix.
+
+When you delete a command from the exporting namespace like this:
+
rename Blt::graph ""
+the command is automatically removed from all namespaces that import it.
+
+
+You can export commands from a namespace like this:
+namespace eval Counter {
+ namespace export bump reset
+ variable Num 0
+ variable Max 100
+
+ proc bump {{by 1}} {
+ variable Num
+ incr Num $by
+ Check
+ return $Num
+ }
+ proc reset {} {
+ variable Num
+ set Num 0
+ }
+ proc Check {} {
+ variable Num
+ variable Max
+ if {$Num > $Max} {
+ error "too high!"
+ }
+ }
+}
+The procedures bump and reset are exported,
+so they are included when you import from the Counter namespace,
+like this:
+namespace import Counter::*
+However, the Check procedure is not exported,
+so it is ignored by the import operation.
+
+The namespace import command only imports commands
+that were declared as exported by their namespace.
+The namespace export command specifies what commands
+may be imported by other namespaces.
+If a namespace import command specifies a command
+that is not exported, the command is not imported.
+
+
+variable
+
+exported, internal, variable
+
+Copyright © 1993-1997 Bell Labs Innovations for Lucent Technologies
+Copyright © 1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/open.htm b/hlp/en/tcl/open.htm
new file mode 100644
index 0000000..a5ef82b
--- /dev/null
+++ b/hlp/en/tcl/open.htm
@@ -0,0 +1,275 @@
+Tcl Built-In Commands - open manual page
+
+- NAME
+
- open - Open a file-based or command pipeline channel
+- SYNOPSIS
+
+- open fileName
+
- open fileName access
+
- open fileName access permissions
+
+- DESCRIPTION
+
+- r
+
- r+
+
- w
+
- w+
+
- a
+
- a+
+
+
+- RDONLY
+
- WRONLY
+
- RDWR
+
- APPEND
+
- CREAT
+
- EXCL
+
- NOCTTY
+
- NONBLOCK
+
- TRUNC
+
+- COMMAND PIPELINES
+
- SERIAL COMMUNICATIONS
+
- CONFIGURATION OPTIONS
+
+- -mode baud,parity,data,stop
+
- -pollinterval msec
+
- -lasterror
+
+- PORTABILITY ISSUES
+
+- Windows (all versions)
+
- Windows NT
+
- Windows 95
+
- Macintosh
+
- Unix
+
+- SEE ALSO
+
- KEYWORDS
+
+
+open - Open a file-based or command pipeline channel
+
+open fileName
+open fileName access
+open fileName access permissions
+
+This command opens a file, serial port, or command pipeline and returns a
+channel identifier that may be used in future invocations of commands like
+read, puts, and close.
+If the first character of fileName is not | then
+the command opens a file:
+fileName gives the name of the file to open, and it must conform to the
+conventions described in the filename manual entry.
+
+The access argument, if present, indicates the way in which the file
+(or command pipeline) is to be accessed.
+In the first form access may have any of the following values:
+
+
+- r
-
+Open the file for reading only; the file must already exist. This is the
+default value if access is not specified.
+
- r+
-
+Open the file for both reading and writing; the file must
+already exist.
+
- w
-
+Open the file for writing only. Truncate it if it exists. If it doesn't
+exist, create a new file.
+
- w+
-
+Open the file for reading and writing. Truncate it if it exists.
+If it doesn't exist, create a new file.
+
- a
-
+Open the file for writing only. If the file doesn't exist,
+create a new empty file.
+Set the initial access position to the end of the file.
+
- a+
-
+Open the file for reading and writing. If the file doesn't exist,
+create a new empty file.
+Set the initial access position to the end of the file.
+
+
+In the second form, access consists of a list of any of the
+following flags, all of which have the standard POSIX meanings.
+One of the flags must be either RDONLY, WRONLY or RDWR.
+
+
+- RDONLY
-
+Open the file for reading only.
+
- WRONLY
-
+Open the file for writing only.
+
- RDWR
-
+Open the file for both reading and writing.
+
- APPEND
-
+Set the file pointer to the end of the file prior to each write.
+
- CREAT
-
+Create the file if it doesn't already exist (without this flag it
+is an error for the file not to exist).
+
- EXCL
-
+If CREAT is also specified, an error is returned if the
+file already exists.
+
- NOCTTY
-
+If the file is a terminal device, this flag prevents the file from
+becoming the controlling terminal of the process.
+
- NONBLOCK
-
+Prevents the process from blocking while opening the file, and
+possibly in subsequent I/O operations. The exact behavior of
+this flag is system- and device-dependent; its use is discouraged
+(it is better to use the fconfigure command to put a file
+in nonblocking mode).
+For details refer to your system documentation on the open system
+call's O_NONBLOCK flag.
+
- TRUNC
-
+If the file exists it is truncated to zero length.
+
+
+If a new file is created as part of opening it, permissions
+(an integer) is used to set the permissions for the new file in
+conjunction with the process's file mode creation mask.
+Permissions defaults to 0666.
+
+Note that if you are going to be reading or writing binary data from
+the channel created by this command, you should use the
+fconfigure command to change the -translation option of
+the channel to binary before transferring any binary data. This
+is in contrast to the ``b'' character passed as part of the equivalent
+of the access parameter to some versions of the C library
+fopen() function.
+
+If the first character of fileName is ``|'' then the
+remaining characters of fileName are treated as a list of arguments
+that describe a command pipeline to invoke, in the same style as the
+arguments for exec.
+In this case, the channel identifier returned by open may be used
+to write to the command's input pipe or read from its output pipe,
+depending on the value of access.
+If write-only access is used (e.g. access is w), then
+standard output for the pipeline is directed to the current standard
+output unless overridden by the command.
+If read-only access is used (e.g. access is r),
+standard input for the pipeline is taken from the current standard
+input unless overridden by the command.
+
+If fileName refers to a serial port, then the specified serial port
+is opened and initialized in a platform-dependent manner. Acceptable
+values for the fileName to use to open a serial port are described in
+the PORTABILITY ISSUES section.
+
+
+The fconfigure command can be used to query and set the following
+configuration option for open serial ports:
+
+
+- -mode baud,parity,data,stop
-
+This option is a set of 4 comma-separated values: the baud rate, parity,
+number of data bits, and number of stop bits for this serial port. The
+baud rate is a simple integer that specifies the connection speed.
+Parity is one of the following letters: n, o, e,
+m, s; respectively signifying the parity options of ``none'',
+``odd'', ``even'', ``mark'', or ``space''. Data is the number of
+data bits and should be an integer from 5 to 8, while stop is the
+number of stop bits and should be the integer 1 or 2.
+
- -pollinterval msec
-
+This option, available only on Windows for serial ports, is used to
+set the maximum time between polling for fileevents. This affects the
+time interval between checking for events throughout the Tcl
+interpreter (the smallest value always wins). Use this option only if
+you want to poll the serial port more often than 10 msec (the default).
+
- -lasterror
-
+This option is available only on Windows for serial ports, and is
+query only (will only be reported when directly requested).
+In case of a serial communication error, read or puts
+returns a general Tcl file I/O error.
+fconfigure -lasterror can be called to get a list
+of error details (e.g. FRAME RXOVER).
+
+
+
+
+
+
+- Windows (all versions)
-
+Valid values for fileName to open a serial port are of the form
+comX:, where X is a number, generally from 1 to 4.
+This notation only works for serial ports from 1 to 9, if the system
+happens to have more than four. An attempt to open a serial port that
+does not exist or has a number greater than 9 will fail. An alternate
+form of opening serial ports is to use the filename \\.\comX,
+where X is any number that corresponds to a serial port; please note
+that this method is considerably slower on Windows 95 and Windows 98.
+
- Windows NT
-
+When running Tcl interactively, there may be some strange interactions
+between the real console, if one is present, and a command pipeline that uses
+standard input or output. If a command pipeline is opened for reading, some
+of the lines entered at the console will be sent to the command pipeline and
+some will be sent to the Tcl evaluator. If a command pipeline is opened for
+writing, keystrokes entered into the console are not visible until the the
+pipe is closed. This behavior occurs whether the command pipeline is
+executing 16-bit or 32-bit applications. These problems only occur because
+both Tcl and the child application are competing for the console at
+the same time. If the command pipeline is started from a script, so that Tcl
+is not accessing the console, or if the command pipeline does not use
+standard input or output, but is redirected from or to a file, then the
+above problems do not occur.
+
- Windows 95
-
+A command pipeline that executes a 16-bit DOS application cannot be opened
+for both reading and writing, since 16-bit DOS applications that receive
+standard input from a pipe and send standard output to a pipe run
+synchronously. Command pipelines that do not execute 16-bit DOS
+applications run asynchronously and can be opened for both reading and
+writing.
+
+When running Tcl interactively, there may be some strange interactions
+between the real console, if one is present, and a command pipeline that uses
+standard input or output. If a command pipeline is opened for reading from
+a 32-bit application, some of the keystrokes entered at the console will be
+sent to the command pipeline and some will be sent to the Tcl evaluator. If
+a command pipeline is opened for writing to a 32-bit application, no output
+is visible on the console until the the pipe is closed. These problems only
+occur because both Tcl and the child application are competing for the
+console at the same time. If the command pipeline is started from a script,
+so that Tcl is not accessing the console, or if the command pipeline does
+not use standard input or output, but is redirected from or to a file, then
+the above problems do not occur.
+
+Whether or not Tcl is running interactively, if a command pipeline is opened
+for reading from a 16-bit DOS application, the call to open will not
+return until end-of-file has been received from the command pipeline's
+standard output. If a command pipeline is opened for writing to a 16-bit DOS
+application, no data will be sent to the command pipeline's standard output
+until the pipe is actually closed. This problem occurs because 16-bit DOS
+applications are run synchronously, as described above.
+
- Macintosh
-
+Opening a serial port is not currently implemented under Macintosh.
+
+Opening a command pipeline is not supported under Macintosh, since
+applications do not support the concept of standard input or output.
+
- Unix
-
+Valid values for fileName to open a serial port are generally of the
+form /dev/ttyX, where X is a or b, but the name
+of any pseudo-file that maps to a serial port may be used.
+
+When running Tcl interactively, there may be some strange interactions
+between the console, if one is present, and a command pipeline that uses
+standard input. If a command pipeline is opened for reading, some
+of the lines entered at the console will be sent to the command pipeline and
+some will be sent to the Tcl evaluator. This problem only occurs because
+both Tcl and the child application are competing for the console at the
+same time. If the command pipeline is started from a script, so that Tcl is
+not accessing the console, or if the command pipeline does not use standard
+input, but is redirected from a file, then the above problem does not occur.
+
+
+See the PORTABILITY ISSUES section of the exec command for additional
+information not specific to command pipelines about executing
+applications on the various platforms
+
+
+file, close, filename, fconfigure, gets, read, puts, exec, fopen
+
+access mode, append, create, file, non-blocking, open, permissions, pipeline, process, serial
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/package.htm b/hlp/en/tcl/package.htm
new file mode 100644
index 0000000..4d0ce65
--- /dev/null
+++ b/hlp/en/tcl/package.htm
@@ -0,0 +1,208 @@
+Tcl Built-In Commands - package manual page
+
+- NAME
+
- package - Facilities for package loading and version control
+- SYNOPSIS
+
+- package forget ?package package ...?
+
- package ifneeded package version ?script?
+
- package names
+
- package present ?-exact? package ?version?
+
- package provide package ?version?
+
- package require ?-exact? package ?version?
+
- package unknown ?command?
+
- package vcompare version1 version2
+
- package versions package
+
- package vsatisfies version1 version2
+
+- DESCRIPTION
+
+- package forget ?package package ...?
+
- package ifneeded package version ?script?
+
- package names
+
- package present ?-exact? package ?version?
+
- package provide package ?version?
+
- package require ?-exact? package ?version?
+
- package unknown ?command?
+
- package vcompare version1 version2
+
- package versions package
+
- package vsatisfies version1 version2
+
+- VERSION NUMBERS
+
- PACKAGE INDICES
+
- SEE ALSO
+
- KEYWORDS
+
+
+package - Facilities for package loading and version control
+
+package forget ?package package ...?
+package ifneeded package version ?script?
+package names
+package present ?-exact? package ?version?
+package provide package ?version?
+package require ?-exact? package ?version?
+package unknown ?command?
+package vcompare version1 version2
+package versions package
+package vsatisfies version1 version2
+
+This command keeps a simple database of the packages available for
+use by the current interpreter and how to load them into the
+interpreter.
+It supports multiple versions of each package and arranges
+for the correct version of a package to be loaded based on what
+is needed by the application.
+This command also detects and reports version clashes.
+Typically, only the package require and package provide
+commands are invoked in normal Tcl scripts; the other commands are used
+primarily by system scripts that maintain the package database.
+
+The behavior of the package command is determined by its first argument.
+The following forms are permitted:
+
+
+- package forget ?package package ...?
-
+Removes all information about each specified package from this interpreter,
+including information provided by both package ifneeded and
+package provide.
+
- package ifneeded package version ?script?
-
+This command typically appears only in system configuration
+scripts to set up the package database.
+It indicates that a particular version of
+a particular package is available if needed, and that the package
+can be added to the interpreter by executing script.
+The script is saved in a database for use by subsequent
+package require commands; typically, script
+sets up auto-loading for the commands in the package (or calls
+load and/or source directly), then invokes
+package provide to indicate that the package is present.
+There may be information in the database for several different
+versions of a single package.
+If the database already contains information for package
+and version, the new script replaces the existing
+one.
+If the script argument is omitted, the current script for
+version version of package package is returned,
+or an empty string if no package ifneeded command has
+been invoked for this package and version.
+
- package names
-
+Returns a list of the names of all packages in the
+interpreter for which a version has been provided (via
+package provide) or for which a package ifneeded
+script is available.
+The order of elements in the list is arbitrary.
+
- package present ?-exact? package ?version?
-
+This command is equivalent to package require except that it
+does not try and load the package if it is not already loaded.
+
- package provide package ?version?
-
+This command is invoked to indicate that version version
+of package package is now present in the interpreter.
+It is typically invoked once as part of an ifneeded script,
+and again by the package itself when it is finally loaded.
+An error occurs if a different version of package has been
+provided by a previous package provide command.
+If the version argument is omitted, then the command
+returns the version number that is currently provided, or an
+empty string if no package provide command has been
+invoked for package in this interpreter.
+
- package require ?-exact? package ?version?
-
+This command is typically invoked by Tcl code that wishes to use
+a particular version of a particular package. The arguments
+indicate which package is wanted, and the command ensures that
+a suitable version of the package is loaded into the interpreter.
+If the command succeeds, it returns the version number that is
+loaded; otherwise it generates an error.
+If both the -exact
+switch and the version argument are specified then only the
+given version is acceptable. If -exact is omitted but
+version is specified, then versions later than version
+are also acceptable as long as they have the same major version
+number as version.
+If both -exact and version are omitted then any
+version whatsoever is acceptable.
+If a version of package has already been provided (by invoking
+the package provide command), then its version number must
+satisfy the criteria given by -exact and version and
+the command returns immediately.
+Otherwise, the command searches the database of information provided by
+previous package ifneeded commands to see if an acceptable
+version of the package is available.
+If so, the script for the highest acceptable version number is invoked;
+it must do whatever is necessary to load the package,
+including calling package provide for the package.
+If the package ifneeded database does not contain an acceptable
+version of the package and a package unknown command has been
+specified for the interpreter then that command is invoked; when
+it completes, Tcl checks again to see if the package is now provided
+or if there is a package ifneeded script for it.
+If all of these steps fail to provide an acceptable version of the
+package, then the command returns an error.
+
- package unknown ?command?
-
+This command supplies a ``last resort'' command to invoke during
+package require if no suitable version of a package can be found
+in the package ifneeded database.
+If the command argument is supplied, it contains the first part
+of a command; when the command is invoked during a package require
+command, Tcl appends two additional arguments giving the desired package
+name and version.
+For example, if command is foo bar and later the command
+package require test 2.4 is invoked, then Tcl will execute
+the command foo bar test 2.4 to load the package.
+If no version number is supplied to the package require command,
+then the version argument for the invoked command will be an empty string.
+If the package unknown command is invoked without a command
+argument, then the current package unknown script is returned,
+or an empty string if there is none.
+If command is specified as an empty string, then the current
+package unknown script is removed, if there is one.
+
- package vcompare version1 version2
-
+Compares the two version numbers given by version1 and version2.
+Returns -1 if version1 is an earlier version than version2,
+0 if they are equal, and 1 if version1 is later than version2.
+
- package versions package
-
+Returns a list of all the version numbers of package
+for which information has been provided by package ifneeded
+commands.
+
- package vsatisfies version1 version2
-
+Returns 1 if scripts written for version2 will work unchanged
+with version1 (i.e. version1 is equal to or greater
+than version2 and they both have the same major version
+number), 0 otherwise.
+
+
+
+Version numbers consist of one or more decimal numbers separated
+by dots, such as 2 or 1.162 or 3.1.13.1.
+The first number is called the major version number.
+Larger numbers correspond to later versions of a package, with
+leftmost numbers having greater significance.
+For example, version 2.1 is later than 1.3 and version
+3.4.6 is later than 3.3.5.
+Missing fields are equivalent to zeroes: version 1.3 is the
+same as version 1.3.0 and 1.3.0.0, so it is earlier than 1.3.1 or 1.3.0.2.
+A later version number is assumed to be upwards compatible with
+an earlier version number as long as both versions have the same
+major version number.
+For example, Tcl scripts written for version 2.3 of a package should
+work unchanged under versions 2.3.2, 2.4, and 2.5.1.
+Changes in the major version number signify incompatible changes:
+if code is written to use version 2.1 of a package, it is not guaranteed
+to work unmodified with either version 1.7.3 or version 3.1.
+
+
+The recommended way to use packages in Tcl is to invoke package require
+and package provide commands in scripts, and use the procedure
+pkg_mkIndex to create package index files.
+Once you've done this, packages will be loaded automatically
+in response to package require commands.
+See the documentation for pkg_mkIndex for details.
+
+
+msgcat, packagens, pkgMkIndex
+
+package, version
+
+Copyright © 1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/packagens.htm b/hlp/en/tcl/packagens.htm
new file mode 100644
index 0000000..d080e82
--- /dev/null
+++ b/hlp/en/tcl/packagens.htm
@@ -0,0 +1,64 @@
+Tcl Built-In Commands - pkg::create manual page
+
+- NAME
+
- pkg::create - Construct an appropriate package ifneeded
+command for a given package specification
+- SYNOPSIS
+
+- ::pkg::create -name packageName -version packageVersion ?-load filespec? ... ?-source filespec? ...
+
+- DESCRIPTION
+
- OPTIONS
+
+- -name packageName
+
- -version packageVersion
+
- -load filespec
+
- -source filespec
+
+- SEE ALSO
+
- KEYWORDS
+
+
+pkg::create - Construct an appropriate package ifneeded
+command for a given package specification
+
+::pkg::create -name packageName -version packageVersion ?-load filespec? ... ?-source filespec? ...
+
+::pkg::create is a utility procedure that is part of the standard Tcl
+library. It is used to create an appropriate package ifneeded
+command for a given package specification. It can be used to construct a
+pkgIndex.tcl file for use with the package mechanism.
+
+
+The parameters supported are:
+
+
+- -name packageName
-
+This parameter specifies the name of the package. It is required.
+
- -version packageVersion
-
+This parameter specifies the version of the package. It is required.
+
- -load filespec
-
+This parameter specifies a binary library that must be loaded with the
+load command. filespec is a list with two elements. The
+first element is the name of the file to load. The second, optional
+element is a list of commands supplied by loading that file. If the
+list of procedures is empty or omitted, ::pkg::create will
+set up the library for direct loading (see pkg_mkIndex). Any
+number of -load parameters may be specified.
+
- -source filespec
-
+This parameter is similar to the -load parameter, except that it
+specifies a Tcl library that must be loaded with the
+source command. Any number of -source parameters may be
+specified.
+
+
+At least one -load or -source paramter must be given.
+
+
+package
+
+auto-load, index, package, version
+
+Copyright © 1998-2000 by Scriptics Corporation.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/pid.htm b/hlp/en/tcl/pid.htm
new file mode 100644
index 0000000..3144d2c
--- /dev/null
+++ b/hlp/en/tcl/pid.htm
@@ -0,0 +1,26 @@
+Tcl Built-In Commands - pid manual page
+
+pid - Retrieve process id(s)
+
+pid ?fileId?
+
+If the fileId argument is given then it should normally
+refer to a process pipeline created with the open command.
+In this case the pid command will return a list whose elements
+are the process identifiers of all the processes in the pipeline,
+in order.
+The list will be empty if fileId refers to an open file
+that isn't a process pipeline.
+If no fileId argument is given then pid returns the process
+identifier of the current process.
+All process identifiers are returned as decimal strings.
+
+
+exec, open
+
+file, pipeline, process identifier
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/pkgMkIndex.htm b/hlp/en/tcl/pkgMkIndex.htm
new file mode 100644
index 0000000..e99b1e4
--- /dev/null
+++ b/hlp/en/tcl/pkgMkIndex.htm
@@ -0,0 +1,245 @@
+Tcl Built-In Commands - pkg_mkIndex manual page
+
+- NAME
+
- pkg_mkIndex - Build an index for automatic loading of packages
+- SYNOPSIS
+
+- pkg_mkIndex ?-direct? ?-lazy? ?-load pkgPat? ?-verbose? dir ?pattern pattern ...?
+
+- DESCRIPTION
+
+
+- OPTIONS
+
+- -direct
+
- -lazy
+
- -load pkgPat
+
- -verbose
+
- --
+
+- PACKAGES AND THE AUTO-LOADER
+
- HOW IT WORKS
+
- DIRECT LOADING
+
- COMPLEX CASES
+
- SEE ALSO
+
- KEYWORDS
+
+
+pkg_mkIndex - Build an index for automatic loading of packages
+
+pkg_mkIndex ?-direct? ?-lazy? ?-load pkgPat? ?-verbose? dir ?pattern pattern ...?
+
+Pkg_mkIndex is a utility procedure that is part of the standard
+Tcl library.
+It is used to create index files that allow packages to be loaded
+automatically when package require commands are executed.
+To use pkg_mkIndex, follow these steps:
+
+
+- [1]
-
+Create the package(s).
+Each package may consist of one or more Tcl script files or binary files.
+Binary files must be suitable for loading with the load command
+with a single argument; for example, if the file is test.so it must
+be possible to load this file with the command load test.so.
+Each script file must contain a package provide command to declare
+the package and version number, and each binary file must contain
+a call to Tcl_PkgProvide.
+
- [2]
-
+Create the index by invoking pkg_mkIndex.
+The dir argument gives the name of a directory and each
+pattern argument is a glob-style pattern that selects
+script or binary files in dir.
+The default pattern is *.tcl and *.[info sharedlibextension].
+
+Pkg_mkIndex will create a file pkgIndex.tcl in dir
+with package information about all the files given by the pattern
+arguments.
+It does this by loading each file into a slave
+interpreter and seeing what packages
+and new commands appear (this is why it is essential to have
+package provide commands or Tcl_PkgProvide calls
+in the files, as described above).
+If you have a package split among scripts and binary files,
+or if you have dependencies among files,
+you may have to use the -load option
+or adjust the order in which pkg_mkIndex processes
+the files. See COMPLEX CASES below.
+
+ - [3]
-
+Install the package as a subdirectory of one of the directories given by
+the tcl_pkgPath variable. If $tcl_pkgPath contains more
+than one directory, machine-dependent packages (e.g., those that
+contain binary shared libraries) should normally be installed
+under the first directory and machine-independent packages (e.g.,
+those that contain only Tcl scripts) should be installed under the
+second directory.
+The subdirectory should include
+the package's script and/or binary files as well as the pkgIndex.tcl
+file. As long as the package is installed as a subdirectory of a
+directory in $tcl_pkgPath it will automatically be found during
+package require commands.
+
+If you install the package anywhere else, then you must ensure that
+the directory containing the package is in the auto_path global variable
+or an immediate subdirectory of one of the directories in auto_path.
+Auto_path contains a list of directories that are searched
+by both the auto-loader and the package loader; by default it
+includes $tcl_pkgPath.
+The package loader also checks all of the subdirectories of the
+directories in auto_path.
+You can add a directory to auto_path explicitly in your
+application, or you can add the directory to your TCLLIBPATH
+environment variable: if this environment variable is present,
+Tcl initializes auto_path from it during application startup.
+ - [4]
-
+Once the above steps have been taken, all you need to do to use a
+package is to invoke package require.
+For example, if versions 2.1, 2.3, and 3.1 of package Test
+have been indexed by pkg_mkIndex, the command
+package require Test will make version 3.1 available
+and the command package require -exact Test 2.1 will
+make version 2.1 available.
+There may be many versions of a package in the various index files
+in auto_path, but only one will actually be loaded in a given
+interpreter, based on the first call to package require.
+Different versions of a package may be loaded in different
+interpreters.
+
+
+
+The optional switches are:
+
+
+- -direct
-
+The generated index will implement direct loading of the package
+upon package require. This is the default.
+
- -lazy
-
+The generated index will manage to delay loading the package until the
+use of one of the commands provided by the package, instead of loading
+it immediately upon package require.
+
- -load pkgPat
-
+The index process will pre-load any packages that exist in the
+current interpreter and match pkgPat into the slave interpreter used to
+generate the index. The pattern match uses string match rules.
+See COMPLEX CASES below.
+
- -verbose
-
+Generate output during the indexing process. Output is via
+the tclLog procedure, which by default prints to stderr.
+
- --
-
+End of the flags, in case dir begins with a dash.
+
+
+
+The package management facilities overlap somewhat with the auto-loader,
+in that both arrange for files to be loaded on-demand.
+However, package management is a higher-level mechanism that uses
+the auto-loader for the last step in the loading process.
+It is generally better to index a package with pkg_mkIndex
+rather than auto_mkindex because the package mechanism provides
+version control: several versions of a package can be made available
+in the index files, with different applications using different
+versions based on package require commands.
+In contrast, auto_mkindex does not understand versions so
+it can only handle a single version of each package.
+It is probably not a good idea to index a given package with both
+pkg_mkIndex and auto_mkindex.
+If you use pkg_mkIndex to index a package, its commands cannot
+be invoked until package require has been used to select a
+version; in contrast, packages indexed with auto_mkindex
+can be used immediately since there is no version control.
+
+
+Pkg_mkIndex depends on the package unknown command,
+the package ifneeded command, and the auto-loader.
+The first time a package require command is invoked,
+the package unknown script is invoked.
+This is set by Tcl initialization to a script that
+evaluates all of the pkgIndex.tcl files in the
+auto_path.
+The pkgIndex.tcl files contain package ifneeded
+commands for each version of each available package; these commands
+invoke package provide commands to announce the
+availability of the package, and they setup auto-loader
+information to load the files of the package.
+If the -lazy flag was provided when the pkgIndex.tcl
+was generated,
+a given file of a given version of a given package isn't
+actually loaded until the first time one of its commands
+is invoked.
+Thus, after invoking package require you may
+not see the package's commands in the interpreter, but you will be able
+to invoke the commands and they will be auto-loaded.
+
+
+Some packages, for instance packages which use namespaces and export
+commands or those which require special initialization, might select
+that their package files be loaded immediately upon package require
+instead of delaying the actual loading to the first use of one of the
+package's command. This is the default mode when generating the package
+index. It can be overridden by specifying the -lazy argument.
+
+
+Most complex cases of dependencies among scripts
+and binary files, and packages being split among scripts and
+binary files are handled OK. However, you may have to adjust
+the order in which files are processed by pkg_mkIndex.
+These issues are described in detail below.
+
+If each script or file contains one package, and packages
+are only contained in one file, then things are easy.
+You simply specify all files to be indexed in any order
+with some glob patterns.
+
+In general, it is OK for scripts to have dependencies on other
+packages.
+If scripts contain package require commands, these are
+stubbed out in the interpreter used to process the scripts,
+so these do not cause problems.
+If scripts call into other packages in global code,
+these calls are handled by a stub unknown command.
+However, if scripts make variable references to other package's
+variables in global code, these will cause errors. That is
+also bad coding style.
+
+If binary files have dependencies on other packages, things
+can become tricky because it is not possible to stub out
+C-level API's such as Tcl_PkgRequire API
+when loading a binary file.
+For example, suppose the BLT package requires Tk, and expresses
+this with a call to Tcl_PkgRequire in its Blt_Init routine.
+To support this, you must run pkg_mkIndex in an interpreter that
+has Tk loaded. You can achieve this with the
+-load pkgPat option. If you specify this option,
+pkg_mkIndex will load any packages listed by
+info loaded and that match pkgPat
+into the interpreter used to process files.
+In most cases this will satisfy the Tcl_PkgRequire calls
+made by binary files.
+
+If you are indexing two binary files and one depends on the other,
+you should specify the one that has dependencies last.
+This way the one without dependencies will get loaded and indexed,
+and then the package it provides
+will be available when the second file is processed.
+You may also need to load the first package into the
+temporary interpreter used to create the index by using
+the -load flag;
+it won't hurt to specify package patterns that are not yet loaded.
+
+If you have a package that is split across scripts and a binary file,
+then you should avoid the -load flag. The problem is that
+if you load a package before computing the index it masks any
+other files that provide part of the same package.
+If you must use -load,
+then you must specify the scripts first; otherwise the package loaded from
+the binary file may mask the package defined by the scripts.
+
+
+package
+
+auto-load, index, package, version
+
+Copyright © 1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/proc.htm b/hlp/en/tcl/proc.htm
new file mode 100644
index 0000000..a379c3e
--- /dev/null
+++ b/hlp/en/tcl/proc.htm
@@ -0,0 +1,66 @@
+Built-In Commands - proc manual page
+
+proc - Create a Tcl procedure
+
+proc name args body
+
+The proc command creates a new Tcl procedure named
+name, replacing
+any existing command or procedure there may have been by that name.
+Whenever the new command is invoked, the contents of body will
+be executed by the Tcl interpreter.
+Normally, name is unqualified
+(does not include the names of any containing namespaces),
+and the new procedure is created in the current namespace.
+If name includes any namespace qualifiers,
+the procedure is created in the specified namespace.
+Args specifies the formal arguments to the
+procedure. It consists of a list, possibly empty, each of whose
+elements specifies
+one argument. Each argument specifier is also a list with either
+one or two fields. If there is only a single field in the specifier
+then it is the name of the argument; if there are two fields, then
+the first is the argument name and the second is its default value.
+
+When name is invoked a local variable
+will be created for each of the formal arguments to the procedure; its
+value will be the value of corresponding argument in the invoking command
+or the argument's default value.
+Arguments with default values need not be
+specified in a procedure invocation. However, there must be enough
+actual arguments for all the
+formal arguments that don't have defaults, and there must not be any extra
+actual arguments. There is one special case to permit procedures with
+variable numbers of arguments. If the last formal argument has the name
+args, then a call to the procedure may contain more actual arguments
+than the procedure has formals. In this case, all of the actual arguments
+starting at the one that would be assigned to args are combined into
+a list (as if the list command had been used); this combined value
+is assigned to the local variable args.
+
+When body is being executed, variable names normally refer to
+local variables, which are created automatically when referenced and
+deleted when the procedure returns. One local variable is automatically
+created for each of the procedure's arguments.
+Global variables can only be accessed by invoking
+the global command or the upvar command.
+Namespace variables can only be accessed by invoking
+the variable command or the upvar command.
+
+The proc command returns an empty string. When a procedure is
+invoked, the procedure's return value is the value specified in a
+return command. If the procedure doesn't execute an explicit
+return, then its return value is the value of the last command
+executed in the procedure's body.
+If an error occurs while executing the procedure
+body, then the procedure-as-a-whole will return that same error.
+
+
+info, unknown
+
+argument, procedure
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/puts.htm b/hlp/en/tcl/puts.htm
new file mode 100644
index 0000000..1f5c466
--- /dev/null
+++ b/hlp/en/tcl/puts.htm
@@ -0,0 +1,58 @@
+Tcl Built-In Commands - puts manual page
+
+puts - Write to a channel
+
+puts ?-nonewline? ?channelId? string
+
+Writes the characters given by string to the channel given
+by channelId.
+ChannelId must be a channel identifier such as returned from a
+previous invocation of open or socket. It must have been opened
+for output. If no channelId is specified then it defaults to
+stdout. Puts normally outputs a newline character after
+string, but this feature may be suppressed by specifying the
+-nonewline switch.
+
+Newline characters in the output are translated by puts to
+platform-specific end-of-line sequences according to the current
+value of the -translation option for the channel (for example,
+on PCs newlines are normally replaced with carriage-return-linefeed
+sequences; on Macintoshes newlines are normally replaced with
+carriage-returns).
+See the fconfigure manual entry for a discussion on ways in
+which fconfigure will alter output.
+
+Tcl buffers output internally, so characters written with puts
+may not appear immediately on the output file or device; Tcl will
+normally delay output until the buffer is full or the channel is
+closed.
+You can force output to appear immediately with the flush
+command.
+
+When the output buffer fills up, the puts command will normally
+block until all the buffered data has been accepted for output by the
+operating system.
+If channelId is in nonblocking mode then the puts command
+will not block even if the operating system cannot accept the data.
+Instead, Tcl continues to buffer the data and writes it in the
+background as fast as the underlying file or device can accept it.
+The application must use the Tcl event loop for nonblocking output
+to work; otherwise Tcl never finds out that the file or device is
+ready for more output data.
+It is possible for an arbitrarily large amount of data to be
+buffered for a channel in nonblocking mode, which could consume a
+large amount of memory.
+To avoid wasting memory, nonblocking I/O should normally
+be used in an event-driven fashion with the fileevent command
+(don't invoke puts unless you have recently been notified
+via a file event that the channel is ready for more output data).
+
+
+file, fileevent
+
+channel, newline, output, write
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/pwd.htm b/hlp/en/tcl/pwd.htm
new file mode 100644
index 0000000..98713a8
--- /dev/null
+++ b/hlp/en/tcl/pwd.htm
@@ -0,0 +1,17 @@
+Built-In Commands - pwd manual page
+
+pwd - Return the current working directory
+
+pwd
+
+Returns the path name of the current working directory.
+
+
+file, cd, glob, filename
+
+working directory
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/re_syntax.htm b/hlp/en/tcl/re_syntax.htm
new file mode 100644
index 0000000..1714c8b
--- /dev/null
+++ b/hlp/en/tcl/re_syntax.htm
@@ -0,0 +1,941 @@
+Tcl Built-In Commands - re_syntax manual page
+
+- NAME
+
- re_syntax - Syntax of Tcl regular expressions.
+- DESCRIPTION
+
- DIFFERENT FLAVORS OF REs
+
- REGULAR EXPRESSION SYNTAX
+
+- *
+
- +
+
- ?
+
- {m}
+
- {m,}
+
- {m,n}
+
- *? +? ?? {m}? {m,}? {m,n}?
+
+
+- (re)
+
- (?:re)
+
- ()
+
- (?:)
+
- [chars]
+
- .
+
- \k
+
- \c
+
- {
+
- x
+
+
+- ^
+
- $
+
- (?=re)
+
- (?!re)
+
+- BRACKET EXPRESSIONS
+
- ESCAPES
+
+- \a
+
- \b
+
- \B
+
- \cX
+
- \e
+
- \f
+
- \n
+
- \r
+
- \t
+
- \uwxyz
+
- \Ustuvwxyz
+
- \v
+
- \xhhh
+
- \0
+
- \xy
+
- \xyz
+
+
+- \d
+
- \s
+
- \w
+
- \D
+
- \S
+
- \W
+
+
+- \A
+
- \m
+
- \M
+
- \y
+
- \Y
+
- \Z
+
- \m
+
- \mnn
+
+- METASYNTAX
+
+- b
+
- c
+
- e
+
- i
+
- m
+
- n
+
- p
+
- q
+
- s
+
- t
+
- w
+
- x
+
+- MATCHING
+
- LIMITS AND COMPATIBILITY
+
- BASIC REGULAR EXPRESSIONS
+
- SEE ALSO
+
- KEYWORDS
+
+
+re_syntax - Syntax of Tcl regular expressions.
+
+A regular expression describes strings of characters.
+It's a pattern that matches certain strings and doesn't match others.
+
+
+Regular expressions (``RE''s), as defined by POSIX, come in two
+flavors: extended REs (``EREs'') and basic REs (``BREs'').
+EREs are roughly those of the traditional egrep, while BREs are
+roughly those of the traditional ed. This implementation adds
+a third flavor, advanced REs (``AREs''), basically EREs with
+some significant extensions.
+
+This manual page primarily describes AREs. BREs mostly exist for
+backward compatibility in some old programs; they will be discussed at
+the end. POSIX EREs are almost an exact subset of AREs. Features of
+AREs that are not present in EREs will be indicated.
+
+
+Tcl regular expressions are implemented using the package written by
+Henry Spencer, based on the 1003.2 spec and some (not quite all) of
+the Perl5 extensions (thanks, Henry!). Much of the description of
+regular expressions below is copied verbatim from his manual entry.
+
+An ARE is one or more branches,
+separated by `|',
+matching anything that matches any of the branches.
+
+A branch is zero or more constraints or quantified atoms,
+concatenated.
+It matches a match for the first, followed by a match for the second, etc;
+an empty branch matches the empty string.
+
+A quantified atom is an atom possibly followed
+by a single quantifier.
+Without a quantifier, it matches a match for the atom.
+The quantifiers,
+and what a so-quantified atom matches, are:
+
+
+- *
-
+a sequence of 0 or more matches of the atom
+
- +
-
+a sequence of 1 or more matches of the atom
+
- ?
-
+a sequence of 0 or 1 matches of the atom
+
- {m}
-
+a sequence of exactly m matches of the atom
+
- {m,}
-
+a sequence of m or more matches of the atom
+
- {m,n}
-
+a sequence of m through n (inclusive) matches of the atom;
+m may not exceed n
+
- *? +? ?? {m}? {m,}? {m,n}?
-
+non-greedy quantifiers,
+which match the same possibilities,
+but prefer the smallest number rather than the largest number
+of matches (see MATCHING)
+
+
+The forms using
+{ and }
+are known as bounds.
+The numbers
+m and n are unsigned decimal integers
+with permissible values from 0 to 255 inclusive.
+
+An atom is one of:
+
+
+- (re)
-
+(where re is any regular expression)
+matches a match for
+re, with the match noted for possible reporting
+
- (?:re)
-
+as previous,
+but does no reporting
+(a ``non-capturing'' set of parentheses)
+
- ()
-
+matches an empty string,
+noted for possible reporting
+
- (?:)
-
+matches an empty string,
+without reporting
+
- [chars]
-
+a bracket expression,
+matching any one of the chars (see BRACKET EXPRESSIONS for more detail)
+
- .
-
+matches any single character
+
- \k
-
+(where k is a non-alphanumeric character)
+matches that character taken as an ordinary character,
+e.g. \\ matches a backslash character
+
- \c
-
+where c is alphanumeric
+(possibly followed by other characters),
+an escape (AREs only),
+see ESCAPES below
+
- {
-
+when followed by a character other than a digit,
+matches the left-brace character `{';
+when followed by a digit, it is the beginning of a
+bound (see above)
+
- x
-
+where x is
+a single character with no other significance, matches that character.
+
+
+A constraint matches an empty string when specific conditions
+are met.
+A constraint may not be followed by a quantifier.
+The simple constraints are as follows; some more constraints are
+described later, under ESCAPES.
+
+
+- ^
-
+matches at the beginning of a line
+
- $
-
+matches at the end of a line
+
- (?=re)
-
+positive lookahead (AREs only), matches at any point
+where a substring matching re begins
+
- (?!re)
-
+negative lookahead (AREs only), matches at any point
+where no substring matching re begins
+
+
+The lookahead constraints may not contain back references (see later),
+and all parentheses within them are considered non-capturing.
+
+An RE may not end with `\'.
+
+
+A bracket expression is a list of characters enclosed in `[ ]'.
+It normally matches any single character from the list (but see below).
+If the list begins with `^',
+it matches any single character
+(but see below) not from the rest of the list.
+
+If two characters in the list are separated by `-',
+this is shorthand
+for the full range of characters between those two (inclusive) in the
+collating sequence,
+e.g.
+[0-9]
+in ASCII matches any decimal digit.
+Two ranges may not share an
+endpoint, so e.g.
+a-c-e
+is illegal.
+Ranges are very collating-sequence-dependent,
+and portable programs should avoid relying on them.
+
+To include a literal
+]
+or
+-
+in the list,
+the simplest method is to
+enclose it in
+[. and .]
+to make it a collating element (see below).
+Alternatively,
+make it the first character
+(following a possible `^'),
+or (AREs only) precede it with `\'.
+Alternatively, for `-',
+make it the last character,
+or the second endpoint of a range.
+To use a literal
+-
+as the first endpoint of a range,
+make it a collating element
+or (AREs only) precede it with `\'.
+With the exception of these, some combinations using
+[
+(see next
+paragraphs), and escapes,
+all other special characters lose their
+special significance within a bracket expression.
+
+Within a bracket expression, a collating element (a character,
+a multi-character sequence that collates as if it were a single character,
+or a collating-sequence name for either)
+enclosed in
+[. and .]
+stands for the
+sequence of characters of that collating element.
+The sequence is a single element of the bracket expression's list.
+A bracket expression in a locale that has
+multi-character collating elements
+can thus match more than one character.
+So (insidiously), a bracket expression that starts with ^
+can match multi-character collating elements even if none of them
+appear in the bracket expression!
+(Note: Tcl currently has no multi-character collating elements.
+This information is only for illustration.)
+
+For example, assume the collating sequence includes a ch
+multi-character collating element.
+Then the RE [[.ch.]]*c (zero or more ch's followed by c)
+matches the first five characters of `chchcc'.
+Also, the RE [^c]b matches all of `chb'
+(because [^c] matches the multi-character ch).
+
+Within a bracket expression, a collating element enclosed in
+[=
+and
+=]
+is an equivalence class, standing for the sequences of characters
+of all collating elements equivalent to that one, including itself.
+(If there are no other equivalent collating elements,
+the treatment is as if the enclosing delimiters were `[.'
+and `.]'.)
+For example, if
+o
+and
+ô
+are the members of an equivalence class,
+then `[[=o=]]', `[[=ô=]]',
+and `[oô]'
+are all synonymous.
+An equivalence class may not be an endpoint
+of a range.
+(Note:
+Tcl currently implements only the Unicode locale.
+It doesn't define any equivalence classes.
+The examples above are just illustrations.)
+
+Within a bracket expression, the name of a character class enclosed
+in
+[:
+and
+:]
+stands for the list of all characters
+(not all collating elements!)
+belonging to that
+class.
+Standard character classes are:
+
+
-
+alpha A letter.
+upper An upper-case letter.
+lower A lower-case letter.
+digit A decimal digit.
+xdigit A hexadecimal digit.
+alnum An alphanumeric (letter or digit).
+print An alphanumeric (same as alnum).
+blank A space or tab character.
+space A character producing white space in displayed text.
+punct A punctuation character.
+graph A character with a visible representation.
+cntrl A control character.
+
+
+A locale may provide others.
+(Note that the current Tcl implementation has only one locale:
+the Unicode locale.)
+A character class may not be used as an endpoint of a range.
+
+There are two special cases of bracket expressions:
+the bracket expressions
+[[:<:]]
+and
+[[:>:]]
+are constraints, matching empty strings at
+the beginning and end of a word respectively.
+A word is defined as a sequence of
+word characters
+that is neither preceded nor followed by
+word characters.
+A word character is an
+alnum
+character
+or an underscore
+(_).
+These special bracket expressions are deprecated;
+users of AREs should use constraint escapes instead (see below).
+
+Escapes (AREs only), which begin with a
+\
+followed by an alphanumeric character,
+come in several varieties:
+character entry, class shorthands, constraint escapes, and back references.
+A
+\
+followed by an alphanumeric character but not constituting
+a valid escape is illegal in AREs.
+In EREs, there are no escapes:
+outside a bracket expression,
+a
+\
+followed by an alphanumeric character merely stands for that
+character as an ordinary character,
+and inside a bracket expression,
+\
+is an ordinary character.
+(The latter is the one actual incompatibility between EREs and AREs.)
+
+Character-entry escapes (AREs only) exist to make it easier to specify
+non-printing and otherwise inconvenient characters in REs:
+
+
+- \a
-
+alert (bell) character, as in C
+
- \b
-
+backspace, as in C
+
- \B
-
+synonym for
+\
+to help reduce backslash doubling in some
+applications where there are multiple levels of backslash processing
+
- \cX
-
+(where X is any character) the character whose
+low-order 5 bits are the same as those of
+X,
+and whose other bits are all zero
+
- \e
-
+the character whose collating-sequence name
+is `ESC',
+or failing that, the character with octal value 033
+
- \f
-
+formfeed, as in C
+
- \n
-
+newline, as in C
+
- \r
-
+carriage return, as in C
+
- \t
-
+horizontal tab, as in C
+
- \uwxyz
-
+(where
+wxyz
+is exactly four hexadecimal digits)
+the Unicode character
+U+wxyz
+in the local byte ordering
+
- \Ustuvwxyz
-
+(where
+stuvwxyz
+is exactly eight hexadecimal digits)
+reserved for a somewhat-hypothetical Unicode extension to 32 bits
+
- \v
-
+vertical tab, as in C
+are all available.
+
- \xhhh
-
+(where
+hhh
+is any sequence of hexadecimal digits)
+the character whose hexadecimal value is
+0xhhh
+(a single character no matter how many hexadecimal digits are used).
+
- \0
-
+the character whose value is
+0
+
- \xy
-
+(where
+xy
+is exactly two octal digits,
+and is not a
+back reference (see below))
+the character whose octal value is
+0xy
+
- \xyz
-
+(where
+xyz
+is exactly three octal digits,
+and is not a
+back reference (see below))
+the character whose octal value is
+0xyz
+
+
+Hexadecimal digits are `0'-`9', `a'-`f',
+and `A'-`F'.
+Octal digits are `0'-`7'.
+
+The character-entry escapes are always taken as ordinary characters.
+For example,
+\135
+is
+]
+in ASCII,
+but
+\135
+does not terminate a bracket expression.
+Beware, however, that some applications (e.g., C compilers) interpret
+such sequences themselves before the regular-expression package
+gets to see them, which may require doubling (quadrupling, etc.) the `\'.
+
+Class-shorthand escapes (AREs only) provide shorthands for certain commonly-used
+character classes:
+
+
+- \d
-
+[[:digit:]]
+
- \s
-
+[[:space:]]
+
- \w
-
+[[:alnum:]_]
+(note underscore)
+
- \D
-
+[^[:digit:]]
+
- \S
-
+[^[:space:]]
+
- \W
-
+[^[:alnum:]_]
+(note underscore)
+
+
+Within bracket expressions, `\d', `\s',
+and `\w'
+lose their outer brackets,
+and `\D', `\S',
+and `\W'
+are illegal.
+(So, for example, [a-c\d] is equivalent to [a-c[:digit:]].
+Also, [a-c\D], which is equivalent to [a-c^[:digit:]], is illegal.)
+
+A constraint escape (AREs only) is a constraint,
+matching the empty string if specific conditions are met,
+written as an escape:
+
+
+- \A
-
+matches only at the beginning of the string
+(see MATCHING, below, for how this differs from `^')
+
- \m
-
+matches only at the beginning of a word
+
- \M
-
+matches only at the end of a word
+
- \y
-
+matches only at the beginning or end of a word
+
- \Y
-
+matches only at a point that is not the beginning or end of a word
+
- \Z
-
+matches only at the end of the string
+(see MATCHING, below, for how this differs from `$')
+
- \m
-
+(where
+m
+is a nonzero digit) a back reference, see below
+
- \mnn
-
+(where
+m
+is a nonzero digit, and
+nn
+is some more digits,
+and the decimal value
+mnn
+is not greater than the number of closing capturing parentheses seen so far)
+a back reference, see below
+
+
+A word is defined as in the specification of
+[[:<:]]
+and
+[[:>:]]
+above.
+Constraint escapes are illegal within bracket expressions.
+
+A back reference (AREs only) matches the same string matched by the parenthesized
+subexpression specified by the number,
+so that (e.g.)
+([bc])\1
+matches
+bb
+or
+cc
+but not `bc'.
+The subexpression must entirely precede the back reference in the RE.
+Subexpressions are numbered in the order of their leading parentheses.
+Non-capturing parentheses do not define subexpressions.
+
+There is an inherent historical ambiguity between octal character-entry
+escapes and back references, which is resolved by heuristics,
+as hinted at above.
+A leading zero always indicates an octal escape.
+A single non-zero digit, not followed by another digit,
+is always taken as a back reference.
+A multi-digit sequence not starting with a zero is taken as a back
+reference if it comes after a suitable subexpression
+(i.e. the number is in the legal range for a back reference),
+and otherwise is taken as octal.
+
+In addition to the main syntax described above, there are some special
+forms and miscellaneous syntactic facilities available.
+
+Normally the flavor of RE being used is specified by
+application-dependent means.
+However, this can be overridden by a director.
+If an RE of any flavor begins with `***:',
+the rest of the RE is an ARE.
+If an RE of any flavor begins with `***=',
+the rest of the RE is taken to be a literal string,
+with all characters considered ordinary characters.
+
+An ARE may begin with embedded options:
+a sequence
+(?xyz)
+(where
+xyz
+is one or more alphabetic characters)
+specifies options affecting the rest of the RE.
+These supplement, and can override,
+any options specified by the application.
+The available option letters are:
+
+
+- b
-
+rest of RE is a BRE
+
- c
-
+case-sensitive matching (usual default)
+
- e
-
+rest of RE is an ERE
+
- i
-
+case-insensitive matching (see MATCHING, below)
+
- m
-
+historical synonym for
+n
+
- n
-
+newline-sensitive matching (see MATCHING, below)
+
- p
-
+partial newline-sensitive matching (see MATCHING, below)
+
- q
-
+rest of RE is a literal (``quoted'') string, all ordinary characters
+
- s
-
+non-newline-sensitive matching (usual default)
+
- t
-
+tight syntax (usual default; see below)
+
- w
-
+inverse partial newline-sensitive (``weird'') matching (see MATCHING, below)
+
- x
-
+expanded syntax (see below)
+
+
+Embedded options take effect at the
+)
+terminating the sequence.
+They are available only at the start of an ARE,
+and may not be used later within it.
+
+In addition to the usual (tight) RE syntax, in which all characters are
+significant, there is an expanded syntax,
+available in all flavors of RE
+with the -expanded switch, or in AREs with the embedded x option.
+In the expanded syntax,
+white-space characters are ignored
+and all characters between a
+#
+and the following newline (or the end of the RE) are ignored,
+permitting paragraphing and commenting a complex RE.
+There are three exceptions to that basic rule:
+
-
+
+a white-space character or `#' preceded by `\' is retained
+
+white space or `#' within a bracket expression is retained
+
+white space and comments are illegal within multi-character symbols
+like the ARE `(?:' or the BRE `\('
+
+
+Expanded-syntax white-space characters are blank, tab, newline, and
+any character that belongs to the space character class.
+
+Finally, in an ARE,
+outside bracket expressions, the sequence `(?#ttt)'
+(where
+ttt
+is any text not containing a `)')
+is a comment,
+completely ignored.
+Again, this is not allowed between the characters of
+multi-character symbols like `(?:'.
+Such comments are more a historical artifact than a useful facility,
+and their use is deprecated;
+use the expanded syntax instead.
+
+None of these metasyntax extensions is available if the application
+(or an initial
+***=
+director)
+has specified that the user's input be treated as a literal string
+rather than as an RE.
+
+In the event that an RE could match more than one substring of a given
+string,
+the RE matches the one starting earliest in the string.
+If the RE could match more than one substring starting at that point,
+its choice is determined by its preference:
+either the longest substring, or the shortest.
+
+Most atoms, and all constraints, have no preference.
+A parenthesized RE has the same preference (possibly none) as the RE.
+A quantified atom with quantifier
+{m}
+or
+{m}?
+has the same preference (possibly none) as the atom itself.
+A quantified atom with other normal quantifiers (including
+{m,n}
+with
+m
+equal to
+n)
+prefers longest match.
+A quantified atom with other non-greedy quantifiers (including
+{m,n}?
+with
+m
+equal to
+n)
+prefers shortest match.
+A branch has the same preference as the first quantified atom in it
+which has a preference.
+An RE consisting of two or more branches connected by the
+|
+operator prefers longest match.
+
+Subject to the constraints imposed by the rules for matching the whole RE,
+subexpressions also match the longest or shortest possible substrings,
+based on their preferences,
+with subexpressions starting earlier in the RE taking priority over
+ones starting later.
+Note that outer subexpressions thus take priority over
+their component subexpressions.
+
+Note that the quantifiers
+{1,1}
+and
+{1,1}?
+can be used to force longest and shortest preference, respectively,
+on a subexpression or a whole RE.
+
+Match lengths are measured in characters, not collating elements.
+An empty string is considered longer than no match at all.
+For example,
+bb*
+matches the three middle characters of `abbbc',
+(week|wee)(night|knights)
+matches all ten characters of `weeknights',
+when
+(.*).*
+is matched against
+abc
+the parenthesized subexpression
+matches all three characters, and
+when
+(a*)*
+is matched against
+bc
+both the whole RE and the parenthesized
+subexpression match an empty string.
+
+If case-independent matching is specified,
+the effect is much as if all case distinctions had vanished from the
+alphabet.
+When an alphabetic that exists in multiple cases appears as an
+ordinary character outside a bracket expression, it is effectively
+transformed into a bracket expression containing both cases,
+so that
+x
+becomes `[xX]'.
+When it appears inside a bracket expression, all case counterparts
+of it are added to the bracket expression, so that
+[x]
+becomes
+[xX]
+and
+[^x]
+becomes `[^xX]'.
+
+If newline-sensitive matching is specified, .
+and bracket expressions using
+^
+will never match the newline character
+(so that matches will never cross newlines unless the RE
+explicitly arranges it)
+and
+^
+and
+$
+will match the empty string after and before a newline
+respectively, in addition to matching at beginning and end of string
+respectively.
+ARE
+\A
+and
+\Z
+continue to match beginning or end of string only.
+
+If partial newline-sensitive matching is specified,
+this affects .
+and bracket expressions
+as with newline-sensitive matching, but not
+^
+and `$'.
+
+If inverse partial newline-sensitive matching is specified,
+this affects
+^
+and
+$
+as with
+newline-sensitive matching,
+but not .
+and bracket expressions.
+This isn't very useful but is provided for symmetry.
+
+No particular limit is imposed on the length of REs.
+Programs intended to be highly portable should not employ REs longer
+than 256 bytes,
+as a POSIX-compliant implementation can refuse to accept such REs.
+
+The only feature of AREs that is actually incompatible with
+POSIX EREs is that
+\
+does not lose its special
+significance inside bracket expressions.
+All other ARE features use syntax which is illegal or has
+undefined or unspecified effects in POSIX EREs;
+the
+***
+syntax of directors likewise is outside the POSIX
+syntax for both BREs and EREs.
+
+Many of the ARE extensions are borrowed from Perl, but some have
+been changed to clean them up, and a few Perl extensions are not present.
+Incompatibilities of note include `\b', `\B',
+the lack of special treatment for a trailing newline,
+the addition of complemented bracket expressions to the things
+affected by newline-sensitive matching,
+the restrictions on parentheses and back references in lookahead constraints,
+and the longest/shortest-match (rather than first-match) matching semantics.
+
+The matching rules for REs containing both normal and non-greedy quantifiers
+have changed since early beta-test versions of this package.
+(The new rules are much simpler and cleaner,
+but don't work as hard at guessing the user's real intentions.)
+
+Henry Spencer's original 1986 regexp package,
+still in widespread use (e.g., in pre-8.1 releases of Tcl),
+implemented an early version of today's EREs.
+There are four incompatibilities between regexp's near-EREs
+(`RREs' for short) and AREs.
+In roughly increasing order of significance:
+
+
-
+In AREs,
+\
+followed by an alphanumeric character is either an
+escape or an error,
+while in RREs, it was just another way of writing the
+alphanumeric.
+This should not be a problem because there was no reason to write
+such a sequence in RREs.
+
+{
+followed by a digit in an ARE is the beginning of a bound,
+while in RREs,
+{
+was always an ordinary character.
+Such sequences should be rare,
+and will often result in an error because following characters
+will not look like a valid bound.
+
+In AREs,
+\
+remains a special character within `[ ]',
+so a literal
+\
+within
+[ ]
+must be written `\\'.
+\\
+also gives a literal
+\
+within
+[ ]
+in RREs,
+but only truly paranoid programmers routinely doubled the backslash.
+
+AREs report the longest/shortest match for the RE,
+rather than the first found in a specified search order.
+This may affect some RREs which were written in the expectation that
+the first match would be reported.
+(The careful crafting of RREs to optimize the search order for fast
+matching is obsolete (AREs examine all possible matches
+in parallel, and their performance is largely insensitive to their
+complexity) but cases where the search order was exploited to deliberately
+find a match which was not the longest/shortest will need rewriting.)
+
+
+BREs differ from EREs in several respects. `|', `+',
+and
+?
+are ordinary characters and there is no equivalent
+for their functionality.
+The delimiters for bounds are
+\{
+and `\}',
+with
+{
+and
+}
+by themselves ordinary characters.
+The parentheses for nested subexpressions are
+\(
+and `\)',
+with
+(
+and
+)
+by themselves ordinary characters.
+^
+is an ordinary character except at the beginning of the
+RE or the beginning of a parenthesized subexpression,
+$
+is an ordinary character except at the end of the
+RE or the end of a parenthesized subexpression,
+and
+*
+is an ordinary character if it appears at the beginning of the
+RE or the beginning of a parenthesized subexpression
+(after a possible leading `^').
+Finally,
+single-digit back references are available,
+and
+\<
+and
+\>
+are synonyms for
+[[:<:]]
+and
+[[:>:]]
+respectively;
+no other escapes are available.
+
+
+RegExp, regexp, regsub, lsearch, switch, text
+
+match, regular expression, string
+
+Copyright © 1998 Sun Microsystems, Inc.
+Copyright © 1999 Scriptics Corporation
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/read.htm b/hlp/en/tcl/read.htm
new file mode 100644
index 0000000..b99663e
--- /dev/null
+++ b/hlp/en/tcl/read.htm
@@ -0,0 +1,44 @@
+Tcl Built-In Commands - read manual page
+
+read - Read from a channel
+
+read ?-nonewline? channelId
+read channelId numChars
+
+In the first form, the read command reads all of the data from
+channelId up to the end of the file.
+If the -nonewline switch is specified then the last character
+of the file is discarded if it is a newline.
+In the second form, the extra argument specifies how many characters to
+read. Exactly that many characters will be read and returned, unless
+there are fewer than numChars left in the file; in this case
+all the remaining characters are returned. If the channel is
+configured to use a multi-byte encoding, then the number of characters
+read may not be the same as the number of bytes read.
+
+If channelId is in nonblocking mode, the command may not read as
+many characters as requested: once all available input has been read,
+the command will return the data that is available rather than
+blocking for more input. If the channel is configured to use a
+multi-byte encoding, then there may actually be some bytes remaining
+in the internal buffers that do not form a complete character. These
+bytes will not be returned until a complete character is available or
+end-of-file is reached.
+The -nonewline switch is ignored if the command returns
+before reaching the end of the file.
+
+Read translates end-of-line sequences in the input into
+newline characters according to the -translation option
+for the channel.
+See the fconfigure manual entry for a discussion on ways in
+which fconfigure will alter input.
+
+
+file, eof, fblocked, fconfigure
+
+blocking, channel, end of line, end of file, nonblocking, read, translation, encoding
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/regexp.htm b/hlp/en/tcl/regexp.htm
new file mode 100644
index 0000000..e907341
--- /dev/null
+++ b/hlp/en/tcl/regexp.htm
@@ -0,0 +1,133 @@
+Tcl Built-In Commands - regexp manual page
+
+- NAME
+
- regexp - Match a regular expression against a string
+- SYNOPSIS
+
+- regexp ?switches? exp string ?matchVar? ?subMatchVar subMatchVar ...?
+
+- DESCRIPTION
+
+- -about
+
- -expanded
+
- -indices
+
- -line
+
- -linestop
+
- -lineanchor
+
- -nocase
+
- -all
+
- -inline
+
- -start index
+
- - -
+
+- SEE ALSO
+
- KEYWORDS
+
+
+regexp - Match a regular expression against a string
+
+regexp ?switches? exp string ?matchVar? ?subMatchVar subMatchVar ...?
+
+Determines whether the regular expression exp matches part or
+all of string and returns 1 if it does, 0 if it doesn't, unless
+-inline is specified (see below).
+(Regular expression matching is described in the re_syntax
+reference page.)
+
+If additional arguments are specified after string then they
+are treated as the names of variables in which to return
+information about which part(s) of string matched exp.
+MatchVar will be set to the range of string that
+matched all of exp. The first subMatchVar will contain
+the characters in string that matched the leftmost parenthesized
+subexpression within exp, the next subMatchVar will
+contain the characters that matched the next parenthesized
+subexpression to the right in exp, and so on.
+
+If the initial arguments to regexp start with - then
+they are treated as switches. The following switches are
+currently supported:
+
+
+- -about
-
+Instead of attempting to match the regular expression, returns a list
+containing information about the regular expression. The first
+element of the list is a subexpression count. The second element is a
+list of property names that describe various attributes of the regular
+expression. This switch is primarily intended for debugging purposes.
+
- -expanded
-
+Enables use of the expanded regular expression syntax where
+whitespace and comments are ignored. This is the same as specifying
+the (?x) embedded option (see METASYNTAX, below).
+
- -indices
-
+Changes what is stored in the subMatchVars.
+Instead of storing the matching characters from string,
+each variable
+will contain a list of two decimal strings giving the indices
+in string of the first and last characters in the matching
+range of characters.
+
- -line
-
+Enables newline-sensitive matching. By default, newline is a
+completely ordinary character with no special meaning. With this
+flag, `[^' bracket expressions and `.' never match newline, `^'
+matches an empty string after any newline in addition to its normal
+function, and `$' matches an empty string before any newline in
+addition to its normal function. This flag is equivalent to
+specifying both -linestop and -lineanchor, or the
+(?n) embedded option (see METASYNTAX, below).
+
- -linestop
-
+Changes the behavior of `[^' bracket expressions and `.' so that they
+stop at newlines. This is the same as specifying the (?p)
+embedded option (see METASYNTAX, below).
+
- -lineanchor
-
+Changes the behavior of `^' and `$' (the ``anchors'') so they match the
+beginning and end of a line respectively. This is the same as
+specifying the (?w) embedded option (see METASYNTAX, below).
+
- -nocase
-
+Causes upper-case characters in string to be treated as
+lower case during the matching process.
+
- -all
-
+Causes the regular expression to be matched as many times as possible
+in the string, returning the total number of matches found. If this
+is specified with match variables, they will continue information for
+the last match only.
+
- -inline
-
+Causes the command to return, as a list, the data that would otherwise
+be placed in match variables. When using -inline,
+match variables may not be specified. If used with -all, the
+list will be concatenated at each iteration, such that a flat list is
+always returned. For each match iteration, the command will append the
+overall match data, plus one element for each subexpression in the
+regular expression. Examples are:
+
regexp -inline -- {\w(\w)} " inlined "
+ => {in n}
+ regexp -all -inline -- {\w(\w)} " inlined "
+ => {in n li i ne e}
+ - -start index
-
+Specifies a character index offset into the string to start
+matching the regular expression at. When using this switch, `^'
+will not match the beginning of the line, and \A will still
+match the start of the string at index. If -indices
+is specified, the indices will be indexed starting from the
+absolute beginning of the input string.
+index will be constrained to the bounds of the input string.
+
- - -
-
+Marks the end of switches. The argument following this one will
+be treated as exp even if it starts with a -.
+
+
+If there are more subMatchVar's than parenthesized
+subexpressions within exp, or if a particular subexpression
+in exp doesn't match the string (e.g. because it was in a
+portion of the expression that wasn't matched), then the corresponding
+subMatchVar will be set to ``-1 -1'' if -indices
+has been specified or to an empty string otherwise.
+
+
+re_syntax, regsub
+
+match, regular expression, string
+
+Copyright © 1998 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/registry.htm b/hlp/en/tcl/registry.htm
new file mode 100644
index 0000000..e0245e9
--- /dev/null
+++ b/hlp/en/tcl/registry.htm
@@ -0,0 +1,163 @@
+Tcl Built-In Commands - registry manual page
+
+- NAME
+
- registry - Manipulate the Windows registry
+- SYNOPSIS
+
+- package require registry 1.0
+
- registry option keyName ?arg arg ...?
+
+- DESCRIPTION
+
+- registry delete keyName ?valueName?
+
- registry get keyName valueName
+
- registry keys keyName ?pattern?
+
- registry set keyName ?valueName data ?type??
+
- registry type keyName valueName
+
- registry values keyName ?pattern?
+
+- SUPPORTED TYPES
+
+- binary
+
- none
+
- sz
+
- expand_sz
+
- dword
+
- dword_big_endian
+
- link
+
- multi_sz
+
- resource_list
+
+- PORTABILITY ISSUES
+
- KEYWORDS
+
+
+registry - Manipulate the Windows registry
+
+package require registry 1.0
+registry option keyName ?arg arg ...?
+
+The registry package provides a general set of operations for
+manipulating the Windows registry. The package implements the
+registry Tcl command. This command is only supported on the
+Windows platform. Warning: this command should be used with caution
+as a corrupted registry can leave your system in an unusable state.
+
+KeyName is the name of a registry key. Registry keys must be
+one of the following forms:
+
-
+\\hostname\rootname\keypath
+
+rootname\keypath
+
+rootname
+
+
+Hostname specifies the name of any valid Windows
+host that exports its registry. The rootname component must be
+one of HKEY_LOCAL_MACHINE, HKEY_USERS,
+HKEY_CLASSES_ROOT, HKEY_CURRENT_USER,
+HKEY_CURRENT_CONFIG, HKEY_PERFORMANCE_DATA, or
+HKEY_DYN_DATA. The keypath can be one or more
+registry key names separated by backslash (\) characters.
+
+Option indicates what to do with the registry key name. Any
+unique abbreviation for option is acceptable. The valid options
+are:
+
+
+- registry delete keyName ?valueName?
-
+If the optional valueName argument is present, the specified
+value under keyName will be deleted from the registry. If the
+optional valueName is omitted, the specified key and any subkeys
+or values beneath it in the registry heirarchy will be deleted. If
+the key could not be deleted then an error is generated. If the key
+did not exist, the command has no effect.
+
- registry get keyName valueName
-
+Returns the data associated with the value valueName under the key
+keyName. If either the key or the value does not exist, then an
+error is generated. For more details on the format of the returned
+data, see SUPPORTED TYPES, below.
+
- registry keys keyName ?pattern?
-
+If pattern isn't specified, returns a list of names of all the
+subkeys of keyName. If pattern is specified, only those
+names matching pattern are returned. Matching is determined
+using the same rules as for string match. If the
+specified keyName does not exist, then an error is generated.
+
- registry set keyName ?valueName data ?type??
-
+If valueName isn't specified, creates the key keyName if
+it doesn't already exist. If valueName is specified, creates
+the key keyName and value valueName if necessary. The
+contents of valueName are set to data with the type
+indicated by type. If type isn't specified, the type
+sz is assumed. For more details on the data and type arguments,
+see SUPPORTED TYPES below.
+
- registry type keyName valueName
-
+Returns the type of the value valueName in the key
+keyName. For more information on the possible types, see
+SUPPORTED TYPES, below.
+
- registry values keyName ?pattern?
-
+If pattern isn't specified, returns a list of names of all the
+values of keyName. If pattern is specified, only those
+names matching pattern are returned. Matching is determined
+using the same rules as for string match.
+
+
+
+Each value under a key in the registry contains some data of a
+particular type in a type-specific representation. The registry
+command converts between this internal representation and one that can
+be manipulated by Tcl scripts. In most cases, the data is simply
+returned as a Tcl string. The type indicates the intended use for the
+data, but does not actually change the representation. For some
+types, the registry command returns the data in a different form to
+make it easier to manipulate. The following types are recognized by the
+registry command:
+
+
+- binary
-
+The registry value contains arbitrary binary data. The data is represented
+exactly in Tcl, including any embedded nulls.
+
- none
-
+The registry value contains arbitrary binary data with no defined
+type. The data is represented exactly in Tcl, including any embedded
+nulls.
+
- sz
-
+The registry value contains a null-terminated string. The data is
+represented in Tcl as a string.
+
- expand_sz
-
+The registry value contains a null-terminated string that contains
+unexpanded references to environment variables in the normal Windows
+style (for example, "%PATH%"). The data is represented in Tcl as a
+string.
+
- dword
-
+The registry value contains a little-endian 32-bit number. The data is
+represented in Tcl as a decimal string.
+
- dword_big_endian
-
+The registry value contains a big-endian 32-bit number. The data is
+represented in Tcl as a decimal string.
+
- link
-
+The registry value contains a symbolic link. The data is represented
+exactly in Tcl, including any embedded nulls.
+
- multi_sz
-
+The registry value contains an array of null-terminated strings. The
+data is represented in Tcl as a list of strings.
+
- resource_list
-
+The registry value contains a device-driver resource list. The data
+is represented exactly in Tcl, including any embedded nulls.
+
+
+In addition to the symbolically named types listed above, unknown
+types are identified using a 32-bit integer that corresponds to the
+type code returned by the system interfaces. In this case, the data
+is represented exactly in Tcl, including any embedded nulls.
+
+
+The registry command is only available on Windows.
+
+
+registry
+
+Copyright © 1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/regsub.htm b/hlp/en/tcl/regsub.htm
new file mode 100644
index 0000000..74d183d
--- /dev/null
+++ b/hlp/en/tcl/regsub.htm
@@ -0,0 +1,115 @@
+Tcl Built-In Commands - regsub manual page
+
+- NAME
+
- regsub - Perform substitutions based on regular expression pattern matching
+- SYNOPSIS
+
+- regsub ?switches? exp string subSpec varName
+
+- DESCRIPTION
+
+- -all
+
- -expanded
+
- -line
+
- -linestop
+
- -lineanchor
+
- -nocase
+
- -start index
+
- - -
+
+- SEE ALSO
+
- KEYWORDS
+
+
+regsub - Perform substitutions based on regular expression pattern matching
+
+regsub ?switches? exp string subSpec varName
+
+This command matches the regular expression exp against
+string,
+and it copies string to the variable whose name is
+given by varName.
+(Regular expression matching is described in the re_syntax
+reference page.)
+If there is a match, then while copying string to varName
+the portion of string that
+matched exp is replaced with subSpec.
+If subSpec contains a ``&'' or ``\0'', then it is replaced
+in the substitution with the portion of string that
+matched exp.
+If subSpec contains a ``\n'', where n is a digit
+between 1 and 9, then it is replaced in the substitution with
+the portion of string that matched the n-th
+parenthesized subexpression of exp.
+Additional backslashes may be used in subSpec to prevent special
+interpretation of ``&'' or ``\0'' or ``\n'' or
+backslash.
+The use of backslashes in subSpec tends to interact badly
+with the Tcl parser's use of backslashes, so it's generally
+safest to enclose subSpec in braces if it includes
+backslashes.
+
+If the initial arguments to regexp start with - then
+they are treated as switches. The following switches are
+currently supported:
+
+
+- -all
-
+All ranges in string that match exp are found and
+substitution is performed for each of these ranges.
+Without this switch only the first
+matching range is found and substituted.
+If -all is specified, then ``&'' and ``\n''
+sequences are handled for each substitution using the information
+from the corresponding match.
+
- -expanded
-
+Enables use of the expanded regular expression syntax where
+whitespace and comments are ignored. This is the same as specifying
+the (?x) embedded option (see METASYNTAX, below).
+
- -line
-
+Enables newline-sensitive matching. By default, newline is a
+completely ordinary character with no special meaning. With this
+flag, `[^' bracket expressions and `.' never match newline, `^'
+matches an empty string after any newline in addition to its normal
+function, and `$' matches an empty string before any newline in
+addition to its normal function. This flag is equivalent to
+specifying both -linestop and -lineanchor, or the
+(?n) embedded option (see METASYNTAX, below).
+
- -linestop
-
+Changes the behavior of `[^' bracket expressions and `.' so that they
+stop at newlines. This is the same as specifying the (?p)
+embedded option (see METASYNTAX, below).
+
- -lineanchor
-
+Changes the behavior of `^' and `$' (the ``anchors'') so they match the
+beginning and end of a line respectively. This is the same as
+specifying the (?w) embedded option (see METASYNTAX, below).
+
- -nocase
-
+Upper-case characters in string will be converted to lower-case
+before matching against exp; however, substitutions specified
+by subSpec use the original unconverted form of string.
+
- -start index
-
+Specifies a character index offset into the string to start
+matching the regular expression at. When using this switch, `^'
+will not match the beginning of the line, and \A will still
+match the start of the string at index.
+index will be constrained to the bounds of the input string.
+
- - -
-
+Marks the end of switches. The argument following this one will
+be treated as exp even if it starts with a -.
+
+
+The command returns a count of the number of matching ranges that
+were found and replaced.
+See the manual entry for regexp for details on the interpretation
+of regular expressions.
+
+
+regexp, re_syntax
+
+match, pattern, regular expression, substitute
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 2000 Scriptics Corporation.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/rename.htm b/hlp/en/tcl/rename.htm
new file mode 100644
index 0000000..812d0ea
--- /dev/null
+++ b/hlp/en/tcl/rename.htm
@@ -0,0 +1,24 @@
+Built-In Commands - rename manual page
+
+rename - Rename or delete a command
+
+rename oldName newName
+
+Rename the command that used to be called oldName so that it
+is now called newName.
+If newName is an empty string then oldName is deleted.
+oldName and newName may include namespace qualifiers
+(names of containing namespaces).
+If a command is renamed into a different namespace,
+future invocations of it will execute in the new namespace.
+The rename command returns an empty string as result.
+
+
+namespace, proc
+
+command, delete, namespace, rename
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/resource.htm b/hlp/en/tcl/resource.htm
new file mode 100644
index 0000000..ec4e7e6
--- /dev/null
+++ b/hlp/en/tcl/resource.htm
@@ -0,0 +1,169 @@
+Tcl Built-In Commands - resource manual page
+
+- NAME
+
- resource - Manipulate Macintosh resources
+- SYNOPSIS
+
+- resource option ?arg arg ...?
+
+- DESCRIPTION
+
+- resource close rsrcRef
+
- resource delete ?options? resourceType
+
+- -id resourceId
+
- -name resourceName
+
- -file resourceRef
+
+- resource files ?resourceRef?
+
- resource list resourceType ?resourceRef?
+
- resource open fileName ?access?
+
- resource read resourceType resourceId ?resourceRef?
+
- resource types ?resourceRef?
+
- resource write ?options? resourceType data
+
+- -id resourceId
+
- -name resourceName
+
- -file resourceRef
+
- -force
+
+
+- RESOURCE TYPES
+
- RESOURCE IDS
+
- PORTABILITY ISSUES
+
- SEE ALSO
+
- KEYWORDS
+
+
+resource - Manipulate Macintosh resources
+
+resource option ?arg arg ...?
+
+The resource command provides some generic operations for
+dealing with Macintosh resources. This command is only supported on
+the Macintosh platform. Each Macintosh file consists of two
+forks: a data fork and a resource fork. You use the
+normal open, puts, close, etc. commands to manipulate the data fork.
+You must use this command, however, to interact with the resource
+fork. Option indicates what resource command to perform. Any
+unique abbreviation for option is acceptable. The valid options
+are:
+
+
+- resource close rsrcRef
-
+Closes the given resource reference (obtained from resource
+open). Resources from that resource file will no longer be
+available.
+
- resource delete ?options? resourceType
-
+This command will delete the resource specified by options and
+type resourceType (see RESOURCE TYPES below). The options
+give you several ways to specify the resource to be deleted.
+
+
+- -id resourceId
-
+If the -id option is given the id resourceId (see RESOURCE
+IDS below) is used to specify the resource to be deleted. The id must
+be a number - to specify a name use the -name option.
+
- -name resourceName
-
+If -name is specified, the resource named
+resourceName will be deleted. If the -id is also
+provided, then there must be a resource with BOTH this name and
+this id. If no name is provided, then the id will be used regardless
+of the name of the actual resource.
+
- -file resourceRef
-
+If the -file option is specified then the resource will be
+deleted from the file pointed to by resourceRef. Otherwise the
+first resource with the given resourceName and or
+resourceId which is found on the resource file path will be
+deleted. To inspect the file path, use the resource files command.
+
+ - resource files ?resourceRef?
-
+If resourceRefis not provided, this command returns a Tcl list
+of the resource references for all the currently open resource files.
+The list is in the normal Macintosh search order for resources. If
+resourceRef is specified, the command will
+return the path to the file whose resource fork is represented by that
+token.
+
- resource list resourceType ?resourceRef?
-
+List all of the resources ids of type resourceType (see RESOURCE
+TYPES below). If resourceRef is specified then the command will
+limit the search to that particular resource file. Otherwise, all
+resource files currently opened by the application will be searched.
+A Tcl list of either the resource name's or resource id's of the found
+resources will be returned. See the RESOURCE IDS section below for
+more details about what a resource id is.
+
- resource open fileName ?access?
-
+Open the resource for the file fileName. Standard file access
+permissions may also be specified (see the manual entry for open
+for details). A resource reference (resourceRef) is returned
+that can be used by the other resource commands. An error can occur
+if the file doesn't exist or the file does not have a resource fork.
+However, if you open the file with write permissions the file and/or
+resource fork will be created instead of generating an error.
+
- resource read resourceType resourceId ?resourceRef?
-
+Read the entire resource of type resourceType (see RESOURCE
+TYPES below) and the name or id of resourceId (see RESOURCE IDS
+below) into memory and return the result. If resourceRef is
+specified we limit our search to that resource file, otherwise we
+search all open resource forks in the application. It is important to
+note that most Macintosh resource use a binary format and the data
+returned from this command may have embedded NULLs or other non-ASCII
+data.
+
- resource types ?resourceRef?
-
+This command returns a Tcl list of all resource types (see RESOURCE
+TYPES below) found in the resource file pointed to by
+resourceRef. If resourceRef is not specified it will
+return all the resource types found in every resource file currently
+opened by the application.
+
- resource write ?options? resourceType data
-
+This command will write the passed in data as a new resource of
+type resourceType (see RESOURCE TYPES below). Several options
+are available that describe where and how the resource is stored.
+
+
+- -id resourceId
-
+If the -id option is given the id resourceId (see RESOURCE
+IDS below) is used for the new resource, otherwise a unique id will be
+generated that will not conflict with any existing resource. However,
+the id must be a number - to specify a name use the -name option.
+
- -name resourceName
-
+If -name is specified the resource will be named
+resourceName, otherwise it will have the empty string as the
+name.
+
- -file resourceRef
-
+If the -file option is specified then the resource will be
+written in the file pointed to by resourceRef, otherwise the
+most resently open resource will be used.
+
- -force
-
+If the target resource already exists, then by default Tcl will not
+overwrite it, but raise an error instead. Use the -force flag to
+force overwriting the extant resource.
+
+
+
+Resource types are defined as a four character string that is then
+mapped to an underlying id. For example, TEXT refers to the
+Macintosh resource type for text. The type STR# is a list of
+counted strings. All Macintosh resources must be of some type. See
+Macintosh documentation for a more complete list of resource types
+that are commonly used.
+
+
+For this command the notion of a resource id actually refers to two
+ideas in Macintosh resources. Every place you can use a resource Id
+you can use either the resource name or a resource number. Names are
+always searched or returned in preference to numbers. For example,
+the resource list command will return names if they exist or
+numbers if the name is NULL.
+
+
+The resource command is only available on Macintosh.
+
+
+open
+
+open, resource
+
+Copyright © 1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/return.htm b/hlp/en/tcl/return.htm
new file mode 100644
index 0000000..8492d8e
--- /dev/null
+++ b/hlp/en/tcl/return.htm
@@ -0,0 +1,97 @@
+Tcl Built-In Commands - return manual page
+
+- NAME
+
- return - Return from a procedure
+- SYNOPSIS
+
+- return ?-code code? ?-errorinfo info? ?-errorcode code? ?string?
+
+- DESCRIPTION
+
- EXCEPTIONAL RETURNS
+
+- ok
+
- error
+
- return
+
- break
+
- continue
+
- value
+
+- SEE ALSO
+
- KEYWORDS
+
+
+return - Return from a procedure
+
+return ?-code code? ?-errorinfo info? ?-errorcode code? ?string?
+
+Return immediately from the current procedure
+(or top-level command or source command),
+with string as the return value. If string is not specified then
+an empty string will be returned as result.
+
+
+In the usual case where the -code option isn't
+specified the procedure will return normally (its completion
+code will be TCL_OK).
+However, the -code option may be used to generate an
+exceptional return from the procedure.
+Code may have any of the following values:
+
+
+- ok
-
+Normal return: same as if the option is omitted.
+
- error
-
+Error return: same as if the error command were used to
+terminate the procedure, except for handling of errorInfo
+and errorCode variables (see below).
+
- return
-
+The current procedure will return with a completion code of
+TCL_RETURN, so that the procedure that invoked it will return
+also.
+
- break
-
+The current procedure will return with a completion code of
+TCL_BREAK, which will terminate the innermost nested loop in
+the code that invoked the current procedure.
+
- continue
-
+The current procedure will return with a completion code of
+TCL_CONTINUE, which will terminate the current iteration of
+the innermost nested loop in the code that invoked the current
+procedure.
+
- value
-
+Value must be an integer; it will be returned as the
+completion code for the current procedure.
+
+
+The -code option is rarely used.
+It is provided so that procedures that implement
+new control structures can reflect exceptional conditions back to
+their callers.
+
+Two additional options, -errorinfo and -errorcode,
+may be used to provide additional information during error
+returns.
+These options are ignored unless code is error.
+
+The -errorinfo option specifies an initial stack
+trace for the errorInfo variable; if it is not specified then
+the stack trace left in errorInfo will include the call to
+the procedure and higher levels on the stack but it will not include
+any information about the context of the error within the procedure.
+Typically the info value is supplied from the value left
+in errorInfo after a catch command trapped an error within
+the procedure.
+
+If the -errorcode option is specified then code provides
+a value for the errorCode variable.
+If the option is not specified then errorCode will
+default to NONE.
+
+
+break, continue, error, proc
+
+break, continue, error, procedure, return
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/safe.htm b/hlp/en/tcl/safe.htm
new file mode 100644
index 0000000..add4cb9
--- /dev/null
+++ b/hlp/en/tcl/safe.htm
@@ -0,0 +1,354 @@
+Tcl Tcl Built-In Commands - Safe manual page
+
+- NAME
+
- Safe Base - A mechanism for creating and manipulating safe interpreters.
+- SYNOPSIS
+
+- ::safe::interpCreate ?slave? ?options...?
+
- ::safe::interpInit slave ?options...?
+
- ::safe::interpConfigure slave ?options...?
+
- ::safe::interpDelete slave
+
- ::safe::interpAddToAccessPath slave directory
+
- ::safe::interpFindInAccessPath slave directory
+
- ::safe::setLogCmd ?cmd arg...?
+
+- OPTIONS
+
- DESCRIPTION
+
- COMMANDS
+
+- ::safe::interpCreate ?slave? ?options...?
+
- ::safe::interpInit slave ?options...?
+
- ::safe::interpConfigure slave ?options...?
+
- ::safe::interpDelete slave
+
- ::safe::interpFindInAccessPath slave directory
+
- ::safe::interpAddToAccessPath slave directory
+
- ::safe::setLogCmd ?cmd arg...?
+
+- OPTIONS
+
+- -accessPath directoryList
+
- -statics boolean
+
- -noStatics
+
- -nested boolean
+
- -nestedLoadOk
+
- -deleteHook script
+
+- ALIASES
+
+- source fileName
+
- load fileName
+
- file ?subCmd args...?
+
- encoding ?subCmd args...?
+
- exit
+
+- SECURITY
+
- SEE ALSO
+
- KEYWORDS
+
+
+Safe Base - A mechanism for creating and manipulating safe interpreters.
+
+::safe::interpCreate ?slave? ?options...?
+::safe::interpInit slave ?options...?
+::safe::interpConfigure slave ?options...?
+::safe::interpDelete slave
+::safe::interpAddToAccessPath slave directory
+::safe::interpFindInAccessPath slave directory
+::safe::setLogCmd ?cmd arg...?
+
+?-accessPath pathList?
+?-statics boolean? ?-noStatics?
+?-nested boolean? ?-nestedLoadOk?
+?-deleteHook script?
+
+Safe Tcl is a mechanism for executing untrusted Tcl scripts
+safely and for providing mediated access by such scripts to
+potentially dangerous functionality.
+
+The Safe Base ensures that untrusted Tcl scripts cannot harm the
+hosting application.
+The Safe Base prevents integrity and privacy attacks. Untrusted Tcl
+scripts are prevented from corrupting the state of the hosting
+application or computer. Untrusted scripts are also prevented from
+disclosing information stored on the hosting computer or in the
+hosting application to any party.
+
+The Safe Base allows a master interpreter to create safe, restricted
+interpreters that contain a set of predefined aliases for the source,
+load, file, encoding, and exit commands and
+are able to use the auto-loading and package mechanisms.
+
+No knowledge of the file system structure is leaked to the
+safe interpreter, because it has access only to a virtualized path
+containing tokens. When the safe interpreter requests to source a file, it
+uses the token in the virtual path as part of the file name to source; the
+master interpreter transparently
+translates the token into a real directory name and executes the
+requested operation (see the section SECURITY below for details).
+Different levels of security can be selected by using the optional flags
+of the commands described below.
+
+All commands provided in the master interpreter by the Safe Base reside in
+the safe namespace:
+
+
+The following commands are provided in the master interpreter:
+
+
+- ::safe::interpCreate ?slave? ?options...?
-
+Creates a safe interpreter, installs the aliases described in the section
+ALIASES and initializes the auto-loading and package mechanism as
+specified by the supplied options.
+See the OPTIONS section below for a description of the
+optional arguments.
+If the slave argument is omitted, a name will be generated.
+::safe::interpCreate always returns the interpreter name.
+
- ::safe::interpInit slave ?options...?
-
+This command is similar to interpCreate except it that does not
+create the safe interpreter. slave must have been created by some
+other means, like interp create -safe.
+
- ::safe::interpConfigure slave ?options...?
-
+If no options are given, returns the settings for all options for the
+named safe interpreter as a list of options and their current values
+for that slave.
+If a single additional argument is provided,
+it will return a list of 2 elements name and value where
+name is the full name of that option and value the current value
+for that option and the slave.
+If more than two additional arguments are provided, it will reconfigure the
+safe interpreter and change each and only the provided options.
+See the section on OPTIONS below for options description.
+Example of use:
+
# Create a new interp with the same configuration as "$i0" :
+set i1 [eval safe::interpCreate [safe::interpConfigure $i0]]
+# Get the current deleteHook
+set dh [safe::interpConfigure $i0 -del]
+# Change (only) the statics loading ok attribute of an interp
+# and its deleteHook (leaving the rest unchanged) :
+safe::interpConfigure $i0 -delete {foo bar} -statics 0 ;
+ - ::safe::interpDelete slave
-
+Deletes the safe interpreter and cleans up the corresponding
+master interpreter data structures.
+If a deleteHook script was specified for this interpreter it is
+evaluated before the interpreter is deleted, with the name of the
+interpreter as an additional argument.
+
- ::safe::interpFindInAccessPath slave directory
-
+This command finds and returns the token for the real directory
+directory in the safe interpreter's current virtual access path.
+It generates an error if the directory is not found.
+Example of use:
+
$slave eval [list set tk_library [::safe::interpFindInAccessPath $name $tk_library]]
+ - ::safe::interpAddToAccessPath slave directory
-
+This command adds directory to the virtual path maintained for the
+safe interpreter in the master, and returns the token that can be used in
+the safe interpreter to obtain access to files in that directory.
+If the directory is already in the virtual path, it only returns the token
+without adding the directory to the virtual path again.
+Example of use:
+
$slave eval [list set tk_library [::safe::interpAddToAccessPath $name $tk_library]]
+ - ::safe::setLogCmd ?cmd arg...?
-
+This command installs a script that will be called when interesting
+life cycle events occur for a safe interpreter.
+When called with no arguments, it returns the currently installed script.
+When called with one argument, an empty string, the currently installed
+script is removed and logging is turned off.
+The script will be invoked with one additional argument, a string
+describing the event of interest.
+The main purpose is to help in debugging safe interpreters.
+Using this facility you can get complete error messages while the safe
+interpreter gets only generic error messages.
+This prevents a safe interpreter from seeing messages about failures
+and other events that might contain sensitive information such as real
+directory names.
+
-
+Example of use:
+
::safe::setLogCmd puts stderr
+Below is the output of a sample session in which a safe interpreter
+attempted to source a file not found in its virtual access path.
+Note that the safe interpreter only received an error message saying that
+the file was not found:
+NOTICE for slave interp10 : Created
+NOTICE for slave interp10 : Setting accessPath=(/foo/bar) staticsok=1 nestedok=0 deletehook=()
+NOTICE for slave interp10 : auto_path in interp10 has been set to {$p(:0:)}
+ERROR for slave interp10 : /foo/bar/init.tcl: no such file or directory
+
+
+
+The following options are common to
+::safe::interpCreate, ::safe::interpInit,
+and ::safe::interpConfigure.
+Any option name can be abbreviated to its minimal
+non-ambiguous name.
+Option names are not case sensitive.
+
+
+- -accessPath directoryList
-
+This option sets the list of directories from which the safe interpreter
+can source and load files.
+If this option is not specified, or if it is given as the
+empty list, the safe interpreter will use the same directories as its
+master for auto-loading.
+See the section SECURITY below for more detail about virtual paths,
+tokens and access control.
+
- -statics boolean
-
+This option specifies if the safe interpreter will be allowed
+to load statically linked packages (like load {} Tk).
+The default value is true :
+safe interpreters are allowed to load statically linked packages.
+
- -noStatics
-
+This option is a convenience shortcut for -statics false and
+thus specifies that the safe interpreter will not be allowed
+to load statically linked packages.
+
- -nested boolean
-
+This option specifies if the safe interpreter will be allowed
+to load packages into its own sub-interpreters.
+The default value is false :
+safe interpreters are not allowed to load packages into
+their own sub-interpreters.
+
- -nestedLoadOk
-
+This option is a convenience shortcut for -nested true and
+thus specifies the safe interpreter will be allowed
+to load packages into its own sub-interpreters.
+
- -deleteHook script
-
+When this option is given an non empty script, it will be
+evaluated in the master with the name of
+the safe interpreter as an additional argument
+just before actually deleting the safe interpreter.
+Giving an empty value removes any currently installed deletion hook
+script for that safe interpreter.
+The default value ({}) is not to have any deletion call back.
+
+
+The following aliases are provided in a safe interpreter:
+
+
+- source fileName
-
+The requested file, a Tcl source file, is sourced into the safe interpreter
+if it is found.
+The source alias can only source files from directories in
+the virtual path for the safe interpreter. The source alias requires
+the safe interpreter to
+use one of the token names in its virtual path to denote the directory in
+which the file to be sourced can be found.
+See the section on SECURITY for more discussion of restrictions on
+valid filenames.
+
- load fileName
-
+The requested file, a shared object file, is dynamically loaded into the
+safe interpreter if it is found.
+The filename must contain a token name mentioned in the virtual path for
+the safe interpreter for it to be found successfully.
+Additionally, the shared object file must contain a safe entry point; see
+the manual page for the load command for more details.
+
- file ?subCmd args...?
-
+The file alias provides access to a safe subset of the subcommands of
+the file command; it allows only dirname, join,
+extension, root, tail, pathname and split
+subcommands. For more details on what these subcommands do see the manual
+page for the file command.
+
- encoding ?subCmd args...?
-
+The enconding alias provides access to a safe subset of the
+subcommands of the encoding command; it disallows setting of
+the system encoding, but allows all other subcommands including
+system to check the current encoding.
+
- exit
-
+The calling interpreter is deleted and its computation is stopped, but the
+Tcl process in which this interpreter exists is not terminated.
+
+
+
+The Safe Base does not attempt to completely prevent annoyance and
+denial of service attacks. These forms of attack prevent the
+application or user from temporarily using the computer to perform
+useful work, for example by consuming all available CPU time or
+all available screen real estate.
+These attacks, while aggravating, are deemed to be of lesser importance
+in general than integrity and privacy attacks that the Safe Base
+is to prevent.
+
+The commands available in a safe interpreter, in addition to
+the safe set as defined in interp manual page, are mediated aliases
+for source, load, exit, and safe subsets of
+file and encoding. The safe interpreter can also auto-load
+code and it can request that packages be loaded.
+
+Because some of these commands access the local file system, there is a
+potential for information leakage about its directory structure.
+To prevent this, commands that take file names as arguments in a safe
+interpreter use tokens instead of the real directory names.
+These tokens are translated to the real directory name while a request to,
+e.g., source a file is mediated by the master interpreter.
+This virtual path system is maintained in the master interpreter for each safe
+interpreter created by ::safe::interpCreate or initialized by
+::safe::interpInit and
+the path maps tokens accessible in the safe interpreter into real path
+names on the local file system thus preventing safe interpreters
+from gaining knowledge about the
+structure of the file system of the host on which the interpreter is
+executing.
+The only valid file names arguments
+for the source and load aliases provided to the slave
+are path in the form of
+[file join token filename] (ie, when using the
+native file path formats: token/filename
+on Unix, token\filename on Windows,
+and token:filename on the Mac),
+where token is representing one of the directories
+of the accessPath list and filename is
+one file in that directory (no sub directories access are allowed).
+
+When a token is used in a safe interpreter in a request to source or
+load a file, the token is checked and
+translated to a real path name and the file to be
+sourced or loaded is located on the file system.
+The safe interpreter never gains knowledge of the actual path name under
+which the file is stored on the file system.
+
+To further prevent potential information leakage from sensitive files that
+are accidentally included in the set of files that can be sourced by a safe
+interpreter, the source alias restricts access to files
+meeting the following constraints: the file name must
+fourteen characters or shorter, must not contain more than one dot ("."),
+must end up with the extension .tcl or be called tclIndex.
+
+Each element of the initial access path
+list will be assigned a token that will be set in
+the slave auto_path and the first element of that list will be set as
+the tcl_library for that slave.
+
+If the access path argument is not given or is the empty list,
+the default behavior is to let the slave access the same packages
+as the master has access to (Or to be more precise:
+only packages written in Tcl (which by definition can't be dangerous
+as they run in the slave interpreter) and C extensions that
+provides a Safe_Init entry point). For that purpose, the master's
+auto_path will be used to construct the slave access path.
+In order that the slave successfully loads the Tcl library files
+(which includes the auto-loading mechanism itself) the tcl_library will be
+added or moved to the first position if necessary, in the
+slave access path, so the slave
+tcl_library will be the same as the master's (its real
+path will still be invisible to the slave though).
+In order that auto-loading works the same for the slave and
+the master in this by default case, the first-level
+sub directories of each directory in the master auto_path will
+also be added (if not already included) to the slave access path.
+You can always specify a more
+restrictive path for which sub directories will never be searched by
+explicitly specifying your directory list with the -accessPath flag
+instead of relying on this default mechanism.
+
+When the accessPath is changed after the first creation or
+initialization (ie through interpConfigure -accessPath list),
+an auto_reset is automatically evaluated in the safe interpreter
+to synchronize its auto_index with the new token list.
+
+
+interp, library, load, package, source, unknown
+
+alias, auto-loading, auto_mkindex, load, master interpreter, safe
+interpreter, slave interpreter, source
+
+Copyright © 1995-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/scan.htm b/hlp/en/tcl/scan.htm
new file mode 100644
index 0000000..8cbe76a
--- /dev/null
+++ b/hlp/en/tcl/scan.htm
@@ -0,0 +1,197 @@
+Tcl Built-In Commands - scan manual page
+
+- NAME
+
- scan - Parse string using conversion specifiers in the style of sscanf
+- SYNOPSIS
+
+- scan string format ?varName varName ...?
+
+- INTRODUCTION
+
- DETAILS ON SCANNING
+
+- d
+
- o
+
- x
+
- u
+
- i
+
- c
+
- s
+
- e or f or g
+
- [chars]
+
- [^chars]
+
- n
+
+- DIFFERENCES FROM ANSI SSCANF
+
+
+- SEE ALSO
+
- KEYWORDS
+
+
+scan - Parse string using conversion specifiers in the style of sscanf
+
+scan string format ?varName varName ...?
+
+This command parses fields from an input string in the same fashion as the
+ANSI C sscanf procedure and returns a count of the number of
+conversions performed, or -1 if the end of the input string is reached
+before any conversions have been performed. String gives the input
+to be parsed and format indicates how to parse it, using %
+conversion specifiers as in sscanf. Each varName gives the
+name of a variable; when a field is scanned from string the result is
+converted back into a string and assigned to the corresponding variable.
+If no varName variables are specified, then scan works in an
+inline manner, returning the data that would otherwise be stored in the
+variables as a list. In the inline case, an empty string is returned when
+the end of the input string is reached before any conversions have been
+performed.
+
+
+Scan operates by scanning string and format together.
+If the next character in format is a blank or tab then it
+matches any number of white space characters in string (including
+zero).
+Otherwise, if it isn't a % character then it
+must match the next character of string.
+When a % is encountered in format, it indicates
+the start of a conversion specifier.
+A conversion specifier contains up to four fields after the %:
+a *, which indicates that the converted value is to be discarded
+instead of assigned to a variable; a XPG3 position specifier; a number
+indicating a maximum field width; and a conversion character.
+All of these fields are optional except for the conversion character.
+The fields that are present must appear in the order given above.
+
+When scan finds a conversion specifier in format, it
+first skips any white-space characters in string (unless the
+specifier is [ or c).
+Then it converts the next input characters according to the
+conversion specifier and stores the result in the variable given
+by the next argument to scan.
+
+If the % is followed by a decimal number and a $, as in
+``%2$d'', then the variable to use is not taken from the next
+sequential argument. Instead, it is taken from the argument indicated
+by the number, where 1 corresponds to the first varName. If
+there are any positional specifiers in format then all of the
+specifiers must be positional. Every varName on the argument
+list must correspond to exactly one conversion specifier or an error
+is generated, or in the inline case, any position can be specified
+at most once and the empty positions will be filled in with empty strings.
+
+The following conversion characters are supported:
+
+
+- d
-
+The input field must be a decimal integer.
+It is read in and the value is stored in the variable as a decimal string.
+
- o
-
+The input field must be an octal integer. It is read in and the
+value is stored in the variable as a decimal string.
+If the value exceeds MAX_INT (017777777777 on platforms using 32-bit
+integers), it will be truncated to a signed integer. Hence, 037777777777
+will appear as -1 on a 32-bit machine.
+
- x
-
+The input field must be a hexadecimal integer. It is read in
+and the value is stored in the variable as a decimal string.
+If the value exceeds MAX_INT (0x7FFFFFFF on platforms using 32-bit
+integers), it will be truncated to a signed integer. Hence, 0xFFFFFFFF
+will appear as -1 on a 32-bit machine.
+
- u
-
+The input field must be a decimal integer. The value is stored in the
+variable as an unsigned decimal integer string.
+
- i
-
+The input field must be an integer. The base (i.e. decimal, octal, or
+hexadecimal) is determined in the same fashion as described in
+expr. The value is stored in the variable as a decimal string.
+
- c
-
+A single character is read in and its binary value is stored in
+the variable as a decimal string.
+Initial white space is not skipped in this case, so the input
+field may be a white-space character.
+This conversion is different from the ANSI standard in that the
+input field always consists of a single character and no field
+width may be specified.
+
- s
-
+The input field consists of all the characters up to the next
+white-space character; the characters are copied to the variable.
+
- e or f or g
-
+The input field must be a floating-point number consisting
+of an optional sign, a string of decimal digits possibly
+containing a decimal point, and an optional exponent consisting
+of an e or E followed by an optional sign and a string of
+decimal digits.
+It is read in and stored in the variable as a floating-point string.
+
- [chars]
-
+The input field consists of any number of characters in
+chars.
+The matching string is stored in the variable.
+If the first character between the brackets is a ] then
+it is treated as part of chars rather than the closing
+bracket for the set.
+If chars
+contains a sequence of the form a-b then any
+character between a and b (inclusive) will match.
+If the first or last character between the brackets is a -, then
+it is treated as part of chars rather than indicating a range.
+
- [^chars]
-
+The input field consists of any number of characters not in
+chars.
+The matching string is stored in the variable.
+If the character immediately following the ^ is a ] then it is
+treated as part of the set rather than the closing bracket for
+the set.
+If chars
+contains a sequence of the form a-b then any
+character between a and b (inclusive) will be excluded
+from the set.
+If the first or last character between the brackets is a -, then
+it is treated as part of chars rather than indicating a range.
+
- n
-
+No input is consumed from the input string. Instead, the total number
+of chacters scanned from the input string so far is stored in the variable.
+
+
+The number of characters read from the input for a conversion is the
+largest number that makes sense for that particular conversion (e.g.
+as many decimal digits as possible for %d, as
+many octal digits as possible for %o, and so on).
+The input field for a given conversion terminates either when a
+white-space character is encountered or when the maximum field
+width has been reached, whichever comes first.
+If a * is present in the conversion specifier
+then no variable is assigned and the next scan argument is not consumed.
+
+
+The behavior of the scan command is the same as the behavior of
+the ANSI C sscanf procedure except for the following differences:
+
+
+- [1]
-
+%p conversion specifier is not currently supported.
+
- [2]
-
+For %c conversions a single character value is
+converted to a decimal string, which is then assigned to the
+corresponding varName;
+no field width may be specified for this conversion.
+
- [3]
-
+The l, h, and L modifiers are ignored; integer
+values are always converted as if there were no modifier present
+and real values are always converted as if the l modifier
+were present (i.e. type double is used for the internal
+representation).
+
- [4]
-
+If the end of the input string is reached before any conversions have been
+performed and no variables are given, and empty string is returned.
+
+
+
+format, sscanf
+
+conversion specifier, parse, scan
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 2000 Scriptics Corporation.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/seek.htm b/hlp/en/tcl/seek.htm
new file mode 100644
index 0000000..612428a
--- /dev/null
+++ b/hlp/en/tcl/seek.htm
@@ -0,0 +1,51 @@
+Tcl Built-In Commands - seek manual page
+
+seek - Change the access position for an open channel
+
+seek channelId offset ?origin?
+
+Changes the current access position for channelId.
+ChannelId must be a channel identifier such as returned from a
+previous invocation of open or socket.
+The offset and origin
+arguments specify the position at which the next read or write will occur
+for channelId. Offset must be an integer (which may be
+negative) and origin must be one of the following:
+
+
+- start
-
+The new access position will be offset bytes from the start
+of the underlying file or device.
+
- current
-
+The new access position will be offset bytes from the current
+access position; a negative offset moves the access position
+backwards in the underlying file or device.
+
- end
-
+The new access position will be offset bytes from the end of
+the file or device. A negative offset places the access position
+before the end of file, and a positive offset places the access
+position after the end of file.
+
+
+The origin argument defaults to start.
+
+The command flushes all buffered output for the channel before the command
+returns, even if the channel is in nonblocking mode.
+It also discards any buffered and unread input.
+This command returns an empty string.
+An error occurs if this command is applied to channels whose underlying
+file or device does not support seeking.
+
+Note that offset values are byte offsets, not character
+offsets. Both seek and tell operate in terms of bytes,
+not characters, unlike read.
+
+
+file, open, close, gets, tell
+
+access position, file, seek
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/set.htm b/hlp/en/tcl/set.htm
new file mode 100644
index 0000000..744b91f
--- /dev/null
+++ b/hlp/en/tcl/set.htm
@@ -0,0 +1,40 @@
+Built-In Commands - set manual page
+
+set - Read and write variables
+
+set varName ?value?
+
+Returns the value of variable varName.
+If value is specified, then set
+the value of varName to value, creating a new variable
+if one doesn't already exist, and return its value.
+If varName contains an open parenthesis and ends with a
+close parenthesis, then it refers to an array element: the characters
+before the first open parenthesis are the name of the array,
+and the characters between the parentheses are the index within the array.
+Otherwise varName refers to a scalar variable.
+Normally, varName is unqualified
+(does not include the names of any containing namespaces),
+and the variable of that name in the current namespace is read or written.
+If varName includes namespace qualifiers
+(in the array name if it refers to an array element),
+the variable in the specified namespace is read or written.
+
+If no procedure is active,
+then varName refers to a namespace variable
+(global variable if the current namespace is the global namespace).
+If a procedure is active, then varName refers to a parameter
+or local variable of the procedure unless the global command
+was invoked to declare varName to be global,
+or unless a variable command
+was invoked to declare varName to be a namespace variable.
+
+
+expr, proc, trace, unset
+
+read, write, variable
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/socket.htm b/hlp/en/tcl/socket.htm
new file mode 100644
index 0000000..a1a1bbe
--- /dev/null
+++ b/hlp/en/tcl/socket.htm
@@ -0,0 +1,147 @@
+Tcl Built-In Commands - socket manual page
+
+- NAME
+
- socket - Open a TCP network connection
+- SYNOPSIS
+
+- socket ?options? host port
+
- socket -server command ?options? port
+
+- DESCRIPTION
+
- CLIENT SOCKETS
+
+- -myaddr addr
+
- -myport port
+
- -async
+
+- SERVER SOCKETS
+
+- -myaddr addr
+
+- CONFIGURATION OPTIONS
+
+- -error
+
- -sockname
+
- -peername
+
+- SEE ALSO
+
- KEYWORDS
+
+
+socket - Open a TCP network connection
+
+socket ?options? host port
+socket -server command ?options? port
+
+This command opens a network socket and returns a channel
+identifier that may be used in future invocations of commands like
+read, puts and flush.
+At present only the TCP network protocol is supported; future
+releases may include support for additional protocols.
+The socket command may be used to open either the client or
+server side of a connection, depending on whether the -server
+switch is specified.
+
+
+If the -server option is not specified, then the client side of a
+connection is opened and the command returns a channel identifier
+that can be used for both reading and writing.
+Port and host specify a port
+to connect to; there must be a server accepting connections on
+this port. Port is an integer port number and host
+is either a domain-style name such as www.sunlabs.com or
+a numerical IP address such as 127.0.0.1.
+Use localhost to refer to the host on which the command is invoked.
+
+The following options may also be present before host
+to specify additional information about the connection:
+
+
+- -myaddr addr
-
+Addr gives the domain-style name or numerical IP address of
+the client-side network interface to use for the connection.
+This option may be useful if the client machine has multiple network
+interfaces. If the option is omitted then the client-side interface
+will be chosen by the system software.
+
- -myport port
-
+Port specifies an integer port number to use for the client's
+side of the connection. If this option is omitted, the client's
+port number will be chosen at random by the system software.
+
- -async
-
+The -async option will cause the client socket to be connected
+asynchronously. This means that the socket will be created immediately but
+may not yet be connected to the server, when the call to socket
+returns. When a gets or flush is done on the socket before the
+connection attempt succeeds or fails, if the socket is in blocking mode, the
+operation will wait until the connection is completed or fails. If the
+socket is in nonblocking mode and a gets or flush is done on
+the socket before the connection attempt succeeds or fails, the operation
+returns immediately and fblocked on the socket returns 1.
+
+
+
+If the -server option is specified then the new socket
+will be a server for the port given by port.
+Tcl will automatically accept connections to the given port.
+For each connection Tcl will create a new channel that may be used to
+communicate with the client. Tcl then invokes command
+with three additional arguments: the name of the new channel, the
+address, in network address notation, of the client's host, and
+the client's port number.
+
+The following additional option may also be specified before host:
+
+
+- -myaddr addr
-
+Addr gives the domain-style name or numerical IP address of
+the server-side network interface to use for the connection.
+This option may be useful if the server machine has multiple network
+interfaces. If the option is omitted then the server socket is bound
+to the special address INADDR_ANY so that it can accept connections from
+any interface.
+
+
+Server channels cannot be used for input or output; their sole use is to
+accept new client connections. The channels created for each incoming
+client connection are opened for input and output. Closing the server
+channel shuts down the server so that no new connections will be
+accepted; however, existing connections will be unaffected.
+
+Server sockets depend on the Tcl event mechanism to find out when
+new connections are opened. If the application doesn't enter the
+event loop, for example by invoking the vwait command or
+calling the C procedure Tcl_DoOneEvent, then no connections
+will be accepted.
+
+
+The fconfigure command can be used to query several readonly
+configuration options for socket channels:
+
+
+- -error
-
+This option gets the current error status of the given socket. This
+is useful when you need to determine if an asynchronous connect
+operation succeeded. If there was an error, the error message is
+returned. If there was no error, an empty string is returned.
+
- -sockname
-
+This option returns a list of three elements, the address, the host name
+and the port number for the socket. If the host name cannot be computed,
+the second element is identical to the address, the first element of the
+list.
+
- -peername
-
+This option is not supported by server sockets. For client and accepted
+sockets, this option returns a list of three elements; these are the
+address, the host name and the port to which the peer socket is connected
+or bound. If the host name cannot be computed, the second element of the
+list is identical to the address, its first element.
+
+
+
+flush, open, read
+
+bind, channel, connection, domain name, host, network address, socket, tcp
+
+Copyright © 1996 Sun Microsystems, Inc.
+Copyright © 1998-1999 by Scriptics Corporation.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/source.htm b/hlp/en/tcl/source.htm
new file mode 100644
index 0000000..030b5dd
--- /dev/null
+++ b/hlp/en/tcl/source.htm
@@ -0,0 +1,32 @@
+Built-In Commands - source manual page
+
+source - Evaluate a file or resource as a Tcl script
+
+source fileName
+source -rsrc resourceName ?fileName?
+source -rsrcid resourceId ?fileName?
+
+This command takes the contents of the specified file or resource
+and passes it to the Tcl interpreter as a text script. The return
+value from source is the return value of the last command
+executed in the script. If an error occurs in evaluating the contents
+of the script then the source command will return that error.
+If a return command is invoked from within the script then the
+remainder of the file will be skipped and the source command
+will return normally with the result from the return command.
+
+The -rsrc and -rsrcid forms of this command are only
+available on Macintosh computers. These versions of the command
+allow you to source a script from a TEXT resource. You may specify
+what TEXT resource to source by either name or id. By default Tcl
+searches all open resource files, which include the current
+application and any loaded C extensions. Alternatively, you may
+specify the fileName where the TEXT resource can be found.
+
+
+file, script
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/split.htm b/hlp/en/tcl/split.htm
new file mode 100644
index 0000000..ee4e8d5
--- /dev/null
+++ b/hlp/en/tcl/split.htm
@@ -0,0 +1,32 @@
+Built-In Commands - split manual page
+
+split - Split a string into a proper Tcl list
+
+split string ?splitChars?
+
+Returns a list created by splitting string at each character
+that is in the splitChars argument.
+Each element of the result list will consist of the
+characters from string that lie between instances of the
+characters in splitChars.
+Empty list elements will be generated if string contains
+adjacent characters in splitChars, or if the first or last
+character of string is in splitChars.
+If splitChars is an empty string then each character of
+string becomes a separate element of the result list.
+SplitChars defaults to the standard white-space characters.
+For example,
+split "comp.unix.misc" .
+returns "comp unix misc" and
+split "Hello world" {}
+returns "H e l l o { } w o r l d".
+
+
+join, list, string
+
+list, split, string
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/string.htm b/hlp/en/tcl/string.htm
new file mode 100644
index 0000000..0dea2f8
--- /dev/null
+++ b/hlp/en/tcl/string.htm
@@ -0,0 +1,338 @@
+Tcl Built-In Commands - string manual page
+
+- NAME
+
- string - Manipulate strings
+- SYNOPSIS
+
+- string option arg ?arg ...?
+
+- DESCRIPTION
+
+- string bytelength string
+
- string compare ?-nocase? ?-length int? string1 string2
+
- string equal ?-nocase? ?-length int? string1 string2
+
- string first string1 string2 ?startIndex?
+
- string index string charIndex
+
+- integer
+
- end
+
- end-integer
+
+- string is class ?-strict? ?-failindex varname? string
+
+- alnum
+
- alpha
+
- ascii
+
- boolean
+
- control
+
- digit
+
- double
+
- false
+
- graph
+
- integer
+
- lower
+
- print
+
- punct
+
- space
+
- true
+
- upper
+
- wordchar
+
- xdigit
+
+- string last string1 string2 ?startIndex?
+
- string length string
+
- string map ?-nocase? charMap string
+
- string match ?-nocase? pattern string
+
+- *
+
- ?
+
- [chars]
+
- \x
+
+- string range string first last
+
- string repeat string count
+
- string replace string first last ?newstring?
+
- string tolower string ?first? ?last?
+
- string totitle string ?first? ?last?
+
- string toupper string ?first? ?last?
+
- string trim string ?chars?
+
- string trimleft string ?chars?
+
- string trimright string ?chars?
+
- string wordend string charIndex
+
- string wordstart string charIndex
+
+- SEE ALSO
+
- KEYWORDS
+
+
+string - Manipulate strings
+
+string option arg ?arg ...?
+
+Performs one of several string operations, depending on option.
+The legal options (which may be abbreviated) are:
+
+
+- string bytelength string
-
+Returns a decimal string giving the number of bytes used to represent
+string in memory. Because UTF-8 uses one to three bytes to
+represent Unicode characters, the byte length will not be the same as
+the character length in general. The cases where a script cares about
+the byte length are rare. In almost all cases, you should use the
+string length operation. Refer to the Tcl_NumUtfChars
+manual entry for more details on the UTF-8 representation.
+
- string compare ?-nocase? ?-length int? string1 string2
-
+Perform a character-by-character comparison of strings string1 and
+string2. Returns
+-1, 0, or 1, depending on whether string1 is lexicographically
+less than, equal to, or greater than string2.
+If -length is specified, then only the first length characters
+are used in the comparison. If -length is negative, it is
+ignored. If -nocase is specified, then the strings are
+compared in a case-insensitive manner.
+
- string equal ?-nocase? ?-length int? string1 string2
-
+Perform a character-by-character comparison of strings
+string1 and string2. Returns 1 if string1 and
+string2 are identical, or 0 when not. If -length is
+specified, then only the first length characters are used in the
+comparison. If -length is negative, it is ignored. If
+-nocase is specified, then the strings are compared in a
+case-insensitive manner.
+
- string first string1 string2 ?startIndex?
-
+Search string2 for a sequence of characters that exactly match
+the characters in string1. If found, return the index of the
+first character in the first such match within string2. If not
+found, return -1.
+If startIndex is specified (in any of the forms accepted by the
+index method), then the search is constrained to start with the
+character in string2 specified by the index. For example,
+
string first a 0a23456789abcdef 5
+will return 10, but
+string first a 0123456789abcdef 11
+will return -1.
+ - string index string charIndex
-
+Returns the charIndex'th character of the string
+argument. A charIndex of 0 corresponds to the first
+character of the string.
+charIndex may be specified as
+follows:
+
+
+- integer
-
+The char specified at this integral index
+
- end
-
+The last char of the string.
+
- end-integer
-
+The last char of the string minus the specified integer
+offset (e.g. end-1 would refer to the "c" in "abcd").
+
If charIndex is less than 0 or greater than
+or equal to the length of the string then an empty string is
+returned.
+
+ - string is class ?-strict? ?-failindex varname? string
-
+Returns 1 if string is a valid member of the specified character
+class, otherwise returns 0. If -strict is specified, then an
+empty string returns 0, otherwise and empty string will return 1 on
+any class. If -failindex is specified, then if the function
+returns 0, the index in the string where the class was no longer valid
+will be stored in the variable named varname. The varname
+will not be set if the function returns 1. The following character classes
+are recognized (the class name can be abbreviated):
+
+
+- alnum
-
+Any Unicode alphabet or digit character.
+
- alpha
-
+Any Unicode alphabet character.
+
- ascii
-
+Any character with a value less than \u0080 (those that
+are in the 7-bit ascii range).
+
- boolean
-
+Any of the forms allowed to Tcl_GetBoolean.
+
- control
-
+Any Unicode control character.
+
- digit
-
+Any Unicode digit character. Note that this includes characters
+outside of the [0-9] range.
+
- double
-
+Any of the valid forms for a double in Tcl, with optional surrounding
+whitespace. In case of under/overflow in the value, 0 is returned
+and the varname will contain -1.
+
- false
-
+Any of the forms allowed to Tcl_GetBoolean where the value is false.
+
- graph
-
+Any Unicode printing character, except space.
+
- integer
-
+Any of the valid forms for an integer in Tcl, with optional surrounding
+whitespace. In case of under/overflow in the value, 0 is returned
+and the varname will contain -1.
+
- lower
-
+Any Unicode lower case alphabet character.
+
- print
-
+Any Unicode printing character, including space.
+
- punct
-
+Any Unicode punctuation character.
+
- space
-
+Any Unicode space character.
+
- true
-
+Any of the forms allowed to Tcl_GetBoolean where the value is true.
+
- upper
-
+Any upper case alphabet character in the Unicode character set.
+
- wordchar
-
+Any Unicode word character. That is any alphanumeric character,
+and any Unicode connector punctuation characters (e.g. underscore).
+
- xdigit
-
+Any hexadecimal digit character ([0-9A-Fa-f]).
+
In the case of boolean, true and false, if the
+function will return 0, then the varname will always be set to 0,
+due to the varied nature of a valid boolean value.
+
+ - string last string1 string2 ?startIndex?
-
+Search string2 for a sequence of characters that exactly match
+the characters in string1. If found, return the index of the
+first character in the last such match within string2. If there
+is no match, then return -1.
+If startIndex is specified (in any of the forms accepted by the
+index method), then only the characters in string2 at or before the
+specified startIndex will be considered by the search. For example,
+
string last a 0a23456789abcdef 15
+will return 10, but
+string last a 0a23456789abcdef 9
+will return 1.
+ - string length string
-
+Returns a decimal string giving the number of characters in
+string. Note that this is not necessarily the same as the
+number of bytes used to store the string.
+
- string map ?-nocase? charMap string
-
+Replaces characters in string based on the key-value pairs in
+charMap. charMap is a list of key value key value ...
+as in the form returned by array get. Each instance of a
+key in the string will be replaced with its corresponding value. If
+-nocase is specified, then matching is done without regard to
+case differences. Both key and value may be multiple
+characters. Replacement is done in an ordered manner, so the key appearing
+first in the list will be checked first, and so on. string is
+only iterated over once, so earlier key replacements will have no
+affect for later key matches. For example,
+
string map {abc 1 ab 2 a 3 1 0} 1abcaababcabababc
+will return the string 01321221.
+ - string match ?-nocase? pattern string
-
+See if pattern matches string; return 1 if it does, 0
+if it doesn't.
+If -nocase is specified, then the pattern attempts to match
+against the string in a case insensitive manner.
+For the two strings to match, their contents
+must be identical except that the following special sequences
+may appear in pattern:
+
+
+- *
-
+Matches any sequence of characters in string,
+including a null string.
+
- ?
-
+Matches any single character in string.
+
- [chars]
-
+Matches any character in the set given by chars. If a sequence
+of the form
+x-y appears in chars, then any character
+between x and y, inclusive, will match.
+When used with -nocase, the end points of the range are converted
+to lower case first. Whereas {[A-z]} matches '_' when matching
+case-sensitively ('_' falls between the 'Z' and 'a'), with -nocase
+this is considered like {[A-Za-z]} (and probably what was meant in the
+first place).
+
- \x
-
+Matches the single character x. This provides a way of
+avoiding the special interpretation of the characters
+*?[]\ in pattern.
+
+ - string range string first last
-
+Returns a range of consecutive characters from string, starting
+with the character whose index is first and ending with the
+character whose index is last. An index of 0 refers to the
+first character of the string. first and last may be
+specified as for the index method.
+If first is less than zero then it is treated as if it were zero, and
+if last is greater than or equal to the length of the string then
+it is treated as if it were end. If first is greater than
+last then an empty string is returned.
+
- string repeat string count
-
+Returns string repeated count number of times.
+
- string replace string first last ?newstring?
-
+Removes a range of consecutive characters from string, starting
+with the character whose index is first and ending with the
+character whose index is last. An index of 0 refers to the
+first character of the string. First and last may be
+specified as for the index method. If newstring is
+specified, then it is placed in the removed character range.
+If first is less than zero then it is treated as if it were zero, and
+if last is greater than or equal to the length of the string then
+it is treated as if it were end. If first is greater than
+last or the length of the initial string, or last is less
+than 0, then the initial string is returned untouched.
+
- string tolower string ?first? ?last?
-
+Returns a value equal to string except that all upper (or title) case
+letters have been converted to lower case. If first is specified, it
+refers to the first char index in the string to start modifying. If
+last is specified, it refers to the char index in the string to stop
+at (inclusive). first and last may be
+specified as for the index method.
+
- string totitle string ?first? ?last?
-
+Returns a value equal to string except that the first character
+in string is converted to its Unicode title case variant (or upper
+case if there is no title case variant) and the rest of the string is
+converted to lower case. If first is specified, it
+refers to the first char index in the string to start modifying. If
+last is specified, it refers to the char index in the string to stop
+at (inclusive). first and last may be
+specified as for the index method.
+
- string toupper string ?first? ?last?
-
+Returns a value equal to string except that all lower (or title) case
+letters have been converted to upper case. If first is specified, it
+refers to the first char index in the string to start modifying. If
+last is specified, it refers to the char index in the string to stop
+at (inclusive). first and last may be specified as for the
+index method.
+
- string trim string ?chars?
-
+Returns a value equal to string except that any leading
+or trailing characters from the set given by chars are
+removed.
+If chars is not specified then white space is removed
+(spaces, tabs, newlines, and carriage returns).
+
- string trimleft string ?chars?
-
+Returns a value equal to string except that any
+leading characters from the set given by chars are
+removed.
+If chars is not specified then white space is removed
+(spaces, tabs, newlines, and carriage returns).
+
- string trimright string ?chars?
-
+Returns a value equal to string except that any
+trailing characters from the set given by chars are
+removed.
+If chars is not specified then white space is removed
+(spaces, tabs, newlines, and carriage returns).
+
- string wordend string charIndex
-
+Returns the index of the character just after the last one in the word
+containing character charIndex of string. charIndex
+may be specified as for the index method. A word is
+considered to be any contiguous range of alphanumeric (Unicode letters
+or decimal digits) or underscore (Unicode connector punctuation)
+characters, or any single character other than these.
+
- string wordstart string charIndex
-
+Returns the index of the first character in the word containing
+character charIndex of string. charIndex may be
+specified as for the index method. A word is considered to be any
+contiguous range of alphanumeric (Unicode letters or decimal digits)
+or underscore (Unicode connector punctuation) characters, or any
+single character other than these.
+
+
+
+expr, list
+
+case conversion, compare, index, match, pattern, string, word, equal, ctype
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/subst.htm b/hlp/en/tcl/subst.htm
new file mode 100644
index 0000000..abe6659
--- /dev/null
+++ b/hlp/en/tcl/subst.htm
@@ -0,0 +1,38 @@
+Tcl Built-In Commands - subst manual page
+
+subst - Perform backslash, command, and variable substitutions
+
+subst ?-nobackslashes? ?-nocommands? ?-novariables? string
+
+This command performs variable substitutions, command substitutions,
+and backslash substitutions on its string argument and
+returns the fully-substituted result.
+The substitutions are performed in exactly the same way as for
+Tcl commands.
+As a result, the string argument is actually substituted twice,
+once by the Tcl parser in the usual fashion for Tcl commands, and
+again by the subst command.
+
+If any of the -nobackslashes, -nocommands, or
+-novariables are specified, then the corresponding substitutions
+are not performed.
+For example, if -nocommands is specified, no command substitution
+is performed: open and close brackets are treated as ordinary characters
+with no special interpretation.
+
+Note: when it performs its substitutions, subst does not
+give any special treatment to double quotes or curly braces. For
+example, the script
+
set a 44
+subst {xyz {$a}}
+returns ``xyz {44}'', not ``xyz {$a}''.
+
+
+eval
+
+backslash substitution, command substitution, variable substitution
+
+Copyright © 1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/switch.htm b/hlp/en/tcl/switch.htm
new file mode 100644
index 0000000..7edab16
--- /dev/null
+++ b/hlp/en/tcl/switch.htm
@@ -0,0 +1,116 @@
+Tcl Built-In Commands - switch manual page
+
+- NAME
+
- switch - Evaluate one of several scripts, depending on a given value
+- SYNOPSIS
+
+- switch ?options? string pattern body ?pattern body ...?
+
- switch ?options? string {pattern body ?pattern body ...?}
+
+- DESCRIPTION
+
+- -exact
+
- -glob
+
- -regexp
+
- - -
+
+- SEE ALSO
+
- KEYWORDS
+
+
+switch - Evaluate one of several scripts, depending on a given value
+
+switch ?options? string pattern body ?pattern body ...?
+switch ?options? string {pattern body ?pattern body ...?}
+
+The switch command matches its string argument against each of
+the pattern arguments in order.
+As soon as it finds a pattern that matches string it
+evaluates the following body argument by passing it recursively
+to the Tcl interpreter and returns the result of that evaluation.
+If the last pattern argument is default then it matches
+anything.
+If no pattern argument
+matches string and no default is given, then the switch
+command returns an empty string.
+
+If the initial arguments to switch start with - then
+they are treated as options. The following options are
+currently supported:
+
+
+- -exact
-
+Use exact matching when comparing string to a pattern. This
+is the default.
+
- -glob
-
+When matching string to the patterns, use glob-style matching
+(i.e. the same as implemented by the string match command).
+
- -regexp
-
+When matching string to the patterns, use regular
+expression matching
+(as described in the re_syntax reference page).
+
- - -
-
+Marks the end of options. The argument following this one will
+be treated as string even if it starts with a -.
+
+
+Two syntaxes are provided for the pattern and body arguments.
+The first uses a separate argument for each of the patterns and commands;
+this form is convenient if substitutions are desired on some of the
+patterns or commands.
+The second form places all of the patterns and commands together into
+a single argument; the argument must have proper list structure, with
+the elements of the list being the patterns and commands.
+The second form makes it easy to construct multi-line switch commands,
+since the braces around the whole list make it unnecessary to include a
+backslash at the end of each line.
+Since the pattern arguments are in braces in the second form,
+no command or variable substitutions are performed on them; this makes
+the behavior of the second form different than the first form in some
+cases.
+
+If a body is specified as ``-'' it means that the body
+for the next pattern should also be used as the body for this
+pattern (if the next pattern also has a body of ``-''
+then the body after that is used, and so on).
+This feature makes it possible to share a single body among
+several patterns.
+
+Beware of how you place comments in switch commands. Comments
+should only be placed inside the execution body of one of the
+patterns, and not intermingled with the patterns.
+
+Below are some examples of switch commands:
+
switch abc a - b {format 1} abc {format 2} default {format 3}
+will return 2,
+switch -regexp aaab {
+ ^a.*b$ -
+ b {format 1}
+ a* {format 2}
+ default {format 3}
+}
+will return 1, and
+switch xyz {
+ a
+ -
+ b
+ {
+ # Correct Comment Placement
+ format 1
+ }
+ a*
+ {format 2}
+ default
+ {format 3}
+}
+will return 3.
+
+
+for, if, regexp
+
+switch, match, regular expression
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/tcl.toc.html b/hlp/en/tcl/tcl.toc.html
new file mode 100644
index 0000000..1c4e68f
--- /dev/null
+++ b/hlp/en/tcl/tcl.toc.html
@@ -0,0 +1,110 @@
+Tk Commands
+Http
+continue
+history
+pid
+switch
+Safe Base
+dde
+if
+pkg::create
+tcl_endOfWord
+Tcl
+encoding
+incr
+pkg_mkIndex
+tcl_findLibrary
+Tcltest
+eof
+info
+proc
+tcl_startOfNextWord
+after
+error
+interp
+puts
+tcl_startOfPreviousWord
+append
+eval
+join
+pwd
+tcl_wordBreakAfter
+array
+exec
+lappend
+re_syntax
+tcl_wordBreakBefore
+auto_execok
+exit
+lindex
+read
+tclvars
+auto_import
+expr
+linsert
+regexp
+tell
+auto_load
+fblocked
+list
+registry
+time
+auto_mkindex
+fconfigure
+llength
+regsub
+trace
+auto_mkindex_old
+fcopy
+load
+rename
+unknown
+auto_qualify
+file
+lrange
+resource
+unset
+auto_reset
+fileevent
+lreplace
+return
+update
+bgerror
+filename
+lsearch
+scan
+uplevel
+binary
+flush
+lsort
+seek
+upvar
+break
+for
+memory
+set
+variable
+catch
+foreach
+msgcat
+socket
+vwait
+cd
+format
+namespace
+source
+while
+clock
+gets
+open
+split
+close
+glob
+package
+string
+concat
+global
+parray
+subst
+
+
diff --git a/hlp/en/tcl/tclsh.htm b/hlp/en/tcl/tclsh.htm
new file mode 100644
index 0000000..44f372c
--- /dev/null
+++ b/hlp/en/tcl/tclsh.htm
@@ -0,0 +1,126 @@
+Applications - tclsh manual page
+
+- NAME
+
- tclsh - Simple shell containing Tcl interpreter
+- SYNOPSIS
+
+- tclsh ?fileName arg arg ...?
+
+- DESCRIPTION
+
- SCRIPT FILES
+
- VARIABLES
+
+- argc
+
- argv
+
- argv0
+
- tcl_interactive
+
+- PROMPTS
+
- KEYWORDS
+
+
+tclsh - Simple shell containing Tcl interpreter
+
+tclsh ?fileName arg arg ...?
+
+Tclsh is a shell-like application that reads Tcl commands
+from its standard input or from a file and evaluates them.
+If invoked with no arguments then it runs interactively, reading
+Tcl commands from standard input and printing command results and
+error messages to standard output.
+It runs until the exit command is invoked or until it
+reaches end-of-file on its standard input.
+If there exists a file .tclshrc (or tclshrc.tcl on
+the Windows platforms) in the home directory of
+the user, tclsh evaluates the file as a Tcl script
+just before reading the first command from standard input.
+
+
+If tclsh is invoked with arguments then the first argument
+is the name of a script file and any additional arguments
+are made available to the script as variables (see below).
+Instead of reading commands from standard input tclsh will
+read Tcl commands from the named file; tclsh will exit
+when it reaches the end of the file.
+There is no automatic evaluation of .tclshrc in this
+case, but the script file can always source it if desired.
+
+If you create a Tcl script in a file whose first line is
+
#!/usr/local/bin/tclsh
+then you can invoke the script file directly from your shell if
+you mark the file as executable.
+This assumes that tclsh has been installed in the default
+location in /usr/local/bin; if it's installed somewhere else
+then you'll have to modify the above line to match.
+Many UNIX systems do not allow the #! line to exceed about
+30 characters in length, so be sure that the tclsh
+executable can be accessed with a short file name.
+
+An even better approach is to start your script files with the
+following three lines:
+
#!/bin/sh
+# the next line restarts using tclsh \
+exec tclsh "$0" "$@"
+This approach has three advantages over the approach in the previous
+paragraph. First, the location of the tclsh binary doesn't have
+to be hard-wired into the script: it can be anywhere in your shell
+search path. Second, it gets around the 30-character file name limit
+in the previous approach.
+Third, this approach will work even if tclsh is
+itself a shell script (this is done on some systems in order to
+handle multiple architectures or operating systems: the tclsh
+script selects one of several binaries to run). The three lines
+cause both sh and tclsh to process the script, but the
+exec is only executed by sh.
+sh processes the script first; it treats the second
+line as a comment and executes the third line.
+The exec statement cause the shell to stop processing and
+instead to start up tclsh to reprocess the entire script.
+When tclsh starts up, it treats all three lines as comments,
+since the backslash at the end of the second line causes the third
+line to be treated as part of the comment on the second line.
+
+You should note that it is also common practise to install tclsh with
+its version number as part of the name. This has the advantage of
+allowing multiple versions of Tcl to exist on the same system at once,
+but also the disadvantage of making it harder to write scripts that
+start up uniformly across different versions of Tcl.
+
+
+Tclsh sets the following Tcl variables:
+
+
+- argc
-
+Contains a count of the number of arg arguments (0 if none),
+not including the name of the script file.
+
- argv
-
+Contains a Tcl list whose elements are the arg arguments,
+in order, or an empty string if there are no arg arguments.
+
- argv0
-
+Contains fileName if it was specified.
+Otherwise, contains the name by which tclsh was invoked.
+
- tcl_interactive
-
+Contains 1 if tclsh is running interactively (no
+fileName was specified and standard input is a terminal-like
+device), 0 otherwise.
+
+
+
+When tclsh is invoked interactively it normally prompts for each
+command with ``% ''. You can change the prompt by setting the
+variables tcl_prompt1 and tcl_prompt2. If variable
+tcl_prompt1 exists then it must consist of a Tcl script
+to output a prompt; instead of outputting a prompt tclsh
+will evaluate the script in tcl_prompt1.
+The variable tcl_prompt2 is used in a similar way when
+a newline is typed but the current command isn't yet complete;
+if tcl_prompt2 isn't set then no prompt is output for
+incomplete commands.
+
+
+argument, interpreter, prompt, script file, shell
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/tcltest.htm b/hlp/en/tcl/tcltest.htm
new file mode 100644
index 0000000..d7b16de
--- /dev/null
+++ b/hlp/en/tcl/tcltest.htm
@@ -0,0 +1,776 @@
+Tcl Built-In Commands - Tcltest manual page
+
+- NAME
+
- Tcltest - Test harness support code and utilities
+- SYNOPSIS
+
+- package require tcltest ?1.0?
+
- ::tcltest::test name desc ?constraint? script expectedAnswer
+
- ::tcltest::cleanupTests ?runningMultipleTests?
+
- ::tcltest::getMatchingTestFiles
+
- ::tcltest::loadTestedCommands
+
- ::tcltest::makeFile contents name
+
- ::tcltest::removeFile name
+
- ::tcltest::makeDirectory name
+
- ::tcltest::removeDirectory name
+
- ::tcltest::viewFile name
+
- ::tcltest::normalizeMsg msg
+
- ::tcltest::bytestring string
+
- ::tcltest::saveState
+
- ::tcltest::restoreState
+
- ::tcltest::threadReap
+
+- DESCRIPTION
+
- COMMANDS
+
+- ::tcltest::test name desc ?constraints? script expectedAnswer
+
- ::tcltest::cleanupTests ?runningMultipleTests?
+
- ::tcltest::getMatchingTestFiles
+
- ::tcltest::loadTestedCommands
+
- ::tcltest::makeFile contents name
+
- ::tcltest::removeFile name
+
- ::tcltest::makeDirectory name
+
- ::tcltest::removeDirectory name
+
- ::tcltest::viewFile file
+
- ::tcltest::normalizeMsg msg
+
- ::tcltest::bytestring string
+
- ::tcltest::saveState
+
- ::tcltest::threadReap
+
+- TESTS
+
- TCLTEST NAMEPSACE VARIABLES
+
+- ::tcltest::outputChannel
+
- ::tcltest::errorChannel
+
- ::tcltest::mainThread
+
- ::tcltest::originalEnv
+
- ::tcltest::workingDirectory
+
- ::tcltest::temporaryDirectory
+
- ::tcltest::testsDirectory
+
- ::tcltest::tcltest
+
- ::tcltest::loadScript
+
+- TEST CONSTRAINTS
+
+- unix
+
- pc
+
- nt
+
- 95
+
- 98
+
- mac
+
- unixOrPc
+
- macOrPc
+
- macOrUnix
+
- tempNotPc
+
- tempNotMac
+
- unixCrash
+
- pcCrash
+
- macCrash
+
- emptyTest
+
- knownBug
+
- nonPortable
+
- userInteraction
+
- interactive
+
- nonBlockFiles
+
- asyncPipeClose
+
- unixExecs
+
- hasIsoLocale
+
- root
+
- notRoot
+
- eformat
+
- stdio
+
+- RUNNING TEST FILES
+
+- -help
+
- -verbose <level>
+
- -match <matchList>
+
- -skip <skipList>
+
- -file <globPatternList>
+
- -notfile <globPatternList>
+
- -constraints <list>
+
- -limitconstraints <bool>
+
- -load <script>
+
- -loadfile <scriptfile>
+
- -tmpdir <directoryName>
+
- -testdir <directoryName>
+
- -preservecore <level>
+
+- 0
+
- 1
+
- 2
+
+- -debug <debugLevel>
+
+- 0
+
- 1
+
- 2
+
- 3
+
+- -outfile <filename>
+
- -errfile <filename>
+
+- TEST OUTPUT
+
- CONTENTS OF A TEST FILE
+
- SELECTING TESTS FOR EXECUTION WITHIN A FILE
+
+
+- HOW TO CUSTOMIZE THE TEST HARNESS
+
+- ::tcltest::PrintUsageInfoHook
+
- ::tcltest::processCmdLineArgsFlagHook
+
- ::tcltest::processCmdLineArgsHook flags
+
- ::tcltest::initConstraintsHook
+
- ::tcltest::cleanupTestsHook
+
+- EXAMPLES
+
+
+- KEYWORDS
+
+
+Tcltest - Test harness support code and utilities
+
+package require tcltest ?1.0?
+::tcltest::test name desc ?constraint? script expectedAnswer
+::tcltest::cleanupTests ?runningMultipleTests?
+::tcltest::getMatchingTestFiles
+::tcltest::loadTestedCommands
+::tcltest::makeFile contents name
+::tcltest::removeFile name
+::tcltest::makeDirectory name
+::tcltest::removeDirectory name
+::tcltest::viewFile name
+::tcltest::normalizeMsg msg
+::tcltest::bytestring string
+::tcltest::saveState
+::tcltest::restoreState
+::tcltest::threadReap
+
+The tcltest package provides the user with utility tools for
+writing and running tests in the Tcl test suite. It can also be used
+to create a customized test harness for an extension.
+
+The Tcl test suite consists of multiple .test files, each of which
+contains multiple test cases. Each test case consists of a call to
+the test command, which specifies the name of test, a short
+description, any constraints that apply to the test case, the script
+to be run, and expected results. See the sections "Tests,"
+"Test Constraints," and "Test Files and How to Run Them"
+for more details.
+
+It is also possible to add to this test harness to create your own
+customized test harness implementation. For more defails, see the
+section "How to Customize the Test Harness".
+
+This approach to testing was designed and initially implemented by
+Mary Ann May-Pumphrey of Sun Microsystems in the early 1990's. Many
+thanks to her for donating her work back to the public Tcl release.
+
+
+- ::tcltest::test name desc ?constraints? script expectedAnswer
-
+The ::tcltest::test command runsscript and compares
+its result to expectedAnswer. It prints an error message if the two do
+not match. If ::tcltest::verbose contains "p" or "s", it also prints
+out a message if the test passed or was skipped. The test will be
+skipped if it doesn't match the ::tcltest::match variable, if it
+matches an element in ::tcltest::skip, or if one of the elements
+of constraint turns out not to be true. The
+::tcltest::test command has no defined return values. See the
+"Writing a new test" section for more details on this command.
+
- ::tcltest::cleanupTests ?runningMultipleTests?
-
+This command should be called at the end of a test file. It prints
+statistics about the tests run and removes files that were created by
+::tcltest::makeDirectory and ::tcltest::makeFile. Names
+of files and directories created outside of
+::tcltest::makeFile and ::tcltest::makeDirectory and
+never deleted are printed to ::tcltest::outputChannel. This command
+also restores the original shell environment, as described by the ::env
+array. calledFromAll should be specified when
+::tcltest::cleanupTests is called from an "all.tcl" file. Tcl files
+files are generally used to run multiple tests. For more details on how to
+run multiple tests, please see the section "Running test files".
+This proc has no defined return value.
+
- ::tcltest::getMatchingTestFiles
-
+This command is used when you want to run multiple test files. It returns
+the list of tests that should be sourced in an 'all.tcl' file. See the
+section "Running test files" for more information.
+
- ::tcltest::loadTestedCommands
-
+This command uses the script specified via the -load or
+-loadfile to load the commands checked by the test suite.
+Allowed to be empty, as the tested commands could have been compiled
+into the interpreter running the test suite.
+
- ::tcltest::makeFile contents name
-
+Create a file that will be automatically be removed by
+::tcltest::cleanupTests at the end of a test file.
+This proc has no defined return value.
+
- ::tcltest::removeFile name
-
+Force the file referenced by name to be removed. This file name
+should be relative to ::tcltest::temporaryDirectory. This proc has no
+defined return values.
+
- ::tcltest::makeDirectory name
-
+Create a directory named name that will automatically be removed
+by ::tcltest::cleanupTests at the end of a test file. This proc
+has no defined return value.
+
- ::tcltest::removeDirectory name
-
+Force the directory referenced by name to be removed. This proc
+has no defined return value.
+
- ::tcltest::viewFile file
-
+Returns the contents of file.
+
- ::tcltest::normalizeMsg msg
-
+Remove extra newlines from msg.
+
- ::tcltest::bytestring string
-
+Construct a string that consists of the requested sequence of bytes,
+as opposed to a string of properly formed UTF-8 characters using the
+value supplied in string. This allows the tester to create
+denormalized or improperly formed strings to pass to C procedures that
+are supposed to accept strings with embedded NULL types and confirm
+that a string result has a certain pattern of bytes.
+
- ::tcltest::saveState
-
+::tcltest::restoreState
+Save and restore the procedure and global variable names.
+A test file might contain calls to ::tcltest::saveState and
+::tcltest:restoreState if it creates or deletes global variables
+or procs.
+
- ::tcltest::threadReap
-
+::tcltest::threadReap only works if testthread is
+defined, generally by compiling tcltest. If testthread is
+defined, ::tcltest::threadReap kills all threads except for the
+main thread. It gets the ID of the main thread by calling
+testthread names during initialization. This value is stored in
+::tcltest::mainThread. ::tcltest::threadReap returns the
+number of existing threads at completion.
+
+
+The test procedure runs a test script and prints an error
+message if the script's result does not match the expected result.
+The following is the spec for the test command:
+test <name> <description> ?<constraint>? <script> <expectedAnswer>
+The <name> argument should follow the pattern:
+<target>-<majorNum>.<minorNum>
+For white-box (regression) tests, the target should be the name of the
+C function or Tcl procedure being tested. For black-box tests, the
+target should be the name of the feature being tested. Related tests
+should share a major number.
+
+The <description> argument is a short textual description of the test,
+to help humans understand what it tests. The name of a Tcl or C
+function being tested should be included for regression tests. If the
+test case exists to reproduce a bug, include the bug ID in the
+description.
+
+The optional <constraints> argument can be list of one or more
+keywords or an expression. If the <constraints> argument consists of
+keywords, each of these keywords must be the name of an element in the array
+::tcltest::testConstraints. If any of these elements is false or does
+not exist, the test is skipped. If the <constraints> argument
+consists of an expression, that expression is evaluated. If the
+expression evaluates to true, then the test is run.
+
+Add appropriate constraints (e.g.,
+unixOnly) to any tests that should not always be run. For example, a
+test that should only be run on Unix should look like the following:
+
+
test getAttribute-1.1 {testing file permissions} {unixOnly} {
+ lindex [file attributes foo.tcl] 5
+} {00644}
+
+An example of a test that contains an expression:
+
+
test unixNotfy-1.1 {Tcl_DeleteFileHandler} {unixOnly && !testthread} {
+ catch {vwait x}
+ set f [open foo w]
+ fileevent $f writable {set x 1}
+ vwait x
+ close $f
+ list [catch {vwait x} msg] $msg
+} {1 {can't wait for variable "x": would wait forever}}
+
+See the "Test Constraints" section for a list of built-in
+constraints and information on how to add your own constraints.
+
+The <script> argument contains the script to run to carry out the
+test. It must return a result that can be checked for correctness.
+If your script requires that a file be created on the fly, please use
+the ::tcltest::makeFile procedure. If your test requires that a small
+file (<50 lines) be checked in, please consider creating the file on
+the fly using the ::tcltest::makeFile procedure. Files created by the
+::tcltest::makeFile procedure will automatically be removed by the
+::tcltest::cleanupTests call at the end of each test file.
+
+The <expectedAnswer> argument will be compared against the result of
+evaluating the <script> argument. If they match, the test passes,
+otherwise the test fails.
+
+The following variables are also defined in the tcltest namespace and
+can be used by tests:
+
+
+- ::tcltest::outputChannel
-
+output file ID - defaults to stdout and can be specified using
+-outfile on the command line.
+Any test that prints test related output should send
+that output to ::tcltest::outputChannel rather than letting
+that output default to stdout.
+
- ::tcltest::errorChannel
-
+error file ID - defaults to stderr and can be specified using -errfile
+on the command line.
+Any test that prints error messages should send
+that output to ::tcltest::errorChannel rather than printing
+directly to stderr.
+
- ::tcltest::mainThread
-
+main thread ID - defaults to 1. This is the only thread that is not
+killed by ::tcltest::threadReap and is set according to the return
+value of testthread names at initialization.
+
- ::tcltest::originalEnv
-
+copy of the global "env" array at the beginning of the test run. This
+array is used to restore the "env" array to its original state when
+::tcltest::cleanupTests is called.
+
- ::tcltest::workingDirectory
-
+the directory in which the test suite was launched.
+
- ::tcltest::temporaryDirectory
-
+the output directory - defaults to ::tcltest::workingDirectory and can be
+specified using -tmpdir on the command line.
+
- ::tcltest::testsDirectory
-
+where the tests reside - defaults to ::tcltest::workingDirectory
+if the script cannot determine where the tests directory is
+located. It is possible to change the default by specifying
+-testdir on the commandline. This variable should be
+explicitly set if tests are being run from an all.tcl file.
+
- ::tcltest::tcltest
-
+the name of the executable used to invoke the test suite.
+
- ::tcltest::loadScript
-
+The script executed loadTestedCommands. Specified either by
+-load or -loadfile.
+
+
+Constraints are used to determine whether a test should be skipped.
+Each constraint is stored as an index in the array
+::tcltest::testConstraints. For example, the unixOnly constraint is
+defined as the following:
+set ::tcltest::testConstraints(unixOnly) \
+ [string equal $tcl_platform(platform) "unix"]
+If a test is constrained by "unixOnly", then it will only be run if
+the value of ::tcltest::testConstraints(unixOnly) is true. Several
+constraints are defined in the tcltest package. To add file- or
+test-specific constraints, you can set the desired index of the
+::tcltest::testsConstraints array in your own test file.
+
+The following is a list of constraints defined in the tcltest package:
+
+
+- unix
-
+test can only be run on any UNIX platform
+
- pc
-
+test can only be run on any Windows platform
+
- nt
-
+test can only be run on any Windows NT platform
+
- 95
-
+test can only be run on any Windows 95 platform
+
- 98
-
+test can only be run on any Windows 98 platform
+
- mac
-
+test can only be run on any Mac platform
+
- unixOrPc
-
+test can only be run on a UNIX or PC platform
+
- macOrPc
-
+test can only be run on a Mac or PC platform
+
- macOrUnix
-
+test can only be run on a Mac or UNIX platform
+
- tempNotPc
-
+test can not be run on Windows. This flag is used to temporarily
+disable a test.
+
- tempNotMac
-
+test can not be run on a Mac. This flag is used
+to temporarily disable a test.
+
- unixCrash
-
+test crashes if it's run on UNIX. This flag is used to temporarily
+disable a test.
+
- pcCrash
-
+test crashes if it's run on Windows. This flag is used to temporarily
+disable a test.
+
- macCrash
-
+test crashes if it's run on a Mac. This flag is used to temporarily
+disable a test.
+
- emptyTest
-
+test is empty, and so not worth running, but it remains as a
+place-holder for a test to be written in the future. This constraint
+always causes tests to be skipped.
+
- knownBug
-
+test is known to fail and the bug is not yet fixed. This constraint
+always causes tests to be skipped unless the user specifies otherwise.
+See the "Introduction" section for more details.
+
- nonPortable
-
+test can only be run in the master Tcl/Tk development environment.
+Some tests are inherently non-portable because they depend on things
+like word length, file system configuration, window manager, etc.
+These tests are only run in the main Tcl development directory where
+the configuration is well known. This constraint always causes tests
+to be skipped unless the user specifies otherwise.
+
- userInteraction
-
+test requires interaction from the user. This constraint always
+causes tests to be skipped unless the user specifies otherwise.
+
- interactive
-
+test can only be run in if the interpreter is in interactive mode,
+that is the global tcl_interactive variable is set to 1.
+
- nonBlockFiles
-
+test can only be run if platform supports setting files into
+nonblocking mode
+
- asyncPipeClose
-
+test can only be run if platform supports async flush and async close
+on a pipe
+
- unixExecs
-
+test can only be run if this machine has commands such as 'cat', 'echo',
+etc. available.
+
- hasIsoLocale
-
+test can only be run if can switch to an ISO locale
+
- root
-
+test can only run if Unix user is root
+
- notRoot
-
+test can only run if Unix user is not root
+
- eformat
-
+test can only run if app has a working version of sprintf with respect
+to the "e" format of floating-point numbers.
+
- stdio
-
+test can only be run if the current app can be spawned via a pipe
+
+
+Use the following command to run a test file that uses package
+tcltest:
+<shell> <testFile> ?<option> ?<value>?? ...
+Command line options include (tcltest namespace variables that
+correspond to each flag are listed at the end of each flag description
+in parenthesis):
+
+
+- -help
-
+display usage information.
+
- -verbose <level>
-
+set the level of verbosity to a substring of "bps". See the "Test
+output" section for an explanation of this option. (::tcltest::verbose)
+
- -match <matchList>
-
+only run tests that match one or more of the glob patterns in
+<matchList>. (::tcltest::match)
+
- -skip <skipList>
-
+do not run tests that match one or more of the glob patterns in
+<skipList>. (::tcltest::skip)
+
- -file <globPatternList>
-
+only source test files that match any of the items in
+<globPatternList> relative to ::tcltest::testsDirectory.
+This option
+only makes sense if you are running tests using "all.tcl" as the
+<testFile> instead of running single test files directly.
+(::tcltest::matchFiles)
+
- -notfile <globPatternList>
-
+source files except for those that match any of the items in
+<globPatternList> relative to ::tcltest::testsDirectory.
+This option
+only makes sense if you are running tests using "all.tcl" as the
+<testFile> instead of running single test files directly.
+(::tcltest::skipFiles)
+
- -constraints <list>
-
+tests with any constraints in <list> will not be skipped. Note that
+elements of <list> must exactly match the existing constraints. This
+is useful if you want to make sure that tests with a particular
+constraint are run (for example, if the tester wants to run all tests
+with the knownBug constraint).
+(::tcltest::testConstraints(constraintName))
+
- -limitconstraints <bool>
-
+If the argument to this flag is 1, the test harness limits test runs
+to those tests that match the constraints listed by the -constraints
+flag. Use of this flag requires use of the -constraints flag. The
+default value for this flag is 0 (false). This is useful if you want
+to run only those tests that match the constraints listed using
+the -constraints option. A tester might want to do this if he were
+interested in running only those tests that are constrained to be
+unixOnly and no other tests.
+(::tcltest::limitConstraints)
+
- -load <script>
-
+will use the specified script to load the commands under test
+(::tcltest::loadTestedCommands). The default is the empty
+script. See -loadfile below too. (::tcltest::loadScript)
+
- -loadfile <scriptfile>
-
+will use the contents of the named file to load the commands under
+test (::tcltest::loadTestedCommands). See -load above too. The default
+is the empty script. (::tcltest::loadScript)
+
- -tmpdir <directoryName>
-
+put any temporary files (created with ::tcltest::makeFile and
+::tcltest::makeDirectory) into the named directory. The default
+location is ::tcltest::workingDirectory. (::tcltest::temporaryDirectory)
+
- -testdir <directoryName>
-
+search the test suite to execute in the named directory. The default
+location is ::tcltest::workingDirectory. (::tcltest::testsDirectory)
+
- -preservecore <level>
-
+check for core files. This flag is used to determine how much
+checking should be done for core files. The default value for
+level is 0. Levels are defined as:
+
+
+- 0
-
+No checking - do not check for core files at the end of each test
+command, but do check for them whenever ::tcltest::cleanupTests is
+called from an all.tcl file.
+
- 1
-
+Check for core files at the end of each test command and whenever
+::tcltest::cleanupTests is called from all.tcl.
+
- 2
-
+Check for core files at the end of all test commands and whenever
+::tcltest::cleanupTests is called from all.tcl. Save any core files
+produced in ::tcltest::temporaryDirectory.
+
+
+(::tcltest::preserveCore)
+
- -debug <debugLevel>
-
+print debug information to stdout. This is used to debug code in the
+test harness. The default debug level is 0. Levels are defined as:
+
+
+- 0
-
+Do not display any debug information.
+
- 1
-
+Display information regarding whether a test is skipped because it
+doesn't match any of the tests that were specified using -match or
+::tcltest::match (userSpecifiedNonMatch) or matches any of the tests
+specified by -skip or ::tcltest::skip (userSpecifiedSkip).
+
- 2
-
+Display the flag array parsed by the command line processor, the
+contents of the ::env array, and all user-defined variables that exist
+in the current namespace as they are used.
+
- 3
-
+Display information regarding what individual procs in the test
+harness are doing.
+
+
+(::tcltest::debug)
+
- -outfile <filename>
-
+print output generated by the tcltest package to the named file. This
+defaults to stdout. Note that debug output always goes to stdout,
+regardless of this flag's setting. (::tcltest::outputChannel)
+
- -errfile <filename>
-
+print errors generated by the tcltest package to the named file. This
+defaults to stderr. (::tcltest::errorChannel)
+
+
+A second way to run tets is to start up a shell, load the
+tcltest package, and then source an appropriate test file or use
+the test command. To use the options in interactive mode, set
+their corresponding tcltest namespace variables after loading the
+package.
+
+See "Test Constraints" for all built-in constraint names
+that can be used in the ::tcltest::testConstraints array.
+See "Tcltest namespace variables" for details on other variables
+defined in the tcltest namespace.
+
+A final way to run tests would be to specify which test files to run
+within an all.tcl (or otherwise named) file. This is the
+approach used by the Tcl test suite. This file loads the tcltest
+package, sets the location of
+the test directory (::tcltest::testsDirectory), determines which test
+files to run, sources each of these files, calls
+::tcltest::cleanupTests and then exits.
+
+A more elaborate all.tcl file might do some pre- and
+post-processing before sourcing
+each .test file, use separate interpreters for each file, or handle
+complex directory structures.
+For an example of an all.tcl file,
+please see the "Examples" section of this document.
+
+After all specified test files are run, the number of tests
+passed, skipped, and failed is printed to
+::tcltest::outputChannel. Aside from this
+statistical information, output can be controlled on a per-test basis
+by the ::tcltest::verbose variable.
+
+::tcltest::verbose can be set to any substring or permutation
+of "bps". In the string "bps", the 'b' stands for a test's "body",
+the 'p' stands for "passed" tests, and the 's' stands for "skipped"
+tests. The default value of ::tcltest::verbose is "b". If 'b'
+is present, then the entire body of the test is printed for each
+failed test, otherwise only the test's name, desired output, and
+actual output, are printed for each failed test. If 'p' is present,
+then a line is printed for each passed test, otherwise no line is
+printed for passed tests. If 's' is present, then a line (containing
+the consraints that cause the test to be skipped) is printed for each
+skipped test, otherwise no line is printed for skipped tests.
+
+You can set ::tcltest::verbose either interactively (after the
+tcltest package has been loaded) or by using the command line
+argument -verbose, for example:
+
tclsh socket.test -verbose bps
+
+Test files should begin by loading the tcltest package:
+if {[lsearch [namespace children] ::tcltest] == -1} {
+ package require tcltest
+ namespace import ::tcltest::*
+}
+Test files should end by cleaning up after themselves and calling
+::tcltest::cleanupTests. The ::tcltest::cleanupTests
+procedure prints statistics about the number of tests that passed,
+skipped, and failed, and removes all files that were created using the
+::tcltest::makeFile and ::tcltest::makeDirectory procedures.
+# Remove files created by these tests
+# Change to original working directory
+# Unset global arrays
+::tcltest::cleanupTests
+return
+When naming test files, file names should end with a .test extension.
+The names of test files that contain regression (or glass-box) tests
+should correspond to the Tcl or C code file that they are testing.
+For example, the test file for the C file "tclCmdAH.c" is "cmdAH.test".
+Test files that contain black-box tests should match the pattern "*_bb.test".
+
+Normally, all the tests in a file are run whenever the file is
+sourced. An individual test will be skipped if one of the following
+conditions is met:
+
+
+- [1]
-
+the name of the tests does not match (using glob style matching)
+one or more elements in the ::tcltest::match variable
+
- [2]
-
+the name of the tests matches (using glob style matching) one or
+more elements in the ::tcltest::skip variable
+
- [3]
-
+the constraints argument to the ::tcltest::test call, if
+given, contains one or more false elements.
+
+
+You can set ::tcltest::match and/or ::tcltest::skip
+either interactively (after the tcltest package has been
+sourced), or by using the command line arguments -match and
+-skip, for example:
+
+
tclsh info.test -match '*-5.* *-7.*' -skip '*-7.1*'
+
+Be sure to use the proper quoting convention so that your shell does
+not perform the glob substitution on the match or skip patterns you
+specify.
+
+Predefined constraints (e.g. knownBug and nonPortable) can be
+overridden either interactively (after the tcltest package has been
+sourced) by setting the proper
+::tcltest::testConstraints(constraint) variable
+or by using the -constraints command line option with the name of the
+constraint in the argument. The following example shows how to run
+tests that are constrained by the knownBug and nonPortable
+restrictions:
+
+
tclsh all.tcl -constraints "knownBug nonPortable"
+
+See the "Constraints" package for information about using
+built-in constraints and adding new ones.
+
+To create your own custom test harness, create a .tcl file that contains your
+namespace. Within this file, require package tcltest. Commands
+that can be redefined to customize the test harness include:
+
+
+- ::tcltest::PrintUsageInfoHook
-
+print additional usage information specific to your situation.
+
- ::tcltest::processCmdLineArgsFlagHook
-
+tell the test harness about additional flags that you want it to understand.
+
- ::tcltest::processCmdLineArgsHook flags
-
+process the additional flags that you told the harness about in
+::tcltest::processCmdLineArgsFlagHook.
+
- ::tcltest::initConstraintsHook
-
+used to add additional built-in constraints to those already defined
+by tcltest.
+
- ::tcltest::cleanupTestsHook
-
+do additional cleanup
+
+
+
+To add new flags to your customized test harness, redefine
+::tcltest::processCmdLineArgsAddFlagHook to define additional flags to be
+parsed and ::tcltest::processCmdLineArgsHook to actually process them.
+For example:
+
proc ::tcltest::processCmdLineArgsAddFlagHook {} {
+ return [list -flag1 -flag2]
+}
+
+proc ::tcltest::processCmdLineArgsHook {flagArray} {
+ array set flag $flagArray
+
+ if {[info exists flag(-flag1)]} {
+ # Handle flag1
+ }
+
+ if {[info exists flag(-flag2)]} {
+ # Handle flag2
+ }
+
+ return
+}
+You may also want to add usage information for these flags. This
+information would be displayed whenever the user specifies -help. To
+define additional usage information, define your own
+::tcltest::PrintUsageInfoHook proc. Within this proc, you should
+print out additional usage information for any flags that you've
+implemented.
+
+To add new built-in
+constraints to the test harness, define your own version of
+::tcltest::initConstraintsHook.
+Within your proc, you can add to the ::tcltest::testConstraints array.
+For example:
+
proc ::tcltest::initConstraintsHook {} {
+ set ::tcltest::testConstraints(win95Or98) \
+ [expr {$::tcltest::testConstraints(95) || \
+ $::tcltest::testConstraints(98)}]
+}
+
+Finally, if you want to add additional cleanup code to your harness
+you can define your own ::tcltest::cleanupTestsHook. For example:
+
proc ::tcltest::cleanupTestsHook {} {
+ # Add your cleanup code here
+}
+
+
+- [1]
-
+A simple test file (foo.test)
+
if {[lsearch [namespace children] ::tcltest] == -1} {
+ package require tcltest
+ namespace import ::tcltest::*
+}
+
+test foo-1.1 {save 1 in variable name foo} {} {
+ set foo 1
+} {1}
+
+::tcltest::cleanupTests
+return
+ - [2]
-
+A simple all.tcl
+
if {[lsearch [namespace children] ::tcltest] == -1} {
+ package require tcltest
+ namespace import ::tcltest::*
+}
+
+set ::tcltest::testSingleFile false
+set ::tcltest::testsDirectory [file dir [info script]]
+
+foreach file [::tcltest::getMatchingTestFiles] {
+ if {[catch {source $file} msg]} {
+ puts stdout $msg
+ }
+}
+
+::tclttest::cleanupTests 1
+return
+ - [3]
-
+Running a single test
+
tclsh foo.test
+ - [4]
-
+Running multiple tests
+
tclsh all.tcl -file 'foo*.test' -notfile 'foo2.test'
+
+
+test, test harness, test suite
+
+Copyright © 1990-1994 The Regents of the University of California
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1998-1999 Scriptics Corporation
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/tclvars.htm b/hlp/en/tcl/tclvars.htm
new file mode 100644
index 0000000..f224550
--- /dev/null
+++ b/hlp/en/tcl/tclvars.htm
@@ -0,0 +1,404 @@
+Tcl Built-In Commands - tclvars manual page
+
+- NAME
+
- tclvars - Variables used by Tcl
+- DESCRIPTION
+
+- env
+
+- LOGIN
+
- USER
+
- SYS_FOLDER
+
- APPLE_M_FOLDER
+
- CP_FOLDER
+
- DESK_FOLDER
+
- EXT_FOLDER
+
- PREF_FOLDER
+
- PRINT_MON_FOLDER
+
- SHARED_TRASH_FOLDER
+
- TRASH_FOLDER
+
- START_UP_FOLDER
+
- HOME
+
+- errorCode
+
+- ARITH code msg
+
- CHILDKILLED pid sigName msg
+
- CHILDSTATUS pid code
+
- CHILDSUSP pid sigName msg
+
- NONE
+
- POSIX errName msg
+
+- errorInfo
+
- tcl_library
+
- tcl_patchLevel
+
- tcl_pkgPath
+
- tcl_platform
+
+- byteOrder
+
- debug
+
- machine
+
- os
+
- osVersion
+
- platform
+
- threaded
+
- user
+
+- tcl_precision
+
- tcl_rcFileName
+
- tcl_rcRsrcName
+
- tcl_traceCompile
+
- tcl_traceExec
+
- tcl_wordchars
+
- tcl_nonwordchars
+
- tcl_version
+
+- SEE ALSO
+
- KEYWORDS
+
+
+tclvars - Variables used by Tcl
+
+The following global variables are created and managed automatically
+by the Tcl library. Except where noted below, these variables should
+normally be treated as read-only by application-specific code and by users.
+
+
+- env
-
+This variable is maintained by Tcl as an array
+whose elements are the environment variables for the process.
+Reading an element will return the value of the corresponding
+environment variable.
+Setting an element of the array will modify the corresponding
+environment variable or create a new one if it doesn't already
+exist.
+Unsetting an element of env will remove the corresponding
+environment variable.
+Changes to the env array will affect the environment
+passed to children by commands like exec.
+If the entire env array is unset then Tcl will stop
+monitoring env accesses and will not update environment
+variables.
+
-
+Under Windows, the environment variables PATH and COMSPEC in any
+capitalization are converted automatically to upper case. For instance, the
+PATH variable could be exported by the operating system as ``path'',
+``Path'', ``PaTh'', etc., causing otherwise simple Tcl code to have to
+support many special cases. All other environment variables inherited by
+Tcl are left unmodified.
+
+-
+On the Macintosh, the environment variable is constructed by Tcl as no
+global environment variable exists. The environment variables that
+are created for Tcl include:
+
+
+- LOGIN
-
+This holds the Chooser name of the Macintosh.
+
- USER
-
+This also holds the Chooser name of the Macintosh.
+
- SYS_FOLDER
-
+The path to the system directory.
+
- APPLE_M_FOLDER
-
+The path to the Apple Menu directory.
+
- CP_FOLDER
-
+The path to the control panels directory.
+
- DESK_FOLDER
-
+The path to the desk top directory.
+
- EXT_FOLDER
-
+The path to the system extensions directory.
+
- PREF_FOLDER
-
+The path to the preferences directory.
+
- PRINT_MON_FOLDER
-
+The path to the print monitor directory.
+
- SHARED_TRASH_FOLDER
-
+The path to the network trash directory.
+
- TRASH_FOLDER
-
+The path to the trash directory.
+
- START_UP_FOLDER
-
+The path to the start up directory.
+
- HOME
-
+The path to the application's default directory.
+
+
+You can also create your own environment variables for the Macintosh.
+A file named Tcl Environment Variables may be placed in the
+preferences folder in the Mac system folder. Each line of this file
+should be of the form VAR_NAME=var_data.
+
+The last alternative is to place environment variables in a 'STR#'
+resource named Tcl Environment Variables of the application. This
+is considered a little more ``Mac like'' than a Unix style Environment
+Variable file. Each entry in the 'STR#' resource has the same format
+as above. The source code file tclMacEnv.c contains the
+implementation of the env mechanisms. This file contains many
+#define's that allow customization of the env mechanisms to fit your
+applications needs.
+
+ - errorCode
-
+After an error has occurred, this variable will be set to hold
+additional information about the error in a form that is easy
+to process with programs.
+errorCode consists of a Tcl list with one or more elements.
+The first element of the list identifies a general class of
+errors, and determines the format of the rest of the list.
+The following formats for errorCode are used by the
+Tcl core; individual applications may define additional formats.
+
+
+- ARITH code msg
-
+This format is used when an arithmetic error occurs (e.g. an attempt
+to divide by zero in the expr command).
+Code identifies the precise error and msg provides a
+human-readable description of the error. Code will be either
+DIVZERO (for an attempt to divide by zero),
+DOMAIN (if an argument is outside the domain of a function, such as acos(-3)),
+IOVERFLOW (for integer overflow),
+OVERFLOW (for a floating-point overflow),
+or UNKNOWN (if the cause of the error cannot be determined).
+
- CHILDKILLED pid sigName msg
-
+This format is used when a child process has been killed because of
+a signal. The second element of errorCode will be the
+process's identifier (in decimal).
+The third element will be the symbolic name of the signal that caused
+the process to terminate; it will be one of the names from the
+include file signal.h, such as SIGPIPE.
+The fourth element will be a short human-readable message
+describing the signal, such as ``write on pipe with no readers''
+for SIGPIPE.
+
- CHILDSTATUS pid code
-
+This format is used when a child process has exited with a non-zero
+exit status. The second element of errorCode will be the
+process's identifier (in decimal) and the third element will be the exit
+code returned by the process (also in decimal).
+
- CHILDSUSP pid sigName msg
-
+This format is used when a child process has been suspended because
+of a signal.
+The second element of errorCode will be the process's identifier,
+in decimal.
+The third element will be the symbolic name of the signal that caused
+the process to suspend; this will be one of the names from the
+include file signal.h, such as SIGTTIN.
+The fourth element will be a short human-readable message
+describing the signal, such as ``background tty read''
+for SIGTTIN.
+
- NONE
-
+This format is used for errors where no additional information is
+available for an error besides the message returned with the
+error. In these cases errorCode will consist of a list
+containing a single element whose contents are NONE.
+
- POSIX errName msg
-
+If the first element of errorCode is POSIX, then
+the error occurred during a POSIX kernel call.
+The second element of the list will contain the symbolic name
+of the error that occurred, such as ENOENT; this will
+be one of the values defined in the include file errno.h.
+The third element of the list will be a human-readable
+message corresponding to errName, such as
+``no such file or directory'' for the ENOENT case.
+
To set errorCode, applications should use library
+procedures such as Tcl_SetErrorCode and Tcl_PosixError,
+or they may invoke the error command.
+If one of these methods hasn't been used, then the Tcl
+interpreter will reset the variable to NONE after
+the next error.
+
+ - errorInfo
-
+After an error has occurred, this string will contain one or more lines
+identifying the Tcl commands and procedures that were being executed
+when the most recent error occurred.
+Its contents take the form of a stack trace showing the various
+nested Tcl commands that had been invoked at the time of the error.
+
- tcl_library
-
+This variable holds the name of a directory containing the
+system library of Tcl scripts, such as those used for auto-loading.
+The value of this variable is returned by the info library command.
+See the library manual entry for details of the facilities
+provided by the Tcl script library.
+Normally each application or package will have its own application-specific
+script library in addition to the Tcl script library;
+each application should set a global variable with a name like
+$app_library (where app is the application's name)
+to hold the network file name for that application's library directory.
+The initial value of tcl_library is set when an interpreter
+is created by searching several different directories until one is
+found that contains an appropriate Tcl startup script.
+If the TCL_LIBRARY environment variable exists, then
+the directory it names is checked first.
+If TCL_LIBRARY isn't set or doesn't refer to an appropriate
+directory, then Tcl checks several other directories based on a
+compiled-in default location, the location of the binary containing
+the application, and the current working directory.
+
- tcl_patchLevel
-
+When an interpreter is created Tcl initializes this variable to
+hold a string giving the current patch level for Tcl, such as
+7.3p2 for Tcl 7.3 with the first two official patches, or
+7.4b4 for the fourth beta release of Tcl 7.4.
+The value of this variable is returned by the info patchlevel
+command.
+
- tcl_pkgPath
-
+This variable holds a list of directories indicating where packages are
+normally installed. It is not used on Windows. It typically contains
+either one or two entries; if it contains two entries, the first is
+normally a directory for platform-dependent packages (e.g., shared library
+binaries) and the second is normally a directory for platform-independent
+packages (e.g., script files). Typically a package is installed as a
+subdirectory of one of the entries in $tcl_pkgPath. The directories
+in $tcl_pkgPath are included by default in the auto_path
+variable, so they and their immediate subdirectories are automatically
+searched for packages during package require commands. Note:
+tcl_pkgPath it not intended to be modified by the application. Its
+value is added to auto_path at startup; changes to tcl_pkgPath
+are not reflected in auto_path. If you want Tcl to search additional
+directories for packages you should add the names of those directories to
+auto_path, not tcl_pkgPath.
+
- tcl_platform
-
+This is an associative array whose elements contain information about
+the platform on which the application is running, such as the name of
+the operating system, its current release number, and the machine's
+instruction set. The elements listed below will always
+be defined, but they may have empty strings as values if Tcl couldn't
+retrieve any relevant information. In addition, extensions
+and applications may add additional values to the array. The
+predefined elements are:
+
+
+
+
+
+
+
+- byteOrder
-
+The native byte order of this machine: either littleEndian or
+bigEndian.
+
- debug
-
+If this variable exists, then the interpreter
+was compiled with debugging symbols enabled. This varible will only
+exist on Windows so extension writers can specify which package to load
+depending on the C run-time library that is loaded.
+
- machine
-
+The instruction set executed by this machine, such as
+intel, PPC, 68k, or sun4m. On UNIX machines, this
+is the value returned by uname -m.
+
- os
-
+The name of the operating system running on this machine,
+such as Windows 95, Windows NT, MacOS, or SunOS.
+On UNIX machines, this is the value returned by uname -s.
+On Windows 95 and Windows 98, the value returned will be Windows
+95 to provide better backwards compatibility to Windows 95; to
+distinguish between the two, check the osVersion.
+
- osVersion
-
+The version number for the operating system running on this machine.
+On UNIX machines, this is the value returned by uname -r. On
+Windows 95, the version will be 4.0; on Windows 98, the version will
+be 4.10.
+
- platform
-
+Either windows, macintosh, or unix. This identifies the
+general operating environment of the machine.
+
- threaded
-
+If this variable exists, then the interpreter
+was compiled with threads enabled.
+
- user
-
+This identifies the
+current user based on the login information available on the platform.
+This comes from the USER or LOGNAME environment variable on Unix,
+and the value from GetUserName on Windows and Macintosh.
+
+ - tcl_precision
-
+This variable controls the number of digits to generate
+when converting floating-point values to strings. It defaults
+to 12.
+17 digits is ``perfect'' for IEEE floating-point in that it allows
+double-precision values to be converted to strings and back to
+binary with no loss of information. However, using 17 digits prevents
+any rounding, which produces longer, less intuitive results. For example,
+expr 1.4 returns 1.3999999999999999 with tcl_precision
+set to 17, vs. 1.4 if tcl_precision is 12.
+
-
+All interpreters in a process share a single tcl_precision value:
+changing it in one interpreter will affect all other interpreters as
+well. However, safe interpreters are not allowed to modify the
+variable.
+
+ - tcl_rcFileName
-
+This variable is used during initialization to indicate the name of a
+user-specific startup file. If it is set by application-specific
+initialization, then the Tcl startup code will check for the existence
+of this file and source it if it exists. For example, for wish
+the variable is set to ~/.wishrc for Unix and ~/wishrc.tcl
+for Windows.
+
- tcl_rcRsrcName
-
+This variable is only used on Macintosh systems. The variable is used
+during initialization to indicate the name of a user-specific
+TEXT resource located in the application or extension resource
+forks. If it is set by application-specific initialization, then the
+Tcl startup code will check for the existence of this resource and
+source it if it exists. For example, the Macintosh wish
+application has the variable is set to tclshrc.
+
- tcl_traceCompile
-
+The value of this variable can be set to control
+how much tracing information
+is displayed during bytecode compilation.
+By default, tcl_traceCompile is zero and no information is displayed.
+Setting tcl_traceCompile to 1 generates a one line summary in stdout
+whenever a procedure or top level command is compiled.
+Setting it to 2 generates a detailed listing in stdout of the
+bytecode instructions emitted during every compilation.
+This variable is useful in
+tracking down suspected problems with the Tcl compiler.
+It is also occasionally useful when converting
+existing code to use Tcl8.0.
+
- tcl_traceExec
-
+The value of this variable can be set to control
+how much tracing information
+is displayed during bytecode execution.
+By default, tcl_traceExec is zero and no information is displayed.
+Setting tcl_traceExec to 1 generates a one line trace in stdout
+on each call to a Tcl procedure.
+Setting it to 2 generates a line of output
+whenever any Tcl command is invoked
+that contains the name of the command and its arguments.
+Setting it to 3 produces a detailed trace showing the result of
+executing each bytecode instruction.
+Note that when tcl_traceExec is 2 or 3,
+commands such as set and incr
+that have been entirely replaced by a sequence
+of bytecode instructions are not shown.
+Setting this variable is useful in
+tracking down suspected problems with the bytecode compiler
+and interpreter.
+It is also occasionally useful when converting
+code to use Tcl8.0.
+
- tcl_wordchars
-
+The value of this variable is a regular expression that can be set to
+control what are considered ``word'' characters, for instances like
+selecting a word by double-clicking in text in Tk. It is platform
+dependent. On Windows, it defaults to \S, meaning anything
+but a Unicode space character. Otherwise it defaults to \w,
+which is any Unicode word character (number, letter, or underscore).
+
- tcl_nonwordchars
-
+The value of this variable is a regular expression that can be set to
+control what are considered ``non-word'' characters, for instances like
+selecting a word by double-clicking in text in Tk. It is platform
+dependent. On Windows, it defaults to \s, meaning any Unicode space
+character. Otherwise it defaults to \W, which is anything but a
+Unicode word character (number, letter, or underscore).
+
- tcl_version
-
+When an interpreter is created Tcl initializes this variable to
+hold the version number for this version of Tcl in the form x.y.
+Changes to x represent major changes with probable
+incompatibilities and changes to y represent small enhancements and
+bug fixes that retain backward compatibility.
+The value of this variable is returned by the info tclversion
+command.
+
+
+
+eval
+
+arithmetic, bytecode, compiler, error, environment, POSIX, precision, subprocess, variables
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/tell.htm b/hlp/en/tcl/tell.htm
new file mode 100644
index 0000000..80ed7fd
--- /dev/null
+++ b/hlp/en/tcl/tell.htm
@@ -0,0 +1,22 @@
+Tcl Built-In Commands - tell manual page
+
+tell - Return current access position for an open channel
+
+tell channelId
+
+Returns an integer string giving the current access position in
+channelId. This value returned is a byte offset that can be passed to
+seek in order to set the channel to a particular position. Note
+that this value is in terms of bytes, not characters like read.
+The value returned is -1 for channels that do not support
+seeking.
+
+
+file, open, close, gets, seek
+
+access position, channel, seeking
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/time.htm b/hlp/en/tcl/time.htm
new file mode 100644
index 0000000..88e0af7
--- /dev/null
+++ b/hlp/en/tcl/time.htm
@@ -0,0 +1,23 @@
+Built-In Commands - time manual page
+
+time - Time the execution of a script
+
+time script ?count?
+
+This command will call the Tcl interpreter count
+times to evaluate script (or once if count isn't
+specified). It will then return a string of the form
+503 microseconds per iteration
+which indicates the average amount of time required per iteration,
+in microseconds.
+Time is measured in elapsed time, not CPU time.
+
+
+clock
+
+script, time
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/trace.htm b/hlp/en/tcl/trace.htm
new file mode 100644
index 0000000..503e2d3
--- /dev/null
+++ b/hlp/en/tcl/trace.htm
@@ -0,0 +1,165 @@
+Built-In Commands - trace manual page
+
+- NAME
+
- trace - Monitor variable accesses
+- SYNOPSIS
+
+- trace option ?arg arg ...?
+
+- DESCRIPTION
+
+- trace variable name ops command
+
+- r
+
- w
+
- u
+
+- trace vdelete name ops command
+
- trace vinfo name
+
+- KEYWORDS
+
+
+trace - Monitor variable accesses
+
+trace option ?arg arg ...?
+
+This command causes Tcl commands to be executed whenever certain operations are
+invoked. At present, only variable tracing is implemented. The
+legal option's (which may be abbreviated) are:
+
+
+- trace variable name ops command
-
+Arrange for command to be executed whenever variable name
+is accessed in one of the ways given by ops. Name may
+refer to a normal variable, an element of an array, or to an array
+as a whole (i.e. name may be just the name of an array, with no
+parenthesized index). If name refers to a whole array, then
+command is invoked whenever any element of the array is
+manipulated. If the variable does not exist, it will be created but
+will not be given a value, so it will be visible to namespace which
+queries, but not to info exists queries.
+
+Ops indicates which operations are of interest, and consists of
+one or more of the following letters:
+
+
+- r
-
+Invoke command whenever the variable is read.
+
- w
-
+Invoke command whenever the variable is written.
+
- u
-
+Invoke command whenever the variable is unset. Variables
+can be unset explicitly with the unset command, or
+implicitly when procedures return (all of their local variables
+are unset). Variables are also unset when interpreters are
+deleted, but traces will not be invoked because there is no
+interpreter in which to execute them.
+
+
+When the trace triggers, three arguments are appended to
+command so that the actual command is as follows:
+
command name1 name2 op
+Name1 and name2 give the name(s) for the variable
+being accessed: if the variable is a scalar then name1
+gives the variable's name and name2 is an empty string;
+if the variable is an array element then name1 gives the
+name of the array and name2 gives the index into the array;
+if an entire array is being deleted and the trace was registered
+on the overall array, rather than a single element, then name1
+gives the array name and name2 is an empty string.
+Name1 and name2 are not necessarily the same as the
+name used in the trace variable command: the upvar
+command allows a procedure to reference a variable under a
+different name.
+Op indicates what operation is being performed on the
+variable, and is one of r, w, or u as
+defined above.
+
+Command executes in the same context as the code that invoked
+the traced operation: if the variable was accessed as part of a
+Tcl procedure, then command will have access to the same
+local variables as code in the procedure. This context may be
+different than the context in which the trace was created.
+If command invokes a procedure (which it normally does) then
+the procedure will have to use upvar or uplevel if it
+wishes to access the traced variable.
+Note also that name1 may not necessarily be the same as the name
+used to set the trace on the variable; differences can occur if
+the access is made through a variable defined with the upvar
+command.
+
+For read and write traces, command can modify
+the variable to affect the result of the traced operation.
+If command modifies the value of a variable during a
+read or write trace, then the new value will be returned as the
+result of the traced operation.
+The return value from command is ignored except that
+if it returns an error of any sort then the traced operation
+also returns an error with
+the same error message returned by the trace command
+(this mechanism can be used to implement read-only variables, for
+example).
+For write traces, command is invoked after the variable's
+value has been changed; it can write a new value into the variable
+to override the original value specified in the write operation.
+To implement read-only variables, command will have to restore
+the old value of the variable.
+
+While command is executing during a read or write trace, traces
+on the variable are temporarily disabled.
+This means that reads and writes invoked by
+command will occur directly, without invoking command
+(or any other traces) again.
+However, if command unsets the variable then unset traces
+will be invoked.
+
+When an unset trace is invoked, the variable has already been
+deleted: it will appear to be undefined with no traces.
+If an unset occurs because of a procedure return, then the
+trace will be invoked in the variable context of the procedure
+being returned to: the stack frame of the returning procedure
+will no longer exist.
+Traces are not disabled during unset traces, so if an unset trace
+command creates a new trace and accesses the variable, the
+trace will be invoked.
+Any errors in unset traces are ignored.
+
+If there are multiple traces on a variable they are invoked
+in order of creation, most-recent first.
+If one trace returns an error, then no further traces are
+invoked for the variable.
+If an array element has a trace set, and there is also a trace
+set on the array as a whole, the trace on the overall array
+is invoked before the one on the element.
+
+Once created, the trace remains in effect either until the
+trace is removed with the trace vdelete command described
+below, until the variable is unset, or until the interpreter
+is deleted.
+Unsetting an element of array will remove any traces on that
+element, but will not remove traces on the overall array.
+
This command returns an empty string.
+
- trace vdelete name ops command
-
+If there is a trace set on variable name with the
+operations and command given by ops and command,
+then the trace is removed, so that command will never
+again be invoked.
+Returns an empty string.
+
- trace vinfo name
-
+Returns a list containing one element for each trace
+currently set on variable name.
+Each element of the list is itself a list containing two
+elements, which are the ops and command associated
+with the trace.
+If name doesn't exist or doesn't have any traces set, then
+the result of the command will be an empty string.
+
+
+
+read, variable, write, trace, unset
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/unknown.htm b/hlp/en/tcl/unknown.htm
new file mode 100644
index 0000000..f550914
--- /dev/null
+++ b/hlp/en/tcl/unknown.htm
@@ -0,0 +1,67 @@
+Built-In Commands - unknown manual page
+
+unknown - Handle attempts to use non-existent commands
+
+unknown cmdName ?arg arg ...?
+
+This command is invoked by the Tcl interpreter whenever a script
+tries to invoke a command that doesn't exist. The implementation
+of unknown isn't part of the Tcl core; instead, it is a
+library procedure defined by default when Tcl starts up. You
+can override the default unknown to change its functionality.
+
+If the Tcl interpreter encounters a command name for which there
+is not a defined command, then Tcl checks for the existence of
+a command named unknown.
+If there is no such command, then the interpreter returns an
+error.
+If the unknown command exists, then it is invoked with
+arguments consisting of the fully-substituted name and arguments
+for the original non-existent command.
+The unknown command typically does things like searching
+through library directories for a command procedure with the name
+cmdName, or expanding abbreviated command names to full-length,
+or automatically executing unknown commands as sub-processes.
+In some cases (such as expanding abbreviations) unknown will
+change the original command slightly and then (re-)execute it.
+The result of the unknown command is used as the result for
+the original non-existent command.
+
+The default implementation of unknown behaves as follows.
+It first calls the auto_load library procedure to load the command.
+If this succeeds, then it executes the original command with its
+original arguments.
+If the auto-load fails then unknown calls auto_execok
+to see if there is an executable file by the name cmd.
+If so, it invokes the Tcl exec command
+with cmd and all the args as arguments.
+If cmd can't be auto-executed, unknown checks to
+see if the command was invoked at top-level and outside of any
+script. If so, then unknown takes two additional steps.
+First, it sees if cmd has one of the following three forms:
+!!, !event, or ^old^new?^?.
+If so, then unknown carries out history substitution
+in the same way that csh would for these constructs.
+Finally, unknown checks to see if cmd is
+a unique abbreviation for an existing Tcl command.
+If so, it expands the command name and executes the command with
+the original arguments.
+If none of the above efforts has been able to execute
+the command, unknown generates an error return.
+If the global variable auto_noload is defined, then the auto-load
+step is skipped.
+If the global variable auto_noexec is defined then the
+auto-exec step is skipped.
+Under normal circumstances the return value from unknown
+is the return value from the command that was eventually
+executed.
+
+
+info, proc
+
+error, non-existent command
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/unset.htm b/hlp/en/tcl/unset.htm
new file mode 100644
index 0000000..17b8b36
--- /dev/null
+++ b/hlp/en/tcl/unset.htm
@@ -0,0 +1,24 @@
+Built-In Commands - unset manual page
+
+unset - Delete variables
+
+unset name ?name name ...?
+
+This command removes one or more variables.
+Each name is a variable name, specified in any of the
+ways acceptable to the set command.
+If a name refers to an element of an array then that
+element is removed without affecting the rest of the array.
+If a name consists of an array name with no parenthesized
+index, then the entire array is deleted.
+The unset command returns an empty string as result.
+An error occurs if any of the variables doesn't exist, and any variables
+after the non-existent one are not deleted.
+
+
+remove, variable
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/update.htm b/hlp/en/tcl/update.htm
new file mode 100644
index 0000000..d7866cc
--- /dev/null
+++ b/hlp/en/tcl/update.htm
@@ -0,0 +1,40 @@
+Tcl Built-In Commands - update manual page
+
+update - Process pending events and idle callbacks
+
+update ?idletasks?
+
+This command is used to bring the application ``up to date''
+by entering the event loop repeatedly until all pending events
+(including idle callbacks) have been processed.
+
+If the idletasks keyword is specified as an argument to the
+command, then no new events or errors are processed; only idle
+callbacks are invoked.
+This causes operations that are normally deferred, such as display
+updates and window layout calculations, to be performed immediately.
+
+The update idletasks command is useful in scripts where
+changes have been made to the application's state and you want those
+changes to appear on the display immediately, rather than waiting
+for the script to complete. Most display updates are performed as
+idle callbacks, so update idletasks will cause them to run.
+However, there are some kinds of updates that only happen in
+response to events, such as those triggered by window size changes;
+these updates will not occur in update idletasks.
+
+The update command with no options is useful in scripts where
+you are performing a long-running computation but you still want
+the application to respond to events such as user interactions; if
+you occasionally call update then user input will be processed
+during the next call to update.
+
+
+after, bgerror
+
+event, flush, handler, idle, update
+
+Copyright © 1990-1992 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/uplevel.htm b/hlp/en/tcl/uplevel.htm
new file mode 100644
index 0000000..1e0ba6e
--- /dev/null
+++ b/hlp/en/tcl/uplevel.htm
@@ -0,0 +1,65 @@
+Built-In Commands - uplevel manual page
+
+uplevel - Execute a script in a different stack frame
+
+uplevel ?level? arg ?arg ...?
+
+All of the arg arguments are concatenated as if they had
+been passed to concat; the result is then evaluated in the
+variable context indicated by level. Uplevel returns
+the result of that evaluation.
+
+If level is an integer then
+it gives a distance (up the procedure calling stack) to move before
+executing the command. If level consists of # followed by
+a number then the number gives an absolute level number. If level
+is omitted then it defaults to 1. Level cannot be
+defaulted if the first command argument starts with a digit or #.
+
+For example, suppose that procedure a was invoked
+from top-level, and that it called b, and that b called c.
+Suppose that c invokes the uplevel command. If level
+is 1 or #2 or omitted, then the command will be executed
+in the variable context of b. If level is 2 or #1
+then the command will be executed in the variable context of a.
+If level is 3 or #0 then the command will be executed
+at top-level (only global variables will be visible).
+
+The uplevel command causes the invoking procedure to disappear
+from the procedure calling stack while the command is being executed.
+In the above example, suppose c invokes the command
+
uplevel 1 {set x 43; d}
+where d is another Tcl procedure. The set command will
+modify the variable x in b's context, and d will execute
+at level 3, as if called from b. If it in turn executes
+the command
+uplevel {set x 42}
+then the set command will modify the same variable x in b's
+context: the procedure c does not appear to be on the call stack
+when d is executing. The command ``info level'' may
+be used to obtain the level of the current procedure.
+
+Uplevel makes it possible to implement new control
+constructs as Tcl procedures (for example, uplevel could
+be used to implement the while construct as a Tcl procedure).
+
+namespace eval is another way (besides procedure calls)
+that the Tcl naming context can change.
+It adds a call frame to the stack to represent the namespace context.
+This means each namespace eval command
+counts as another call level for uplevel and upvar commands.
+For example, info level 1 will return a list
+describing a command that is either
+the outermost procedure call or the outermost namespace eval command.
+Also, uplevel #0 evaluates a script
+at top-level in the outermost namespace (the global namespace).
+
+
+namespace, upvar
+
+context, level, namespace, stack frame, variables
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/upvar.htm b/hlp/en/tcl/upvar.htm
new file mode 100644
index 0000000..64f1e88
--- /dev/null
+++ b/hlp/en/tcl/upvar.htm
@@ -0,0 +1,93 @@
+Built-In Commands - upvar manual page
+
+upvar - Create link to variable in a different stack frame
+
+upvar ?level? otherVar myVar ?otherVar myVar ...?
+
+This command arranges for one or more local variables in the current
+procedure to refer to variables in an enclosing procedure call or
+to global variables.
+Level may have any of the forms permitted for the uplevel
+command, and may be omitted if the first letter of the first otherVar
+isn't # or a digit (it defaults to 1).
+For each otherVar argument, upvar makes the variable
+by that name in the procedure frame given by level (or at
+global level, if level is #0) accessible
+in the current procedure by the name given in the corresponding
+myVar argument.
+The variable named by otherVar need not exist at the time of the
+call; it will be created the first time myVar is referenced, just like
+an ordinary variable. There must not exist a variable by the
+name myVar at the time upvar is invoked.
+MyVar is always treated as the name of a variable, not an
+array element. Even if the name looks like an array element,
+such as a(b), a regular variable is created.
+OtherVar may refer to a scalar variable, an array,
+or an array element.
+Upvar returns an empty string.
+
+The upvar command simplifies the implementation of call-by-name
+procedure calling and also makes it easier to build new control constructs
+as Tcl procedures.
+For example, consider the following procedure:
+
proc add2 name {
+ upvar $name x
+ set x [expr $x+2]
+}
+Add2 is invoked with an argument giving the name of a variable,
+and it adds two to the value of that variable.
+Although add2 could have been implemented using uplevel
+instead of upvar, upvar makes it simpler for add2
+to access the variable in the caller's procedure frame.
+
+namespace eval is another way (besides procedure calls)
+that the Tcl naming context can change.
+It adds a call frame to the stack to represent the namespace context.
+This means each namespace eval command
+counts as another call level for uplevel and upvar commands.
+For example, info level 1 will return a list
+describing a command that is either
+the outermost procedure call or the outermost namespace eval command.
+Also, uplevel #0 evaluates a script
+at top-level in the outermost namespace (the global namespace).
+
+If an upvar variable is unset (e.g. x in add2 above), the
+unset operation affects the variable it is linked to, not the
+upvar variable. There is no way to unset an upvar variable except
+by exiting the procedure in which it is defined. However, it is
+possible to retarget an upvar variable by executing another upvar
+command.
+
+
+Upvar interacts with traces in a straightforward but possibly
+unexpected manner. If a variable trace is defined on otherVar, that
+trace will be triggered by actions involving myVar. However,
+the trace procedure will be passed the name of myVar, rather
+than the name of otherVar. Thus, the output of the following code
+will be localVar rather than originalVar:
+proc traceproc { name index op } {
+ puts $name
+}
+proc setByUpvar { name value } {
+ upvar $name localVar
+ set localVar $value
+}
+set originalVar 1
+trace variable originalVar w traceproc
+setByUpvar originalVar 2
+}
+If otherVar refers to an element of an array, then variable
+traces set for the entire array will not be invoked when myVar
+is accessed (but traces on the particular element will still be
+invoked). In particular, if the array is env, then changes
+made to myVar will not be passed to subprocesses correctly.
+
+
+global, namespace, uplevel, variable
+
+context, frame, global, level, namespace, procedure, variable
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/variable.htm b/hlp/en/tcl/variable.htm
new file mode 100644
index 0000000..a6a0bb7
--- /dev/null
+++ b/hlp/en/tcl/variable.htm
@@ -0,0 +1,55 @@
+Tcl Built-In Commands - variable manual page
+
+variable - create and initialize a namespace variable
+
+variable ?name value...? name ?value?
+
+This command is normally used within a
+namespace eval command to create one or more variables
+within a namespace.
+Each variable name is initialized with value.
+The value for the last variable is optional.
+
+If a variable name does not exist, it is created.
+In this case, if value is specified,
+it is assigned to the newly created variable.
+If no value is specified, the new variable is left undefined.
+If the variable already exists,
+it is set to value if value is specified
+or left unchanged if no value is given.
+Normally, name is unqualified
+(does not include the names of any containing namespaces),
+and the variable is created in the current namespace.
+If name includes any namespace qualifiers,
+the variable is created in the specified namespace. If the variable
+is not defined, it will be visible to the namespace which
+command, but not to the info exists command.
+
+If the variable command is executed inside a Tcl procedure,
+it creates local variables
+linked to the corresponding namespace variables (and therefore these
+variables are listed by info locals.)
+In this way the variable command resembles the global command,
+although the global command
+only links to variables in the global namespace.
+If any values are given,
+they are used to modify the values of the associated namespace variables.
+If a namespace variable does not exist,
+it is created and optionally initialized.
+
+A name argument cannot reference an element within an array.
+Instead, name should reference the entire array,
+and the initialization value should be left off.
+After the variable has been declared,
+elements within the array can be set using ordinary
+set or array commands.
+
+
+global, namespace, upvar
+
+global, namespace, procedure, variable
+
+Copyright © 1993-1997 Bell Labs Innovations for Lucent Technologies
+Copyright © 1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/vwait.htm b/hlp/en/tcl/vwait.htm
new file mode 100644
index 0000000..05dfec7
--- /dev/null
+++ b/hlp/en/tcl/vwait.htm
@@ -0,0 +1,32 @@
+Tcl Built-In Commands - vwait manual page
+
+vwait - Process events until a variable is written
+
+vwait varName
+
+This command enters the Tcl event loop to process events, blocking
+the application if no events are ready. It continues processing
+events until some event handler sets the value of variable
+varName. Once varName has been set, the vwait
+command will return as soon as the event handler that modified
+varName completes. varName must globally scoped
+(either with a call to global for the varName, or with
+the full namespace path specification).
+
+In some cases the vwait command may not return immediately
+after varName is set. This can happen if the event handler
+that sets varName does not complete immediately. For example,
+if an event handler sets varName and then itself calls
+vwait to wait for a different variable, then it may not return
+for a long time. During this time the top-level vwait is
+blocked waiting for the event handler to complete, so it cannot
+return either.
+
+
+global
+
+event, variable, wait
+
+Copyright © 1995-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tcl/while.htm b/hlp/en/tcl/while.htm
new file mode 100644
index 0000000..3304a8b
--- /dev/null
+++ b/hlp/en/tcl/while.htm
@@ -0,0 +1,44 @@
+Built-In Commands - while manual page
+
+while - Execute script repeatedly as long as a condition is met
+
+while test body
+
+The while command evaluates test as an expression
+(in the same way that expr evaluates its argument).
+The value of the expression must a proper boolean
+value; if it is a true value
+then body is executed by passing it to the Tcl interpreter.
+Once body has been executed then test is evaluated
+again, and the process repeats until eventually test
+evaluates to a false boolean value. Continue
+commands may be executed inside body to terminate the current
+iteration of the loop, and break
+commands may be executed inside body to cause immediate
+termination of the while command. The while command
+always returns an empty string.
+
+Note: test should almost always be enclosed in braces. If not,
+variable substitutions will be made before the while
+command starts executing, which means that variable changes
+made by the loop body will not be considered in the expression.
+This is likely to result in an infinite loop. If test is
+enclosed in braces, variable substitutions are delayed until the
+expression is evaluated (before
+each loop iteration), so changes in the variables will be visible.
+For an example, try the following script with and without the braces
+around $x<10:
+
set x 0
+while {$x<10} {
+ puts "x is $x"
+ incr x
+}
+
+break, continue, for, foreach
+
+boolean value, loop, test, while
+
+Copyright © 1993 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/bell.htm b/hlp/en/tk/bell.htm
new file mode 100644
index 0000000..f851c96
--- /dev/null
+++ b/hlp/en/tk/bell.htm
@@ -0,0 +1,24 @@
+Tk Built-In Commands - bell manual page
+
+bell - Ring a display's bell
+
+bell ?-displayof window?
+
+This command rings the bell on the display for window and
+returns an empty string.
+If the -displayof option is omitted, the display of the
+application's main window is used by default.
+The command uses the current bell-related settings for the display, which
+may be modified with programs such as xset.
+
+This command also resets the screen saver for the screen. Some
+screen savers will ignore this, but others will reset so that the
+screen becomes visible again.
+
+
+beep, bell, ring
+
+Copyright © 1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/bind.htm b/hlp/en/tk/bind.htm
new file mode 100644
index 0000000..0f19273
--- /dev/null
+++ b/hlp/en/tk/bind.htm
@@ -0,0 +1,525 @@
+Tk Built-In Commands - bind manual page
+
+- NAME
+
- bind - Arrange for X events to invoke Tcl scripts
+- SYNOPSIS
+
+- bind tag
+
- bind tag sequence
+
- bind tag sequence script
+
- bind tag sequence +script
+
+- INTRODUCTION
+
- EVENT PATTERNS
+
- MODIFIERS
+
- EVENT TYPES
+
+- Activate
+
- Deactivate
+
- MouseWheel
+
+- BINDING SCRIPTS AND SUBSTITUTIONS
+
+- %%
+
- %#
+
- %a
+
- %b
+
- %c
+
- %d
+
- %f
+
- %h
+
- %k
+
- %m
+
- %o
+
- %p
+
- %s
+
- %t
+
- %w
+
- %x
+
- %y
+
- %A
+
- %B
+
- %D
+
- %E
+
- %K
+
- %N
+
- %R
+
- %S
+
- %T
+
- %W
+
- %X
+
- %Y
+
+- MULTIPLE MATCHES
+
- MULTI-EVENT SEQUENCES AND IGNORED EVENTS
+
- ERRORS
+
- SEE ALSO
+
- KEYWORDS
+
+
+bind - Arrange for X events to invoke Tcl scripts
+
+bind tag
+bind tag sequence
+bind tag sequence script
+bind tag sequence +script
+
+The bind command associates Tcl scripts with X events.
+If all three arguments are specified, bind will
+arrange for script (a Tcl script) to be evaluated whenever
+the event(s) given by sequence occur in the window(s)
+identified by tag.
+If script is prefixed with a ``+'', then it is appended to
+any existing binding for sequence; otherwise script replaces
+any existing binding.
+If script is an empty string then the current binding for
+sequence is destroyed, leaving sequence unbound.
+In all of the cases where a script argument is provided,
+bind returns an empty string.
+
+If sequence is specified without a script, then the
+script currently bound to sequence is returned, or
+an empty string is returned if there is no binding for sequence.
+If neither sequence nor script is specified, then the
+return value is a list whose elements are all the sequences
+for which there exist bindings for tag.
+
+The tag argument determines which window(s) the binding applies to.
+If tag begins with a dot, as in .a.b.c, then it must
+be the path name for a window; otherwise it may be an arbitrary
+string.
+Each window has an associated list of tags, and a binding applies
+to a particular window if its tag is among those specified for
+the window.
+Although the bindtags command may be used to assign an
+arbitrary set of binding tags to a window, the default binding
+tags provide the following behavior:
+
-
+If a tag is the name of an internal window the binding applies
+to that window.
+
+If the tag is the name of a toplevel window the binding applies
+to the toplevel window and all its internal windows.
+
+If the tag is the name of a class of widgets, such as Button,
+the binding applies to all widgets in that class;
+
+If tag has the value all,
+the binding applies to all windows in the application.
+
+
+
+The sequence argument specifies a sequence of one or more
+event patterns, with optional white space between the patterns. Each
+event pattern may
+take one of three forms. In the simplest case it is a single
+printing ASCII character, such as a or [. The character
+may not be a space character or the character <. This form of
+pattern matches a KeyPress event for the particular
+character. The second form of pattern is longer but more general.
+It has the following syntax:
+<modifier-modifier-type-detail>
+The entire event pattern is surrounded by angle brackets.
+Inside the angle brackets are zero or more modifiers, an event
+type, and an extra piece of information (detail) identifying
+a particular button or keysym. Any of the fields may be omitted,
+as long as at least one of type and detail is present.
+The fields must be separated by white space or dashes.
+
+The third form of pattern is used to specify a user-defined, named virtual
+event. It has the following syntax:
+
<<name>>
+The entire virtual event pattern is surrounded by double angle brackets.
+Inside the angle brackets is the user-defined name of the virtual event.
+Modifiers, such as Shift or Control, may not be combined with a
+virtual event to modify it. Bindings on a virtual event may be created
+before the virtual event is defined, and if the definition of a virtual
+event changes dynamically, all windows bound to that virtual event will
+respond immediately to the new definition.
+
+Modifiers consist of any of the following values:
+Control Mod2, M2
+Shift Mod3, M3
+Lock Mod4, M4
+Button1, B1 Mod5, M5
+Button2, B2 Meta, M
+Button3, B3 Alt
+Button4, B4 Double
+Button5, B5 Triple
+Mod1, M1 Quadruple
+Where more than one value is listed, separated by commas, the values
+are equivalent.
+Most of the modifiers have the obvious X meanings.
+For example, Button1 requires that
+button 1 be depressed when the event occurs.
+For a binding to match a given event, the modifiers in the event
+must include all of those specified in the event pattern.
+An event may also contain additional modifiers not specified in
+the binding.
+For example, if button 1 is pressed while the shift and control keys
+are down, the pattern <Control-Button-1> will match
+the event, but <Mod1-Button-1> will not.
+If no modifiers are specified, then any combination of modifiers may
+be present in the event.
+
+Meta and M refer to whichever of the
+M1 through M5 modifiers is associated with the meta
+key(s) on the keyboard (keysyms Meta_R and Meta_L).
+If there are no meta keys, or if they are not associated with any
+modifiers, then Meta and M will not match any events.
+Similarly, the Alt modifier refers to whichever modifier
+is associated with the alt key(s) on the keyboard (keysyms
+Alt_L and Alt_R).
+
+The Double, Triple and Quadruple modifiers are a
+convenience for specifying double mouse clicks and other repeated
+events. They cause a particular event pattern to be repeated 2, 3 or 4
+times, and also place a time and space requirement on the sequence: for a
+sequence of events to match a Double, Triple or Quadruple
+pattern, all of the events must occur close together in time and without
+substantial mouse motion in between. For example, <Double-Button-1>
+is equivalent to <Button-1><Button-1> with the extra time and space
+requirement.
+
+
+The type field may be any of the standard X event types, with a
+few extra abbreviations. The type field will also accept a
+couple non-standard X event types that were added to better support
+the Macintosh and Windows platforms. Below is a list of all the valid
+types; where two names appear together, they are synonyms.
+Activate Enter Map
+ButtonPress, Button Expose Motion
+ButtonRelease FocusIn MouseWheel
+Circulate FocusOut Property
+Colormap Gravity Reparent
+Configure KeyPress, Key Unmap
+Deactivate KeyRelease Visibility
+Destroy Leave
+
+Most of the above events have the same fields and behaviors as events
+in the X Windowing system. You can find more detailed descriptions of
+these events in any X window programming book. A couple of the events
+are extensions to the X event system to support features unique to the
+Macintosh and Windows platforms. We provide a little more detail on
+these events here. These include:
+
+
+- Activate
-
+
- Deactivate
-
+These two events are sent to every sub-window of a toplevel when they
+change state. In addition to the focus Window, the Macintosh platform
+and Windows platforms have a notion of an active window (which often
+has but is not required to have the focus). On the Macintosh, widgets
+in the active window have a different appearance than widgets in
+deactive windows. The Activate event is sent to all the
+sub-windows in a toplevel when it changes from being deactive to
+active. Likewise, the Deactive event is sent when the window's
+state changes from active to deactive. There are no useful percent
+substitutions you would make when binding to these events.
+
- MouseWheel
-
+Some mice on the Windows platform support a mouse wheel which is used
+for scrolling documents without using the scrollbars. By rolling the
+wheel, the system will generate MouseWheel events that the
+application can use to scroll. Like Key events the event is
+always routed to the window that currently has focus. When the event
+is received you can use the %D substitution to get the
+delta field for the event which is a integer value of motion
+that the mouse wheel has moved. The smallest value for which the
+system will report is defined by the OS. On Windows 95 & 98 machines
+this value is at least 120 before it is reported. However, higher
+resolution devices may be available in the future. The sign of the
+value determines which direction your widget should scroll. Positive
+values should scroll up and negative values should scroll down.
+
+
+The last part of a long event specification is detail. In the
+case of a ButtonPress or ButtonRelease event, it is the
+number of a button (1-5). If a button number is given, then only an
+event on that particular button will match; if no button number is
+given, then an event on any button will match. Note: giving a
+specific button number is different than specifying a button modifier;
+in the first case, it refers to a button being pressed or released,
+while in the second it refers to some other button that is already
+depressed when the matching event occurs. If a button
+number is given then type may be omitted: if will default
+to ButtonPress. For example, the specifier <1>
+is equivalent to <ButtonPress-1>.
+
+If the event type is KeyPress or KeyRelease, then
+detail may be specified in the form of an X keysym. Keysyms
+are textual specifications for particular keys on the keyboard;
+they include all the alphanumeric ASCII characters (e.g. ``a'' is
+the keysym for the ASCII character ``a''), plus descriptions for
+non-alphanumeric characters (``comma'' is the keysym for the comma
+character), plus descriptions for all the non-ASCII keys on the
+keyboard (``Shift_L'' is the keysm for the left shift key, and
+``F1'' is the keysym for the F1 function key, if it exists). The
+complete list of keysyms is not presented here; it is
+available in other X documentation and may vary from system to
+system.
+If necessary, you can use the %K notation described below
+to print out the keysym name for a particular key.
+If a keysym detail is given, then the
+type field may be omitted; it will default to KeyPress.
+For example, <Control-comma> is equivalent to
+<Control-KeyPress-comma>.
+
+
+The script argument to bind is a Tcl script,
+which will be executed whenever the given event sequence occurs.
+Command will be executed in the same interpreter that the
+bind command was executed in, and it will run at global
+level (only global variables will be accessible).
+If script contains
+any % characters, then the script will not be
+executed directly. Instead, a new script will be
+generated by replacing each %, and the character following
+it, with information from the current event. The replacement
+depends on the character following the %, as defined in the
+list below. Unless otherwise indicated, the
+replacement string is the decimal value of the given field from
+the current event.
+Some of the substitutions are only valid for
+certain types of events; if they are used for other types of events
+the value substituted is undefined.
+
+
+- %%
-
+Replaced with a single percent.
+
- %#
-
+The number of the last client request processed by the server
+(the serial field from the event). Valid for all event
+types.
+
- %a
-
+The above field from the event,
+formatted as a hexadecimal number.
+Valid only for Configure events.
+
- %b
-
+The number of the button that was pressed or released. Valid only
+for ButtonPress and ButtonRelease events.
+
- %c
-
+The count field from the event. Valid only for Expose events.
+
- %d
-
+The detail field from the event. The %d is replaced by
+a string identifying the detail. For Enter,
+Leave, FocusIn, and FocusOut events,
+the string will be one of the following:
+
NotifyAncestor NotifyNonlinearVirtual
+NotifyDetailNone NotifyPointer
+NotifyInferior NotifyPointerRoot
+NotifyNonlinear NotifyVirtual
+For events other than these, the substituted string is undefined.
+ - %f
-
+The focus field from the event (0 or 1). Valid only
+for Enter and Leave events.
+
- %h
-
+The height field from the event. Valid for the Configure and
+Expose events.
+
- %k
-
+The keycode field from the event. Valid only for KeyPress
+and KeyRelease events.
+
- %m
-
+The mode field from the event. The substituted string is one of
+NotifyNormal, NotifyGrab, NotifyUngrab, or
+NotifyWhileGrabbed. Valid only for Enter,
+FocusIn, FocusOut, and Leave events.
+
- %o
-
+The override_redirect field from the event. Valid only for
+Map, Reparent, and Configure events.
+
- %p
-
+The place field from the event, substituted as one of the
+strings PlaceOnTop or PlaceOnBottom. Valid only
+for Circulate events.
+
- %s
-
+The state field from the event. For ButtonPress,
+ButtonRelease, Enter, KeyPress, KeyRelease,
+Leave, and Motion events, a decimal string
+is substituted. For Visibility, one of the strings
+VisibilityUnobscured, VisibilityPartiallyObscured,
+and VisibilityFullyObscured is substituted.
+
- %t
-
+The time field from the event. Valid only for events that
+contain a time field.
+
- %w
-
+The width field from the event. Valid only for
+Configure and Expose events.
+
- %x
-
+The x field from the event. Valid only for events containing
+an x field.
+
- %y
-
+The y field from the event. Valid only for events containing
+a y field.
+
- %A
-
+Substitutes the ASCII character corresponding to the event, or
+the empty string if the event doesn't correspond to an ASCII character
+(e.g. the shift key was pressed). XLookupString does all the
+work of translating from the event to an ASCII character.
+Valid only for KeyPress and KeyRelease events.
+
- %B
-
+The border_width field from the event. Valid only for
+Configure events.
+
- %D
-
+This reports the delta value of a MouseWheel event. The
+delta value represents the rotation units the mouse wheel has
+been moved. On Windows 95 & 98 systems the smallest value for the
+delta is 120. Future systems may support higher resolution values for
+the delta. The sign of the value represents the direction the mouse
+wheel was scrolled.
+
- %E
-
+The send_event field from the event. Valid for all event types.
+
- %K
-
+The keysym corresponding to the event, substituted as a textual
+string. Valid only for KeyPress and KeyRelease events.
+
- %N
-
+The keysym corresponding to the event, substituted as a decimal
+number. Valid only for KeyPress and KeyRelease events.
+
- %R
-
+The root window identifier from the event. Valid only for
+events containing a root field.
+
- %S
-
+The subwindow window identifier from the event,
+formatted as a hexadecimal number.
+Valid only for events containing a subwindow field.
+
- %T
-
+The type field from the event. Valid for all event types.
+
- %W
-
+The path name of the window to which the event was reported (the
+window field from the event). Valid for all event types.
+
- %X
-
+The x_root field from the event.
+If a virtual-root window manager is being used then the substituted
+value is the corresponding x-coordinate in the virtual root.
+Valid only for
+ButtonPress, ButtonRelease, KeyPress, KeyRelease,
+and Motion events.
+
- %Y
-
+The y_root field from the event.
+If a virtual-root window manager is being used then the substituted
+value is the corresponding y-coordinate in the virtual root.
+Valid only for
+ButtonPress, ButtonRelease, KeyPress, KeyRelease,
+and Motion events.
+
+
+The replacement string for a %-replacement is formatted as a proper
+Tcl list element.
+This means that it will be surrounded with braces
+if it contains spaces, or special characters such as $ and
+{ may be preceded by backslashes.
+This guarantees that the string will be passed through the Tcl
+parser when the binding script is evaluated.
+Most replacements are numbers or well-defined strings such
+as Above; for these replacements no special formatting
+is ever necessary.
+The most common case where reformatting occurs is for the %A
+substitution. For example, if script is
+
insert %A
+and the character typed is an open square bracket, then the script
+actually executed will be
+insert \[
+This will cause the insert to receive the original replacement
+string (open square bracket) as its first argument.
+If the extra backslash hadn't been added, Tcl would not have been
+able to parse the script correctly.
+
+
+It is possible for several bindings to match a given X event.
+If the bindings are associated with different tag's,
+then each of the bindings will be executed, in order.
+By default, a binding for the widget will be executed first, followed
+by a class binding, a binding for its toplevel, and
+an all binding.
+The bindtags command may be used to change this order for
+a particular window or to associate additional binding tags with
+the window.
+
+The continue and break commands may be used inside a
+binding script to control the processing of matching scripts.
+If continue is invoked, then the current binding script
+is terminated but Tk will continue processing binding scripts
+associated with other tag's.
+If the break command is invoked within a binding script,
+then that script terminates and no other scripts will be invoked
+for the event.
+
+If more than one binding matches a particular event and they
+have the same tag, then the most specific binding
+is chosen and its script is evaluated.
+The following tests are applied, in order, to determine which of
+several matching sequences is more specific:
+(a) an event pattern that specifies a specific button or key is more specific
+than one that doesn't;
+(b) a longer sequence (in terms of number
+of events matched) is more specific than a shorter sequence;
+(c) if the modifiers specified in one pattern are a subset of the
+modifiers in another pattern, then the pattern with more modifiers
+is more specific.
+(d) a virtual event whose physical pattern matches the sequence is less
+specific than the same physical pattern that is not associated with a
+virtual event.
+(e) given a sequence that matches two or more virtual events, one
+of the virtual events will be chosen, but the order is undefined.
+
+If the matching sequences contain more than one event, then tests
+(c)-(e) are applied in order from the most recent event to the least recent
+event in the sequences. If these tests fail to determine a winner, then the
+most recently registered sequence is the winner.
+
+If there are two (or more) virtual events that are both triggered by the
+same sequence, and both of those virtual events are bound to the same window
+tag, then only one of the virtual events will be triggered, and it will
+be picked at random:
+
event add <<Paste>> <Control-y>
+event add <<Paste>> <Button-2>
+event add <<Scroll>> <Button-2>
+bind Entry <<Paste>> {puts Paste}
+bind Entry <<Scroll>> {puts Scroll}
+If the user types Control-y, the <<Paste>> binding
+will be invoked, but if the user presses button 2 then one of
+either the <<Paste>> or the <<Scroll>> bindings will
+be invoked, but exactly which one gets invoked is undefined.
+
+If an X event does not match any of the existing bindings, then the
+event is ignored.
+An unbound event is not considered to be an error.
+
+
+When a sequence specified in a bind command contains
+more than one event pattern, then its script is executed whenever
+the recent events (leading up to and including the current event)
+match the given sequence. This means, for example, that if button 1 is
+clicked repeatedly the sequence <Double-ButtonPress-1> will match
+each button press but the first.
+If extraneous events that would prevent a match occur in the middle
+of an event sequence then the extraneous events are
+ignored unless they are KeyPress or ButtonPress events.
+For example, <Double-ButtonPress-1> will match a sequence of
+presses of button 1, even though there will be ButtonRelease
+events (and possibly Motion events) between the
+ButtonPress events.
+Furthermore, a KeyPress event may be preceded by any number
+of other KeyPress events for modifier keys without the
+modifier keys preventing a match.
+For example, the event sequence aB will match a press of the
+a key, a release of the a key, a press of the Shift
+key, and a press of the b key: the press of Shift is
+ignored because it is a modifier key.
+Finally, if several Motion events occur in a row, only
+the last one is used for purposes of matching binding sequences.
+
+
+If an error occurs in executing the script for a binding then the
+bgerror mechanism is used to report the error.
+The bgerror command will be executed at global level
+(outside the context of any Tcl procedure).
+
+
+bgerror, keysyms
+
+form, manual
+
+Copyright © 1990 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1998 by Scriptics Corporation.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/bindtags.htm b/hlp/en/tk/bindtags.htm
new file mode 100644
index 0000000..64f6ef1
--- /dev/null
+++ b/hlp/en/tk/bindtags.htm
@@ -0,0 +1,66 @@
+Tk Built-In Commands - bindtags manual page
+
+bindtags - Determine which bindings apply to a window, and order of evaluation
+
+bindtags window ?tagList?
+
+When a binding is created with the bind command, it is
+associated either with a particular window such as .a.b.c,
+a class name such as Button, the keyword all, or any
+other string.
+All of these forms are called binding tags.
+Each window contains a list of binding tags that determine how
+events are processed for the window.
+When an event occurs in a window, it is applied to each of the
+window's tags in order: for each tag, the most specific binding
+that matches the given tag and event is executed.
+See the bind command for more information on the matching
+process.
+
+By default, each window has four binding tags consisting of the
+name of the window, the window's class name, the name of the window's
+nearest toplevel ancestor, and all, in that order.
+Toplevel windows have only three tags by default, since the toplevel
+name is the same as that of the window.
+The bindtags command allows the binding tags for a window to be
+read and modified.
+
+If bindtags is invoked with only one argument, then the
+current set of binding tags for window is returned as a list.
+If the tagList argument is specified to bindtags,
+then it must be a proper list; the tags for window are changed
+to the elements of the list.
+The elements of tagList may be arbitrary strings; however,
+any tag starting with a dot is treated as the name of a window; if
+no window by that name exists at the time an event is processed,
+then the tag is ignored for that event.
+The order of the elements in tagList determines the order in
+which binding scripts are executed in response to events.
+For example, the command
+
bindtags .b {all . Button .b}
+reverses the order in which binding scripts will be evaluated for
+a button named .b so that all bindings are invoked
+first, following by bindings for .b's toplevel (``.''), followed by
+class bindings, followed by bindings for .b.
+If tagList is an empty list then the binding tags for window
+are returned to the default state described above.
+
+The bindtags command may be used to introduce arbitrary
+additional binding tags for a window, or to remove standard tags.
+For example, the command
+
bindtags .b {.b TrickyButton . all}
+replaces the Button tag for .b with TrickyButton.
+This means that the default widget bindings for buttons, which are
+associated with the Button tag, will no longer apply to .b,
+but any bindings associated with TrickyButton (perhaps some
+new button behavior) will apply.
+
+
+bind
+
+binding, event, tag
+
+Copyright © 1990 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/bitmap.htm b/hlp/en/tk/bitmap.htm
new file mode 100644
index 0000000..22b630a
--- /dev/null
+++ b/hlp/en/tk/bitmap.htm
@@ -0,0 +1,122 @@
+Tk Built-In Commands - bitmap manual page
+
+- NAME
+
- bitmap - Images that display two colors
+- SYNOPSIS
+
+- image create bitmap ?name? ?options?
+
+- DESCRIPTION
+
- CREATING BITMAPS
+
+- -background color
+
- -data string
+
- -file name
+
- -foreground color
+
- -maskdata string
+
- -maskfile name
+
+- IMAGE COMMAND
+
+- imageName cget option
+
- imageName configure ?option? ?value option value ...?
+
+- KEYWORDS
+
+
+bitmap - Images that display two colors
+
+image create bitmap ?name? ?options?
+
+A bitmap is an image whose pixels can display either of two colors
+or be transparent.
+A bitmap image is defined by four things: a background color,
+a foreground color, and two bitmaps, called the source
+and the mask.
+Each of the bitmaps specifies 0/1 values for a rectangular
+array of pixels, and the two bitmaps must have the same
+dimensions.
+For pixels where the mask is zero, the image displays nothing,
+producing a transparent effect.
+For other pixels, the image displays the foreground color if
+the source data is one and the background color if the source
+data is zero.
+
+
+Like all images, bitmaps are created using the image create
+command.
+Bitmaps support the following options:
+
+
+- -background color
-
+Specifies a background color for the image in any of the standard
+ways accepted by Tk. If this option is set to an empty string
+then the background pixels will be transparent. This effect
+is achieved by using the source bitmap as the mask bitmap, ignoring
+any -maskdata or -maskfile options.
+
- -data string
-
+Specifies the contents of the source bitmap as a string.
+The string must adhere to X11 bitmap format (e.g., as generated
+by the bitmap program).
+If both the -data and -file options are specified,
+the -data option takes precedence.
+
- -file name
-
+name gives the name of a file whose contents define the
+source bitmap.
+The file must adhere to X11 bitmap format (e.g., as generated
+by the bitmap program).
+
- -foreground color
-
+Specifies a foreground color for the image in any of the standard
+ways accepted by Tk.
+
- -maskdata string
-
+Specifies the contents of the mask as a string.
+The string must adhere to X11 bitmap format (e.g., as generated
+by the bitmap program).
+If both the -maskdata and -maskfile options are specified,
+the -maskdata option takes precedence.
+
- -maskfile name
-
+name gives the name of a file whose contents define the
+mask.
+The file must adhere to X11 bitmap format (e.g., as generated
+by the bitmap program).
+
+
+
+When a bitmap image is created, Tk also creates a new command
+whose name is the same as the image.
+This command may be used to invoke various operations
+on the image.
+It has the following general form:
+imageName option ?arg arg ...?
+Option and the args
+determine the exact behavior of the command. The following
+commands are possible for bitmap images:
+
+
+- imageName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the
+image create bitmap command.
+
- imageName configure ?option? ?value option value ...?
-
+Query or modify the configuration options for the image.
+If no option is specified, returns a list describing all of
+the available options for imageName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the
+image create bitmap command.
+
+
+
+bitmap, image
+
+Copyright © 1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/button.htm b/hlp/en/tk/button.htm
new file mode 100644
index 0000000..87ec7b2
--- /dev/null
+++ b/hlp/en/tk/button.htm
@@ -0,0 +1,244 @@
+Tk Built-In Commands - button manual page
+
+- NAME
+
- button - Create and manipulate button widgets
+- SYNOPSIS
+
+- button pathName ?options?
+
+- STANDARD OPTIONS
+
+- -activebackground, activeBackground, Foreground
+
- -activeforeground, activeForeground, Background
+
- -anchor, anchor, Anchor
+
- -background or -bg, background, Background
+
- -bitmap, bitmap, Bitmap
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -disabledforeground, disabledForeground, DisabledForeground
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -image, image, Image
+
- -justify, justify, Justify
+
- -padx, padX, Pad
+
- -pady, padY, Pad
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
- -text, text, Text
+
- -textvariable, textVariable, Variable
+
- -underline, underline, Underline
+
- -wraplength, wrapLength, WrapLength
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -command, command, Command
+
- -default, default, Default
+
- -height, height, Height
+
- -state, state, State
+
- -width, width, Width
+
+- DESCRIPTION
+
- WIDGET COMMAND
+
+- pathName cget option
+
- pathName configure ?option? ?value option value ...?
+
- pathName flash
+
- pathName invoke
+
+- DEFAULT BINDINGS
+
+
+- KEYWORDS
+
+
+button - Create and manipulate button widgets
+
+button pathName ?options?
+
+
+- -activebackground, activeBackground, Foreground
+
- -activeforeground, activeForeground, Background
+
- -anchor, anchor, Anchor
+
- -background or -bg, background, Background
+
- -bitmap, bitmap, Bitmap
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -disabledforeground, disabledForeground, DisabledForeground
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -image, image, Image
+
- -justify, justify, Justify
+
- -padx, padX, Pad
+
- -pady, padY, Pad
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
- -text, text, Text
+
- -textvariable, textVariable, Variable
+
- -underline, underline, Underline
+
- -wraplength, wrapLength, WrapLength
+
+
+
+- Command-Line Name: -command
+
- Database Name: command
+
- Database Class: Command
+
- Specifies a Tcl command to associate with the button. This command
+is typically invoked when mouse button 1 is released over the button
+window.
+
- Command-Line Name: -default
+
- Database Name: default
+
- Database Class: Default
+
- Specifies one of three states for the default ring: normal,
+active, or disabled. In active state, the button is drawn
+with the platform specific appearance for a default button. In normal
+state, the button is drawn with the platform specific appearance for a
+non-default button, leaving enough space to draw the default button
+appearance. The normal and active states will result in buttons of
+the same size. In disabled state, the button is drawn with the
+non-default button appearance without leaving space for the default
+appearance. The disabled state may result in a smaller button than
+the active state.
+ring.
+
- Command-Line Name: -height
+
- Database Name: height
+
- Database Class: Height
+
- Specifies a desired height for the button.
+If an image or bitmap is being displayed in the button then the value is in
+screen units (i.e. any of the forms acceptable to Tk_GetPixels);
+for text it is in lines of text.
+If this option isn't specified, the button's desired height is computed
+from the size of the image or bitmap or text being displayed in it.
+
- Command-Line Name: -state
+
- Database Name: state
+
- Database Class: State
+
- Specifies one of three states for the button: normal, active,
+or disabled. In normal state the button is displayed using the
+foreground and background options. The active state is
+typically used when the pointer is over the button. In active state
+the button is displayed using the activeForeground and
+activeBackground options. Disabled state means that the button
+should be insensitive: the default bindings will refuse to activate
+the widget and will ignore mouse button presses.
+In this state the disabledForeground and
+background options determine how the button is displayed.
+
- Command-Line Name: -width
+
- Database Name: width
+
- Database Class: Width
+
- Specifies a desired width for the button.
+If an image or bitmap is being displayed in the button then the value is in
+screen units (i.e. any of the forms acceptable to Tk_GetPixels);
+for text it is in characters.
+If this option isn't specified, the button's desired width is computed
+from the size of the image or bitmap or text being displayed in it.
+
+
+The button command creates a new window (given by the
+pathName argument) and makes it into a button widget.
+Additional
+options, described above, may be specified on the command line
+or in the option database
+to configure aspects of the button such as its colors, font,
+text, and initial relief. The button command returns its
+pathName argument. At the time this command is invoked,
+there must not exist a window named pathName, but
+pathName's parent must exist.
+
+A button is a widget that displays a textual string, bitmap or image.
+If text is displayed, it must all be in a single font, but it
+can occupy multiple lines on the screen (if it contains newlines
+or if wrapping occurs because of the wrapLength option) and
+one of the characters may optionally be underlined using the
+underline option.
+It can display itself in either of three different ways, according
+to
+the state option;
+it can be made to appear raised, sunken, or flat;
+and it can be made to flash. When a user invokes the
+button (by pressing mouse button 1 with the cursor over the
+button), then the Tcl command specified in the -command
+option is invoked.
+
+
+The button command creates a new Tcl command whose
+name is pathName. This
+command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+Option and the args
+determine the exact behavior of the command. The following
+commands are possible for button widgets:
+
+
+- pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the button
+command.
+
- pathName configure ?option? ?value option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the button
+command.
+
- pathName flash
-
+Flash the button. This is accomplished by redisplaying the button
+several times, alternating between active and normal colors. At
+the end of the flash the button is left in the same normal/active
+state as when the command was invoked.
+This command is ignored if the button's state is disabled.
+
- pathName invoke
-
+Invoke the Tcl command associated with the button, if there is one.
+The return value is the return value from the Tcl command, or an
+empty string if there is no command associated with the button.
+This command is ignored if the button's state is disabled.
+
+
+
+Tk automatically creates class bindings for buttons that give them
+default behavior:
+
+
+- [1]
-
+A button activates whenever the mouse passes over it and deactivates
+whenever the mouse leaves the button.
+Under Windows, this binding is only active when mouse button 1 has
+been pressed over the button.
+
- [2]
-
+A button's relief is changed to sunken whenever mouse button 1 is
+pressed over the button, and the relief is restored to its original
+value when button 1 is later released.
+
- [3]
-
+If mouse button 1 is pressed over a button and later released over
+the button, the button is invoked. However, if the mouse is not
+over the button when button 1 is released, then no invocation occurs.
+
- [4]
-
+When a button has the input focus, the space key causes the button
+to be invoked.
+
+
+If the button's state is disabled then none of the above
+actions occur: the button is completely non-responsive.
+
+The behavior of buttons can be changed by defining new bindings for
+individual widgets or by redefining the class bindings.
+
+
+button, widget
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/canvas.htm b/hlp/en/tk/canvas.htm
new file mode 100644
index 0000000..c201016
--- /dev/null
+++ b/hlp/en/tk/canvas.htm
@@ -0,0 +1,1826 @@
+Tk Built-In Commands - canvas manual page
+
+- NAME
+
- canvas - Create and manipulate canvas widgets
+- SYNOPSIS
+
+- canvas pathName ?options?
+
+- STANDARD OPTIONS
+
+- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -insertbackground, insertBackground, Foreground
+
- -insertborderwidth, insertBorderWidth, BorderWidth
+
- -insertofftime, insertOffTime, OffTime
+
- -insertontime, insertOnTime, OnTime
+
- -insertwidth, insertWidth, InsertWidth
+
- -relief, relief, Relief
+
- -selectbackground, selectBackground, Foreground
+
- -selectborderwidth, selectBorderWidth, BorderWidth
+
- -selectforeground, selectForeground, Background
+
- -state
+
- -takefocus, takeFocus, TakeFocus
+
- -xscrollcommand, xScrollCommand, ScrollCommand
+
- -yscrollcommand, yScrollCommand, ScrollCommand
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -closeenough, closeEnough, CloseEnough
+
- -confine, confine, Confine
+
- -height, height, Height
+
- -scrollregion, scrollRegion, ScrollRegion
+
- -state, state, State
+
- -width, width, width
+
- -xscrollincrement, xScrollIncrement, ScrollIncrement
+
- -yscrollincrement, yScrollIncrement, ScrollIncrement
+
+- INTRODUCTION
+
- DISPLAY LIST
+
- ITEM IDS AND TAGS
+
- COORDINATES
+
- TRANSFORMATIONS
+
- INDICES
+
+- number
+
- end
+
- insert
+
- sel.first
+
- sel.last
+
- @x,y
+
+- DASH PATTERNS
+
- WIDGET COMMAND
+
+- pathName addtag tag searchSpec ?arg arg ...?
+
+- above tagOrId
+
- all
+
- below tagOrId
+
- closest x y ?halo? ?start?
+
- enclosed x1 y1 x2 y2
+
- overlapping x1 y1 x2 y2
+
- withtag tagOrId
+
+- pathName bbox tagOrId ?tagOrId tagOrId ...?
+
- pathName bind tagOrId ?sequence? ?command?
+
- pathName canvasx screenx ?gridspacing?
+
- pathName canvasy screeny ?gridspacing?
+
- pathName cget option
+
- pathName configure ?option? ?value? ?option value ...?
+
- pathName coords tagOrId ?x0 y0 ...?
+
- pathName coords tagOrId ?coordList?
+
- pathName create type x y ?x y ...? ?option value ...?
+
- pathName create type coordList ?option value ...?
+
- pathName dchars tagOrId first ?last?
+
- pathName delete ?tagOrId tagOrId ...?
+
- pathName dtag tagOrId ?tagToDelete?
+
- pathName find searchCommand ?arg arg ...?
+
- pathName focus ?tagOrId?
+
- pathName gettags tagOrId
+
- pathName icursor tagOrId index
+
- pathName index tagOrId index
+
- pathName insert tagOrId beforeThis string
+
- pathName itemcget tagOrId option
+
- pathName itemconfigure tagOrId ?option? ?value? ?option value ...?
+
- pathName lower tagOrId ?belowThis?
+
- pathName move tagOrId xAmount yAmount
+
- pathName postscript ?option value option value ...?
+
+- -colormap varName
+
- -colormode mode
+
- -file fileName
+
- -fontmap varName
+
- -height size
+
- -pageanchor anchor
+
- -pageheight size
+
- -pagewidth size
+
- -pagex position
+
- -pagey position
+
- -rotate boolean
+
- -width size
+
- -x position
+
- -y position
+
+- pathName raise tagOrId ?aboveThis?
+
- pathName scale tagOrId xOrigin yOrigin xScale yScale
+
- pathName scan option args
+
+- pathName scan mark x y
+
- pathName scan dragto x y ?gain?.
+
+- pathName select option ?tagOrId arg?
+
+- pathName select adjust tagOrId index
+
- pathName select clear
+
- pathName select from tagOrId index
+
- pathName select item
+
- pathName select to tagOrId index
+
+- pathName type tagOrId
+
- pathName xview ?args?
+
+- pathName xview
+
- pathName xview moveto fraction
+
- pathName xview scroll number what
+
+- pathName yview ?args?
+
+- pathName yview
+
- pathName yview moveto fraction
+
- pathName yview scroll number what
+
+
+- OVERVIEW OF ITEM TYPES
+
- COMMON ITEM OPTIONS
+
+- -dash pattern
+
- -activedash pattern
+
- -disableddash pattern
+
- -dashoffset offset
+
- -fill color
+
- -activefill color
+
- -disabledfill color
+
- -outline color
+
- -activeoutline color
+
- -disabledoutline color
+
- -offset offset
+
- -outlinestipple bitmap
+
- -activeoutlinestipple bitmap
+
- -disabledoutlinestipple bitmap
+
- -stipple bitmap
+
- -activestipple bitmap
+
- -disabledstipple bitmap
+
- -state state
+
- -tags tagList
+
- -width outlineWidth
+
- -activewidth outlineWidth
+
- -disabledwidth outlineWidth
+
+- ARC ITEMS
+
+- -extent degrees
+
- -start degrees
+
- -style type
+
+- BITMAP ITEMS
+
+- -anchor anchorPos
+
- -background color
+
- -activebackground bitmap
+
- -disabledbackground bitmap
+
- -bitmap bitmap
+
- -activebitmap bitmap
+
- -disabledbitmap bitmap
+
- -foreground color
+
- -activeforeground bitmap
+
- -disabledforeground bitmap
+
+- IMAGE ITEMS
+
+- -anchor anchorPos
+
- -image name
+
- -activeimage name
+
- -disabledimage name
+
+- LINE ITEMS
+
+- -arrow where
+
- -arrowshape shape
+
- -capstyle style
+
- -joinstyle style
+
- -smooth boolean
+
- -splinesteps number
+
+- OVAL ITEMS
+
- POLYGON ITEMS
+
+- -joinstyle style
+
- -smooth boolean
+
- -splinesteps number
+
+- RECTANGLE ITEMS
+
- TEXT ITEMS
+
+- -anchor anchorPos
+
- -font fontName
+
- -justify how
+
- -text string
+
- -width lineLength
+
+- WINDOW ITEMS
+
+- -anchor anchorPos
+
- -height pixels
+
- -width pixels
+
- -window pathName
+
+- APPLICATION-DEFINED ITEM TYPES
+
- BINDINGS
+
- CREDITS
+
- KEYWORDS
+
+
+canvas - Create and manipulate canvas widgets
+
+canvas pathName ?options?
+
+
+- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -insertbackground, insertBackground, Foreground
+
- -insertborderwidth, insertBorderWidth, BorderWidth
+
- -insertofftime, insertOffTime, OffTime
+
- -insertontime, insertOnTime, OnTime
+
- -insertwidth, insertWidth, InsertWidth
+
- -relief, relief, Relief
+
- -selectbackground, selectBackground, Foreground
+
- -selectborderwidth, selectBorderWidth, BorderWidth
+
- -selectforeground, selectForeground, Background
+
- -state
+
- -takefocus, takeFocus, TakeFocus
+
- -xscrollcommand, xScrollCommand, ScrollCommand
+
- -yscrollcommand, yScrollCommand, ScrollCommand
+
+
+
+- Command-Line Name: -closeenough
+
- Database Name: closeEnough
+
- Database Class: CloseEnough
+
- Specifies a floating-point value indicating how close the mouse cursor
+must be to an item before it is considered to be ``inside'' the item.
+Defaults to 1.0.
+
- Command-Line Name: -confine
+
- Database Name: confine
+
- Database Class: Confine
+
- Specifies a boolean value that indicates whether or not it should be
+allowable to set the canvas's view outside the region defined by the
+scrollRegion argument.
+Defaults to true, which means that the view will
+be constrained within the scroll region.
+
- Command-Line Name: -height
+
- Database Name: height
+
- Database Class: Height
+
- Specifies a desired window height that the canvas widget should request from
+its geometry manager. The value may be specified in any
+of the forms described in the COORDINATES section below.
+
- Command-Line Name: -scrollregion
+
- Database Name: scrollRegion
+
- Database Class: ScrollRegion
+
- Specifies a list with four coordinates describing the left, top, right, and
+bottom coordinates of a rectangular region.
+This region is used for scrolling purposes and is considered to be
+the boundary of the information in the canvas.
+Each of the coordinates may be specified
+in any of the forms given in the COORDINATES section below.
+
- Command-Line Name: -state
+
- Database Name: state
+
- Database Class: State
+
- Modifies the default state of the canvas where state may be set to
+one of: normal, disabled, or hidden. Individual canvas
+objects all have their own state option which may override the default
+state. Many options can take separate specifications such that the
+appearance of the item can be different in different situations. The
+options that start with active control the appearence when the mouse
+pointer is over it, while the option starting with disabled controls
+the appearence when the state is disabled. Canvas items which are
+disabled will not react to canvas bindings.
+
- Command-Line Name: -width
+
- Database Name: width
+
- Database Class: width
+
- Specifies a desired window width that the canvas widget should request from
+its geometry manager. The value may be specified in any
+of the forms described in the COORDINATES section below.
+
- Command-Line Name: -xscrollincrement
+
- Database Name: xScrollIncrement
+
- Database Class: ScrollIncrement
+
- Specifies an increment for horizontal scrolling, in any of the usual forms
+permitted for screen distances. If the value of this option is greater
+than zero, the horizontal view in the window will be constrained so that
+the canvas x coordinate at the left edge of the window is always an even
+multiple of xScrollIncrement; furthermore, the units for scrolling
+(e.g., the change in view when the left and right arrows of a scrollbar
+are selected) will also be xScrollIncrement. If the value of
+this option is less than or equal to zero, then horizontal scrolling
+is unconstrained.
+
- Command-Line Name: -yscrollincrement
+
- Database Name: yScrollIncrement
+
- Database Class: ScrollIncrement
+
- Specifies an increment for vertical scrolling, in any of the usual forms
+permitted for screen distances. If the value of this option is greater
+than zero, the vertical view in the window will be constrained so that
+the canvas y coordinate at the top edge of the window is always an even
+multiple of yScrollIncrement; furthermore, the units for scrolling
+(e.g., the change in view when the top and bottom arrows of a scrollbar
+are selected) will also be yScrollIncrement. If the value of
+this option is less than or equal to zero, then vertical scrolling
+is unconstrained.
+
+
+The canvas command creates a new window (given
+by the pathName argument) and makes it into a canvas widget.
+Additional options, described above, may be specified on the
+command line or in the option database
+to configure aspects of the canvas such as its colors and 3-D relief.
+The canvas command returns its
+pathName argument. At the time this command is invoked,
+there must not exist a window named pathName, but
+pathName's parent must exist.
+
+Canvas widgets implement structured graphics.
+A canvas displays any number of items, which may be things like
+rectangles, circles, lines, and text.
+Items may be manipulated (e.g. moved or re-colored) and commands may
+be associated with items in much the same way that the bind
+command allows commands to be bound to widgets. For example,
+a particular command may be associated with the <Button-1> event
+so that the command is invoked whenever button 1 is pressed with
+the mouse cursor over an item.
+This means that items in a canvas can have behaviors defined by
+the Tcl scripts bound to them.
+
+
+The items in a canvas are ordered for purposes of display,
+with the first item in the display list being displayed
+first, followed by the next item in the list, and so on.
+Items later in the display list obscure those that are
+earlier in the display list and are sometimes referred to
+as being ``on top'' of earlier items.
+When a new item is created it is placed at the end of the
+display list, on top of everything else.
+Widget commands may be used to re-arrange the order of the
+display list.
+
+Window items are an exception to the above rules. The underlying
+window systems require them always to be drawn on top of other items.
+In addition, the stacking order of window items
+is not affected by any of the canvas widget commands; you must use
+the raise and lower Tk commands instead.
+
+
+Items in a canvas widget may be named in either of two ways:
+by id or by tag.
+Each item has a unique identifying number which is assigned to
+that item when it is created. The id of an item never changes
+and id numbers are never re-used within the lifetime of a
+canvas widget.
+
+Each item may also have any number of tags associated
+with it. A tag is just a string of characters, and it may
+take any form except that of an integer.
+For example, ``x123'' is OK but ``123'' isn't.
+The same tag may be associated with many different items.
+This is commonly done to group items in various interesting
+ways; for example, all selected items might be given the
+tag ``selected''.
+
+The tag all is implicitly associated with every item
+in the canvas; it may be used to invoke operations on
+all the items in the canvas.
+
+The tag current is managed automatically by Tk;
+it applies to the current item, which is the
+topmost item whose drawn area covers the position of
+the mouse cursor.
+If the mouse is not in the canvas widget or is not over
+an item, then no item has the current tag.
+
+When specifying items in canvas widget commands, if the
+specifier is an integer then it is assumed to refer to
+the single item with that id.
+If the specifier is not an integer, then it is assumed to
+refer to all of the items in the canvas that have a tag
+matching the specifier.
+The symbol tagOrId is used below to indicate that
+an argument specifies either an id that selects a single
+item or a tag that selects zero or more items.
+
+tagOrId may contain a logical expressions of
+tags by using operators: '&&', '||', '^' '!', and parenthezised
+subexpressions. For example:
+
.c find withtag {(a&&!b)||(!a&&b)}
+or equivalently:
+.c find withtag {a^b}
+will find only those items with either "a" or "b" tags, but not both.
+
+Some widget commands only operate on a single item at a
+time; if tagOrId is specified in a way that
+names multiple items, then the normal behavior is for
+the command to use the first (lowest) of these items in
+the display list that is suitable for the command.
+Exceptions are noted in the widget command descriptions
+below.
+
+
+All coordinates related to canvases are stored as floating-point
+numbers.
+Coordinates and distances are specified in screen units,
+which are floating-point numbers optionally followed
+by one of several letters.
+If no letter is supplied then the distance is in pixels.
+If the letter is m then the distance is in millimeters on
+the screen; if it is c then the distance is in centimeters;
+i means inches, and p means printers points (1/72 inch).
+Larger y-coordinates refer to points lower on the screen; larger
+x-coordinates refer to points farther to the right.
+Coordinates can be specified either as an even number of parameters,
+or as a single list parameter containing an even number of x and y
+coordinate values.
+
+
+Normally the origin of the canvas coordinate system is at the
+upper-left corner of the window containing the canvas.
+It is possible to adjust the origin of the canvas
+coordinate system relative to the origin of the window using the
+xview and yview widget commands; this is typically used
+for scrolling.
+Canvases do not support scaling or rotation of the canvas coordinate
+system relative to the window coordinate system.
+
+Individual items may be moved or scaled using widget commands
+described below, but they may not be rotated.
+
+
+Text items support the notion of an index for identifying
+particular positions within the item.
+In a similar fashion, line and polygon items support index for
+identifying, inserting and deleting subsets of their coordinates.
+Indices are used for commands such as inserting or deleting
+a range of characters or coordinates, and setting the insertion
+cursor position. An index may be specified in any of a number
+of ways, and different types of items may support different forms
+for specifying indices.
+Text items support the following forms for an index; if you
+define new types of text-like items, it would be advisable to
+support as many of these forms as practical.
+Note that it is possible to refer to the character just after
+the last one in the text item; this is necessary for such
+tasks as inserting new text at the end of the item.
+Lines and Polygons don't support the insertion cursor
+and the selection. Their indixes are supposed to be even
+always, because coordinates always appear in pairs.
+
+
+- number
-
+A decimal number giving the position of the desired character
+within the text item.
+0 refers to the first character, 1 to the next character, and
+so on. If indexes are odd for lines and polygons, they will be
+automatically decremented by one.
+A number less than 0 is treated as if it were zero, and a
+number greater than the length of the text item is treated
+as if it were equal to the length of the text item. For
+polygons, numbers less than 0 or greater then the length
+of the coordinate list will be adjusted by adding or substracting
+the length until the result is between zero and the length,
+inclusive.
+
- end
-
+Refers to the character or coordinate just after the last one
+in the item (same as the number of characters or coordinates
+in the item).
+
- insert
-
+Refers to the character just before which the insertion cursor
+is drawn in this item. Not valid for lines and polygons.
+
- sel.first
-
+Refers to the first selected character in the item.
+If the selection isn't in this item then this form is illegal.
+
- sel.last
-
+Refers to the last selected character in the item.
+If the selection isn't in this item then this form is illegal.
+
- @x,y
-
+Refers to the character or coordinate at the point given by x and
+y, where x and y are specified in the coordinate
+system of the canvas.
+If x and y lie outside the coordinates covered by the
+text item, then they refer to the first or last character in the
+line that is closest to the given point.
+
+
+
+Many items support the notion of an dash pattern for outlines.
+
+The first possible syntax is a list of integers. Each element
+represents the number of pixels of a line segment. Only the odd
+segments are drawn using the "outline" color. The other segments
+are drawn transparant.
+
+The second possible syntax is a character list containing only
+5 possible characters [.,-_ ]. The space can be used
+to enlarge the space between other line elements, and can not
+occur as the first position in the string. Some examples:
+ -dash . = -dash {2 4}
+ -dash - = -dash {6 4}
+ -dash -. = -dash {6 4 2 4}
+ -dash -.. = -dash {6 4 2 4 2 4}
+ -dash {. } = -dash {2 8}
+ -dash , = -dash {4 4}
+
+The main difference of this syntax with the previous is that it
+it shape-conserving. This means that all values in the dash
+list will be multiplied by the line width before display. This
+assures that "." will always be displayed as a dot and "-"
+always as a dash regardless of the line width.
+
+On systems which support only a limited set of dash patterns, the dash
+pattern will be displayed as the closest dash pattern that is available.
+For example, on Windows only the first 4 of the above examples are
+available. The last 2 examples will be displayed identically to the first
+one.
+
+
+The canvas command creates a new Tcl command whose
+name is pathName. This
+command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+Option and the args
+determine the exact behavior of the command.
+The following widget commands are possible for canvas widgets:
+
+
+- pathName addtag tag searchSpec ?arg arg ...?
-
+For each item that meets the constraints specified by
+searchSpec and the args, add
+tag to the list of tags associated with the item if it
+isn't already present on that list.
+It is possible that no items will satisfy the constraints
+given by searchSpec and args, in which case the
+command has no effect.
+This command returns an empty string as result.
+SearchSpec and arg's may take any of the following
+forms:
+
+
+- above tagOrId
-
+Selects the item just after (above) the one given by tagOrId
+in the display list.
+If tagOrId denotes more than one item, then the last (topmost)
+of these items in the display list is used.
+
- all
-
+Selects all the items in the canvas.
+
- below tagOrId
-
+Selects the item just before (below) the one given by tagOrId
+in the display list.
+If tagOrId denotes more than one item, then the first (lowest)
+of these items in the display list is used.
+
- closest x y ?halo? ?start?
-
+Selects the item closest to the point given by x and y.
+If more than one item is at the same closest distance (e.g. two
+items overlap the point), then the top-most of these items (the
+last one in the display list) is used.
+If halo is specified, then it must be a non-negative
+value.
+Any item closer than halo to the point is considered to
+overlap it.
+The start argument may be used to step circularly through
+all the closest items.
+If start is specified, it names an item using a tag or id
+(if by tag, it selects the first item in the display list with
+the given tag).
+Instead of selecting the topmost closest item, this form will
+select the topmost closest item that is below start in
+the display list; if no such item exists, then the selection
+behaves as if the start argument had not been specified.
+
- enclosed x1 y1 x2 y2
-
+Selects all the items completely enclosed within the rectangular
+region given by x1, y1, x2, and y2.
+X1 must be no greater then x2 and y1 must be
+no greater than y2.
+
- overlapping x1 y1 x2 y2
-
+Selects all the items that overlap or are enclosed within the
+rectangular region given by x1, y1, x2,
+and y2.
+X1 must be no greater then x2 and y1 must be
+no greater than y2.
+
- withtag tagOrId
-
+Selects all the items given by tagOrId.
+
+ - pathName bbox tagOrId ?tagOrId tagOrId ...?
-
+Returns a list with four elements giving an approximate bounding box
+for all the items named by the tagOrId arguments.
+The list has the form ``x1 y1 x2 y2'' such that the drawn
+areas of all the named elements are within the region bounded by
+x1 on the left, x2 on the right, y1 on the top,
+and y2 on the bottom.
+The return value may overestimate the actual bounding box by
+a few pixels.
+If no items match any of the tagOrId arguments or if the
+matching items have empty bounding boxes (i.e. they have nothing
+to display)
+then an empty string is returned.
+
- pathName bind tagOrId ?sequence? ?command?
-
+This command associates command with all the items given by
+tagOrId such that whenever the event sequence given by
+sequence occurs for one of the items the command will
+be invoked.
+This widget command is similar to the bind command except that
+it operates on items in a canvas rather than entire widgets.
+See the bind manual entry for complete details
+on the syntax of sequence and the substitutions performed
+on command before invoking it.
+If all arguments are specified then a new binding is created, replacing
+any existing binding for the same sequence and tagOrId
+(if the first character of command is ``+'' then command
+augments an existing binding rather than replacing it).
+In this case the return value is an empty string.
+If command is omitted then the command returns the command
+associated with tagOrId and sequence (an error occurs
+if there is no such binding).
+If both command and sequence are omitted then the command
+returns a list of all the sequences for which bindings have been
+defined for tagOrId.
+
+The only events for which bindings may be specified are those related to
+the mouse and keyboard (such as Enter, Leave,
+ButtonPress, Motion, and KeyPress) or virtual events.
+The handling of events in canvases uses the current item defined in ITEM
+IDS AND TAGS above. Enter and Leave events trigger for an
+item when it becomes the current item or ceases to be the current item;
+note that these events are different than Enter and Leave
+events for windows. Mouse-related events are directed to the current
+item, if any. Keyboard-related events are directed to the focus item, if
+any (see the focus widget command below for more on this). If a
+virtual event is used in a binding, that binding can trigger only if the
+virtual event is defined by an underlying mouse-related or
+keyboard-related event.
+
+It is possible for multiple bindings to match a particular event.
+This could occur, for example, if one binding is associated with the
+item's id and another is associated with one of the item's tags.
+When this occurs, all of the matching bindings are invoked.
+A binding associated with the all tag is invoked first,
+followed by one binding for each of the item's tags (in order),
+followed by a binding associated with the item's id.
+If there are multiple matching bindings for a single tag,
+then only the most specific binding is invoked.
+A continue command in a binding script terminates that
+script, and a break command terminates that script
+and skips any remaining scripts for the event, just as for the
+bind command.
+
If bindings have been created for a canvas window using the bind
+command, then they are invoked in addition to bindings created for
+the canvas's items using the bind widget command.
+The bindings for items will be invoked before any of the bindings
+for the window as a whole.
+
- pathName canvasx screenx ?gridspacing?
-
+Given a window x-coordinate in the canvas screenx, this command returns
+the canvas x-coordinate that is displayed at that location.
+If gridspacing is specified, then the canvas coordinate is
+rounded to the nearest multiple of gridspacing units.
+
- pathName canvasy screeny ?gridspacing?
-
+Given a window y-coordinate in the canvas screeny this command returns
+the canvas y-coordinate that is displayed at that location.
+If gridspacing is specified, then the canvas coordinate is
+rounded to the nearest multiple of gridspacing units.
+
- pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the canvas
+command.
+
- pathName configure ?option? ?value? ?option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the canvas
+command.
+
- pathName coords tagOrId ?x0 y0 ...?
-
+
- pathName coords tagOrId ?coordList?
-
+Query or modify the coordinates that define an item.
+If no coordinates are specified, this command returns a list
+whose elements are the coordinates of the item named by
+tagOrId.
+If coordinates are specified, then they replace the current
+coordinates for the named item.
+If tagOrId refers to multiple items, then
+the first one in the display list is used.
+
- pathName create type x y ?x y ...? ?option value ...?
-
+
- pathName create type coordList ?option value ...?
-
+Create a new item in pathName of type type.
+The exact format of the arguments after type depends
+on type, but usually they consist of the coordinates for
+one or more points, followed by specifications for zero or
+more item options.
+See the subsections on individual item types below for more
+on the syntax of this command.
+This command returns the id for the new item.
+
- pathName dchars tagOrId first ?last?
-
+For each item given by tagOrId, delete the characters, or coordinates,
+in the range given by first and last, inclusive.
+If some of the items given by tagOrId don't support
+indexing operations then they ignore dchars.
+Text items interpret first and last as indices to a character,
+line and polygon items interpret them indices to a coordinate (an x,y pair).
+Indices are described in INDICES above.
+If last is omitted, it defaults to first.
+This command returns an empty string.
+
- pathName delete ?tagOrId tagOrId ...?
-
+Delete each of the items given by each tagOrId, and return
+an empty string.
+
- pathName dtag tagOrId ?tagToDelete?
-
+For each of the items given by tagOrId, delete the
+tag given by tagToDelete from the list of those
+associated with the item.
+If an item doesn't have the tag tagToDelete then
+the item is unaffected by the command.
+If tagToDelete is omitted then it defaults to tagOrId.
+This command returns an empty string.
+
- pathName find searchCommand ?arg arg ...?
-
+This command returns a list consisting of all the items that
+meet the constraints specified by searchCommand and
+arg's.
+SearchCommand and args have any of the forms
+accepted by the addtag command.
+The items are returned in stacking order, with the lowest item first.
+
- pathName focus ?tagOrId?
-
+Set the keyboard focus for the canvas widget to the item given by
+tagOrId.
+If tagOrId refers to several items, then the focus is set
+to the first such item in the display list that supports the
+insertion cursor.
+If tagOrId doesn't refer to any items, or if none of them
+support the insertion cursor, then the focus isn't changed.
+If tagOrId is an empty
+string, then the focus item is reset so that no item has the focus.
+If tagOrId is not specified then the command returns the
+id for the item that currently has the focus, or an empty string
+if no item has the focus.
+
+Once the focus has been set to an item, the item will display
+the insertion cursor and all keyboard events will be directed
+to that item.
+The focus item within a canvas and the focus window on the
+screen (set with the focus command) are totally independent:
+a given item doesn't actually have the input focus unless (a)
+its canvas is the focus window and (b) the item is the focus item
+within the canvas.
+In most cases it is advisable to follow the focus widget
+command with the focus command to set the focus window to
+the canvas (if it wasn't there already).
+
- pathName gettags tagOrId
-
+Return a list whose elements are the tags associated with the
+item given by tagOrId.
+If tagOrId refers to more than one item, then the tags
+are returned from the first such item in the display list.
+If tagOrId doesn't refer to any items, or if the item
+contains no tags, then an empty string is returned.
+
- pathName icursor tagOrId index
-
+Set the position of the insertion cursor for the item(s) given by tagOrId
+to just before the character whose position is given by index.
+If some or all of the items given by tagOrId don't support
+an insertion cursor then this command has no effect on them.
+See INDICES above for a description of the
+legal forms for index.
+Note: the insertion cursor is only displayed in an item if
+that item currently has the keyboard focus (see the widget
+command focus, below), but the cursor position may
+be set even when the item doesn't have the focus.
+This command returns an empty string.
+
- pathName index tagOrId index
-
+This command returns a decimal string giving the numerical index
+within tagOrId corresponding to index.
+Index gives a textual description of the desired position
+as described in INDICES above.
+Text items interpret index as an index to a character,
+line and polygon items interpret it as an index to a coordinate (an x,y pair).
+The return value is guaranteed to lie between 0 and the number
+of characters, or coordinates, within the item, inclusive.
+If tagOrId refers to multiple items, then the index
+is processed in the first of these items that supports indexing
+operations (in display list order).
+
- pathName insert tagOrId beforeThis string
-
+For each of the items given by tagOrId, if the item supports
+text or coordinate, insertion then string is inserted into the item's
+text just before the character, or coordinate, whose index is beforeThis.
+Text items interpret beforethis as an index to a character,
+line and polygon items interpret it as an index to a coordinate (an x,y pair).
+For lines and polygons the string must be a valid coordinate
+sequence.
+See INDICES above for information about the forms allowed
+for beforeThis.
+This command returns an empty string.
+
- pathName itemcget tagOrId option
-
+Returns the current value of the configuration option for the
+item given by tagOrId whose name is option.
+This command is similar to the cget widget command except that
+it applies to a particular item rather than the widget as a whole.
+Option may have any of the values accepted by the create
+widget command when the item was created.
+If tagOrId is a tag that refers to more than one item,
+the first (lowest) such item is used.
+
- pathName itemconfigure tagOrId ?option? ?value? ?option value ...?
-
+This command is similar to the configure widget command except
+that it modifies item-specific options for the items given by
+tagOrId instead of modifying options for the overall
+canvas widget.
+If no option is specified, returns a list describing all of
+the available options for the first item given by tagOrId
+(see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s) in
+each of the items given by tagOrId; in
+this case the command returns an empty string.
+The options and values are the same as those permissible
+in the create widget command when the item(s) were created;
+see the sections describing individual item types below for details
+on the legal options.
+
- pathName lower tagOrId ?belowThis?
-
+Move all of the items given by tagOrId to a new position
+in the display list just before the item given by belowThis.
+If tagOrId refers to more than one item then all are moved
+but the relative order of the moved items will not be changed.
+BelowThis is a tag or id; if it refers to more than one
+item then the first (lowest) of these items in the display list is used
+as the destination location for the moved items.
+Note: this command has no effect on window items. Window items always
+obscure other item types, and the stacking order of window items is
+determined by the raise and lower commands, not the
+raise and lower widget commands for canvases.
+This command returns an empty string.
+
- pathName move tagOrId xAmount yAmount
-
+Move each of the items given by tagOrId in the canvas coordinate
+space by adding xAmount to the x-coordinate of each point
+associated with the item and yAmount to the y-coordinate of
+each point associated with the item.
+This command returns an empty string.
+
- pathName postscript ?option value option value ...?
-
+Generate a Postscript representation for part or all of the canvas.
+If the -file option is specified then the Postscript is written
+to a file and an empty string is returned; otherwise the Postscript
+is returned as the result of the command.
+If the interpreter that owns the canvas is marked as safe, the operation
+will fail because safe interpreters are not allowed to write files.
+If the -channel option is specified, the argument denotes the name
+of a channel already opened for writing. The Postscript is written to
+that channel, and the channel is left open for further writing at the end
+of the operation.
+The Postscript is created in Encapsulated Postscript form using
+version 3.0 of the Document Structuring Conventions.
+Note: by default Postscript is only generated for information that
+appears in the canvas's window on the screen. If the canvas is
+freshly created it may still have its initial size of 1x1 pixel
+so nothing will appear in the Postscript. To get around this problem
+either invoke the "update" command to wait for the canvas window
+to reach its final size, or else use the -width and -height
+options to specify the area of the canvas to print.
+The option-value argument pairs provide additional
+information to control the generation of Postscript. The following
+options are supported:
+
+
+- -colormap varName
-
+VarName must be the name of an array variable
+that specifies a color mapping to use in the Postscript.
+Each element of varName must consist of Postscript
+code to set a particular color value (e.g. ``1.0 1.0 0.0 setrgbcolor'').
+When outputting color information in the Postscript, Tk checks
+to see if there is an element of varName with the same
+name as the color.
+If so, Tk uses the value of the element as the Postscript command
+to set the color.
+If this option hasn't been specified, or if there isn't an entry
+in varName for a given color, then Tk uses the red, green,
+and blue intensities from the X color.
+
- -colormode mode
-
+Specifies how to output color information. Mode must be either
+color (for full color output), gray (convert all colors
+to their gray-scale equivalents) or mono (convert all colors
+to black or white).
+
- -file fileName
-
+Specifies the name of the file in which to write the Postscript.
+If this option isn't specified then the Postscript is returned as the
+result of the command instead of being written to a file.
+
- -fontmap varName
-
+VarName must be the name of an array variable
+that specifies a font mapping to use in the Postscript.
+Each element of varName must consist of a Tcl list with
+two elements, which are the name and point size of a Postscript font.
+When outputting Postscript commands for a particular font, Tk
+checks to see if varName contains an element with the same
+name as the font.
+If there is such an element, then the font information contained in
+that element is used in the Postscript.
+Otherwise Tk attempts to guess what Postscript font to use.
+Tk's guesses generally only work for well-known fonts such as
+Times and Helvetica and Courier, and only if the X font name does not
+omit any dashes up through the point size.
+For example, -*-Courier-Bold-R-Normal--*-120-* will work but
+*Courier-Bold-R-Normal*120* will not; Tk needs the dashes to
+parse the font name).
+
- -height size
-
+Specifies the height of the area of the canvas to print.
+Defaults to the height of the canvas window.
+
- -pageanchor anchor
-
+Specifies which point of the printed area of the canvas should appear over
+the positioning point on the page (which is given by the -pagex
+and -pagey options).
+For example, -pageanchor n means that the top center of the
+area of the canvas being printed (as it appears in the canvas window)
+should be over the positioning point. Defaults to center.
+
- -pageheight size
-
+Specifies that the Postscript should be scaled in both x and y so
+that the printed area is size high on the Postscript page.
+Size consists of a floating-point number followed by
+c for centimeters, i for inches, m for millimeters,
+or p or nothing for printer's points (1/72 inch).
+Defaults to the height of the printed area on the screen.
+If both -pageheight and -pagewidth are specified then
+the scale factor from -pagewidth is used (non-uniform scaling
+is not implemented).
+
- -pagewidth size
-
+Specifies that the Postscript should be scaled in both x and y so
+that the printed area is size wide on the Postscript page.
+Size has the same form as for -pageheight.
+Defaults to the width of the printed area on the screen.
+If both -pageheight and -pagewidth are specified then
+the scale factor from -pagewidth is used (non-uniform scaling
+is not implemented).
+
- -pagex position
-
+Position gives the x-coordinate of the positioning point on
+the Postscript page, using any of the forms allowed for -pageheight.
+Used in conjunction with the -pagey and -pageanchor options
+to determine where the printed area appears on the Postscript page.
+Defaults to the center of the page.
+
- -pagey position
-
+Position gives the y-coordinate of the positioning point on
+the Postscript page, using any of the forms allowed for -pageheight.
+Used in conjunction with the -pagex and -pageanchor options
+to determine where the printed area appears on the Postscript page.
+Defaults to the center of the page.
+
- -rotate boolean
-
+Boolean specifies whether the printed area is to be rotated 90
+degrees.
+In non-rotated output the x-axis of the printed area runs along
+the short dimension of the page (``portrait'' orientation);
+in rotated output the x-axis runs along the long dimension of the
+page (``landscape'' orientation).
+Defaults to non-rotated.
+
- -width size
-
+Specifies the width of the area of the canvas to print.
+Defaults to the width of the canvas window.
+
- -x position
-
+Specifies the x-coordinate of the left edge of the area of the
+canvas that is to be printed, in canvas coordinates, not window
+coordinates.
+Defaults to the coordinate of the left edge of the window.
+
- -y position
-
+Specifies the y-coordinate of the top edge of the area of the
+canvas that is to be printed, in canvas coordinates, not window
+coordinates.
+Defaults to the coordinate of the top edge of the window.
+
+ - pathName raise tagOrId ?aboveThis?
-
+Move all of the items given by tagOrId to a new position
+in the display list just after the item given by aboveThis.
+If tagOrId refers to more than one item then all are moved
+but the relative order of the moved items will not be changed.
+AboveThis is a tag or id; if it refers to more than one
+item then the last (topmost) of these items in the display list is used
+as the destination location for the moved items.
+Note: this command has no effect on window items. Window items always
+obscure other item types, and the stacking order of window items is
+determined by the raise and lower commands, not the
+raise and lower widget commands for canvases.
+This command returns an empty string.
+
- pathName scale tagOrId xOrigin yOrigin xScale yScale
-
+Rescale all of the items given by tagOrId in canvas coordinate
+space.
+XOrigin and yOrigin identify the origin for the scaling
+operation and xScale and yScale identify the scale
+factors for x- and y-coordinates, respectively (a scale factor of
+1.0 implies no change to that coordinate).
+For each of the points defining each item, the x-coordinate is
+adjusted to change the distance from xOrigin by a factor
+of xScale.
+Similarly, each y-coordinate is adjusted to change the distance
+from yOrigin by a factor of yScale.
+This command returns an empty string.
+
- pathName scan option args
-
+This command is used to implement scanning on canvases. It has
+two forms, depending on option:
+
+
+- pathName scan mark x y
-
+Records x and y and the canvas's current view; used
+in conjunction with later scan dragto commands.
+Typically this command is associated with a mouse button press in
+the widget and x and y are the coordinates of the
+mouse. It returns an empty string.
+
- pathName scan dragto x y ?gain?.
-
+This command computes the difference between its x and y
+arguments (which are typically mouse coordinates) and the x and
+y arguments to the last scan mark command for the widget.
+It then adjusts the view by gain times the
+difference in coordinates, where gain defaults to 10.
+This command is typically associated
+with mouse motion events in the widget, to produce the effect of
+dragging the canvas at high speed through its window. The return
+value is an empty string.
+
+ - pathName select option ?tagOrId arg?
-
+Manipulates the selection in one of several ways, depending on
+option.
+The command may take any of the forms described below.
+In all of the descriptions below, tagOrId must refer to
+an item that supports indexing and selection; if it refers to
+multiple items then the first of
+these that supports indexing and the selection is used.
+Index gives a textual description of a position
+within tagOrId, as described in INDICES above.
+
+
+- pathName select adjust tagOrId index
-
+Locate the end of the selection in tagOrId nearest
+to the character given by index, and adjust that
+end of the selection to be at index (i.e. including
+but not going beyond index).
+The other end of the selection is made the anchor point
+for future select to commands.
+If the selection isn't currently in tagOrId then
+this command behaves the same as the select to widget
+command.
+Returns an empty string.
+
- pathName select clear
-
+Clear the selection if it is in this widget.
+If the selection isn't in this widget then the command
+has no effect.
+Returns an empty string.
+
- pathName select from tagOrId index
-
+Set the selection anchor point for the widget to be just
+before the character
+given by index in the item given by tagOrId.
+This command doesn't change the selection; it just sets
+the fixed end of the selection for future select to
+commands.
+Returns an empty string.
+
- pathName select item
-
+Returns the id of the selected item, if the selection is in an
+item in this canvas.
+If the selection is not in this canvas then an empty string
+is returned.
+
- pathName select to tagOrId index
-
+Set the selection to consist of those characters of tagOrId
+between the selection anchor point and
+index.
+The new selection will include the character given by index;
+it will include the character given by the anchor point only if
+index is greater than or equal to the anchor point.
+The anchor point is determined by the most recent select adjust
+or select from command for this widget.
+If the selection anchor point for the widget isn't currently in
+tagOrId, then it is set to the same character given
+by index.
+Returns an empty string.
+
+ - pathName type tagOrId
-
+Returns the type of the item given by tagOrId, such as
+rectangle or text.
+If tagOrId refers to more than one item, then the type
+of the first item in the display list is returned.
+If tagOrId doesn't refer to any items at all then
+an empty string is returned.
+
- pathName xview ?args?
-
+This command is used to query and change the horizontal position of the
+information displayed in the canvas's window.
+It can take any of the following forms:
+
+
+- pathName xview
-
+Returns a list containing two elements.
+Each element is a real fraction between 0 and 1; together they describe
+the horizontal span that is visible in the window.
+For example, if the first element is .2 and the second element is .6,
+20% of the canvas's area (as defined by the -scrollregion option)
+is off-screen to the left, the middle 40% is visible
+in the window, and 40% of the canvas is off-screen to the right.
+These are the same values passed to scrollbars via the -xscrollcommand
+option.
+
- pathName xview moveto fraction
-
+Adjusts the view in the window so that fraction of the
+total width of the canvas is off-screen to the left.
+Fraction must be a fraction between 0 and 1.
+
- pathName xview scroll number what
-
+This command shifts the view in the window left or right according to
+number and what.
+Number must be an integer.
+What must be either units or pages or an abbreviation
+of one of these.
+If what is units, the view adjusts left or right in units
+of the xScrollIncrement option, if it is greater than zero,
+or in units of one-tenth the window's width otherwise.
+If what is pages then the view
+adjusts in units of nine-tenths the window's width.
+If number is negative then information farther to the left
+becomes visible; if it is positive then information farther to the right
+becomes visible.
+
+ - pathName yview ?args?
-
+This command is used to query and change the vertical position of the
+information displayed in the canvas's window.
+It can take any of the following forms:
+
+
+- pathName yview
-
+Returns a list containing two elements.
+Each element is a real fraction between 0 and 1; together they describe
+the vertical span that is visible in the window.
+For example, if the first element is .6 and the second element is 1.0,
+the lowest 40% of the canvas's area (as defined by the -scrollregion
+option) is visible in the window.
+These are the same values passed to scrollbars via the -yscrollcommand
+option.
+
- pathName yview moveto fraction
-
+Adjusts the view in the window so that fraction of the canvas's
+area is off-screen to the top.
+Fraction is a fraction between 0 and 1.
+
- pathName yview scroll number what
-
+This command adjusts the view in the window up or down according to
+number and what.
+Number must be an integer.
+What must be either units or pages.
+If what is units, the view adjusts up or down in units
+of the yScrollIncrement option, if it is greater than zero,
+or in units of one-tenth the window's height otherwise.
+If what is pages then
+the view adjusts in units of nine-tenths the window's height.
+If number is negative then higher information becomes
+visible; if it is positive then lower information
+becomes visible.
+
+
+
+The sections below describe the various types of items supported
+by canvas widgets. Each item type is characterized by two things:
+first, the form of the create command used to create
+instances of the type; and second, a set of configuration options
+for items of that type, which may be used in the
+create and itemconfigure widget commands.
+Most items don't support indexing or selection or the commands
+related to them, such as index and insert.
+Where items do support these facilities, it is noted explicitly
+in the descriptions below.
+At present, text, line and polygon items provide this support.
+For lines and polygons the indexing facility is used to manipulate
+the coordinates of the item.
+
+
+Many items share a common set of options. These options are
+explained here, and then referred to be each widget type for brevity.
+
+
+
+- -dash pattern
-
+
- -activedash pattern
-
+
- -disableddash pattern
-
+This option specifies dash patterns for the normal, active
+state, and disabled state of an item.
+pattern may have any of the forms accepted by Tk_GetDash.
+If the dash options are omitted then the default is a solid outline.
+See "DASH PATTERNS" for more information.
+
- -dashoffset offset
-
+The starting offset in pixels into the pattern provided by the
+-dash option. -dashoffset is ignored if there is no
+-dash pattern. The offset may have any of the forms described
+in the COORDINATES section above.
+
- -fill color
-
+
- -activefill color
-
+
- -disabledfill color
-
+Specifies the color to be used to fill item's area.
+in its normal, active, and disabled states,
+Color may have any of the forms accepted by Tk_GetColor.
+If color is an empty string (the default), then
+then the item will not be filled.
+For the line item, it specifies the color of the line drawn.
+For the text item, it specifies the foreground color of the text.
+
- -outline color
-
+
- -activeoutline color
-
+
- -disabledoutline color
-
+This option specifies the color that should be used to draw the
+outline of the item in its normal, active and disabled states.
+Color may have any of the forms accepted by Tk_GetColor.
+This option defaults to black. If color is specified
+as an empty string then no outline is drawn for the item.
+
- -offset offset
-
+Specifies the offset of stipples. The offset value can be of the form
+x,y or side, where side can be n, ne, e,
+se, s, sw, w, nw, or center. In the
+first case the origin is the origin of the toplevel of the current window.
+For the canvas itself and canvas objects the origin is the canvas origin,
+but putting # in front of the coordinate pair indicates using the
+toplevel origin instead. For canvas objects, the -offset option is
+used for stippling as well. For the line and polygon canvas items you can
+also specify an index as argument, which connects the stipple origin to one
+of the coordinate points of the line/polygon.
+
- -outlinestipple bitmap
-
+
- -activeoutlinestipple bitmap
-
+
- -disabledoutlinestipple bitmap
-
+This option specifies stipple patterns that should be used to draw the
+outline of the item in its normal, active and disabled states.
+Indicates that the outline for the item should be drawn with a stipple pattern;
+bitmap specifies the stipple pattern to use, in any of the
+forms accepted by Tk_GetBitmap.
+If the -outline option hasn't been specified then this option
+has no effect.
+If bitmap is an empty string (the default), then the outline is drawn
+in a solid fashion.
+
- -stipple bitmap
-
+
- -activestipple bitmap
-
+
- -disabledstipple bitmap
-
+This option specifies stipple patterns that should be used to fill the
+the item in its normal, active and disabled states.
+bitmap specifies the stipple pattern to use, in any of the
+forms accepted by Tk_GetBitmap.
+If the -fill option hasn't been specified then this option
+has no effect.
+If bitmap is an empty string (the default), then filling is done
+in a solid fashion.
+For the text item, it affects the actual text.
+
- -state state
-
+This allows an item to override the canvas widget's global state
+option. It takes the same values:
+normal, disabled or hidden.
+
- -tags tagList
-
+Specifies a set of tags to apply to the item.
+TagList consists of a list of tag names, which replace any
+existing tags for the item. TagList may be an empty list.
+
- -width outlineWidth
-
+
- -activewidth outlineWidth
-
+
- -disabledwidth outlineWidth
-
+Specifies the width of the outline to be drawn around
+the item's region, in its normal, active and disabled states.
+outlineWidth may be in any of the forms described in the COORDINATES
+section above.
+If the -outline option has been specified as an empty string then
+this option has no effect. This option defaults to 1.0.
+For arcs, wide outlines will be drawn centered on the edges of the
+arc's region.
+
+
+
+Items of type arc appear on the display as arc-shaped regions.
+An arc is a section of an oval delimited by two angles (specified
+by the -start and -extent options) and displayed in
+one of several ways (specified by the -style option).
+Arcs are created with widget commands of the following form:
+pathName create arc x1 y1 x2 y2 ?option value option value ...?
+pathName create arc coordList ?option value option value ...?
+The arguments x1, y1, x2, and y2 or coordList give
+the coordinates of two diagonally opposite corners of a
+rectangular region enclosing the oval that defines the arc.
+After the coordinates there may be any number of option-value
+pairs, each of which sets one of the configuration options
+for the item. These same option-value pairs may be
+used in itemconfigure widget commands to change the item's
+configuration.
+
+The following standard options are supported by arcs:
+-dash
+-activedash
+-disableddash
+-dashoffset
+-fill
+-activefill
+-disabledfill
+-offset
+-outline
+-activeoutline
+-disabledoutline
+-outlinestipple
+-activeoutlinestipple
+-disabledoutlinestipple
+-stipple
+-activestipple
+-disabledstipple
+-state
+-tags
+-width
+-activewidth
+-disabledwidth
+The following extra options are supported for arcs:
+
+
+- -extent degrees
-
+Specifies the size of the angular range occupied by the arc.
+The arc's range extends for degrees degrees counter-clockwise
+from the starting angle given by the -start option.
+Degrees may be negative.
+If it is greater than 360 or less than -360, then degrees
+modulo 360 is used as the extent.
+
- -start degrees
-
+Specifies the beginning of the angular range occupied by the
+arc.
+Degrees is given in units of degrees measured counter-clockwise
+from the 3-o'clock position; it may be either positive or negative.
+
- -style type
-
+Specifies how to draw the arc. If type is pieslice
+(the default) then the arc's region is defined by a section
+of the oval's perimeter plus two line segments, one between the center
+of the oval and each end of the perimeter section.
+If type is chord then the arc's region is defined
+by a section of the oval's perimeter plus a single line segment
+connecting the two end points of the perimeter section.
+If type is arc then the arc's region consists of
+a section of the perimeter alone.
+In this last case the -fill option is ignored.
+
+
+
+Items of type bitmap appear on the display as images with
+two colors, foreground and background.
+Bitmaps are created with widget commands of the following form:
+pathName create bitmap x y ?option value option value ...?
+pathName create bitmap coordList ?option value option value ...?
+The arguments x and y or coordList specify the coordinates of a
+point used to position the bitmap on the display (see the -anchor
+option below for more information on how bitmaps are displayed).
+After the coordinates there may be any number of option-value
+pairs, each of which sets one of the configuration options
+for the item. These same option-value pairs may be
+used in itemconfigure widget commands to change the item's
+configuration.
+
+The following standard options are supported by bitmaps:
+-state
+-tags
+The following extra options are supported for bitmaps:
+
+
+- -anchor anchorPos
-
+AnchorPos tells how to position the bitmap relative to the
+positioning point for the item; it may have any of the forms
+accepted by Tk_GetAnchor. For example, if anchorPos
+is center then the bitmap is centered on the point; if
+anchorPos is n then the bitmap will be drawn so that
+its top center point is at the positioning point.
+This option defaults to center.
+
- -background color
-
+
- -activebackground bitmap
-
+
- -disabledbackground bitmap
-
+Specifies the color to use for each of the bitmap's '0' valued pixels
+in its normal, active and disabled states.
+Color may have any of the forms accepted by Tk_GetColor.
+If this option isn't specified, or if it is specified as an empty
+string, then nothing is displayed where the bitmap pixels are 0; this
+produces a transparent effect.
+
- -bitmap bitmap
-
+
- -activebitmap bitmap
-
+
- -disabledbitmap bitmap
-
+Specifies the bitmaps to display in the item in its normal, active and
+disabled states.
+Bitmap may have any of the forms accepted by Tk_GetBitmap.
+
- -foreground color
-
+
- -activeforeground bitmap
-
+
- -disabledforeground bitmap
-
+Specifies the color to use for each of the bitmap's '1' valued pixels
+in its normal, active and disabled states.
+Color may have any of the forms accepted by Tk_GetColor and
+defaults to black.
+
+
+
+Items of type image are used to display images on a
+canvas.
+Images are created with widget commands of the following form:
+pathName create image x y ?option value option value ...?
+pathName create image coordList ?option value option value ...?
+The arguments x and y or coordList specify the coordinates of a
+point used to position the image on the display (see the -anchor
+option below for more information).
+After the coordinates there may be any number of option-value
+pairs, each of which sets one of the configuration options
+for the item. These same option-value pairs may be
+used in itemconfigure widget commands to change the item's
+configuration.
+
+The following standard options are supported by images:
+-state
+-tags
+The following extra options are supported for images:
+
+
+- -anchor anchorPos
-
+AnchorPos tells how to position the image relative to the
+positioning point for the item; it may have any of the forms
+accepted by Tk_GetAnchor. For example, if anchorPos
+is center then the image is centered on the point; if
+anchorPos is n then the image will be drawn so that
+its top center point is at the positioning point.
+This option defaults to center.
+
- -image name
-
+
- -activeimage name
-
+
- -disabledimage name
-
+Specifies the name of the images to display in the item in is normal,
+active and disabled states.
+This image must have been created previously with the
+image create command.
+
+
+
+Items of type line appear on the display as one or more connected
+line segments or curves.
+Line items support coordinate indexing operations using the canvas
+widget commands: dchars, index, insert.
+Lines are created with widget commands of the following form:
+pathName create line x1 y1... xn yn ?option value option value ...?
+pathName create line coordList ?option value option value ...?
+The arguments x1 through yn or coordList give
+the coordinates for a series of two or more points that describe
+a series of connected line segments.
+After the coordinates there may be any number of option-value
+pairs, each of which sets one of the configuration options
+for the item. These same option-value pairs may be
+used in itemconfigure widget commands to change the item's
+configuration.
+
+The following standard options are supported by lines:
+-dash
+-activedash
+-disableddash
+-dashoffset
+-fill
+-activefill
+-disabledfill
+-stipple
+-activestipple
+-disabledstipple
+-state
+-tags
+-width
+-activewidth
+-disabledwidth
+The following extra options are supported for lines:
+
+
+- -arrow where
-
+Indicates whether or not arrowheads are to be drawn at one or both
+ends of the line.
+Where must have one of the values none (for no arrowheads),
+first (for an arrowhead at the first point of the line),
+last (for an arrowhead at the last point of the line), or
+both (for arrowheads at both ends).
+This option defaults to none.
+
- -arrowshape shape
-
+This option indicates how to draw arrowheads.
+The shape argument must be a list with three elements, each
+specifying a distance in any of the forms described in
+the COORDINATES section above.
+The first element of the list gives the distance along the line
+from the neck of the arrowhead to its tip.
+The second element gives the distance along the line from the
+trailing points of the arrowhead to the tip, and the third
+element gives the distance from the outside edge of the line to the
+trailing points.
+If this option isn't specified then Tk picks a ``reasonable'' shape.
+
- -capstyle style
-
+Specifies the ways in which caps are to be drawn at the endpoints
+of the line.
+Style may have any of the forms accepted by Tk_GetCapStyle
+(butt, projecting, or round).
+If this option isn't specified then it defaults to butt.
+Where arrowheads are drawn the cap style is ignored.
+
- -joinstyle style
-
+Specifies the ways in which joints are to be drawn at the vertices
+of the line.
+Style may have any of the forms accepted by Tk_GetCapStyle
+(bevel, miter, or round).
+If this option isn't specified then it defaults to miter.
+If the line only contains two points then this option is
+irrelevant.
+
- -smooth boolean
-
+Boolean must have one of the forms accepted by Tk_GetBoolean.
+It indicates whether or not the line should be drawn as a curve.
+If so, the line is rendered as a set of parabolic splines: one spline
+is drawn for the first and second line segments, one for the second
+and third, and so on. Straight-line segments can be generated within
+a curve by duplicating the end-points of the desired line segment.
+
- -splinesteps number
-
+Specifies the degree of smoothness desired for curves: each spline
+will be approximated with number line segments. This
+option is ignored unless the -smooth option is true.
+
+
+
+Items of type oval appear as circular or oval regions on
+the display. Each oval may have an outline, a fill, or
+both. Ovals are created with widget commands of the
+following form:
+pathName create oval x1 y1 x2 y2 ?option value option value ...?
+pathName create oval coordList ?option value option value ...?
+The arguments x1, y1, x2, and y2 or coordList give
+the coordinates of two diagonally opposite corners of a
+rectangular region enclosing the oval.
+The oval will include the top and left edges of the rectangle
+not the lower or right edges.
+If the region is square then the resulting oval is circular;
+otherwise it is elongated in shape.
+After the coordinates there may be any number of option-value
+pairs, each of which sets one of the configuration options
+for the item. These same option-value pairs may be
+used in itemconfigure widget commands to change the item's
+configuration.
+
+The following standard options are supported by ovals:
+-dash
+-activedash
+-disableddash
+-dashoffset
+-fill
+-activefill
+-disabledfill
+-offset
+-outline
+-activeoutline
+-disabledoutline
+-outlinestipple
+-activeoutlinestipple
+-disabledoutlinestipple
+-stipple
+-activestipple
+-disabledstipple
+-state
+-tags
+-width
+-activewidth
+-disabledwidth
+
+Items of type polygon appear as polygonal or curved filled regions
+on the display.
+Polygon items support coordinate indexing operations using the canvas
+widget commands: dchars, index, insert.
+Polygons are created with widget commands of the following form:
+pathName create polygon x1 y1 ... xn yn ?option value option value ...?
+pathName create polygon coordList ?option value option value ...?
+The arguments x1 through yn or coordList specify the coordinates for
+three or more points that define a polygon.
+The first point should not be repeated as the last to
+close the shape; Tk will automatically close the periphery between
+the first and last points.
+After the coordinates there may be any number of option-value
+pairs, each of which sets one of the configuration options
+for the item. These same option-value pairs may be
+used in itemconfigure widget commands to change the item's
+configuration.
+
+The following standard options are supported by polygons:
+-dash
+-activedash
+-disableddash
+-dashoffset
+-fill
+-activefill
+-disabledfill
+-offset
+-outline
+-activeoutline
+-disabledoutline
+-outlinestipple
+-activeoutlinestipple
+-disabledoutlinestipple
+-stipple
+-activestipple
+-disabledstipple
+-state
+-tags
+-width
+-activewidth
+-disabledwidth
+The following extra options are supported for polygons:
+
+
+- -joinstyle style
-
+Specifies the ways in which joints are to be drawn at the vertices
+of the outline.
+Style may have any of the forms accepted by Tk_GetCapStyle
+(bevel, miter, or round).
+If this option isn't specified then it defaults to miter.
+
- -smooth boolean
-
+Boolean must have one of the forms accepted by Tk_GetBoolean
+It indicates whether or not the polygon should be drawn with a
+curved perimeter.
+If so, the outline of the polygon becomes a set of parabolic splines,
+one spline for the first and second line segments, one for the second
+and third, and so on. Straight-line segments can be generated in a
+smoothed polygon by duplicating the end-points of the desired line segment.
+
- -splinesteps number
-
+Specifies the degree of smoothness desired for curves: each spline
+will be approximated with number line segments. This
+option is ignored unless the -smooth option is true.
+
+
+Polygon items are different from other items such as rectangles, ovals
+and arcs in that interior points are considered to be ``inside'' a
+polygon (e.g. for purposes of the find closest and
+find overlapping widget commands) even if it is not filled.
+For most other item types, an
+interior point is considered to be inside the item only if the item
+is filled or if it has neither a fill nor an outline. If you would
+like an unfilled polygon whose interior points are not considered
+to be inside the polygon, use a line item instead.
+
+
+Items of type rectangle appear as rectangular regions on
+the display. Each rectangle may have an outline, a fill, or
+both. Rectangles are created with widget commands of the
+following form:
+pathName create rectangle x1 y1 x2 y2 ?option value option value ...?
+pathName create rectangle coordList ?option value option value ...?
+The arguments x1, y1, x2, and y2 or coordList give
+the coordinates of two diagonally opposite corners of the rectangle
+(the rectangle will include its upper and left edges but not
+its lower or right edges).
+After the coordinates there may be any number of option-value
+pairs, each of which sets one of the configuration options
+for the item. These same option-value pairs may be
+used in itemconfigure widget commands to change the item's
+configuration.
+
+The following standard options are supported by rectangles:
+-dash
+-activedash
+-disableddash
+-dashoffset
+-fill
+-activefill
+-disabledfill
+-offset
+-outline
+-activeoutline
+-disabledoutline
+-outlinestipple
+-activeoutlinestipple
+-disabledoutlinestipple
+-stipple
+-activestipple
+-disabledstipple
+-state
+-tags
+-width
+-activewidth
+-disabledwidth
+
+A text item displays a string of characters on the screen in one
+or more lines.
+Text items support indexing and selection, along with the
+following text-related canvas widget commands: dchars,
+focus, icursor, index, insert,
+select.
+Text items are created with widget commands of the following
+form:
+pathName create text x y ?option value option value ...?
+pathName create text coordList ?option value option value ...?
+The arguments x and y or coordList specify the coordinates of a
+point used to position the text on the display (see the options
+below for more information on how text is displayed).
+After the coordinates there may be any number of option-value
+pairs, each of which sets one of the configuration options
+for the item. These same option-value pairs may be
+used in itemconfigure widget commands to change the item's
+configuration.
+
+The following standard options are supported by text items:
+-fill
+-activefill
+-disabledfill
+-stipple
+-activestipple
+-disabledstipple
+-state
+-tags
+The following extra options are supported for text items:
+
+
+- -anchor anchorPos
-
+AnchorPos tells how to position the text relative to the
+positioning point for the text; it may have any of the forms
+accepted by Tk_GetAnchor. For example, if anchorPos
+is center then the text is centered on the point; if
+anchorPos is n then the text will be drawn such that
+the top center point of the rectangular region occupied by the
+text will be at the positioning point.
+This option defaults to center.
+
- -font fontName
-
+Specifies the font to use for the text item.
+FontName may be any string acceptable to Tk_GetFont.
+If this option isn't specified, it defaults to a system-dependent
+font.
+
- -justify how
-
+Specifies how to justify the text within its bounding region.
+How must be one of the values left, right,
+or center.
+This option will only matter if the text is displayed as multiple
+lines.
+If the option is omitted, it defaults to left.
+
- -text string
-
+String specifies the characters to be displayed in the text item.
+Newline characters cause line breaks.
+The characters in the item may also be changed with the
+insert and delete widget commands.
+This option defaults to an empty string.
+
- -width lineLength
-
+Specifies a maximum line length for the text, in any of the forms
+described in the COORDINATES section above.
+If this option is zero (the default) the text is broken into
+lines only at newline characters.
+However, if this option is non-zero then any line that would
+be longer than lineLength is broken just before a space
+character to make the line shorter than lineLength; the
+space character is treated as if it were a newline
+character.
+
+
+
+Items of type window cause a particular window to be displayed
+at a given position on the canvas.
+Window items are created with widget commands of the following form:
+pathName create window x y ?option value option value ...?
+pathName create window coordList ?option value option value ...?
+The arguments x and y or coordList specify the coordinates of a
+point used to position the window on the display (see the -anchor
+option below for more information on how bitmaps are displayed).
+After the coordinates there may be any number of option-value
+pairs, each of which sets one of the configuration options
+for the item. These same option-value pairs may be
+used in itemconfigure widget commands to change the item's
+configuration.
+
+The following standard options are supported by window items:
+-state
+-tags
+The following extra options are supported for window items:
+
+
+- -anchor anchorPos
-
+AnchorPos tells how to position the window relative to the
+positioning point for the item; it may have any of the forms
+accepted by Tk_GetAnchor. For example, if anchorPos
+is center then the window is centered on the point; if
+anchorPos is n then the window will be drawn so that
+its top center point is at the positioning point.
+This option defaults to center.
+
- -height pixels
-
+Specifies the height to assign to the item's window.
+Pixels may have any of the
+forms described in the COORDINATES section above.
+If this option isn't specified, or if it is specified as an empty
+string, then the window is given whatever height it requests internally.
+
- -width pixels
-
+Specifies the width to assign to the item's window.
+Pixels may have any of the
+forms described in the COORDINATES section above.
+If this option isn't specified, or if it is specified as an empty
+string, then the window is given whatever width it requests internally.
+
- -window pathName
-
+Specifies the window to associate with this item.
+The window specified by pathName must either be a child of
+the canvas widget or a child of some ancestor of the canvas widget.
+PathName may not refer to a top-level window.
+
+
+Note: due to restrictions in the ways that windows are managed, it is not
+possible to draw other graphical items (such as lines and images) on top
+of window items. A window item always obscures any graphics that
+overlap it, regardless of their order in the display list.
+
+
+It is possible for individual applications to define new item
+types for canvas widgets using C code.
+See the documentation for Tk_CreateItemType.
+
+
+In the current implementation, new canvases are not given any
+default behavior: you'll have to execute explicit Tcl commands
+to give the canvas its behavior.
+
+
+Tk's canvas widget is a blatant ripoff of ideas from Joel Bartlett's
+ezd program. Ezd provides structured graphics in a Scheme
+environment and preceded canvases by a year or two. Its simple
+mechanisms for placing and animating graphical objects inspired the
+functions of canvases.
+
+
+canvas, widget
+
+Copyright © 1992-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1997-1999 Scriptics Corporation.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/checkbutton.htm b/hlp/en/tk/checkbutton.htm
new file mode 100644
index 0000000..561efb7
--- /dev/null
+++ b/hlp/en/tk/checkbutton.htm
@@ -0,0 +1,319 @@
+Tk Built-In Commands - checkbutton manual page
+
+- NAME
+
- checkbutton - Create and manipulate checkbutton widgets
+- SYNOPSIS
+
+- checkbutton pathName ?options?
+
+- STANDARD OPTIONS
+
+- -activebackground, activeBackground, Foreground
+
- -activeforeground, activeForeground, Background
+
- -anchor, anchor, Anchor
+
- -background or -bg, background, Background
+
- -bitmap, bitmap, Bitmap
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -disabledforeground, disabledForeground, DisabledForeground
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -image, image, Image
+
- -justify, justify, Justify
+
- -padx, padX, Pad
+
- -pady, padY, Pad
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
- -text, text, Text
+
- -textvariable, textVariable, Variable
+
- -underline, underline, Underline
+
- -wraplength, wrapLength, WrapLength
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -command, command, Command
+
- -height, height, Height
+
- -indicatoron, indicatorOn, IndicatorOn
+
- -offvalue, offValue, Value
+
- -onvalue, onValue, Value
+
- -selectcolor, selectColor, Background
+
- -selectimage, selectImage, SelectImage
+
- -state, state, State
+
- -variable, variable, Variable
+
- -width, width, Width
+
+- DESCRIPTION
+
- WIDGET COMMAND
+
+- pathName cget option
+
- pathName configure ?option? ?value option value ...?
+
- pathName deselect
+
- pathName flash
+
- pathName invoke
+
- pathName select
+
- pathName toggle
+
+- BINDINGS
+
+
+- KEYWORDS
+
+
+checkbutton - Create and manipulate checkbutton widgets
+
+checkbutton pathName ?options?
+
+
+- -activebackground, activeBackground, Foreground
+
- -activeforeground, activeForeground, Background
+
- -anchor, anchor, Anchor
+
- -background or -bg, background, Background
+
- -bitmap, bitmap, Bitmap
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -disabledforeground, disabledForeground, DisabledForeground
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -image, image, Image
+
- -justify, justify, Justify
+
- -padx, padX, Pad
+
- -pady, padY, Pad
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
- -text, text, Text
+
- -textvariable, textVariable, Variable
+
- -underline, underline, Underline
+
- -wraplength, wrapLength, WrapLength
+
+
+
+- Command-Line Name: -command
+
- Database Name: command
+
- Database Class: Command
+
- Specifies a Tcl command to associate with the button. This command
+is typically invoked when mouse button 1 is released over the button
+window. The button's global variable (-variable option) will
+be updated before the command is invoked.
+
- Command-Line Name: -height
+
- Database Name: height
+
- Database Class: Height
+
- Specifies a desired height for the button.
+If an image or bitmap is being displayed in the button then the value is in
+screen units (i.e. any of the forms acceptable to Tk_GetPixels);
+for text it is in lines of text.
+If this option isn't specified, the button's desired height is computed
+from the size of the image or bitmap or text being displayed in it.
+
- Command-Line Name: -indicatoron
+
- Database Name: indicatorOn
+
- Database Class: IndicatorOn
+
- Specifies whether or not the indicator should be drawn. Must be a
+proper boolean value. If false, the relief option is
+ignored and the widget's relief is always sunken if the widget is
+selected and raised otherwise.
+
- Command-Line Name: -offvalue
+
- Database Name: offValue
+
- Database Class: Value
+
- Specifies value to store in the button's associated variable whenever
+this button is deselected. Defaults to ``0''.
+
- Command-Line Name: -onvalue
+
- Database Name: onValue
+
- Database Class: Value
+
- Specifies value to store in the button's associated variable whenever
+this button is selected. Defaults to ``1''.
+
- Command-Line Name: -selectcolor
+
- Database Name: selectColor
+
- Database Class: Background
+
- Specifies a background color to use when the button is selected.
+If indicatorOn is true then the color applies to the indicator.
+Under Windows, this color is used as the background for the indicator
+regardless of the select state.
+If indicatorOn is false, this color is used as the background
+for the entire widget, in place of background or activeBackground,
+whenever the widget is selected.
+If specified as an empty string then no special color is used for
+displaying when the widget is selected.
+
- Command-Line Name: -selectimage
+
- Database Name: selectImage
+
- Database Class: SelectImage
+
- Specifies an image to display (in place of the image option)
+when the checkbutton is selected.
+This option is ignored unless the image option has been
+specified.
+
- Command-Line Name: -state
+
- Database Name: state
+
- Database Class: State
+
- Specifies one of three states for the checkbutton: normal, active,
+or disabled. In normal state the checkbutton is displayed using the
+foreground and background options. The active state is
+typically used when the pointer is over the checkbutton. In active state
+the checkbutton is displayed using the activeForeground and
+activeBackground options. Disabled state means that the checkbutton
+should be insensitive: the default bindings will refuse to activate
+the widget and will ignore mouse button presses.
+In this state the disabledForeground and
+background options determine how the checkbutton is displayed.
+
- Command-Line Name: -variable
+
- Database Name: variable
+
- Database Class: Variable
+
- Specifies name of global variable to set to indicate whether
+or not this button is selected. Defaults to the name of the
+button within its parent (i.e. the last element of the button
+window's path name).
+
- Command-Line Name: -width
+
- Database Name: width
+
- Database Class: Width
+
- Specifies a desired width for the button.
+If an image or bitmap is being displayed in the button then the value is in
+screen units (i.e. any of the forms acceptable to Tk_GetPixels);
+for text it is in characters.
+If this option isn't specified, the button's desired width is computed
+from the size of the image or bitmap or text being displayed in it.
+
+
+The checkbutton command creates a new window (given by the
+pathName argument) and makes it into a checkbutton widget.
+Additional
+options, described above, may be specified on the command line
+or in the option database
+to configure aspects of the checkbutton such as its colors, font,
+text, and initial relief. The checkbutton command returns its
+pathName argument. At the time this command is invoked,
+there must not exist a window named pathName, but
+pathName's parent must exist.
+
+A checkbutton is a widget
+that displays a textual string, bitmap or image
+and a square called an indicator.
+If text is displayed, it must all be in a single font, but it
+can occupy multiple lines on the screen (if it contains newlines
+or if wrapping occurs because of the wrapLength option) and
+one of the characters may optionally be underlined using the
+underline option.
+A checkbutton has
+all of the behavior of a simple button, including the
+following: it can display itself in either of three different
+ways, according to the state option;
+it can be made to appear
+raised, sunken, or flat; it can be made to flash; and it invokes
+a Tcl command whenever mouse button 1 is clicked over the
+checkbutton.
+
+In addition, checkbuttons can be selected.
+If a checkbutton is selected then the indicator is normally
+drawn with a selected appearance, and
+a Tcl variable associated with the checkbutton is set to a particular
+value (normally 1).
+Under Unix, the indicator is drawn with a sunken relief and a special
+color. Under Windows, the indicator is drawn with a check mark inside.
+If the checkbutton is not selected, then the indicator is drawn with a
+deselected appearance, and the associated variable is
+set to a different value (typically 0).
+Under Unix, the indicator is drawn with a raised relief and no special
+color. Under Windows, the indicator is drawn without a check mark inside.
+By default, the name of the variable associated with a checkbutton is the
+same as the name used to create the checkbutton.
+The variable name, and the ``on'' and ``off'' values stored in it,
+may be modified with options on the command line or in the option
+database.
+Configuration options may also be used to modify the way the
+indicator is displayed (or whether it is displayed at all).
+By default a checkbutton is configured to select and deselect
+itself on alternate button clicks.
+In addition, each checkbutton monitors its associated variable and
+automatically selects and deselects itself when the variables value
+changes to and from the button's ``on'' value.
+
+
+The checkbutton command creates a new Tcl command whose
+name is pathName. This
+command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+Option and the args
+determine the exact behavior of the command. The following
+commands are possible for checkbutton widgets:
+
+
+- pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the checkbutton
+command.
+
- pathName configure ?option? ?value option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the checkbutton
+command.
+
- pathName deselect
-
+Deselects the checkbutton and sets the associated variable to its ``off''
+value.
+
- pathName flash
-
+Flashes the checkbutton. This is accomplished by redisplaying the checkbutton
+several times, alternating between active and normal colors. At
+the end of the flash the checkbutton is left in the same normal/active
+state as when the command was invoked.
+This command is ignored if the checkbutton's state is disabled.
+
- pathName invoke
-
+Does just what would have happened if the user invoked the checkbutton
+with the mouse: toggle the selection state of the button and invoke
+the Tcl command associated with the checkbutton, if there is one.
+The return value is the return value from the Tcl command, or an
+empty string if there is no command associated with the checkbutton.
+This command is ignored if the checkbutton's state is disabled.
+
- pathName select
-
+Selects the checkbutton and sets the associated variable to its ``on''
+value.
+
- pathName toggle
-
+Toggles the selection state of the button, redisplaying it and
+modifying its associated variable to reflect the new state.
+
+
+
+Tk automatically creates class bindings for checkbuttons that give them
+the following default behavior:
+
+
+- [1]
-
+On Unix systems, a checkbutton activates whenever the mouse passes
+over it and deactivates whenever the mouse leaves the checkbutton. On
+Mac and Windows systems, when mouse button 1 is pressed over a
+checkbutton, the button activates whenever the mouse pointer is inside
+the button, and deactivates whenever the mouse pointer leaves the
+button.
+
- [2]
-
+When mouse button 1 is pressed over a checkbutton, it is invoked (its
+selection state toggles and the command associated with the button is
+invoked, if there is one).
+
- [3]
-
+When a checkbutton has the input focus, the space key causes the checkbutton
+to be invoked. Under Windows, there are additional key bindings; plus
+(+) and equal (=) select the button, and minus (-) deselects the button.
+
+
+If the checkbutton's state is disabled then none of the above
+actions occur: the checkbutton is completely non-responsive.
+
+The behavior of checkbuttons can be changed by defining new bindings for
+individual widgets or by redefining the class bindings.
+
+
+checkbutton, widget
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/chooseColor.htm b/hlp/en/tk/chooseColor.htm
new file mode 100644
index 0000000..1d0292b
--- /dev/null
+++ b/hlp/en/tk/chooseColor.htm
@@ -0,0 +1,36 @@
+Tk Built-In Commands - tk_chooseColor manual page
+
+tk_chooseColor - pops up a dialog box for the user to select a color.
+
+
+tk_chooseColor ?option value ...?
+
+The procedure tk_chooseColor pops up a dialog box for the
+user to select a color. The following option-value pairs are
+possible as command line arguments:
+
+
+- -initialcolor color
-
+Specifies the color to display in the color dialog when it pops
+up. color must be in a form acceptable to the Tk_GetColor
+function.
+
- -parent window
-
+Makes window the logical parent of the color dialog. The color
+dialog is displayed on top of its parent window.
+
- -title titleString
-
+Specifies a string to display as the title of the dialog box. If this
+option is not specified, then a default title will be displayed.
+
+
+If the user selects a color, tk_chooseColor will return the
+name of the color in a form acceptable to Tk_GetColor. If the
+user cancels the operation, both commands will return the empty
+string.
+
+button .b -fg [tk_chooseColor -initialcolor gray -title "Choose color"]
+
+color selection dialog
+
+Copyright © 1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/chooseDirectory.htm b/hlp/en/tk/chooseDirectory.htm
new file mode 100644
index 0000000..d225e6d
--- /dev/null
+++ b/hlp/en/tk/chooseDirectory.htm
@@ -0,0 +1,58 @@
+Tk Built-In Commands - tk_chooseDirectory manual page
+
+- NAME
+
- tk_chooseDirectory - pops up a dialog box for the user to select a directory.
+- SYNOPSIS
+
+- tk_chooseDirectory ?option value ...?
+
+- DESCRIPTION
+
+- -initialdir dirname
+
- -parent window
+
- -title titleString
+
- -mustexist boolean
+
+- SEE ALSO
+
- KEYWORDS
+
+
+tk_chooseDirectory - pops up a dialog box for the user to select a directory.
+
+
+tk_chooseDirectory ?option value ...?
+
+The procedure tk_chooseDirectory pops up a dialog box for the
+user to select a directory. The following option-value pairs are
+possible as command line arguments:
+
+
+- -initialdir dirname
-
+Specifies that the directories in directory should be displayed
+when the dialog pops up. If this parameter is not specified, then
+the directories in the current working directory are displayed. If the
+parameter specifies a relative path, the return value will convert the
+relative path to an absolute path. This option may not always work on
+the Macintosh. This is not a bug. Rather, the General Controls
+control panel on the Mac allows the end user to override the
+application default directory.
+
- -parent window
-
+Makes window the logical parent of the dialog. The dialog
+is displayed on top of its parent window.
+
- -title titleString
-
+Specifies a string to display as the title of the dialog box. If this
+option is not specified, then a default title will be displayed.
+
- -mustexist boolean
-
+Specifies whether the user may specify non-existant directories. If
+this parameter is true, then the user may only select directories that
+already exist. The default value is false.
+
+
+
+tk_getOpenFile, tk_getSaveFile
+
+directory selection dialog
+
+Copyright © 1998-2000 by Scriptics Corporation.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/clipboard.htm b/hlp/en/tk/clipboard.htm
new file mode 100644
index 0000000..6533da2
--- /dev/null
+++ b/hlp/en/tk/clipboard.htm
@@ -0,0 +1,68 @@
+Tk Built-In Commands - clipboard manual page
+
+clipboard - Manipulate Tk clipboard
+
+clipboard option ?arg arg ...?
+
+This command provides a Tcl interface to the Tk clipboard,
+which stores data for later retrieval using the selection mechanism.
+In order to copy data into the clipboard, clipboard clear must
+be called, followed by a sequence of one or more calls to clipboard
+append. To ensure that the clipboard is updated atomically, all
+appends should be completed before returning to the event loop.
+
+The first argument to clipboard determines the format of the
+rest of the arguments and the behavior of the command. The following
+forms are currently supported:
+
+
+
+- clipboard clear ?-displayof window?
-
+Claims ownership of the clipboard on window's display and removes
+any previous contents. Window defaults to ``.''. Returns an
+empty string.
+
- clipboard append ?-displayof window? ?-format format? ?-type type? ?- -? data
-
+Appends data to the clipboard on window's
+display in the form given by type with the representation given
+by format and claims ownership of the clipboard on window's
+display.
+
+Type specifies the form in which the selection is to be returned
+(the desired ``target'' for conversion, in ICCCM terminology), and
+should be an atom name such as STRING or FILE_NAME; see the
+Inter-Client Communication Conventions Manual for complete details.
+Type defaults to STRING.
+
+The format argument specifies the representation that should be
+used to transmit the selection to the requester (the second column of
+Table 2 of the ICCCM), and defaults to STRING. If format is
+STRING, the selection is transmitted as 8-bit ASCII characters. If
+format is ATOM, then the data is
+divided into fields separated by white space; each field is converted
+to its atom value, and the 32-bit atom value is transmitted instead of
+the atom name. For any other format, data is divided
+into fields separated by white space and each
+field is converted to a 32-bit integer; an array of integers is
+transmitted to the selection requester. Note that strings passed to
+clipboard append are concatenated before conversion, so the
+caller must take care to ensure appropriate spacing across string
+boundaries. All items appended to the clipboard with the same
+type must have the same format.
+
+The format argument is needed only for compatibility with
+clipboard requesters that don't use Tk. If the Tk toolkit is being
+used to retrieve the CLIPBOARD selection then the value is converted back to
+a string at the requesting end, so format is
+irrelevant.
+
A - - argument may be specified to mark the end of options: the
+next argument will always be used as data.
+This feature may be convenient if, for example, data starts
+with a -.
+
+
+clear, format, clipboard, append, selection, type
+
+Copyright © 1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/colors.htm b/hlp/en/tk/colors.htm
new file mode 100644
index 0000000..27515a5
--- /dev/null
+++ b/hlp/en/tk/colors.htm
@@ -0,0 +1,765 @@
+Tk Built-In Commands - colors manual page
+
+colors - symbolic color names recognized by Tk
+
+Tk recognizes many symbolic color names (eg, red) when
+specifying colors. The symbolic names recognized by Tk and their
+8-bit RGB values are:
+alice blue 240 248 248
+AliceBlue 240 248 248
+antique white 250 235 235
+AntiqueWhite 250 235 235
+AntiqueWhite1 255 239 239
+AntiqueWhite2 238 223 223
+AntiqueWhite3 205 192 192
+AntiqueWhite4 139 131 131
+aquamarine 127 255 255
+aquamarine1 127 255 255
+aquamarine2 118 238 238
+aquamarine3 102 205 205
+aquamarine4 69 139 139
+azure 240 255 255
+azure1 240 255 255
+azure2 224 238 238
+azure3 193 205 205
+azure4 131 139 139
+beige 245 245 245
+bisque 255 228 228
+bisque1 255 228 228
+bisque2 238 213 213
+bisque3 205 183 183
+bisque4 139 125 125
+black 0 0 0
+blanched almond 255 235 235
+BlanchedAlmond 255 235 235
+blue 0 0 0
+blue violet 138 43 43
+blue1 0 0 0
+blue2 0 0 0
+blue3 0 0 0
+blue4 0 0 0
+BlueViolet 138 43 43
+brown 165 42 42
+brown1 255 64 64
+brown2 238 59 59
+brown3 205 51 51
+brown4 139 35 35
+burlywood 222 184 184
+burlywood1 255 211 211
+burlywood2 238 197 197
+burlywood3 205 170 170
+burlywood4 139 115 115
+cadet blue 95 158 158
+CadetBlue 95 158 158
+CadetBlue1 152 245 245
+CadetBlue2 142 229 229
+CadetBlue3 122 197 197
+CadetBlue4 83 134 134
+chartreuse 127 255 255
+chartreuse1 127 255 255
+chartreuse2 118 238 238
+chartreuse3 102 205 205
+chartreuse4 69 139 139
+chocolate 210 105 105
+chocolate1 255 127 127
+chocolate2 238 118 118
+chocolate3 205 102 102
+chocolate4 139 69 69
+coral 255 127 127
+coral1 255 114 114
+coral2 238 106 106
+coral3 205 91 91
+coral4 139 62 62
+cornflower blue 100 149 149
+CornflowerBlue 100 149 149
+cornsilk 255 248 248
+cornsilk1 255 248 248
+cornsilk2 238 232 232
+cornsilk3 205 200 200
+cornsilk4 139 136 136
+cyan 0 255 255
+cyan1 0 255 255
+cyan2 0 238 238
+cyan3 0 205 205
+cyan4 0 139 139
+dark blue 0 0 0
+dark cyan 0 139 139
+dark goldenrod 184 134 134
+dark gray 169 169 169
+dark green 0 100 100
+dark grey 169 169 169
+dark khaki 189 183 183
+dark magenta 139 0 0
+dark olive green 85 107 107
+dark orange 255 140 140
+dark orchid 153 50 50
+dark red 139 0 0
+dark salmon 233 150 150
+dark sea green 143 188 188
+dark slate blue 72 61 61
+dark slate gray 47 79 79
+dark slate grey 47 79 79
+dark turquoise 0 206 206
+dark violet 148 0 0
+DarkBlue 0 0 0
+DarkCyan 0 139 139
+DarkGoldenrod 184 134 134
+DarkGoldenrod1 255 185 185
+DarkGoldenrod2 238 173 173
+DarkGoldenrod3 205 149 149
+DarkGoldenrod4 139 101 101
+DarkGray 169 169 169
+DarkGreen 0 100 100
+DarkGrey 169 169 169
+DarkKhaki 189 183 183
+DarkMagenta 139 0 0
+DarkOliveGreen 85 107 107
+DarkOliveGreen1 202 255 255
+DarkOliveGreen2 188 238 238
+DarkOliveGreen3 162 205 205
+DarkOliveGreen4 110 139 139
+DarkOrange 255 140 140
+DarkOrange1 255 127 127
+DarkOrange2 238 118 118
+DarkOrange3 205 102 102
+DarkOrange4 139 69 69
+DarkOrchid 153 50 50
+DarkOrchid1 191 62 62
+DarkOrchid2 178 58 58
+DarkOrchid3 154 50 50
+DarkOrchid4 104 34 34
+DarkRed 139 0 0
+DarkSalmon 233 150 150
+DarkSeaGreen 143 188 188
+DarkSeaGreen1 193 255 255
+DarkSeaGreen2 180 238 238
+DarkSeaGreen3 155 205 205
+DarkSeaGreen4 105 139 139
+DarkSlateBlue 72 61 61
+DarkSlateGray 47 79 79
+DarkSlateGray1 151 255 255
+DarkSlateGray2 141 238 238
+DarkSlateGray3 121 205 205
+DarkSlateGray4 82 139 139
+DarkSlateGrey 47 79 79
+DarkTurquoise 0 206 206
+DarkViolet 148 0 0
+deep pink 255 20 20
+deep sky blue 0 191 191
+DeepPink 255 20 20
+DeepPink1 255 20 20
+DeepPink2 238 18 18
+DeepPink3 205 16 16
+DeepPink4 139 10 10
+DeepSkyBlue 0 191 191
+DeepSkyBlue1 0 191 191
+DeepSkyBlue2 0 178 178
+DeepSkyBlue3 0 154 154
+DeepSkyBlue4 0 104 104
+dim gray 105 105 105
+dim grey 105 105 105
+DimGray 105 105 105
+DimGrey 105 105 105
+dodger blue 30 144 144
+DodgerBlue 30 144 144
+DodgerBlue1 30 144 144
+DodgerBlue2 28 134 134
+DodgerBlue3 24 116 116
+DodgerBlue4 16 78 78
+firebrick 178 34 34
+firebrick1 255 48 48
+firebrick2 238 44 44
+firebrick3 205 38 38
+firebrick4 139 26 26
+floral white 255 250 250
+FloralWhite 255 250 250
+forest green 34 139 139
+ForestGreen 34 139 139
+gainsboro 220 220 220
+ghost white 248 248 248
+GhostWhite 248 248 248
+gold 255 215 215
+gold1 255 215 215
+gold2 238 201 201
+gold3 205 173 173
+gold4 139 117 117
+goldenrod 218 165 165
+goldenrod1 255 193 193
+goldenrod2 238 180 180
+goldenrod3 205 155 155
+goldenrod4 139 105 105
+gray 190 190 190
+gray0 0 0 0
+gray1 3 3 3
+gray2 5 5 5
+gray3 8 8 8
+gray4 10 10 10
+gray5 13 13 13
+gray6 15 15 15
+gray7 18 18 18
+gray8 20 20 20
+gray9 23 23 23
+gray10 26 26 26
+gray11 28 28 28
+gray12 31 31 31
+gray13 33 33 33
+gray14 36 36 36
+gray15 38 38 38
+gray16 41 41 41
+gray17 43 43 43
+gray18 46 46 46
+gray19 48 48 48
+gray20 51 51 51
+gray21 54 54 54
+gray22 56 56 56
+gray23 59 59 59
+gray24 61 61 61
+gray25 64 64 64
+gray26 66 66 66
+gray27 69 69 69
+gray28 71 71 71
+gray29 74 74 74
+gray30 77 77 77
+gray31 79 79 79
+gray32 82 82 82
+gray33 84 84 84
+gray34 87 87 87
+gray35 89 89 89
+gray36 92 92 92
+gray37 94 94 94
+gray38 97 97 97
+gray39 99 99 99
+gray40 102 102 102
+gray41 105 105 105
+gray42 107 107 107
+gray43 110 110 110
+gray44 112 112 112
+gray45 115 115 115
+gray46 117 117 117
+gray47 120 120 120
+gray48 122 122 122
+gray49 125 125 125
+gray50 127 127 127
+gray51 130 130 130
+gray52 133 133 133
+gray53 135 135 135
+gray54 138 138 138
+gray55 140 140 140
+gray56 143 143 143
+gray57 145 145 145
+gray58 148 148 148
+gray59 150 150 150
+gray60 153 153 153
+gray61 156 156 156
+gray62 158 158 158
+gray63 161 161 161
+gray64 163 163 163
+gray65 166 166 166
+gray66 168 168 168
+gray67 171 171 171
+gray68 173 173 173
+gray69 176 176 176
+gray70 179 179 179
+gray71 181 181 181
+gray72 184 184 184
+gray73 186 186 186
+gray74 189 189 189
+gray75 191 191 191
+gray76 194 194 194
+gray77 196 196 196
+gray78 199 199 199
+gray79 201 201 201
+gray80 204 204 204
+gray81 207 207 207
+gray82 209 209 209
+gray83 212 212 212
+gray84 214 214 214
+gray85 217 217 217
+gray86 219 219 219
+gray87 222 222 222
+gray88 224 224 224
+gray89 227 227 227
+gray90 229 229 229
+gray91 232 232 232
+gray92 235 235 235
+gray93 237 237 237
+gray94 240 240 240
+gray95 242 242 242
+gray96 245 245 245
+gray97 247 247 247
+gray98 250 250 250
+gray99 252 252 252
+gray100 255 255 255
+green 0 255 255
+green yellow 173 255 255
+green1 0 255 255
+green2 0 238 238
+green3 0 205 205
+green4 0 139 139
+GreenYellow 173 255 255
+grey 190 190 190
+grey0 0 0 0
+grey1 3 3 3
+grey2 5 5 5
+grey3 8 8 8
+grey4 10 10 10
+grey5 13 13 13
+grey6 15 15 15
+grey7 18 18 18
+grey8 20 20 20
+grey9 23 23 23
+grey10 26 26 26
+grey11 28 28 28
+grey12 31 31 31
+grey13 33 33 33
+grey14 36 36 36
+grey15 38 38 38
+grey16 41 41 41
+grey17 43 43 43
+grey18 46 46 46
+grey19 48 48 48
+grey20 51 51 51
+grey21 54 54 54
+grey22 56 56 56
+grey23 59 59 59
+grey24 61 61 61
+grey25 64 64 64
+grey26 66 66 66
+grey27 69 69 69
+grey28 71 71 71
+grey29 74 74 74
+grey30 77 77 77
+grey31 79 79 79
+grey32 82 82 82
+grey33 84 84 84
+grey34 87 87 87
+grey35 89 89 89
+grey36 92 92 92
+grey37 94 94 94
+grey38 97 97 97
+grey39 99 99 99
+grey40 102 102 102
+grey41 105 105 105
+grey42 107 107 107
+grey43 110 110 110
+grey44 112 112 112
+grey45 115 115 115
+grey46 117 117 117
+grey47 120 120 120
+grey48 122 122 122
+grey49 125 125 125
+grey50 127 127 127
+grey51 130 130 130
+grey52 133 133 133
+grey53 135 135 135
+grey54 138 138 138
+grey55 140 140 140
+grey56 143 143 143
+grey57 145 145 145
+grey58 148 148 148
+grey59 150 150 150
+grey60 153 153 153
+grey61 156 156 156
+grey62 158 158 158
+grey63 161 161 161
+grey64 163 163 163
+grey65 166 166 166
+grey66 168 168 168
+grey67 171 171 171
+grey68 173 173 173
+grey69 176 176 176
+grey70 179 179 179
+grey71 181 181 181
+grey72 184 184 184
+grey73 186 186 186
+grey74 189 189 189
+grey75 191 191 191
+grey76 194 194 194
+grey77 196 196 196
+grey78 199 199 199
+grey79 201 201 201
+grey80 204 204 204
+grey81 207 207 207
+grey82 209 209 209
+grey83 212 212 212
+grey84 214 214 214
+grey85 217 217 217
+grey86 219 219 219
+grey87 222 222 222
+grey88 224 224 224
+grey89 227 227 227
+grey90 229 229 229
+grey91 232 232 232
+grey92 235 235 235
+grey93 237 237 237
+grey94 240 240 240
+grey95 242 242 242
+grey96 245 245 245
+grey97 247 247 247
+grey98 250 250 250
+grey99 252 252 252
+grey100 255 255 255
+honeydew 240 255 255
+honeydew1 240 255 255
+honeydew2 224 238 238
+honeydew3 193 205 205
+honeydew4 131 139 139
+hot pink 255 105 105
+HotPink 255 105 105
+HotPink1 255 110 110
+HotPink2 238 106 106
+HotPink3 205 96 96
+HotPink4 139 58 58
+indian red 205 92 92
+IndianRed 205 92 92
+IndianRed1 255 106 106
+IndianRed2 238 99 99
+IndianRed3 205 85 85
+IndianRed4 139 58 58
+ivory 255 255 255
+ivory1 255 255 255
+ivory2 238 238 238
+ivory3 205 205 205
+ivory4 139 139 139
+khaki 240 230 230
+khaki1 255 246 246
+khaki2 238 230 230
+khaki3 205 198 198
+khaki4 139 134 134
+lavender 230 230 230
+lavender blush 255 240 240
+LavenderBlush 255 240 240
+LavenderBlush1 255 240 240
+LavenderBlush2 238 224 224
+LavenderBlush3 205 193 193
+LavenderBlush4 139 131 131
+lawn green 124 252 252
+LawnGreen 124 252 252
+lemon chiffon 255 250 250
+LemonChiffon 255 250 250
+LemonChiffon1 255 250 250
+LemonChiffon2 238 233 233
+LemonChiffon3 205 201 201
+LemonChiffon4 139 137 137
+light blue 173 216 216
+light coral 240 128 128
+light cyan 224 255 255
+light goldenrod 238 221 221
+light goldenrod yellow 250 250 250
+light gray 211 211 211
+light green 144 238 238
+light grey 211 211 211
+light pink 255 182 182
+light salmon 255 160 160
+light sea green 32 178 178
+light sky blue 135 206 206
+light slate blue 132 112 112
+light slate gray 119 136 136
+light slate grey 119 136 136
+light steel blue 176 196 196
+light yellow 255 255 255
+LightBlue 173 216 216
+LightBlue1 191 239 239
+LightBlue2 178 223 223
+LightBlue3 154 192 192
+LightBlue4 104 131 131
+LightCoral 240 128 128
+LightCyan 224 255 255
+LightCyan1 224 255 255
+LightCyan2 209 238 238
+LightCyan3 180 205 205
+LightCyan4 122 139 139
+LightGoldenrod 238 221 221
+LightGoldenrod1 255 236 236
+LightGoldenrod2 238 220 220
+LightGoldenrod3 205 190 190
+LightGoldenrod4 139 129 129
+LightGoldenrodYellow 250 250 250
+LightGray 211 211 211
+LightGreen 144 238 238
+LightGrey 211 211 211
+LightPink 255 182 182
+LightPink1 255 174 174
+LightPink2 238 162 162
+LightPink3 205 140 140
+LightPink4 139 95 95
+LightSalmon 255 160 160
+LightSalmon1 255 160 160
+LightSalmon2 238 149 149
+LightSalmon3 205 129 129
+LightSalmon4 139 87 87
+LightSeaGreen 32 178 178
+LightSkyBlue 135 206 206
+LightSkyBlue1 176 226 226
+LightSkyBlue2 164 211 211
+LightSkyBlue3 141 182 182
+LightSkyBlue4 96 123 123
+LightSlateBlue 132 112 112
+LightSlateGray 119 136 136
+LightSlateGrey 119 136 136
+LightSteelBlue 176 196 196
+LightSteelBlue1 202 225 225
+LightSteelBlue2 188 210 210
+LightSteelBlue3 162 181 181
+LightSteelBlue4 110 123 123
+LightYellow 255 255 255
+LightYellow1 255 255 255
+LightYellow2 238 238 238
+LightYellow3 205 205 205
+LightYellow4 139 139 139
+lime green 50 205 205
+LimeGreen 50 205 205
+linen 250 240 240
+magenta 255 0 0
+magenta1 255 0 0
+magenta2 238 0 0
+magenta3 205 0 0
+magenta4 139 0 0
+maroon 176 48 48
+maroon1 255 52 52
+maroon2 238 48 48
+maroon3 205 41 41
+maroon4 139 28 28
+medium aquamarine 102 205 205
+medium blue 0 0 0
+medium orchid 186 85 85
+medium purple 147 112 112
+medium sea green 60 179 179
+medium slate blue 123 104 104
+medium spring green 0 250 250
+medium turquoise 72 209 209
+medium violet red 199 21 21
+MediumAquamarine 102 205 205
+MediumBlue 0 0 0
+MediumOrchid 186 85 85
+MediumOrchid1 224 102 102
+MediumOrchid2 209 95 95
+MediumOrchid3 180 82 82
+MediumOrchid4 122 55 55
+MediumPurple 147 112 112
+MediumPurple1 171 130 130
+MediumPurple2 159 121 121
+MediumPurple3 137 104 104
+MediumPurple4 93 71 71
+MediumSeaGreen 60 179 179
+MediumSlateBlue 123 104 104
+MediumSpringGreen 0 250 250
+MediumTurquoise 72 209 209
+MediumVioletRed 199 21 21
+midnight blue 25 25 25
+MidnightBlue 25 25 25
+mint cream 245 255 255
+MintCream 245 255 255
+misty rose 255 228 228
+MistyRose 255 228 228
+MistyRose1 255 228 228
+MistyRose2 238 213 213
+MistyRose3 205 183 183
+MistyRose4 139 125 125
+moccasin 255 228 228
+navajo white 255 222 222
+NavajoWhite 255 222 222
+NavajoWhite1 255 222 222
+NavajoWhite2 238 207 207
+NavajoWhite3 205 179 179
+NavajoWhite4 139 121 121
+navy 0 0 0
+navy blue 0 0 0
+NavyBlue 0 0 0
+old lace 253 245 245
+OldLace 253 245 245
+olive drab 107 142 142
+OliveDrab 107 142 142
+OliveDrab1 192 255 255
+OliveDrab2 179 238 238
+OliveDrab3 154 205 205
+OliveDrab4 105 139 139
+orange 255 165 165
+orange red 255 69 69
+orange1 255 165 165
+orange2 238 154 154
+orange3 205 133 133
+orange4 139 90 90
+OrangeRed 255 69 69
+OrangeRed1 255 69 69
+OrangeRed2 238 64 64
+OrangeRed3 205 55 55
+OrangeRed4 139 37 37
+orchid 218 112 112
+orchid1 255 131 131
+orchid2 238 122 122
+orchid3 205 105 105
+orchid4 139 71 71
+pale goldenrod 238 232 232
+pale green 152 251 251
+pale turquoise 175 238 238
+pale violet red 219 112 112
+PaleGoldenrod 238 232 232
+PaleGreen 152 251 251
+PaleGreen1 154 255 255
+PaleGreen2 144 238 238
+PaleGreen3 124 205 205
+PaleGreen4 84 139 139
+PaleTurquoise 175 238 238
+PaleTurquoise1 187 255 255
+PaleTurquoise2 174 238 238
+PaleTurquoise3 150 205 205
+PaleTurquoise4 102 139 139
+PaleVioletRed 219 112 112
+PaleVioletRed1 255 130 130
+PaleVioletRed2 238 121 121
+PaleVioletRed3 205 104 104
+PaleVioletRed4 139 71 71
+papaya whip 255 239 239
+PapayaWhip 255 239 239
+peach puff 255 218 218
+PeachPuff 255 218 218
+PeachPuff1 255 218 218
+PeachPuff2 238 203 203
+PeachPuff3 205 175 175
+PeachPuff4 139 119 119
+peru 205 133 133
+pink 255 192 192
+pink1 255 181 181
+pink2 238 169 169
+pink3 205 145 145
+pink4 139 99 99
+plum 221 160 160
+plum1 255 187 187
+plum2 238 174 174
+plum3 205 150 150
+plum4 139 102 102
+powder blue 176 224 224
+PowderBlue 176 224 224
+purple 160 32 32
+purple1 155 48 48
+purple2 145 44 44
+purple3 125 38 38
+purple4 85 26 26
+red 255 0 0
+red1 255 0 0
+red2 238 0 0
+red3 205 0 0
+red4 139 0 0
+rosy brown 188 143 143
+RosyBrown 188 143 143
+RosyBrown1 255 193 193
+RosyBrown2 238 180 180
+RosyBrown3 205 155 155
+RosyBrown4 139 105 105
+royal blue 65 105 105
+RoyalBlue 65 105 105
+RoyalBlue1 72 118 118
+RoyalBlue2 67 110 110
+RoyalBlue3 58 95 95
+RoyalBlue4 39 64 64
+saddle brown 139 69 69
+SaddleBrown 139 69 69
+salmon 250 128 128
+salmon1 255 140 140
+salmon2 238 130 130
+salmon3 205 112 112
+salmon4 139 76 76
+sandy brown 244 164 164
+SandyBrown 244 164 164
+sea green 46 139 139
+SeaGreen 46 139 139
+SeaGreen1 84 255 255
+SeaGreen2 78 238 238
+SeaGreen3 67 205 205
+SeaGreen4 46 139 139
+seashell 255 245 245
+seashell1 255 245 245
+seashell2 238 229 229
+seashell3 205 197 197
+seashell4 139 134 134
+sienna 160 82 82
+sienna1 255 130 130
+sienna2 238 121 121
+sienna3 205 104 104
+sienna4 139 71 71
+sky blue 135 206 206
+SkyBlue 135 206 206
+SkyBlue1 135 206 206
+SkyBlue2 126 192 192
+SkyBlue3 108 166 166
+SkyBlue4 74 112 112
+slate blue 106 90 90
+slate gray 112 128 128
+slate grey 112 128 128
+SlateBlue 106 90 90
+SlateBlue1 131 111 111
+SlateBlue2 122 103 103
+SlateBlue3 105 89 89
+SlateBlue4 71 60 60
+SlateGray 112 128 128
+SlateGray1 198 226 226
+SlateGray2 185 211 211
+SlateGray3 159 182 182
+SlateGray4 108 123 123
+SlateGrey 112 128 128
+snow 255 250 250
+snow1 255 250 250
+snow2 238 233 233
+snow3 205 201 201
+snow4 139 137 137
+spring green 0 255 255
+SpringGreen 0 255 255
+SpringGreen1 0 255 255
+SpringGreen2 0 238 238
+SpringGreen3 0 205 205
+SpringGreen4 0 139 139
+steel blue 70 130 130
+SteelBlue 70 130 130
+SteelBlue1 99 184 184
+SteelBlue2 92 172 172
+SteelBlue3 79 148 148
+SteelBlue4 54 100 100
+tan 210 180 180
+tan1 255 165 165
+tan2 238 154 154
+tan3 205 133 133
+tan4 139 90 90
+thistle 216 191 191
+thistle1 255 225 225
+thistle2 238 210 210
+thistle3 205 181 181
+thistle4 139 123 123
+tomato 255 99 99
+tomato1 255 99 99
+tomato2 238 92 92
+tomato3 205 79 79
+tomato4 139 54 54
+turquoise 64 224 224
+turquoise1 0 245 245
+turquoise2 0 229 229
+turquoise3 0 197 197
+turquoise4 0 134 134
+violet 238 130 130
+violet red 208 32 32
+VioletRed 208 32 32
+VioletRed1 255 62 62
+VioletRed2 238 58 58
+VioletRed3 205 50 50
+VioletRed4 139 34 34
+wheat 245 222 222
+wheat1 255 231 231
+wheat2 238 216 216
+wheat3 205 186 186
+wheat4 139 126 126
+white 255 255 255
+white smoke 245 245 245
+WhiteSmoke 245 245 245
+yellow 255 255 255
+yellow green 154 205 205
+yellow1 255 255 255
+yellow2 238 238 238
+yellow3 205 205 205
+yellow4 139 139 139
+YellowGreen 154 205 205
+
+color, option
+
+Copyright © 1998-2000 by Scriptics Corporation.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/cursors.htm b/hlp/en/tk/cursors.htm
new file mode 100644
index 0000000..b6e1d6e
--- /dev/null
+++ b/hlp/en/tk/cursors.htm
@@ -0,0 +1,128 @@
+Tk Built-In Commands - cursors manual page
+
+cursors - mouse cursors available in Tk
+
+The -cursor widget option allows a Tk programmer to change the
+mouse cursor for a particular widget. The cursor names recognized by
+Tk on all platforms are:
+X_cursor
+arrow
+based_arrow_down
+based_arrow_up
+boat
+bogosity
+bottom_left_corner
+bottom_right_corner
+bottom_side
+bottom_tee
+box_spiral
+center_ptr
+circle
+clock
+coffee_mug
+cross
+cross_reverse
+crosshair
+diamond_cross
+dot
+dotbox
+double_arrow
+draft_large
+draft_small
+draped_box
+exchange
+fleur
+gobbler
+gumby
+hand1
+hand2
+heart
+icon
+iron_cross
+left_ptr
+left_side
+left_tee
+leftbutton
+ll_angle
+lr_angle
+man
+middlebutton
+mouse
+pencil
+pirate
+plus
+question_arrow
+right_ptr
+right_side
+right_tee
+rightbutton
+rtl_logo
+sailboat
+sb_down_arrow
+sb_h_double_arrow
+sb_left_arrow
+sb_right_arrow
+sb_up_arrow
+sb_v_double_arrow
+shuttle
+sizing
+spider
+spraycan
+star
+target
+tcross
+top_left_arrow
+top_left_corner
+top_right_corner
+top_side
+top_tee
+trek
+ul_angle
+umbrella
+ur_angle
+watch
+xterm
+
+
+- Windows
-
+On Windows systems, the following cursors are mapped to native cursors:
+
arrow
+center_ptr
+crosshair
+fleur
+ibeam
+icon
+sb_h_double_arrow
+sb_v_double_arrow
+watch
+xterm
+And the following additional cursors are available:
+no
+starting
+size
+size_ne_sw
+size_ns
+size_nw_se
+size_we
+uparrow
+wait
+The no cursor can be specified to eliminate the cursor.
+ - Macintosh
-
+On Macintosh systems, the following cursors are mapped to native cursors:
+
arrow
+cross
+crosshair
+ibeam
+plus
+watch
+xterm
+And the following additional cursors are available:
+text
+cross-hair
+
+
+cursor, option
+
+Copyright © 1998-2000 by Scriptics Corporation.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/destroy.htm b/hlp/en/tk/destroy.htm
new file mode 100644
index 0000000..0f45bb6
--- /dev/null
+++ b/hlp/en/tk/destroy.htm
@@ -0,0 +1,22 @@
+Built-In Commands - destroy manual page
+
+destroy - Destroy one or more windows
+
+destroy ?window window ...?
+
+This command deletes the windows given by the
+window arguments, plus all of their descendants.
+If a window ``.'' is deleted then the entire application
+will be destroyed.
+The windows are destroyed in order, and if an error occurs
+in destroying a window the command aborts without destroying the
+remaining windows.
+No error is returned if window does not exist.
+
+
+application, destroy, window
+
+Copyright © 1990 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/dialog.htm b/hlp/en/tk/dialog.htm
new file mode 100644
index 0000000..90d355d
--- /dev/null
+++ b/hlp/en/tk/dialog.htm
@@ -0,0 +1,70 @@
+Tk Built-In Commands - tk_dialog manual page
+
+- NAME
+
- tk_dialog - Create modal dialog and wait for response
+- SYNOPSIS
+
+- tk_dialog window title text bitmap default string string ...
+
+- DESCRIPTION
+
+- window
+
- title
+
- text
+
- bitmap
+
- default
+
- string
+
+- KEYWORDS
+
+
+tk_dialog - Create modal dialog and wait for response
+
+tk_dialog window title text bitmap default string string ...
+
+This procedure is part of the Tk script library.
+Its arguments describe a dialog box:
+
+
+- window
-
+Name of top-level window to use for dialog. Any existing window
+by this name is destroyed.
+
- title
-
+Text to appear in the window manager's title bar for the dialog.
+
- text
-
+Message to appear in the top portion of the dialog box.
+
- bitmap
-
+If non-empty, specifies a bitmap to display in the top portion of
+the dialog, to the left of the text.
+If this is an empty string then no bitmap is displayed in the dialog.
+
- default
-
+If this is an integer greater than or equal to zero, then it gives
+the index of the button that is to be the default button for the dialog
+(0 for the leftmost button, and so on).
+If less than zero or an empty string then there won't be any default
+button.
+
- string
-
+There will be one button for each of these arguments.
+Each string specifies text to display in a button,
+in order from left to right.
+
+
+After creating a dialog box, tk_dialog waits for the user to
+select one of the buttons either by clicking on the button with the
+mouse or by typing return to invoke the default button (if any).
+Then it returns the index of the selected button: 0 for the leftmost
+button, 1 for the button next to it, and so on.
+If the dialog's window is destroyed before the user selects one
+of the buttons, then -1 is returned.
+
+While waiting for the user to respond, tk_dialog sets a local
+grab. This prevents the user from interacting with the application
+in any way except to invoke the dialog box.
+
+
+bitmap, dialog, modal
+
+Copyright © 1992 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/entry.htm b/hlp/en/tk/entry.htm
new file mode 100644
index 0000000..ec9a9b1
--- /dev/null
+++ b/hlp/en/tk/entry.htm
@@ -0,0 +1,623 @@
+Tk Built-In Commands - entry manual page
+
+- NAME
+
- entry - Create and manipulate entry widgets
+- SYNOPSIS
+
+- entry pathName ?options?
+
+- STANDARD OPTIONS
+
+- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -exportselection, exportSelection, ExportSelection
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -insertbackground, insertBackground, Foreground
+
- -insertborderwidth, insertBorderWidth, BorderWidth
+
- -insertofftime, insertOffTime, OffTime
+
- -insertontime, insertOnTime, OnTime
+
- -insertwidth, insertWidth, InsertWidth
+
- -justify, justify, Justify
+
- -relief, relief, Relief
+
- -selectbackground, selectBackground, Foreground
+
- -selectborderwidth, selectBorderWidth, BorderWidth
+
- -selectforeground, selectForeground, Background
+
- -takefocus, takeFocus, TakeFocus
+
- -textvariable, textVariable, Variable
+
- -xscrollcommand, xScrollCommand, ScrollCommand
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -invalidcommand or -invcmd, invalidCommand, InvalidCommand
+
- -show, show, Show
+
- -state, state, State
+
- -validate, validate, Validate
+
- -validatecommand or -vcmd, validateCommand, ValidateCommand
+
- -width, width, Width
+
+- DESCRIPTION
+
- VALIDATION
+
+- none
+
- focus
+
- focusin
+
- focusout
+
- key
+
- all
+
+
+- %d
+
- %i
+
- %P
+
- %s
+
- %S
+
- %v
+
- %V
+
- %W
+
+- WIDGET COMMAND
+
+- number
+
- anchor
+
- end
+
- insert
+
- sel.first
+
- sel.last
+
- @number
+
+
+- pathName bbox index
+
- pathName cget option
+
- pathName configure ?option? ?value option value ...?
+
- pathName delete first ?last?
+
- pathName get
+
- pathName icursor index
+
- pathName index index
+
- pathName insert index string
+
- pathName scan option args
+
+- pathName scan mark x
+
- pathName scan dragto x
+
+- pathName selection option arg
+
+- pathName selection adjust index
+
- pathName selection clear
+
- pathName selection from index
+
- pathName selection present
+
- pathName selection range start end
+
- pathName selection to index
+
+- .VS 8.3
+
- pathName xview args
+
+- pathName xview
+
- pathName xview index
+
- pathName xview moveto fraction
+
- pathName xview scroll number what
+
+
+- DEFAULT BINDINGS
+
+
+- KEYWORDS
+
+
+entry - Create and manipulate entry widgets
+
+entry pathName ?options?
+
+
+- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -exportselection, exportSelection, ExportSelection
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -insertbackground, insertBackground, Foreground
+
- -insertborderwidth, insertBorderWidth, BorderWidth
+
- -insertofftime, insertOffTime, OffTime
+
- -insertontime, insertOnTime, OnTime
+
- -insertwidth, insertWidth, InsertWidth
+
- -justify, justify, Justify
+
- -relief, relief, Relief
+
- -selectbackground, selectBackground, Foreground
+
- -selectborderwidth, selectBorderWidth, BorderWidth
+
- -selectforeground, selectForeground, Background
+
- -takefocus, takeFocus, TakeFocus
+
- -textvariable, textVariable, Variable
+
- -xscrollcommand, xScrollCommand, ScrollCommand
+
+
+
+- Command-Line Name: -invalidcommand or -invcmd
+
- Database Name: invalidCommand
+
- Database Class: InvalidCommand
+
- Specifies a script to eval when validateCommand returns 0.
+Setting it to {} disables this feature (the default). The best use
+of this option is to set it to bell. See Validation
+below for more information.
+
- Command-Line Name: -show
+
- Database Name: show
+
- Database Class: Show
+
- If this option is specified, then the true contents of the entry
+are not displayed in the window.
+Instead, each character in the entry's value will be displayed as
+the first character in the value of this option, such as ``*''.
+This is useful, for example, if the entry is to be used to enter
+a password.
+If characters in the entry are selected and copied elsewhere, the
+information copied will be what is displayed, not the true contents
+of the entry.
+
- Command-Line Name: -state
+
- Database Name: state
+
- Database Class: State
+
- Specifies one of two states for the entry: normal or disabled.
+If the entry is disabled then the value may not be changed using widget
+commands and no insertion cursor will be displayed, even if the input focus is
+in the widget.
+
- Command-Line Name: -validate
+
- Database Name: validate
+
- Database Class: Validate
+
- Specifies the mode in which validation should operate: none,
+focus, focusin, focusout, key, or all.
+It defaults to none. When you want validation, you must explicitly
+state which mode you wish to use. See Validation below for more.
+
- Command-Line Name: -validatecommand or -vcmd
+
- Database Name: validateCommand
+
- Database Class: ValidateCommand
+
- Specifies a script to eval when you want to validate the input into
+the entry widget. Setting it to {} disables this feature (the default).
+This command must return a valid tcl boolean value. If it returns 0 (or
+the valid tcl boolean equivalent) then it means you reject the new edition
+and it will not occur and the invalidCommand will be evaluated if it
+is set. If it returns 1, then the new edition occurs.
+See Validation below for more information.
+
- Command-Line Name: -width
+
- Database Name: width
+
- Database Class: Width
+
- Specifies an integer value indicating the desired width of the entry window,
+in average-size characters of the widget's font.
+If the value is less than or equal to zero, the widget picks a
+size just large enough to hold its current text.
+
+
+The entry command creates a new window (given by the
+pathName argument) and makes it into an entry widget.
+Additional options, described above, may be specified on the
+command line or in the option database
+to configure aspects of the entry such as its colors, font,
+and relief. The entry command returns its
+pathName argument. At the time this command is invoked,
+there must not exist a window named pathName, but
+pathName's parent must exist.
+
+An entry is a widget that displays a one-line text string and
+allows that string to be edited using widget commands described below, which
+are typically bound to keystrokes and mouse actions.
+When first created, an entry's string is empty.
+A portion of the entry may be selected as described below.
+If an entry is exporting its selection (see the exportSelection
+option), then it will observe the standard X11 protocols for handling the
+selection; entry selections are available as type STRING.
+Entries also observe the standard Tk rules for dealing with the
+input focus. When an entry has the input focus it displays an
+insertion cursor to indicate where new characters will be
+inserted.
+
+Entries are capable of displaying strings that are too long to
+fit entirely within the widget's window. In this case, only a
+portion of the string will be displayed; commands described below
+may be used to change the view in the window. Entries use
+the standard xScrollCommand mechanism for interacting with
+scrollbars (see the description of the xScrollCommand option
+for details). They also support scanning, as described below.
+
+
+Validation works by setting the validateCommand
+option to a script which will be evaluated according to the validate
+option as follows:
+
+
+
+- none
-
+Default. This means no validation will occur.
+
- focus
-
+validateCommand will be called when the entry receives or
+loses focus.
+
- focusin
-
+validateCommand will be called when the entry receives focus.
+
- focusout
-
+validateCommand will be called when the entry loses focus.
+
- key
-
+validateCommand will be called when the entry is edited.
+
- all
-
+validateCommand will be called for all above conditions.
+
+
+It is posible to perform percent substitutions on the validateCommand
+and invalidCommand,
+just as you would in a bind script. The following substitutions
+are recognized:
+
+
+
+- %d
-
+Type of action: 1 for insert, 0 for delete,
+or -1 for focus, forced or textvariable validation.
+
- %i
-
+Index of char string to be inserted/deleted, if any, otherwise -1.
+
- %P
-
+The value of the entry should edition occur. If you are configuring the
+entry widget to have a new textvariable, this will be the value of that
+textvariable.
+
- %s
-
+The current value of entry before edition.
+
- %S
-
+The text string being inserted/deleted, if any, {} otherwise.
+
- %v
-
+The type of validation currently set.
+
- %V
-
+The type of validation that triggered the callback
+(key, focusin, focusout, forced).
+
- %W
-
+The name of the entry widget.
+
+
+In general, the textVariable and validateCommand can be
+dangerous to mix. Any problems have been overcome so that using the
+validateCommand will not interfere with the traditional behavior of
+the entry widget. Using the textVariable for read-only purposes will
+never cause problems. The danger comes when you try set the
+textVariable to something that the validateCommand would not
+accept, which causes validate to become none (the
+invalidCommand will not be triggered). The same happens
+when an error occurs evaluating the validateCommand.
+
+Primarily, an error will occur when the validateCommand or
+invalidCommand encounters an error in its script while evaluating or
+validateCommand does not return a valid tcl boolean value. The
+validate option will also set itself to none when you edit the
+entry widget from within either the validateCommand or the
+invalidCommand. Such editions will override the one that was being
+validated. If you wish to edit the entry widget (for example set it to {})
+during validation and still have the validate option set, you should
+include the command
+
after idle {%W config -validate %v}
+in the validateCommand or invalidCommand (whichever one you
+were editing the entry widget from). It is also recommended to not set an
+associated textVariable during validation, as that can cause the
+entry widget to become out of sync with the textVariable.
+
+
+The entry command creates a new Tcl command whose
+name is pathName. This command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+Option and the args
+determine the exact behavior of the command.
+
+Many of the widget commands for entries take one or more indices as
+arguments. An index specifies a particular character in the entry's
+string, in any of the following ways:
+
+
+- number
-
+Specifies the character as a numerical index, where 0 corresponds
+to the first character in the string.
+
- anchor
-
+Indicates the anchor point for the selection, which is set with the
+select from and select adjust widget commands.
+
- end
-
+Indicates the character just after the last one in the entry's string.
+This is equivalent to specifying a numerical index equal to the length
+of the entry's string.
+
- insert
-
+Indicates the character adjacent to and immediately following the
+insertion cursor.
+
- sel.first
-
+Indicates the first character in the selection. It is an error to
+use this form if the selection isn't in the entry window.
+
- sel.last
-
+Indicates the character just after the last one in the selection.
+It is an error to use this form if the selection isn't in the
+entry window.
+
- @number
-
+In this form, number is treated as an x-coordinate in the
+entry's window; the character spanning that x-coordinate is used.
+For example, ``@0'' indicates the left-most character in the
+window.
+
+
+Abbreviations may be used for any of the forms above, e.g. ``e''
+or ``sel.f''. In general, out-of-range indices are automatically
+rounded to the nearest legal value.
+
+The following commands are possible for entry widgets:
+
+
+- pathName bbox index
-
+Returns a list of four numbers describing the bounding box of the
+character given by index.
+The first two elements of the list give the x and y coordinates of
+the upper-left corner of the screen area covered by the character
+(in pixels relative to the widget) and the last two elements give
+the width and height of the character, in pixels.
+The bounding box may refer to a region outside the visible area
+of the window.
+
- pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the entry
+command.
+
- pathName configure ?option? ?value option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the entry
+command.
+
- pathName delete first ?last?
-
+Delete one or more elements of the entry.
+First is the index of the first character to delete, and
+last is the index of the character just after the last
+one to delete.
+If last isn't specified it defaults to first+1,
+i.e. a single character is deleted.
+This command returns an empty string.
+
- pathName get
-
+Returns the entry's string.
+
- pathName icursor index
-
+Arrange for the insertion cursor to be displayed just before the character
+given by index. Returns an empty string.
+
- pathName index index
-
+Returns the numerical index corresponding to index.
+
- pathName insert index string
-
+Insert the characters of string just before the character
+indicated by index. Returns an empty string.
+
- pathName scan option args
-
+This command is used to implement scanning on entries. It has
+two forms, depending on option:
+
+
+- pathName scan mark x
-
+Records x and the current view in the entry window; used in
+conjunction with later scan dragto commands. Typically this
+command is associated with a mouse button press in the widget. It
+returns an empty string.
+
- pathName scan dragto x
-
+This command computes the difference between its x argument
+and the x argument to the last scan mark command for
+the widget. It then adjusts the view left or right by 10 times the
+difference in x-coordinates. This command is typically associated
+with mouse motion events in the widget, to produce the effect of
+dragging the entry at high speed through the window. The return
+value is an empty string.
+
+ - pathName selection option arg
-
+This command is used to adjust the selection within an entry. It
+has several forms, depending on option:
+
+
+- pathName selection adjust index
-
+Locate the end of the selection nearest to the character given by
+index, and adjust that end of the selection to be at index
+(i.e including but not going beyond index). The other
+end of the selection is made the anchor point for future
+select to commands. If the selection
+isn't currently in the entry, then a new selection is created to
+include the characters between index and the most recent
+selection anchor point, inclusive.
+Returns an empty string.
+
- pathName selection clear
-
+Clear the selection if it is currently in this widget. If the
+selection isn't in this widget then the command has no effect.
+Returns an empty string.
+
- pathName selection from index
-
+Set the selection anchor point to just before the character
+given by index. Doesn't change the selection.
+Returns an empty string.
+
- pathName selection present
-
+Returns 1 if there is are characters selected in the entry,
+0 if nothing is selected.
+
- pathName selection range start end
-
+Sets the selection to include the characters starting with
+the one indexed by start and ending with the one just
+before end.
+If end refers to the same character as start or an
+earlier one, then the entry's selection is cleared.
+
- pathName selection to index
-
+If index is before the anchor point, set the selection
+to the characters from index up to but not including
+the anchor point.
+If index is the same as the anchor point, do nothing.
+If index is after the anchor point, set the selection
+to the characters from the anchor point up to but not including
+index.
+The anchor point is determined by the most recent select from
+or select adjust command in this widget.
+If the selection isn't in this widget then a new selection is
+created using the most recent anchor point specified for the widget.
+Returns an empty string.
+
+ - .VS 8.3
-
+pathName validate
+This command is used to force an evaluation of the validateCommand
+independent of the conditions specified by the validate option.
+This is done by temporarily setting the validate option to all.
+It returns 0 or 1.
+
- pathName xview args
-
+This command is used to query and change the horizontal position of the
+text in the widget's window. It can take any of the following
+forms:
+
+
+- pathName xview
-
+Returns a list containing two elements.
+Each element is a real fraction between 0 and 1; together they describe
+the horizontal span that is visible in the window.
+For example, if the first element is .2 and the second element is .6,
+20% of the entry's text is off-screen to the left, the middle 40% is visible
+in the window, and 40% of the text is off-screen to the right.
+These are the same values passed to scrollbars via the -xscrollcommand
+option.
+
- pathName xview index
-
+Adjusts the view in the window so that the character given by index
+is displayed at the left edge of the window.
+
- pathName xview moveto fraction
-
+Adjusts the view in the window so that the character fraction of the
+way through the text appears at the left edge of the window.
+Fraction must be a fraction between 0 and 1.
+
- pathName xview scroll number what
-
+This command shifts the view in the window left or right according to
+number and what.
+Number must be an integer.
+What must be either units or pages or an abbreviation
+of one of these.
+If what is units, the view adjusts left or right by
+number average-width characters on the display; if it is
+pages then the view adjusts by number screenfuls.
+If number is negative then characters farther to the left
+become visible; if it is positive then characters farther to the right
+become visible.
+
+
+
+Tk automatically creates class bindings for entries that give them
+the following default behavior.
+In the descriptions below, ``word'' refers to a contiguous group
+of letters, digits, or ``_'' characters, or any single character
+other than these.
+
+
+- [1]
-
+Clicking mouse button 1 positions the insertion cursor
+just before the character underneath the mouse cursor, sets the
+input focus to this widget, and clears any selection in the widget.
+Dragging with mouse button 1 strokes out a selection between
+the insertion cursor and the character under the mouse.
+
- [2]
-
+Double-clicking with mouse button 1 selects the word under the mouse
+and positions the insertion cursor at the beginning of the word.
+Dragging after a double click will stroke out a selection consisting
+of whole words.
+
- [3]
-
+Triple-clicking with mouse button 1 selects all of the text in the
+entry and positions the insertion cursor before the first character.
+
- [4]
-
+The ends of the selection can be adjusted by dragging with mouse
+button 1 while the Shift key is down; this will adjust the end
+of the selection that was nearest to the mouse cursor when button
+1 was pressed.
+If the button is double-clicked before dragging then the selection
+will be adjusted in units of whole words.
+
- [5]
-
+Clicking mouse button 1 with the Control key down will position the
+insertion cursor in the entry without affecting the selection.
+
- [6]
-
+If any normal printing characters are typed in an entry, they are
+inserted at the point of the insertion cursor.
+
- [7]
-
+The view in the entry can be adjusted by dragging with mouse button 2.
+If mouse button 2 is clicked without moving the mouse, the selection
+is copied into the entry at the position of the mouse cursor.
+
- [8]
-
+If the mouse is dragged out of the entry on the left or right sides
+while button 1 is pressed, the entry will automatically scroll to
+make more text visible (if there is more text off-screen on the side
+where the mouse left the window).
+
- [9]
-
+The Left and Right keys move the insertion cursor one character to the
+left or right; they also clear any selection in the entry and set
+the selection anchor.
+If Left or Right is typed with the Shift key down, then the insertion
+cursor moves and the selection is extended to include the new character.
+Control-Left and Control-Right move the insertion cursor by words, and
+Control-Shift-Left and Control-Shift-Right move the insertion cursor
+by words and also extend the selection.
+Control-b and Control-f behave the same as Left and Right, respectively.
+Meta-b and Meta-f behave the same as Control-Left and Control-Right,
+respectively.
+
- [10]
-
+The Home key, or Control-a, will move the insertion cursor to the
+beginning of the entry and clear any selection in the entry.
+Shift-Home moves the insertion cursor to the beginning of the entry
+and also extends the selection to that point.
+
- [11]
-
+The End key, or Control-e, will move the insertion cursor to the
+end of the entry and clear any selection in the entry.
+Shift-End moves the cursor to the end and extends the selection
+to that point.
+
- [12]
-
+The Select key and Control-Space set the selection anchor to the position
+of the insertion cursor. They don't affect the current selection.
+Shift-Select and Control-Shift-Space adjust the selection to the
+current position of the insertion cursor, selecting from the anchor
+to the insertion cursor if there was not any selection previously.
+
- [13]
-
+Control-/ selects all the text in the entry.
+
- [14]
-
+Control-\ clears any selection in the entry.
+
- [15]
-
+The F16 key (labelled Copy on many Sun workstations) or Meta-w
+copies the selection in the widget to the clipboard, if there is a selection.
+
- [16]
-
+The F20 key (labelled Cut on many Sun workstations) or Control-w
+copies the selection in the widget to the clipboard and deletes
+the selection.
+If there is no selection in the widget then these keys have no effect.
+
- [17]
-
+The F18 key (labelled Paste on many Sun workstations) or Control-y
+inserts the contents of the clipboard at the position of the
+insertion cursor.
+
- [18]
-
+The Delete key deletes the selection, if there is one in the entry.
+If there is no selection, it deletes the character to the right of
+the insertion cursor.
+
- [19]
-
+The BackSpace key and Control-h delete the selection, if there is one
+in the entry.
+If there is no selection, it deletes the character to the left of
+the insertion cursor.
+
- [20]
-
+Control-d deletes the character to the right of the insertion cursor.
+
- [21]
-
+Meta-d deletes the word to the right of the insertion cursor.
+
- [22]
-
+Control-k deletes all the characters to the right of the insertion
+cursor.
+
- [23]
-
+Control-t reverses the order of the two characters to the right of
+the insertion cursor.
+
+
+If the entry is disabled using the -state option, then the entry's
+view can still be adjusted and text in the entry can still be selected,
+but no insertion cursor will be displayed and no text modifications will
+take place.
+
+The behavior of entries can be changed by defining new bindings for
+individual widgets or by redefining the class bindings.
+
+
+entry, widget
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1998-2000 Scriptics Corporation.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/event.htm b/hlp/en/tk/event.htm
new file mode 100644
index 0000000..05766fe
--- /dev/null
+++ b/hlp/en/tk/event.htm
@@ -0,0 +1,368 @@
+Tk Built-In Commands - event manual page
+
+- NAME
+
- event - Miscellaneous event facilities: define virtual events and generate events
+- SYNOPSIS
+
+- event option ?arg arg ...?
+
+- DESCRIPTION
+
+- event add <<virtual>> sequence ?sequence ...?
+
- event delete <<virtual>> ?sequence sequence ...?
+
- event generate window event ?option value option value ...?
+
- event info ?<<virtual>>?
+
+- EVENT FIELDS
+
+- -above window
+
- -borderwidth size
+
- -button number
+
- -count number
+
- -delta number
+
- -detail detail
+
- -focus boolean
+
- -height size
+
- -keycode number
+
- -keysym name
+
- -mode notify
+
- -override boolean
+
- -place where
+
- -root window
+
- -rootx coord
+
- -rooty coord
+
- -sendevent boolean
+
- -serial number
+
- -state state
+
- -subwindow window
+
- -time integer
+
- -warp boolean
+
- -width size
+
- -when when
+
+- now
+
- tail
+
- head
+
- mark
+
+- -x coord
+
- -y coord
+
+- VIRTUAL EVENT EXAMPLES
+
- SEE ALSO
+
- KEYWORDS
+
+
+event - Miscellaneous event facilities: define virtual events and generate events
+
+event option ?arg arg ...?
+
+The event command provides several facilities for dealing with
+window system events, such as defining virtual events and synthesizing
+events. The command has several different forms, determined by the
+first argument. The following forms are currently supported:
+
+
+- event add <<virtual>> sequence ?sequence ...?
-
+Associates the virtual event virtual with the physical
+event sequence(s) given by the sequence arguments, so that
+the virtual event will trigger whenever any one of the sequences
+occurs.
+Virtual may be any string value and sequence may have
+any of the values allowed for the sequence argument to the
+bind command.
+If virtual is already defined, the new physical event sequences
+add to the existing sequences for the event.
+
- event delete <<virtual>> ?sequence sequence ...?
-
+Deletes each of the sequences from those associated with
+the virtual event given by virtual.
+Virtual may be any string value and sequence may have
+any of the values allowed for the sequence argument to the
+bind command.
+Any sequences not currently associated with virtual
+are ignored.
+If no sequence argument is provided, all physical event sequences
+are removed for virtual, so that the virtual event will not
+trigger anymore.
+
- event generate window event ?option value option value ...?
-
+Generates a window event and arranges for it to be processed just as if
+it had come from the window system.
+Window gives the path name of the window for which the event
+will be generated; it may also be an identifier (such as returned by
+winfo id) as long as it is for a window in the current application.
+Event provides a basic description of
+the event, such as <Shift-Button-2> or <<Paste>>.
+If Window is empty the whole screen is meant, and coordinates
+are relative to the screen.
+Event may have any of the forms allowed for the sequence
+argument of the bind command except that it must consist
+of a single event pattern, not a sequence.
+Option-value pairs may be used to specify additional
+attributes of the event, such as the x and y mouse position; see
+EVENT FIELDS below. If the -when option is not specified, the
+event is processed immediately: all of the handlers for the event
+will complete before the event generate command returns.
+If the -when option is specified then it determines when the
+event is processed. Certain events, such as key events, require
+that the window has focus to receive the event properly.
+
- event info ?<<virtual>>?
-
+Returns information about virtual events.
+If the <<virtual>> argument is omitted, the return value
+is a list of all the virtual events that are currently defined.
+If <<virtual>> is specified then the return value is
+a list whose elements are the physical event sequences currently
+defined for the given virtual event; if the virtual event is
+not defined then an empty string is returned.
+
+
+
+The following options are supported for the event generate
+command. These correspond to the ``%'' expansions
+allowed in binding scripts for the bind command.
+
+
+- -above window
-
+Window specifies the above field for the event,
+either as a window path name or as an integer window id.
+Valid for Configure events.
+Corresponds to the %a substitution for binding scripts.
+
- -borderwidth size
-
+Size must be a screen distance; it specifies the
+border_width field for the event.
+Valid for Configure events.
+Corresponds to the %B substitution for binding scripts.
+
- -button number
-
+Number must be an integer; it specifies the detail field
+for a ButtonPress or ButtonRelease event, overriding
+any button number provided in the base event argument.
+Corresponds to the %b substitution for binding scripts.
+
- -count number
-
+Number must be an integer; it specifies the count field
+for the event. Valid for Expose events.
+Corresponds to the %c substitution for binding scripts.
+
- -delta number
-
+Number must be an integer; it specifies the delta field
+for the MouseWheel event. The delta refers to the
+direction and magnitude the mouse wheel was rotated. Note the value
+is not a screen distance but are units of motion in the mouse wheel.
+Typically these values are multiples of 120. For example, 120 should
+scroll the text widget up 4 lines and -240 would scroll the text
+widget down 8 lines. Of course, other widgets may define different
+behaviors for mouse wheel motion. This field corresponds to the
+%D substitution for binding scripts.
+
- -detail detail
-
+Detail specifies the detail field for the event
+and must be one of the following:
+
NotifyAncestor NotifyNonlinearVirtual
+NotifyDetailNone NotifyPointer
+NotifyInferior NotifyPointerRoot
+NotifyNonlinear NotifyVirtual
+Valid for Enter, Leave, FocusIn and
+FocusOut events.
+Corresponds to the %d substitution for binding scripts.
+ - -focus boolean
-
+Boolean must be a boolean value; it specifies the focus
+field for the event.
+Valid for Enter and Leave events.
+Corresponds to the %f substitution for binding scripts.
+
- -height size
-
+Size must be a screen distance; it specifies the height
+field for the event. Valid for Configure events.
+Corresponds to the %h substitution for binding scripts.
+
- -keycode number
-
+Number must be an integer; it specifies the keycode
+field for the event.
+Valid for KeyPress and KeyRelease events.
+Corresponds to the %k substitution for binding scripts.
+
- -keysym name
-
+Name must be the name of a valid keysym, such as g,
+space, or Return; its corresponding
+keycode value is used as the keycode field for event, overriding
+any detail specified in the base event argument.
+Valid for KeyPress and KeyRelease events.
+Corresponds to the %K substitution for binding scripts.
+
- -mode notify
-
+Notify specifies the mode field for the event and must be
+one of NotifyNormal, NotifyGrab, NotifyUngrab, or
+NotifyWhileGrabbed.
+Valid for Enter, Leave, FocusIn, and
+FocusOut events.
+Corresponds to the %m substitution for binding scripts.
+
- -override boolean
-
+Boolean must be a boolean value; it specifies the
+override_redirect field for the event.
+Valid for Map, Reparent, and Configure events.
+Corresponds to the %o substitution for binding scripts.
+
- -place where
-
+Where specifies the place field for the event; it must be
+either PlaceOnTop or PlaceOnBottom.
+Valid for Circulate events.
+Corresponds to the %p substitution for binding scripts.
+
- -root window
-
+Window must be either a window path name or an integer window
+identifier; it specifies the root field for the event.
+Valid for KeyPress, KeyRelease, ButtonPress,
+ButtonRelease, Enter, Leave, and Motion
+events.
+Corresponds to the %R substitution for binding scripts.
+
- -rootx coord
-
+Coord must be a screen distance; it specifies the x_root
+field for the event.
+Valid for KeyPress, KeyRelease, ButtonPress,
+ButtonRelease, Enter, Leave, and Motion
+events. Corresponds to the %X substitution for binding scripts.
+
- -rooty coord
-
+Coord must be a screen distance; it specifies th y_root
+field for the event.
+Valid for KeyPress, KeyRelease, ButtonPress,
+ButtonRelease, Enter, Leave, and Motion
+events.
+Corresponds to the %Y substitution for binding scripts.
+
- -sendevent boolean
-
+Boolean must be a boolean value; it specifies the send_event
+field for the event. Valid for all events. Corresponds to the
+%E substitution for binding scripts.
+
- -serial number
-
+Number must be an integer; it specifies the serial field
+for the event. Valid for all events.
+Corresponds to the %# substitution for binding scripts.
+
- -state state
-
+State specifies the state field for the event.
+For KeyPress, KeyRelease, ButtonPress,
+ButtonRelease, Enter, Leave, and Motion events
+it must be an integer value.
+For Visibility events it must be one of VisibilityUnobscured,
+VisibilityPartiallyObscured, or VisibilityFullyObscured.
+This option overrides any modifiers such as Meta or Control
+specified in the base event.
+Corresponds to the %s substitution for binding scripts.
+
- -subwindow window
-
+Window specifies the subwindow field for the event, either
+as a path name for a Tk widget or as an integer window identifier.
+Valid for KeyPress, KeyRelease, ButtonPress,
+ButtonRelease, Enter, Leave, and Motion events.
+Similar to %S substitution for binding scripts.
+
- -time integer
-
+Integer must be an integer value; it specifies the time field
+for the event.
+Valid for KeyPress, KeyRelease, ButtonPress,
+ButtonRelease, Enter, Leave, Motion,
+and Property events.
+Corresponds to the %t substitution for binding scripts.
+
- -warp boolean
-
+boolean must be a boolean value; it specifies whether
+the screen pointer should be warped as well.
+Valid for KeyPress, KeyRelease, ButtonPress,
+ButtonRelease, and Motion events. The pointer will
+only warp to a window if it is mapped.
+
- -width size
-
+Size must be a screen distance; it specifies the width field
+for the event.
+Valid for Configure events.
+Corresponds to the %w substitution for binding scripts.
+
- -when when
-
+When determines when the event will be processed; it must have one
+of the following values:
+
+
+- now
-
+Process the event immediately, before the command returns.
+This also happens if the -when option is omitted.
+
- tail
-
+Place the event on Tcl's event queue behind any events already
+queued for this application.
+
- head
-
+Place the event at the front of Tcl's event queue, so that it
+will be handled before any other events already queued.
+
- mark
-
+Place the event at the front of Tcl's event queue but behind any
+other events already queued with -when mark.
+This option is useful when generating a series of events that should
+be processed in order but at the front of the queue.
+
+ - -x coord
-
+Coord must be a screen distance; it specifies the x field
+for the event.
+Valid for KeyPress, KeyRelease, ButtonPress,
+ButtonRelease, Motion, Enter, Leave,
+Expose, Configure, Gravity, and Reparent
+events.
+Corresponds to the the %x substitution for binding scripts.
+If Window is empty the coordinate is relative to the
+screen, and this option corresponds to the %X substitution
+for binding scripts.
+
- -y coord
-
+Coord must be a screen distance; it specifies the y
+field for the event.
+Valid for KeyPress, KeyRelease, ButtonPress,
+ButtonRelease, Motion, Enter, Leave,
+Expose, Configure, Gravity, and Reparent
+events.
+Corresponds to the the %y substitution for binding scripts.
+If Window is empty the coordinate is relative to the
+screen, and this option corresponds to the %Y substitution
+for binding scripts.
+
+
+Any options that are not specified when generating an event are filled
+with the value 0, except for serial, which is filled with the
+next X event serial number.
+
+
+In order for a virtual event binding to trigger, two things must
+happen. First, the virtual event must be defined with the
+event add command. Second, a binding must be created for
+the virtual event with the bind command.
+Consider the following virtual event definitions:
+event add <<Paste>> <Control-y>
+event add <<Paste>> <Button-2>
+event add <<Save>> <Control-X><Control-S>
+event add <<Save>> <Shift-F12>
+In the bind command, a virtual event can be bound like any other
+builtin event type as follows:
+bind Entry <<Paste>> {%W insert [selection get]}
+The double angle brackets are used to specify that a virtual event is being
+bound. If the user types Control-y or presses button 2, or if
+a <<Paste>> virtual event is synthesized with event generate,
+then the <<Paste>> binding will be invoked.
+
+If a virtual binding has the exact same sequence as a separate
+physical binding, then the physical binding will take precedence.
+Consider the following example:
+
event add <<Paste>> <Control-y> <Meta-Control-y>
+bind Entry <Control-y> {puts Control-y}
+bind Entry <<Paste>> {puts Paste}
+When the user types Control-y the <Control-y> binding
+will be invoked, because a physical event is considered
+more specific than a virtual event, all other things being equal.
+However, when the user types Meta-Control-y the
+<<Paste>> binding will be invoked, because the
+Meta modifier in the physical pattern associated with the
+virtual binding is more specific than the <Control-y> sequence for
+the physical event.
+
+Bindings on a virtual event may be created before the virtual event exists.
+Indeed, the virtual event never actually needs to be defined, for instance,
+on platforms where the specific virtual event would meaningless or
+ungeneratable.
+
+When a definition of a virtual event changes at run time, all windows
+will respond immediately to the new definition.
+Starting from the preceding example, if the following code is executed:
+
bind <Entry> <Control-y> {}
+event add <<Paste>> <Key-F6>
+the behavior will change such in two ways. First, the shadowed
+<<Paste>> binding will emerge.
+Typing Control-y will no longer invoke the <Control-y> binding,
+but instead invoke the virtual event <<Paste>>. Second,
+pressing the F6 key will now also invoke the <<Paste>> binding.
+
+
+bind
+
+event, binding, define, handle, virtual event
+
+Copyright © 1996 Sun Microsystems, Inc.
+Copyright © 1998-2000 Ajuba Solutions.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/focus.htm b/hlp/en/tk/focus.htm
new file mode 100644
index 0000000..55aed2b
--- /dev/null
+++ b/hlp/en/tk/focus.htm
@@ -0,0 +1,118 @@
+Tk Built-In Commands - focus manual page
+
+- NAME
+
- focus - Manage the input focus
+- SYNOPSIS
+
+- focus
+
- focus window
+
- focus option ?arg arg ...?
+
+- DESCRIPTION
+
+- focus
+
- focus window
+
- focus -displayof window
+
- focus -force window
+
- focus -lastfor window
+
+- QUIRKS
+
- KEYWORDS
+
+
+focus - Manage the input focus
+
+focus
+focus window
+focus option ?arg arg ...?
+
+The focus command is used to manage the Tk input focus.
+At any given time, one window on each display is designated as
+the focus window; any key press or key release events for the
+display are sent to that window.
+It is normally up to the window manager to redirect the focus among the
+top-level windows of a display. For example, some window managers
+automatically set the input focus to a top-level window whenever
+the mouse enters it; others redirect the input focus only when
+the user clicks on a window.
+Usually the window manager will set the focus
+only to top-level windows, leaving it up to the application to
+redirect the focus among the children of the top-level.
+
+Tk remembers one focus window for each top-level (the most recent
+descendant of that top-level to receive the focus); when the window
+manager gives the focus
+to a top-level, Tk automatically redirects it to the remembered
+window. Within a top-level Tk uses an explicit focus model
+by default. Moving the mouse within a top-level does not normally
+change the focus; the focus changes only when a widget
+decides explicitly to claim the focus (e.g., because of a button
+click), or when the user types a key such as Tab that moves the
+focus.
+
+The Tcl procedure tk_focusFollowsMouse may be invoked to
+create an implicit focus model: it reconfigures Tk so that
+the focus is set to a window whenever the mouse enters it.
+The Tcl procedures tk_focusNext and tk_focusPrev
+implement a focus order among the windows of a top-level; they
+are used in the default bindings for Tab and Shift-Tab, among other
+things.
+
+The focus command can take any of the following forms:
+
+
+- focus
-
+Returns the path name of the focus window on the display containing
+the application's main window, or an empty string if no window in
+this application has the focus on that display. Note: it is
+better to specify the display explicitly using -displayof
+(see below) so that the code will work in applications using multiple
+displays.
+
- focus window
-
+If the application currently has the input focus on window's
+display, this command resets the input focus for window's display
+to window and returns an empty string.
+If the application doesn't currently have the input focus on
+window's display, window will be remembered as the focus
+for its top-level; the next time the focus arrives at the top-level,
+Tk will redirect it to window.
+If window is an empty string then the command does nothing.
+
- focus -displayof window
-
+Returns the name of the focus window on the display containing window.
+If the focus window for window's display isn't in this
+application, the return value is an empty string.
+
- focus -force window
-
+Sets the focus of window's display to window, even if
+the application doesn't currently have the input focus for the display.
+This command should be used sparingly, if at all.
+In normal usage, an application should not claim the focus for
+itself; instead, it should wait for the window manager to give it
+the focus.
+If window is an empty string then the command does nothing.
+
- focus -lastfor window
-
+Returns the name of the most recent window to have the input focus
+among all the windows in the same top-level as window.
+If no window in that top-level has ever had the input focus, or
+if the most recent focus window has been deleted, then the name
+of the top-level is returned. The return value is the window that
+will receive the input focus the next time the window manager gives
+the focus to the top-level.
+
+
+
+When an internal window receives the input focus, Tk doesn't actually
+set the X focus to that window; as far as X is concerned, the focus
+will stay on the top-level window containing the window with the focus.
+However, Tk generates FocusIn and FocusOut events just as if the X
+focus were on the internal window. This approach gets around a
+number of problems that would occur if the X focus were actually moved;
+the fact that the X focus is on the top-level is invisible unless
+you use C code to query the X server directly.
+
+
+events, focus, keyboard, top-level, window manager
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/focusNext.htm b/hlp/en/tk/focusNext.htm
new file mode 100644
index 0000000..8955e05
--- /dev/null
+++ b/hlp/en/tk/focusNext.htm
@@ -0,0 +1,48 @@
+Tk Built-In Commands - tk_focusNext manual page
+
+tk_focusNext, tk_focusPrev, tk_focusFollowsMouse - Utility procedures for managing the input focus.
+
+tk_focusNext window
+tk_focusPrev window
+tk_focusFollowsMouse
+
+tk_focusNext is a utility procedure used for keyboard traversal.
+It returns the ``next'' window after window in focus order.
+The focus order is determined by
+the stacking order of windows and the structure of the window hierarchy.
+Among siblings, the focus order is the same as the stacking order, with the
+lowest window being first.
+If a window has children, the window is visited first, followed by
+its children (recursively), followed by its next sibling.
+Top-level windows other than window are skipped, so that
+tk_focusNext never returns a window in a different top-level
+from window.
+
+After computing the next window, tk_focusNext examines the
+window's -takefocus option to see whether it should be skipped.
+If so, tk_focusNext continues on to the next window in the focus
+order, until it eventually finds a window that will accept the focus
+or returns back to window.
+
+tk_focusPrev is similar to tk_focusNext except that it
+returns the window just before window in the focus order.
+
+tk_focusFollowsMouse changes the focus model for the application
+to an implicit one where the window under the mouse gets the focus.
+After this procedure is called, whenever the mouse enters a window
+Tk will automatically give it the input focus.
+The focus command may be used to move the focus to a window
+other than the one under the mouse, but as soon as the mouse moves
+into a new window the focus will jump to that window.
+Note: at present there is no built-in support for returning the
+application to an explicit focus model; to do this you'll have
+to write a script that deletes the bindings created by
+tk_focusFollowsMouse.
+
+
+focus, keyboard traversal, top-level
+
+Copyright © 1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/font.htm b/hlp/en/tk/font.htm
new file mode 100644
index 0000000..52a1271
--- /dev/null
+++ b/hlp/en/tk/font.htm
@@ -0,0 +1,276 @@
+Tk Built-In Commands - font manual page
+
+- NAME
+
- font - Create and inspect fonts.
+- SYNOPSIS
+
+- font option ?arg arg ...?
+
+- DESCRIPTION
+
+- font actual font ?-displayof window? ?option?
+
- font configure fontname ?option? ?value option value ...?
+
- font create ?fontname? ?option value ...?
+
- font delete fontname ?fontname ...?
+
- font families ?-displayof window?
+
- font measure font ?-displayof window? text
+
- font metrics font ?-displayof window? ?option?
+
- font names
+
+- FONT DESCRIPTION
+
+- [1] fontname
+
- [2] systemfont
+
- [3] family ?size? ?style? ?style ...?
+
- [4] X-font names (XLFD)
+
- [5] option value ?option value ...?
+
+- FONT METRICS
+
+- -ascent
+
- -descent
+
- -linespace
+
- -fixed
+
+- FONT OPTIONS
+
+- -family name
+
- -size size
+
- -weight weight
+
- -slant slant
+
- -underline boolean
+
- -overstrike boolean
+
+- PLATFORM-SPECIFIC ISSUES
+
+- X Windows:
+
- MS Windows:
+
- Macintosh:
+
+- SEE ALSO
+
- KEYWORDS
+
+
+font - Create and inspect fonts.
+
+font option ?arg arg ...?
+
+The font command provides several facilities for dealing with
+fonts, such as defining named fonts and inspecting the actual attributes of
+a font. The command has several different forms, determined by the
+first argument. The following forms are currently supported:
+
+
+- font actual font ?-displayof window? ?option?
-
+Returns information about the the actual attributes that are obtained when
+font is used on window's display; the actual attributes obtained
+may differ from the attributes requested due to platform-dependant
+limitations, such as the availability of font families and pointsizes.
+font is a font description; see FONT DESCRIPTIONS below. If the
+window argument is omitted, it defaults to the main window. If
+option is specified, returns the value of that attribute; if it is
+omitted, the return value is a list of all the attributes and their values.
+See FONT OPTIONS below for a list of the possible attributes.
+
- font configure fontname ?option? ?value option value ...?
-
+Query or modify the desired attributes for the named font called
+fontname. If no option is specified, returns a list describing
+all the options and their values for fontname. If a single option
+is specified with no value, then returns the current value of that
+attribute. If one or more option-value pairs are specified,
+then the command modifies the given named font to have the given values; in
+this case, all widgets using that font will redisplay themselves using the
+new attributes for the font. See FONT OPTIONS below for a list of the
+possible attributes.
+
- font create ?fontname? ?option value ...?
-
+Creates a new named font and returns its name. fontname specifies the
+name for the font; if it is omitted, then Tk generates a new name of the
+form fontx, where x is an integer. There may be any number
+of option-value pairs, which provide the desired attributes for
+the new named font. See FONT OPTIONS below for a list of the possible
+attributes.
+
- font delete fontname ?fontname ...?
-
+Delete the specified named fonts. If there are widgets using the named font,
+the named font won't actually be deleted until all the instances are
+released. Those widgets will continue to display using the last known values
+for the named font. If a deleted named font is subsequently recreated with
+another call to font create, the widgets will use the new named font
+and redisplay themselves using the new attributes of that font.
+
- font families ?-displayof window?
-
+The return value is a list of the case-insensitive names of all font families
+that exist on window's display. If the window argument is
+omitted, it defaults to the main window.
+
- font measure font ?-displayof window? text
-
+Measures the amount of space the string text would use in the given
+font when displayed in window. font is a font description;
+see FONT DESCRIPTIONS below. If the window argument is omitted, it
+defaults to the main window. The return value is the total width in pixels
+of text, not including the extra pixels used by highly exagerrated
+characters such as cursive ``f''. If the string contains newlines or tabs,
+those characters are not expanded or treated specially when measuring the
+string.
+
- font metrics font ?-displayof window? ?option?
-
+Returns information about the metrics (the font-specific data), for
+font when it is used on window's display. font is a font
+description; see FONT DESCRIPTIONS below. If the window argument is
+omitted, it defaults to the main window. If option is specified,
+returns the value of that metric; if it is omitted, the return value is a
+list of all the metrics and their values. See FONT METRICS below for a list
+of the possible metrics.
+
- font names
-
+The return value is a list of all the named fonts that are currently defined.
+
+
+The following formats are accepted as a font description anywhere
+font is specified as an argument above; these same forms are also
+permitted when specifying the -font option for widgets.
+
+
+- [1] fontname
-
+The name of a named font, created using the font create command. When
+a widget uses a named font, it is guaranteed that this will never cause an
+error, as long as the named font exists, no matter what potentially invalid
+or meaningless set of attributes the named font has. If the named font
+cannot be displayed with exactly the specified attributes, some other close
+font will be substituted automatically.
+
- [2] systemfont
-
+The platform-specific name of a font, interpreted by the graphics server.
+This also includes, under X, an XLFD (see [4]) for which a single ``*''
+character was used to elide more than one field in the middle of the
+name. See PLATFORM-SPECIFIC issues for a list of the system fonts.
+
- [3] family ?size? ?style? ?style ...?
-
+A properly formed list whose first element is the desired font
+family and whose optional second element is the desired size.
+The interpretation of the size attribute follows the same rules
+described for -size in FONT OPTIONS below. Any additional optional
+arguments following the size are font styles. Possible values
+for the style arguments are as follows:
+
normal bold roman italic
+underline overstrike
+ - [4] X-font names (XLFD)
-
+A Unix-centric font name of the form
+-foundry-family-weight-slant-setwidth-addstyle-pixel-point-resx-resy-spacing-width-charset-encoding.
+The ``*'' character may be used to skip individual fields that the
+user does not care about. There must be exactly one ``*'' for each
+field skipped, except that a ``*'' at the end of the XLFD skips any
+remaining fields; the shortest valid XLFD is simply ``*'', signifying
+all fields as defaults. Any fields that were skipped are given default
+values. For compatibility, an XLFD always chooses a font of the specified
+pixel size (not point size); although this interpretation is not strictly
+correct, all existing applications using XLFDs assumed that one ``point''
+was in fact one pixel and would display incorrectly (generally larger) if
+the correct size font were actually used.
+
- [5] option value ?option value ...?
-
+A properly formed list of option-value pairs that specify
+the desired attributes of the font, in the same format used when defining
+a named font; see FONT OPTIONS below.
+
+
+When font description font is used, the system attempts to parse the
+description according to each of the above five rules, in the order specified.
+Cases [1] and [2] must match the name of an existing named font or of a
+system font. Cases [3], [4], and [5] are accepted on all
+platforms and the closest available font will be used. In some situations
+it may not be possible to find any close font (e.g., the font family was
+a garbage value); in that case, some system-dependant default font is
+chosen. If the font description does not match any of the above patterns,
+an error is generated.
+
+The following options are used by the font metrics command to query
+font-specific data determined when the font was created. These properties are
+for the whole font itself and not for individual characters drawn in that
+font. In the following definitions, the ``baseline'' of a font is the
+horizontal line where the bottom of most letters line up; certain letters,
+such as lower-case ``g'' stick below the baseline.
+
+
+- -ascent
-
+The amount in pixels that the tallest letter sticks up above the baseline of
+the font, plus any extra blank space added by the designer of the font.
+
- -descent
-
+The largest amount in pixels that any letter sticks down below the baseline
+of the font, plus any extra blank space added by the designer of the font.
+
- -linespace
-
+Returns how far apart vertically in pixels two lines of text using the same
+font should be placed so that none of the characters in one line overlap any
+of the characters in the other line. This is generally the sum of the ascent
+above the baseline line plus the descent below the baseline.
+
- -fixed
-
+Returns a boolean flag that is ``1'' if this is a fixed-width font,
+where each normal character is the the same width as all the other
+characters, or is ``0'' if this is a proportionally-spaced font, where
+individual characters have different widths. The widths of control
+characters, tab characters, and other non-printing characters are not
+included when calculating this value.
+
+
+The following options are supported on all platforms, and are used when
+constructing a named font or when specifying a font using style [5] as
+above:
+
+
+- -family name
-
+The case-insensitive font family name. Tk guarantees to support the font
+families named Courier (a monospaced ``typewriter'' font), Times
+(a serifed ``newspaper'' font), and Helvetica (a sans-serif
+``European'' font). The most closely matching native font family will
+automatically be substituted when one of the above font families is used.
+The name may also be the name of a native, platform-specific font
+family; in that case it will work as desired on one platform but may not
+display correctly on other platforms. If the family is unspecified or
+unrecognized, a platform-specific default font will be chosen.
+
- -size size
-
+The desired size of the font. If the size argument is a positive
+number, it is interpreted as a size in points. If size is a negative
+number, its absolute value is interpreted as a size in pixels. If a
+font cannot be displayed at the specified size, a nearby size will be
+chosen. If size is unspecified or zero, a platform-dependent default
+size will be chosen.
+
+Sizes should normally be specified in points so the application will remain
+the same ruler size on the screen, even when changing screen resolutions or
+moving scripts across platforms. However, specifying pixels is useful in
+certain circumstances such as when a piece of text must line up with respect
+to a fixed-size bitmap. The mapping between points and pixels is set when
+the application starts, based on properties of the installed monitor, but it
+can be overridden by calling the tk scaling command.
+
- -weight weight
-
+The nominal thickness of the characters in the font. The value
+normal specifies a normal weight font, while bold specifies a
+bold font. The closest available weight to the one specified will
+be chosen. The default weight is normal.
+
- -slant slant
-
+The amount the characters in the font are slanted away from the
+vertical. Valid values for slant are roman and italic.
+A roman font is the normal, upright appearance of a font, while
+an italic font is one that is tilted some number of degrees from upright.
+The closest available slant to the one specified will be chosen.
+The default slant is roman.
+
- -underline boolean
-
+The value is a boolean flag that specifies whether characters in this
+font should be underlined. The default value for underline is false.
+
- -overstrike boolean
-
+The value is a boolean flag that specifies whether a horizontal line should
+be drawn through the middle of characters in this font. The default value
+for overstrike is false.
+
+
+
+The following named system fonts are supported:
+
+
+- X Windows:
-
+All valid X font names, including those listed by xlsfonts(1), are available.
+
- MS Windows:
-
+
system ansi device
+systemfixed ansifixed oemfixed
+ - Macintosh:
-
+
system application
+
+
+options
+
+font
+
+Copyright © 1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/frame.htm b/hlp/en/tk/frame.htm
new file mode 100644
index 0000000..2924497
--- /dev/null
+++ b/hlp/en/tk/frame.htm
@@ -0,0 +1,176 @@
+Tk Built-In Commands - frame manual page
+
+- NAME
+
- frame - Create and manipulate frame widgets
+- SYNOPSIS
+
+- frame pathName ?options?
+
+- STANDARD OPTIONS
+
+- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -background, background, Background
+
- -class, class, Class
+
- -colormap, colormap, Colormap
+
- -container, container, Container
+
- -height, height, Height
+
- -visual, visual, Visual
+
- -width, width, Width
+
+- DESCRIPTION
+
- WIDGET COMMAND
+
+- pathName cget option
+
- pathName configure ?option? ?value option value ...?
+
+- BINDINGS
+
- KEYWORDS
+
+
+frame - Create and manipulate frame widgets
+
+frame pathName ?options?
+
+
+- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
+
+
+- Command-Line Name: -background
+
- Database Name: background
+
- Database Class: Background
+
- This option is the same as the standard background option
+except that its value may also be specified as an empty string.
+In this case, the widget will display no background or border, and
+no colors will be consumed from its colormap for its background
+and border.
+
- Command-Line Name: -class
+
- Database Name: class
+
- Database Class: Class
+
- Specifies a class for the window.
+This class will be used when querying the option database for
+the window's other options, and it will also be used later for
+other purposes such as bindings.
+The class option may not be changed with the configure
+widget command.
+
- Command-Line Name: -colormap
+
- Database Name: colormap
+
- Database Class: Colormap
+
- Specifies a colormap to use for the window.
+The value may be either new, in which case a new colormap is
+created for the window and its children, or the name of another
+window (which must be on the same screen and have the same visual
+as pathName), in which case the new window will use the colormap
+from the specified window.
+If the colormap option is not specified, the new window
+uses the same colormap as its parent.
+This option may not be changed with the configure
+widget command.
+
- Command-Line Name: -container
+
- Database Name: container
+
- Database Class: Container
+
- The value must be a boolean. If true, it means that this window will
+be used as a container in which some other application will be embedded
+(for example, a Tk toplevel can be embedded using the -use option).
+The window will support the appropriate window manager protocols for
+things like geometry requests. The window should not have any
+children of its own in this application.
+This option may not be changed with the configure
+widget command.
+
- Command-Line Name: -height
+
- Database Name: height
+
- Database Class: Height
+
- Specifies the desired height for the window in any of the forms
+acceptable to Tk_GetPixels.
+If this option is less than or equal to zero then the window will
+not request any size at all.
+
- Command-Line Name: -visual
+
- Database Name: visual
+
- Database Class: Visual
+
- Specifies visual information for the new window in any of the
+forms accepted by Tk_GetVisual.
+If this option is not specified, the new window will use the same
+visual as its parent.
+The visual option may not be modified with the configure
+widget command.
+
- Command-Line Name: -width
+
- Database Name: width
+
- Database Class: Width
+
- Specifies the desired width for the window in any of the forms
+acceptable to Tk_GetPixels.
+If this option is less than or equal to zero then the window will
+not request any size at all.
+
+
+The frame command creates a new window (given by the
+pathName argument) and makes it into a frame widget.
+Additional
+options, described above, may be specified on the command line
+or in the option database
+to configure aspects of the frame such as its background color
+and relief. The frame command returns the
+path name of the new window.
+
+A frame is a simple widget. Its primary purpose is to act as a
+spacer or container for complex window layouts. The only features
+of a frame are its background color and an optional 3-D border to make the
+frame appear raised or sunken.
+
+
+The frame command creates a new Tcl command whose
+name is the same as the path name of the frame's window. This
+command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+PathName is the name of the command, which is the same as
+the frame widget's path name. Option and the args
+determine the exact behavior of the command. The following
+commands are possible for frame widgets:
+
+
+- pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the frame
+command.
+
- pathName configure ?option? ?value option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the frame
+command.
+
+
+
+When a new frame is created, it has no default event bindings:
+frames are not intended to be interactive.
+
+
+frame, widget
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/getOpenFile.htm b/hlp/en/tk/getOpenFile.htm
new file mode 100644
index 0000000..bd158e9
--- /dev/null
+++ b/hlp/en/tk/getOpenFile.htm
@@ -0,0 +1,158 @@
+Tk Built-In Commands - tk_getOpenFile manual page
+
+- NAME
+
- tk_getOpenFile, tk_getSaveFile - pop up a dialog box for the user to select a file to open or save.
+- SYNOPSIS
+
+- tk_getOpenFile ?option value ...?
+
- tk_getSaveFile ?option value ...?
+
+- DESCRIPTION
+
+- -defaultextension extension
+
- -filetypes filePatternList
+
- -initialdir directory
+
- -initialfile filename
+
- -parent window
+
- -title titleString
+
+- SPECIFYING FILE PATTERNS
+
- SPECIFYING EXTENSIONS
+
- EXAMPLE
+
- SEE ALSO
+
- KEYWORDS
+
+
+tk_getOpenFile, tk_getSaveFile - pop up a dialog box for the user to select a file to open or save.
+
+tk_getOpenFile ?option value ...?
+tk_getSaveFile ?option value ...?
+
+The procedures tk_getOpenFile and tk_getSaveFile pop up a
+dialog box for the user to select a file to open or save. The
+tk_getOpenFile command is usually associated with the Open
+command in the File menu. Its purpose is for the user to select an
+existing file only. If the user enters an non-existent file, the
+dialog box gives the user an error prompt and requires the user to give
+an alternative selection. If an application allows the user to create
+new files, it should do so by providing a separate New menu command.
+
+The tk_getSaveFile command is usually associated with the Save
+as command in the File menu. If the user enters a file that
+already exists, the dialog box prompts the user for confirmation
+whether the existing file should be overwritten or not.
+
+The following option-value pairs are possible as command line
+arguments to these two commands:
+
+
+- -defaultextension extension
-
+Specifies a string that will be appended to the filename if the user
+enters a filename without an extension. The defaut value is the empty
+string, which means no extension will be appended to the filename in
+any case. This option is ignored on the Macintosh platform, which
+does not require extensions to filenames.
+
- -filetypes filePatternList
-
+If a File types listbox exists in the file dialog on the particular
+platform, this option gives the filetypes in this listbox. When
+the user choose a filetype in the listbox, only the files of that type
+are listed. If this option is unspecified, or if it is set to the
+empty list, or if the File types listbox is not supported by the
+particular platform then all files are listed regardless of their
+types. See the section SPECIFYING FILE PATTERNS below for a
+discussion on the contents of filePatternList.
+
- -initialdir directory
-
+Specifies that the files in directory should be displayed
+when the dialog pops up. If this parameter is not specified, then
+the files in the current working directory are displayed. If the
+parameter specifies a relative path, the return value will convert the
+relative path to an absolute path. This option may not always work on
+the Macintosh. This is not a bug. Rather, the General Controls
+control panel on the Mac allows the end user to override the
+application default directory.
+
- -initialfile filename
-
+Specifies a filename to be displayed in the dialog when it pops up. This
+option is ignored on the Macintosh platform.
+
- -parent window
-
+Makes window the logical parent of the file dialog. The file
+dialog is displayed on top of its parent window.
+
- -title titleString
-
+Specifies a string to display as the title of the dialog box. If this
+option is not specified, then a default title is displayed.
+
+
+If the user selects a file, both tk_getOpenFile and
+tk_getSaveFile return the full pathname of this file. If the
+user cancels the operation, both commands return the empty string.
+
+The filePatternList value given by the -filetypes option
+is a list of file patterns. Each file pattern is a list of the
+form
+typeName {extension ?extension ...?} ?{macType ?macType ...?}?
+typeName is the name of the file type described by this
+file pattern and is the text string that appears in the File types
+listbox. extension is a file extension for this file pattern.
+macType is a four-character Macintosh file type. The list of
+macTypes is optional and may be omitted for applications that do
+not need to execute on the Macintosh platform.
+
+Several file patterns may have the same typeName, in which case
+they refer to the same file type and share the same entry in the
+listbox. When the user selects an entry in the listbox, all the files
+that match at least one of the file patterns corresponding
+to that entry are listed. Usually, each file pattern corresponds to a
+distinct type of file. The use of more than one file patterns for one
+type of file is necessary on the Macintosh platform only.
+
+On the Macintosh platform, a file matches a file pattern if its
+name matches at least one of the extension(s) AND it
+belongs to at least one of the macType(s) of the
+file pattern. For example, the C Source Files file pattern in the
+sample code matches with files that have a .c extension AND
+belong to the macType TEXT. To use the OR rule instead,
+you can use two file patterns, one with the extensions only and
+the other with the macType only. The GIF Files file type
+in the sample code matches files that EITHER have a .gif
+extension OR belong to the macType GIFF.
+
+On the Unix and Windows platforms, a file matches a file pattern
+if its name matches at at least one of the extension(s) of
+the file pattern. The macTypes are ignored.
+
+On the Unix and Macintosh platforms, extensions are matched using
+glob-style pattern matching. On the Windows platforms, extensions are
+matched by the underlying operating system. The types of possible
+extensions are: (1) the special extension * matches any
+file; (2) the special extension "" matches any files that
+do not have an extension (i.e., the filename contains no full stop
+character); (3) any character string that does not contain any wild
+card characters (* and ?).
+
+Due to the different pattern matching rules on the various platforms,
+to ensure portability, wild card characters are not allowed in the
+extensions, except as in the special extension *. Extensions
+without a full stop character (e.g, ~) are allowed but may not
+work on all platforms.
+
+
+set types {
+ {{Text Files} {.txt} }
+ {{TCL Scripts} {.tcl} }
+ {{C Source Files} {.c} TEXT}
+ {{GIF Files} {.gif} }
+ {{GIF Files} {} GIFF}
+ {{All Files} * }
+}
+set filename [tk_getOpenFile -filetypes $types]
+
+if {$filename != ""} {
+ # Open the file ...
+}
+
+tk_chooseDirectory
+
+file selection dialog
+
+Copyright © 1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/grab.htm b/hlp/en/tk/grab.htm
new file mode 100644
index 0000000..f39afdc
--- /dev/null
+++ b/hlp/en/tk/grab.htm
@@ -0,0 +1,127 @@
+Built-In Commands - grab manual page
+
+- NAME
+
- grab - Confine pointer and keyboard events to a window sub-tree
+- SYNOPSIS
+
+- grab ?-global? window
+
- grab option ?arg arg ...?
+
+- DESCRIPTION
+
+- grab ?-global? window
+
- grab current ?window?
+
- grab release window
+
- grab set ?-global? window
+
- grab status window
+
+- BUGS
+
- KEYWORDS
+
+
+grab - Confine pointer and keyboard events to a window sub-tree
+
+grab ?-global? window
+grab option ?arg arg ...?
+
+This command implements simple pointer and keyboard grabs for Tk.
+Tk's grabs are different than the grabs
+described in the Xlib documentation.
+When a grab is set for a particular window, Tk restricts all pointer
+events to the grab window and its descendants in Tk's window hierarchy.
+Whenever the pointer is within the grab window's subtree, the pointer
+will behave exactly the same as if there had been no grab at all
+and all events will be reported in the normal fashion.
+When the pointer is outside window's tree, button presses and
+releases and
+mouse motion events are reported to window, and window entry
+and window exit events are ignored.
+The grab subtree ``owns'' the pointer:
+windows outside the grab subtree will be visible on the screen
+but they will be insensitive until the grab is released.
+The tree of windows underneath the grab window can include top-level
+windows, in which case all of those top-level windows
+and their descendants will continue to receive mouse events
+during the grab.
+
+Two forms of grabs are possible: local and global.
+A local grab affects only the grabbing application: events will
+be reported to other applications as if the grab had never occurred.
+Grabs are local by default.
+A global grab locks out all applications on the screen,
+so that only the given subtree of the grabbing application will be
+sensitive to pointer events (mouse button presses, mouse button releases,
+pointer motions, window entries, and window exits).
+During global grabs the window manager will not receive pointer
+events either.
+
+During local grabs, keyboard events (key presses and key releases)
+are delivered as usual: the window
+manager controls which application receives keyboard events, and
+if they are sent to any window in the grabbing application then they are
+redirected to the focus window.
+During a global grab Tk grabs the keyboard so that all keyboard events
+are always sent to the grabbing application.
+The focus command is still used to determine which window in the
+application receives the keyboard events.
+The keyboard grab is released when the grab is released.
+
+Grabs apply to particular displays. If an application has windows
+on multiple displays then it can establish a separate grab on each
+display.
+The grab on a particular display affects only the windows on
+that display.
+It is possible for different applications on a single display to have
+simultaneous local grabs, but only one application can have a global
+grab on a given display at once.
+
+The grab command can take any of the following forms:
+
+
+- grab ?-global? window
-
+Same as grab set, described below.
+
- grab current ?window?
-
+If window is specified, returns the name of the current grab
+window in this application for window's display, or an empty
+string if there is no such window.
+If window is omitted, the command returns a list whose elements
+are all of the windows grabbed by this application for all displays,
+or an empty string if the application has no grabs.
+
- grab release window
-
+Releases the grab on window if there is one, otherwise does
+nothing. Returns an empty string.
+
- grab set ?-global? window
-
+Sets a grab on window. If -global is specified then the
+grab is global, otherwise it is local.
+If a grab was already in effect for this application on
+window's display then it is automatically released.
+If there is already a grab on window and it has the same
+global/local form as the requested grab, then the command
+does nothing. Returns an empty string.
+
- grab status window
-
+Returns none if no grab is currently set on window,
+local if a local grab is set on window, and
+global if a global grab is set.
+
+
+
+It took an incredibly complex and gross implementation to produce
+the simple grab effect described above.
+Given the current implementation, it isn't safe for applications
+to use the Xlib grab facilities at all except through the Tk grab
+procedures.
+If applications try to manipulate X's grab mechanisms directly,
+things will probably break.
+
+If a single process is managing several different Tk applications,
+only one of those applications can have a local grab for a given
+display at any given time. If the applications are in different
+processes, this restriction doesn't exist.
+
+
+grab, keyboard events, pointer events, window
+
+Copyright © 1992 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/grid.htm b/hlp/en/tk/grid.htm
new file mode 100644
index 0000000..dcd3e0a
--- /dev/null
+++ b/hlp/en/tk/grid.htm
@@ -0,0 +1,343 @@
+Tk Built-In Commands - grid manual page
+
+- NAME
+
- grid - Geometry manager that arranges widgets in a grid
+- SYNOPSIS
+
+- grid option arg ?arg ...?
+
+- DESCRIPTION
+
+- grid slave ?slave ...? ?options?
+
- grid bbox master ?column row? ?column2 row2?
+
- grid columnconfigure master index ?-option value...?
+
- grid configure slave ?slave ...? ?options?
+
+- -column n
+
- -columnspan n
+
- -in other
+
- -ipadx amount
+
- -ipady amount
+
- -padx amount
+
- -pady amount
+
- -row n
+
- -rowspan n
+
- -sticky style
+
+- grid forget slave ?slave ...?
+
- grid info slave
+
- grid location master x y
+
- grid propagate master ?boolean?
+
- grid rowconfigure master index ?-option value...?
+
- grid remove slave ?slave ...?
+
- grid size master
+
- grid slaves master ?-option value?
+
+- RELATIVE PLACEMENT
+
+- -
+
- x
+
- ^
+
+- THE GRID ALGORITHM
+
- GEOMETRY PROPAGATION
+
- RESTRICTIONS ON MASTER WINDOWS
+
- STACKING ORDER
+
- CREDITS
+
- KEYWORDS
+
+
+grid - Geometry manager that arranges widgets in a grid
+
+grid option arg ?arg ...?
+
+The grid command is used to communicate with the grid
+geometry manager that arranges widgets in rows and columns inside
+of another window, called the geometry master (or master window).
+The grid command can have any of several forms, depending
+on the option argument:
+
+
+- grid slave ?slave ...? ?options?
-
+If the first argument to grid is a window name (any value
+starting with ``.''), then the command is processed in the same
+way as grid configure.
+
- grid bbox master ?column row? ?column2 row2?
-
+With no arguments,
+the bounding box (in pixels) of the grid is returned.
+The return value consists of 4 integers. The first two are the pixel
+offset from the master window (x then y) of the top-left corner of the
+grid, and the second two integers are the width and height of the grid,
+also in pixels. If a single column and row is specified on
+the command line, then the bounding box for that cell is returned, where the
+top left cell is numbered from zero. If both column and row
+arguments are specified, then the bounding box spanning the rows and columns
+indicated is returned.
+
- grid columnconfigure master index ?-option value...?
-
+Query or set the column properties of the index column of the
+geometry master, master.
+The valid options are -minsize, -weight and -pad.
+If one or more options are provided, then index may be given as
+a list of column indeces to which the configuration options will operate on.
+The -minsize option sets the minimum size, in screen units,
+that will be permitted for this column.
+The -weight option (an integer value)
+sets the relative weight for apportioning
+any extra spaces among
+columns.
+A weight of zero (0) indicates the column will not deviate from its requested
+size. A column whose weight is two will grow at twice the rate as a column
+of weight one when extra space is allocated to the layout.
+The -pad option specifies the number of screen units that will be
+added to the largest window contained completely in that column when the
+grid geometry manager requests a size from the containing window.
+If only an option is specified, with no value,
+the current value of that option is returned.
+If only the master window and index is specified, all the current settings
+are returned in an list of "-option value" pairs.
+
- grid configure slave ?slave ...? ?options?
-
+The arguments consist of the names of one or more slave windows
+followed by pairs of arguments that specify how
+to manage the slaves.
+The characters -, x and ^,
+can be specified instead of a window name to alter the default
+location of a slave, as described in the ``RELATIVE PLACEMENT''
+section, below.
+The following options are supported:
+
+
+- -column n
-
+Insert the slave so that it occupies the nth column in the grid.
+Column numbers start with 0. If this option is not supplied, then the
+slave is arranged just to the right of previous slave specified on this
+call to grid, or column "0" if it is the first slave. For each
+x that immediately precedes the slave, the column position
+is incremented by one. Thus the x represents a blank column
+for this row in the grid.
+
- -columnspan n
-
+Insert the slave so that it occupies n columns in the grid.
+The default is one column, unless the window name is followed by a
+-, in which case the columnspan is incremented once for each immediately
+following -.
+
- -in other
-
+Insert the slave(s) in the master
+window given by other. The default is the first slave's
+parent window.
+
- -ipadx amount
-
+The amount specifies how much horizontal internal padding to
+leave on each side of the slave(s). This is space is added
+inside the slave(s) border.
+The amount must be a valid screen distance, such as 2 or .5c.
+It defaults to 0.
+
- -ipady amount
-
+The amount specifies how much vertical internal padding to
+leave on on the top and bottom of the slave(s).
+This space is added inside the slave(s) border.
+The amount defaults to 0.
+
- -padx amount
-
+The amount specifies how much horizontal external padding to
+leave on each side of the slave(s), in screen units.
+The amount defaults to 0.
+This space is added outside the slave(s) border.
+
- -pady amount
-
+The amount specifies how much vertical external padding to
+leave on the top and bottom of the slave(s), in screen units.
+The amount defaults to 0.
+This space is added outside the slave(s) border.
+
- -row n
-
+Insert the slave so that it occupies the nth row in the grid.
+Row numbers start with 0. If this option is not supplied, then the
+slave is arranged on the same row as the previous slave specified on this
+call to grid, or the first unoccupied row if this is the first slave.
+
- -rowspan n
-
+Insert the slave so that it occupies n rows in the grid.
+The default is one row. If the next grid command contains
+^ characters instead of slaves that line up with the columns
+of this slave, then the rowspan of this slave is
+extended by one.
+
- -sticky style
-
+If a slave's cell is larger than its requested dimensions, this
+option may be used to position (or stretch) the slave within its cell.
+Style is a string that contains zero or more of the characters
+n, s, e or w.
+The string can optionally contains spaces or
+commas, but they are ignored. Each letter refers to a side (north, south,
+east, or west) that the slave will "stick" to. If both n and s (or
+e and w) are specified, the slave will be stretched to fill the entire
+height (or width) of its cavity. The sticky option subsumes the
+combination of -anchor and -fill that is used by pack.
+The default is {}, which causes the slave to be centered in its cavity,
+at its requested size.
+
If any of the slaves are already managed by the geometry manager
+then any unspecified options for them retain their previous values rather
+than receiving default values.
+
+ - grid forget slave ?slave ...?
-
+Removes each of the slaves from grid for its
+master and unmaps their windows.
+The slaves will no longer be managed by the grid geometry manager.
+The configuration options for that window are forgotten, so that if the
+slave is managed once more by the grid geometry manager, the initial
+default settings are used.
+
- grid info slave
-
+Returns a list whose elements are the current configuration state of
+the slave given by slave in the same option-value form that
+might be specified to grid configure.
+The first two elements of the list are ``-in master'' where
+master is the slave's master.
+
- grid location master x y
-
+Given x and y values in screen units relative to the master window,
+the column and row number at that x and y location is returned.
+For locations that are above or to the left of the grid, -1 is returned.
+
- grid propagate master ?boolean?
-
+If boolean has a true boolean value such as 1 or on
+then propagation is enabled for master, which must be a window
+name (see ``GEOMETRY PROPAGATION'' below).
+If boolean has a false boolean value then propagation is
+disabled for master.
+In either of these cases an empty string is returned.
+If boolean is omitted then the command returns 0 or
+1 to indicate whether propagation is currently enabled
+for master.
+Propagation is enabled by default.
+
- grid rowconfigure master index ?-option value...?
-
+Query or set the row properties of the index row of the
+geometry master, master.
+The valid options are -minsize, -weight and -pad.
+If one or more options are provided, then index may be given as
+a list of row indeces to which the configuration options will operate on.
+The -minsize option sets the minimum size, in screen units,
+that will be permitted for this row.
+The -weight option (an integer value)
+sets the relative weight for apportioning
+any extra spaces among
+rows.
+A weight of zero (0) indicates the row will not deviate from its requested
+size. A row whose weight is two will grow at twice the rate as a row
+of weight one when extra space is allocated to the layout.
+The -pad option specifies the number of screen units that will be
+added to the largest window contained completely in that row when the
+grid geometry manager requests a size from the containing window.
+If only an option is specified, with no value,
+the current value of that option is returned.
+If only the master window and index is specified, all the current settings
+are returned in an list of "-option value" pairs.
+
- grid remove slave ?slave ...?
-
+Removes each of the slaves from grid for its
+master and unmaps their windows.
+The slaves will no longer be managed by the grid geometry manager.
+However, the configuration options for that window are remembered,
+so that if the
+slave is managed once more by the grid geometry manager, the previous
+values are retained.
+
- grid size master
-
+Returns the size of the grid (in columns then rows) for master.
+The size is determined either by the slave occupying the largest
+row or column, or the largest column or row with a minsize,
+weight, or pad that is non-zero.
+
- grid slaves master ?-option value?
-
+If no options are supplied, a list of all of the slaves in master
+are returned, most recently manages first.
+Option can be either -row or -column which
+causes only the slaves in the row (or column) specified by value
+to be returned.
+
+
+The grid command contains a limited set of capabilities that
+permit layouts to be created without specifying the row and column
+information for each slave. This permits slaves to be rearranged,
+added, or removed without the need to explicitly specify row and
+column information.
+When no column or row information is specified for a slave,
+default values are chosen for
+column, row, columnspan and rowspan
+at the time the slave is managed. The values are chosen
+based upon the current layout of the grid, the position of the slave
+relative to other slaves in the same grid command, and the presence
+of the characters -, ^, and ^ in grid
+command where slave names are normally expected.
+
+
+- -
-
+This increases the columnspan of the slave to the left. Several
+-'s in a row will successively increase the columnspan. A -
+may not follow a ^ or a x.
+
- x
-
+This leaves an empty column between the slave on the left and
+the slave on the right.
+
- ^
-
+This extends the rowspan of the slave above the ^'s
+in the grid. The number of ^'s in a row must match the number of
+columns spanned by the slave above it.
+
+
+The grid geometry manager lays out its slaves in three steps.
+In the first step, the minimum size needed to fit all of the slaves
+is computed, then (if propagation is turned on), a request is made
+of the master window to become that size.
+In the second step, the requested size is compared against the actual size
+of the master. If the sizes are different, then spaces is added to or taken
+away from the layout as needed.
+For the final step, each slave is positioned in its row(s) and column(s)
+based on the setting of its sticky flag.
+
+To compute the minimum size of a layout, the grid geometry manager
+first looks at all slaves whose columnspan and rowspan values are one,
+and computes the nominal size of each row or column to be either the
+minsize for that row or column, or the sum of the padding
+plus the size of the largest slave, whichever is greater. Then the
+slaves whose rowspans or columnspans are greater than one are
+examined. If a group of rows or columns need to be increased in size
+in order to accommodate these slaves, then extra space is added to each
+row or column in the group according to its weight. For each
+group whose weights are all zero, the additional space is apportioned
+equally.
+
+For masters whose size is larger than the requested layout, the additional
+space is apportioned according to the row and column weights. If all of
+the weights are zero, the layout is centered within its master.
+For masters whose size is smaller than the requested layout, space is taken
+away from columns and rows according to their weights. However, once a
+column or row shrinks to its minsize, its weight is taken to be zero.
+If more space needs to be removed from a layout than would be permitted, as
+when all the rows or columns are at there minimum sizes, the layout is
+clipped on the bottom and right.
+
+The grid geometry manager normally computes how large a master must be to
+just exactly meet the needs of its slaves, and it sets the
+requested width and height of the master to these dimensions.
+This causes geometry information to propagate up through a
+window hierarchy to a top-level window so that the entire
+sub-tree sizes itself to fit the needs of the leaf windows.
+However, the grid propagate command may be used to
+turn off propagation for one or more masters.
+If propagation is disabled then grid will not set
+the requested width and height of the master window.
+This may be useful if, for example, you wish for a master
+window to have a fixed size that you specify.
+
+
+The master for each slave must either be the slave's parent
+(the default) or a descendant of the slave's parent.
+This restriction is necessary to guarantee that the
+slave can be placed over any part of its master that is
+visible without danger of the slave being clipped by its parent.
+In addition, all slaves in one call to grid must have the same master.
+
+If the master for a slave is not its parent then you must make sure
+that the slave is higher in the stacking order than the master.
+Otherwise the master will obscure the slave and it will appear as
+if the slave hasn't been managed correctly.
+The easiest way to make sure the slave is higher than the master is
+to create the master window first: the most recently created window
+will be highest in the stacking order.
+
+The grid command is based on ideas taken from the GridBag
+geometry manager written by Doug. Stein, and the blt_table geometry
+manager, written by George Howlett.
+
+geometry manager, location, grid, cell, propagation, size, pack
+
+Copyright © 1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/image.htm b/hlp/en/tk/image.htm
new file mode 100644
index 0000000..d44dd60
--- /dev/null
+++ b/hlp/en/tk/image.htm
@@ -0,0 +1,104 @@
+Tk Built-In Commands - image manual page
+
+- NAME
+
- image - Create and manipulate images
+- SYNOPSIS
+
+- image option ?arg arg ...?
+
+- DESCRIPTION
+
+- image create type ?name? ?option value ...?
+
- image delete ?name name ...?
+
- image height name
+
- image names
+
- image type name
+
- image types
+
- image width name
+
+- BUILT-IN IMAGE TYPES
+
+- bitmap
+
- photo
+
+- KEYWORDS
+
+
+image - Create and manipulate images
+
+image option ?arg arg ...?
+
+The image command is used to create, delete, and query images.
+It can take several different forms, depending on the
+option argument. The legal forms are:
+
+
+- image create type ?name? ?option value ...?
-
+Creates a new image and returns its name.
+type specifies the type of the image, which must be one of
+the types currently defined (e.g., bitmap).
+name specifies the name for the image; if it is omitted then
+Tk picks a name of the form imagex, where x is
+an integer.
+There may be any number of option-value pairs,
+which provide configuration options for the new image.
+The legal set of options is defined separately for each image
+type; see below for details on the options for built-in image types.
+If an image already exists by the given name then it is replaced
+with the new image and any instances of that image will redisplay
+with the new contents.
+It is important to note that the image command will silently overwrite any
+procedure that may currently be defined by the given name, so choose the
+name wisely. It is recommended to use a separate namespace for image names
+(e.g., ::img::logo, ::img::large).
+
- image delete ?name name ...?
-
+Deletes each of the named images and returns an empty string.
+If there are instances of the images displayed in widgets,
+the images won't actually be deleted until all of the instances
+are released.
+However, the association between the instances and the image
+manager will be dropped.
+Existing instances will retain their sizes but redisplay as
+empty areas.
+If a deleted image is recreated with another call to image create,
+the existing instances will use the new image.
+
- image height name
-
+Returns a decimal string giving the height of image name
+in pixels.
+
- image names
-
+Returns a list containing the names of all existing images.
+
- image type name
-
+Returns the type of image name (the value of the type
+argument to image create when the image was created).
+
- image types
-
+Returns a list whose elements are all of the valid image types
+(i.e., all of the values that may be supplied for the type
+argument to image create).
+
- image width name
-
+Returns a decimal string giving the width of image name
+in pixels.
+
+
+
+The following image types are defined by Tk so they will be available
+in any Tk application.
+Individual applications or extensions may define additional types.
+
+
+- bitmap
-
+Each pixel in the image displays a foreground color, a background
+color, or nothing.
+See the bitmap manual entry for more information.
+
- photo
-
+Displays a variety of full-color images, using dithering to
+approximate colors on displays with limited color capabilities.
+See the photo manual entry for more information.
+
+
+
+height, image, types of images, width
+
+Copyright © 1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/keysyms.htm b/hlp/en/tk/keysyms.htm
new file mode 100644
index 0000000..bb021f2
--- /dev/null
+++ b/hlp/en/tk/keysyms.htm
@@ -0,0 +1,909 @@
+Tk Built-In Commands - keysyms manual page
+
+keysyms - keysyms recognized by Tk
+
+Tk recognizes many keysyms when specifying key bindings (eg,
+bind . <Key-keysym>). The following list enumerates the
+keysyms that will be recognized by Tk. Note that not all keysyms will
+be valid on all platforms. For example, on Unix systems, the presence
+of a particular keysym is dependant on the configuration of the
+keyboard modifier map. This list shows keysyms along with their
+decimal and hexidecimal values.
+
+
space 32 0x0020
+exclam 33 0x0021
+quotedbl 34 0x0022
+numbersign 35 0x0023
+dollar 36 0x0024
+percent 37 0x0025
+ampersand 38 0x0026
+quoteright 39 0x0027
+parenleft 40 0x0028
+parenright 41 0x0029
+asterisk 42 0x002a
+plus 43 0x002b
+comma 44 0x002c
+minus 45 0x002d
+period 46 0x002e
+slash 47 0x002f
+0 48 0x0030
+1 49 0x0031
+2 50 0x0032
+3 51 0x0033
+4 52 0x0034
+5 53 0x0035
+6 54 0x0036
+7 55 0x0037
+8 56 0x0038
+9 57 0x0039
+colon 58 0x003a
+semicolon 59 0x003b
+less 60 0x003c
+equal 61 0x003d
+greater 62 0x003e
+question 63 0x003f
+at 64 0x0040
+A 65 0x0041
+B 66 0x0042
+C 67 0x0043
+D 68 0x0044
+E 69 0x0045
+F 70 0x0046
+G 71 0x0047
+H 72 0x0048
+I 73 0x0049
+J 74 0x004a
+K 75 0x004b
+L 76 0x004c
+M 77 0x004d
+N 78 0x004e
+O 79 0x004f
+P 80 0x0050
+Q 81 0x0051
+R 82 0x0052
+S 83 0x0053
+T 84 0x0054
+U 85 0x0055
+V 86 0x0056
+W 87 0x0057
+X 88 0x0058
+Y 89 0x0059
+Z 90 0x005a
+bracketleft 91 0x005b
+backslash 92 0x005c
+bracketright 93 0x005d
+asciicircum 94 0x005e
+underscore 95 0x005f
+quoteleft 96 0x0060
+a 97 0x0061
+b 98 0x0062
+c 99 0x0063
+d 100 0x0064
+e 101 0x0065
+f 102 0x0066
+g 103 0x0067
+h 104 0x0068
+i 105 0x0069
+j 106 0x006a
+k 107 0x006b
+l 108 0x006c
+m 109 0x006d
+n 110 0x006e
+o 111 0x006f
+p 112 0x0070
+q 113 0x0071
+r 114 0x0072
+s 115 0x0073
+t 116 0x0074
+u 117 0x0075
+v 118 0x0076
+w 119 0x0077
+x 120 0x0078
+y 121 0x0079
+z 122 0x007a
+braceleft 123 0x007b
+bar 124 0x007c
+braceright 125 0x007d
+asciitilde 126 0x007e
+nobreakspace 160 0x00a0
+exclamdown 161 0x00a1
+cent 162 0x00a2
+sterling 163 0x00a3
+currency 164 0x00a4
+yen 165 0x00a5
+brokenbar 166 0x00a6
+section 167 0x00a7
+diaeresis 168 0x00a8
+copyright 169 0x00a9
+ordfeminine 170 0x00aa
+guillemotleft 171 0x00ab
+notsign 172 0x00ac
+hyphen 173 0x00ad
+registered 174 0x00ae
+macron 175 0x00af
+degree 176 0x00b0
+plusminus 177 0x00b1
+twosuperior 178 0x00b2
+threesuperior 179 0x00b3
+acute 180 0x00b4
+mu 181 0x00b5
+paragraph 182 0x00b6
+periodcentered 183 0x00b7
+cedilla 184 0x00b8
+onesuperior 185 0x00b9
+masculine 186 0x00ba
+guillemotright 187 0x00bb
+onequarter 188 0x00bc
+onehalf 189 0x00bd
+threequarters 190 0x00be
+questiondown 191 0x00bf
+Agrave 192 0x00c0
+Aacute 193 0x00c1
+Acircumflex 194 0x00c2
+Atilde 195 0x00c3
+Adiaeresis 196 0x00c4
+Aring 197 0x00c5
+AE 198 0x00c6
+Ccedilla 199 0x00c7
+Egrave 200 0x00c8
+Eacute 201 0x00c9
+Ecircumflex 202 0x00ca
+Ediaeresis 203 0x00cb
+Igrave 204 0x00cc
+Iacute 205 0x00cd
+Icircumflex 206 0x00ce
+Idiaeresis 207 0x00cf
+Eth 208 0x00d0
+Ntilde 209 0x00d1
+Ograve 210 0x00d2
+Oacute 211 0x00d3
+Ocircumflex 212 0x00d4
+Otilde 213 0x00d5
+Odiaeresis 214 0x00d6
+multiply 215 0x00d7
+Ooblique 216 0x00d8
+Ugrave 217 0x00d9
+Uacute 218 0x00da
+Ucircumflex 219 0x00db
+Udiaeresis 220 0x00dc
+Yacute 221 0x00dd
+Thorn 222 0x00de
+ssharp 223 0x00df
+agrave 224 0x00e0
+aacute 225 0x00e1
+acircumflex 226 0x00e2
+atilde 227 0x00e3
+adiaeresis 228 0x00e4
+aring 229 0x00e5
+ae 230 0x00e6
+ccedilla 231 0x00e7
+egrave 232 0x00e8
+eacute 233 0x00e9
+ecircumflex 234 0x00ea
+ediaeresis 235 0x00eb
+igrave 236 0x00ec
+iacute 237 0x00ed
+icircumflex 238 0x00ee
+idiaeresis 239 0x00ef
+eth 240 0x00f0
+ntilde 241 0x00f1
+ograve 242 0x00f2
+oacute 243 0x00f3
+ocircumflex 244 0x00f4
+otilde 245 0x00f5
+odiaeresis 246 0x00f6
+division 247 0x00f7
+oslash 248 0x00f8
+ugrave 249 0x00f9
+uacute 250 0x00fa
+ucircumflex 251 0x00fb
+udiaeresis 252 0x00fc
+yacute 253 0x00fd
+thorn 254 0x00fe
+ydiaeresis 255 0x00ff
+Aogonek 417 0x01a1
+breve 418 0x01a2
+Lstroke 419 0x01a3
+Lcaron 421 0x01a5
+Sacute 422 0x01a6
+Scaron 425 0x01a9
+Scedilla 426 0x01aa
+Tcaron 427 0x01ab
+Zacute 428 0x01ac
+Zcaron 430 0x01ae
+Zabovedot 431 0x01af
+aogonek 433 0x01b1
+ogonek 434 0x01b2
+lstroke 435 0x01b3
+lcaron 437 0x01b5
+sacute 438 0x01b6
+caron 439 0x01b7
+scaron 441 0x01b9
+scedilla 442 0x01ba
+tcaron 443 0x01bb
+zacute 444 0x01bc
+doubleacute 445 0x01bd
+zcaron 446 0x01be
+zabovedot 447 0x01bf
+Racute 448 0x01c0
+Abreve 451 0x01c3
+Cacute 454 0x01c6
+Ccaron 456 0x01c8
+Eogonek 458 0x01ca
+Ecaron 460 0x01cc
+Dcaron 463 0x01cf
+Nacute 465 0x01d1
+Ncaron 466 0x01d2
+Odoubleacute 469 0x01d5
+Rcaron 472 0x01d8
+Uring 473 0x01d9
+Udoubleacute 475 0x01db
+Tcedilla 478 0x01de
+racute 480 0x01e0
+abreve 483 0x01e3
+cacute 486 0x01e6
+ccaron 488 0x01e8
+eogonek 490 0x01ea
+ecaron 492 0x01ec
+dcaron 495 0x01ef
+nacute 497 0x01f1
+ncaron 498 0x01f2
+odoubleacute 501 0x01f5
+rcaron 504 0x01f8
+uring 505 0x01f9
+udoubleacute 507 0x01fb
+tcedilla 510 0x01fe
+abovedot 511 0x01ff
+Hstroke 673 0x02a1
+Hcircumflex 678 0x02a6
+Iabovedot 681 0x02a9
+Gbreve 683 0x02ab
+Jcircumflex 684 0x02ac
+hstroke 689 0x02b1
+hcircumflex 694 0x02b6
+idotless 697 0x02b9
+gbreve 699 0x02bb
+jcircumflex 700 0x02bc
+Cabovedot 709 0x02c5
+Ccircumflex 710 0x02c6
+Gabovedot 725 0x02d5
+Gcircumflex 728 0x02d8
+Ubreve 733 0x02dd
+Scircumflex 734 0x02de
+cabovedot 741 0x02e5
+ccircumflex 742 0x02e6
+gabovedot 757 0x02f5
+gcircumflex 760 0x02f8
+ubreve 765 0x02fd
+scircumflex 766 0x02fe
+kappa 930 0x03a2
+Rcedilla 931 0x03a3
+Itilde 933 0x03a5
+Lcedilla 934 0x03a6
+Emacron 938 0x03aa
+Gcedilla 939 0x03ab
+Tslash 940 0x03ac
+rcedilla 947 0x03b3
+itilde 949 0x03b5
+lcedilla 950 0x03b6
+emacron 954 0x03ba
+gacute 955 0x03bb
+tslash 956 0x03bc
+ENG 957 0x03bd
+eng 959 0x03bf
+Amacron 960 0x03c0
+Iogonek 967 0x03c7
+Eabovedot 972 0x03cc
+Imacron 975 0x03cf
+Ncedilla 977 0x03d1
+Omacron 978 0x03d2
+Kcedilla 979 0x03d3
+Uogonek 985 0x03d9
+Utilde 989 0x03dd
+Umacron 990 0x03de
+amacron 992 0x03e0
+iogonek 999 0x03e7
+eabovedot 1004 0x03ec
+imacron 1007 0x03ef
+ncedilla 1009 0x03f1
+omacron 1010 0x03f2
+kcedilla 1011 0x03f3
+uogonek 1017 0x03f9
+utilde 1021 0x03fd
+umacron 1022 0x03fe
+overline 1150 0x047e
+kana_fullstop 1185 0x04a1
+kana_openingbracket 1186 0x04a2
+kana_closingbracket 1187 0x04a3
+kana_comma 1188 0x04a4
+kana_middledot 1189 0x04a5
+kana_WO 1190 0x04a6
+kana_a 1191 0x04a7
+kana_i 1192 0x04a8
+kana_u 1193 0x04a9
+kana_e 1194 0x04aa
+kana_o 1195 0x04ab
+kana_ya 1196 0x04ac
+kana_yu 1197 0x04ad
+kana_yo 1198 0x04ae
+kana_tu 1199 0x04af
+prolongedsound 1200 0x04b0
+kana_A 1201 0x04b1
+kana_I 1202 0x04b2
+kana_U 1203 0x04b3
+kana_E 1204 0x04b4
+kana_O 1205 0x04b5
+kana_KA 1206 0x04b6
+kana_KI 1207 0x04b7
+kana_KU 1208 0x04b8
+kana_KE 1209 0x04b9
+kana_KO 1210 0x04ba
+kana_SA 1211 0x04bb
+kana_SHI 1212 0x04bc
+kana_SU 1213 0x04bd
+kana_SE 1214 0x04be
+kana_SO 1215 0x04bf
+kana_TA 1216 0x04c0
+kana_TI 1217 0x04c1
+kana_TU 1218 0x04c2
+kana_TE 1219 0x04c3
+kana_TO 1220 0x04c4
+kana_NA 1221 0x04c5
+kana_NI 1222 0x04c6
+kana_NU 1223 0x04c7
+kana_NE 1224 0x04c8
+kana_NO 1225 0x04c9
+kana_HA 1226 0x04ca
+kana_HI 1227 0x04cb
+kana_HU 1228 0x04cc
+kana_HE 1229 0x04cd
+kana_HO 1230 0x04ce
+kana_MA 1231 0x04cf
+kana_MI 1232 0x04d0
+kana_MU 1233 0x04d1
+kana_ME 1234 0x04d2
+kana_MO 1235 0x04d3
+kana_YA 1236 0x04d4
+kana_YU 1237 0x04d5
+kana_YO 1238 0x04d6
+kana_RA 1239 0x04d7
+kana_RI 1240 0x04d8
+kana_RU 1241 0x04d9
+kana_RE 1242 0x04da
+kana_RO 1243 0x04db
+kana_WA 1244 0x04dc
+kana_N 1245 0x04dd
+voicedsound 1246 0x04de
+semivoicedsound 1247 0x04df
+Arabic_comma 1452 0x05ac
+Arabic_semicolon 1467 0x05bb
+Arabic_question_mark 1471 0x05bf
+Arabic_hamza 1473 0x05c1
+Arabic_maddaonalef 1474 0x05c2
+Arabic_hamzaonalef 1475 0x05c3
+Arabic_hamzaonwaw 1476 0x05c4
+Arabic_hamzaunderalef 1477 0x05c5
+Arabic_hamzaonyeh 1478 0x05c6
+Arabic_alef 1479 0x05c7
+Arabic_beh 1480 0x05c8
+Arabic_tehmarbuta 1481 0x05c9
+Arabic_teh 1482 0x05ca
+Arabic_theh 1483 0x05cb
+Arabic_jeem 1484 0x05cc
+Arabic_hah 1485 0x05cd
+Arabic_khah 1486 0x05ce
+Arabic_dal 1487 0x05cf
+Arabic_thal 1488 0x05d0
+Arabic_ra 1489 0x05d1
+Arabic_zain 1490 0x05d2
+Arabic_seen 1491 0x05d3
+Arabic_sheen 1492 0x05d4
+Arabic_sad 1493 0x05d5
+Arabic_dad 1494 0x05d6
+Arabic_tah 1495 0x05d7
+Arabic_zah 1496 0x05d8
+Arabic_ain 1497 0x05d9
+Arabic_ghain 1498 0x05da
+Arabic_tatweel 1504 0x05e0
+Arabic_feh 1505 0x05e1
+Arabic_qaf 1506 0x05e2
+Arabic_kaf 1507 0x05e3
+Arabic_lam 1508 0x05e4
+Arabic_meem 1509 0x05e5
+Arabic_noon 1510 0x05e6
+Arabic_heh 1511 0x05e7
+Arabic_waw 1512 0x05e8
+Arabic_alefmaksura 1513 0x05e9
+Arabic_yeh 1514 0x05ea
+Arabic_fathatan 1515 0x05eb
+Arabic_dammatan 1516 0x05ec
+Arabic_kasratan 1517 0x05ed
+Arabic_fatha 1518 0x05ee
+Arabic_damma 1519 0x05ef
+Arabic_kasra 1520 0x05f0
+Arabic_shadda 1521 0x05f1
+Arabic_sukun 1522 0x05f2
+Serbian_dje 1697 0x06a1
+Macedonia_gje 1698 0x06a2
+Cyrillic_io 1699 0x06a3
+Ukranian_je 1700 0x06a4
+Macedonia_dse 1701 0x06a5
+Ukranian_i 1702 0x06a6
+Ukranian_yi 1703 0x06a7
+Serbian_je 1704 0x06a8
+Serbian_lje 1705 0x06a9
+Serbian_nje 1706 0x06aa
+Serbian_tshe 1707 0x06ab
+Macedonia_kje 1708 0x06ac
+Byelorussian_shortu 1710 0x06ae
+Serbian_dze 1711 0x06af
+numerosign 1712 0x06b0
+Serbian_DJE 1713 0x06b1
+Macedonia_GJE 1714 0x06b2
+Cyrillic_IO 1715 0x06b3
+Ukranian_JE 1716 0x06b4
+Macedonia_DSE 1717 0x06b5
+Ukranian_I 1718 0x06b6
+Ukranian_YI 1719 0x06b7
+Serbian_JE 1720 0x06b8
+Serbian_LJE 1721 0x06b9
+Serbian_NJE 1722 0x06ba
+Serbian_TSHE 1723 0x06bb
+Macedonia_KJE 1724 0x06bc
+Byelorussian_SHORTU 1726 0x06be
+Serbian_DZE 1727 0x06bf
+Cyrillic_yu 1728 0x06c0
+Cyrillic_a 1729 0x06c1
+Cyrillic_be 1730 0x06c2
+Cyrillic_tse 1731 0x06c3
+Cyrillic_de 1732 0x06c4
+Cyrillic_ie 1733 0x06c5
+Cyrillic_ef 1734 0x06c6
+Cyrillic_ghe 1735 0x06c7
+Cyrillic_ha 1736 0x06c8
+Cyrillic_i 1737 0x06c9
+Cyrillic_shorti 1738 0x06ca
+Cyrillic_ka 1739 0x06cb
+Cyrillic_el 1740 0x06cc
+Cyrillic_em 1741 0x06cd
+Cyrillic_en 1742 0x06ce
+Cyrillic_o 1743 0x06cf
+Cyrillic_pe 1744 0x06d0
+Cyrillic_ya 1745 0x06d1
+Cyrillic_er 1746 0x06d2
+Cyrillic_es 1747 0x06d3
+Cyrillic_te 1748 0x06d4
+Cyrillic_u 1749 0x06d5
+Cyrillic_zhe 1750 0x06d6
+Cyrillic_ve 1751 0x06d7
+Cyrillic_softsign 1752 0x06d8
+Cyrillic_yeru 1753 0x06d9
+Cyrillic_ze 1754 0x06da
+Cyrillic_sha 1755 0x06db
+Cyrillic_e 1756 0x06dc
+Cyrillic_shcha 1757 0x06dd
+Cyrillic_che 1758 0x06de
+Cyrillic_hardsign 1759 0x06df
+Cyrillic_YU 1760 0x06e0
+Cyrillic_A 1761 0x06e1
+Cyrillic_BE 1762 0x06e2
+Cyrillic_TSE 1763 0x06e3
+Cyrillic_DE 1764 0x06e4
+Cyrillic_IE 1765 0x06e5
+Cyrillic_EF 1766 0x06e6
+Cyrillic_GHE 1767 0x06e7
+Cyrillic_HA 1768 0x06e8
+Cyrillic_I 1769 0x06e9
+Cyrillic_SHORTI 1770 0x06ea
+Cyrillic_KA 1771 0x06eb
+Cyrillic_EL 1772 0x06ec
+Cyrillic_EM 1773 0x06ed
+Cyrillic_EN 1774 0x06ee
+Cyrillic_O 1775 0x06ef
+Cyrillic_PE 1776 0x06f0
+Cyrillic_YA 1777 0x06f1
+Cyrillic_ER 1778 0x06f2
+Cyrillic_ES 1779 0x06f3
+Cyrillic_TE 1780 0x06f4
+Cyrillic_U 1781 0x06f5
+Cyrillic_ZHE 1782 0x06f6
+Cyrillic_VE 1783 0x06f7
+Cyrillic_SOFTSIGN 1784 0x06f8
+Cyrillic_YERU 1785 0x06f9
+Cyrillic_ZE 1786 0x06fa
+Cyrillic_SHA 1787 0x06fb
+Cyrillic_E 1788 0x06fc
+Cyrillic_SHCHA 1789 0x06fd
+Cyrillic_CHE 1790 0x06fe
+Cyrillic_HARDSIGN 1791 0x06ff
+Greek_ALPHAaccent 1953 0x07a1
+Greek_EPSILONaccent 1954 0x07a2
+Greek_ETAaccent 1955 0x07a3
+Greek_IOTAaccent 1956 0x07a4
+Greek_IOTAdiaeresis 1957 0x07a5
+Greek_IOTAaccentdiaeresis 1958 0x07a6
+Greek_OMICRONaccent 1959 0x07a7
+Greek_UPSILONaccent 1960 0x07a8
+Greek_UPSILONdieresis 1961 0x07a9
+Greek_UPSILONaccentdieresis 1962 0x07aa
+Greek_OMEGAaccent 1963 0x07ab
+Greek_alphaaccent 1969 0x07b1
+Greek_epsilonaccent 1970 0x07b2
+Greek_etaaccent 1971 0x07b3
+Greek_iotaaccent 1972 0x07b4
+Greek_iotadieresis 1973 0x07b5
+Greek_iotaaccentdieresis 1974 0x07b6
+Greek_omicronaccent 1975 0x07b7
+Greek_upsilonaccent 1976 0x07b8
+Greek_upsilondieresis 1977 0x07b9
+Greek_upsilonaccentdieresis 1978 0x07ba
+Greek_omegaaccent 1979 0x07bb
+Greek_ALPHA 1985 0x07c1
+Greek_BETA 1986 0x07c2
+Greek_GAMMA 1987 0x07c3
+Greek_DELTA 1988 0x07c4
+Greek_EPSILON 1989 0x07c5
+Greek_ZETA 1990 0x07c6
+Greek_ETA 1991 0x07c7
+Greek_THETA 1992 0x07c8
+Greek_IOTA 1993 0x07c9
+Greek_KAPPA 1994 0x07ca
+Greek_LAMBDA 1995 0x07cb
+Greek_MU 1996 0x07cc
+Greek_NU 1997 0x07cd
+Greek_XI 1998 0x07ce
+Greek_OMICRON 1999 0x07cf
+Greek_PI 2000 0x07d0
+Greek_RHO 2001 0x07d1
+Greek_SIGMA 2002 0x07d2
+Greek_TAU 2004 0x07d4
+Greek_UPSILON 2005 0x07d5
+Greek_PHI 2006 0x07d6
+Greek_CHI 2007 0x07d7
+Greek_PSI 2008 0x07d8
+Greek_OMEGA 2009 0x07d9
+Greek_alpha 2017 0x07e1
+Greek_beta 2018 0x07e2
+Greek_gamma 2019 0x07e3
+Greek_delta 2020 0x07e4
+Greek_epsilon 2021 0x07e5
+Greek_zeta 2022 0x07e6
+Greek_eta 2023 0x07e7
+Greek_theta 2024 0x07e8
+Greek_iota 2025 0x07e9
+Greek_kappa 2026 0x07ea
+Greek_lambda 2027 0x07eb
+Greek_mu 2028 0x07ec
+Greek_nu 2029 0x07ed
+Greek_xi 2030 0x07ee
+Greek_omicron 2031 0x07ef
+Greek_pi 2032 0x07f0
+Greek_rho 2033 0x07f1
+Greek_sigma 2034 0x07f2
+Greek_finalsmallsigma 2035 0x07f3
+Greek_tau 2036 0x07f4
+Greek_upsilon 2037 0x07f5
+Greek_phi 2038 0x07f6
+Greek_chi 2039 0x07f7
+Greek_psi 2040 0x07f8
+Greek_omega 2041 0x07f9
+leftradical 2209 0x08a1
+topleftradical 2210 0x08a2
+horizconnector 2211 0x08a3
+topintegral 2212 0x08a4
+botintegral 2213 0x08a5
+vertconnector 2214 0x08a6
+topleftsqbracket 2215 0x08a7
+botleftsqbracket 2216 0x08a8
+toprightsqbracket 2217 0x08a9
+botrightsqbracket 2218 0x08aa
+topleftparens 2219 0x08ab
+botleftparens 2220 0x08ac
+toprightparens 2221 0x08ad
+botrightparens 2222 0x08ae
+leftmiddlecurlybrace 2223 0x08af
+rightmiddlecurlybrace 2224 0x08b0
+topleftsummation 2225 0x08b1
+botleftsummation 2226 0x08b2
+topvertsummationconnector 2227 0x08b3
+botvertsummationconnector 2228 0x08b4
+toprightsummation 2229 0x08b5
+botrightsummation 2230 0x08b6
+rightmiddlesummation 2231 0x08b7
+lessthanequal 2236 0x08bc
+notequal 2237 0x08bd
+greaterthanequal 2238 0x08be
+integral 2239 0x08bf
+therefore 2240 0x08c0
+variation 2241 0x08c1
+infinity 2242 0x08c2
+nabla 2245 0x08c5
+approximate 2248 0x08c8
+similarequal 2249 0x08c9
+ifonlyif 2253 0x08cd
+implies 2254 0x08ce
+identical 2255 0x08cf
+radical 2262 0x08d6
+includedin 2266 0x08da
+includes 2267 0x08db
+intersection 2268 0x08dc
+union 2269 0x08dd
+logicaland 2270 0x08de
+logicalor 2271 0x08df
+partialderivative 2287 0x08ef
+function 2294 0x08f6
+leftarrow 2299 0x08fb
+uparrow 2300 0x08fc
+rightarrow 2301 0x08fd
+downarrow 2302 0x08fe
+blank 2527 0x09df
+soliddiamond 2528 0x09e0
+checkerboard 2529 0x09e1
+ht 2530 0x09e2
+ff 2531 0x09e3
+cr 2532 0x09e4
+lf 2533 0x09e5
+nl 2536 0x09e8
+vt 2537 0x09e9
+lowrightcorner 2538 0x09ea
+uprightcorner 2539 0x09eb
+upleftcorner 2540 0x09ec
+lowleftcorner 2541 0x09ed
+crossinglines 2542 0x09ee
+horizlinescan1 2543 0x09ef
+horizlinescan3 2544 0x09f0
+horizlinescan5 2545 0x09f1
+horizlinescan7 2546 0x09f2
+horizlinescan9 2547 0x09f3
+leftt 2548 0x09f4
+rightt 2549 0x09f5
+bott 2550 0x09f6
+topt 2551 0x09f7
+vertbar 2552 0x09f8
+emspace 2721 0x0aa1
+enspace 2722 0x0aa2
+em3space 2723 0x0aa3
+em4space 2724 0x0aa4
+digitspace 2725 0x0aa5
+punctspace 2726 0x0aa6
+thinspace 2727 0x0aa7
+hairspace 2728 0x0aa8
+emdash 2729 0x0aa9
+endash 2730 0x0aaa
+signifblank 2732 0x0aac
+ellipsis 2734 0x0aae
+doubbaselinedot 2735 0x0aaf
+onethird 2736 0x0ab0
+twothirds 2737 0x0ab1
+onefifth 2738 0x0ab2
+twofifths 2739 0x0ab3
+threefifths 2740 0x0ab4
+fourfifths 2741 0x0ab5
+onesixth 2742 0x0ab6
+fivesixths 2743 0x0ab7
+careof 2744 0x0ab8
+figdash 2747 0x0abb
+leftanglebracket 2748 0x0abc
+decimalpoint 2749 0x0abd
+rightanglebracket 2750 0x0abe
+marker 2751 0x0abf
+oneeighth 2755 0x0ac3
+threeeighths 2756 0x0ac4
+fiveeighths 2757 0x0ac5
+seveneighths 2758 0x0ac6
+trademark 2761 0x0ac9
+signaturemark 2762 0x0aca
+trademarkincircle 2763 0x0acb
+leftopentriangle 2764 0x0acc
+rightopentriangle 2765 0x0acd
+emopencircle 2766 0x0ace
+emopenrectangle 2767 0x0acf
+leftsinglequotemark 2768 0x0ad0
+rightsinglequotemark 2769 0x0ad1
+leftdoublequotemark 2770 0x0ad2
+rightdoublequotemark 2771 0x0ad3
+prescription 2772 0x0ad4
+minutes 2774 0x0ad6
+seconds 2775 0x0ad7
+latincross 2777 0x0ad9
+hexagram 2778 0x0ada
+filledrectbullet 2779 0x0adb
+filledlefttribullet 2780 0x0adc
+filledrighttribullet 2781 0x0add
+emfilledcircle 2782 0x0ade
+emfilledrect 2783 0x0adf
+enopencircbullet 2784 0x0ae0
+enopensquarebullet 2785 0x0ae1
+openrectbullet 2786 0x0ae2
+opentribulletup 2787 0x0ae3
+opentribulletdown 2788 0x0ae4
+openstar 2789 0x0ae5
+enfilledcircbullet 2790 0x0ae6
+enfilledsqbullet 2791 0x0ae7
+filledtribulletup 2792 0x0ae8
+filledtribulletdown 2793 0x0ae9
+leftpointer 2794 0x0aea
+rightpointer 2795 0x0aeb
+club 2796 0x0aec
+diamond 2797 0x0aed
+heart 2798 0x0aee
+maltesecross 2800 0x0af0
+dagger 2801 0x0af1
+doubledagger 2802 0x0af2
+checkmark 2803 0x0af3
+ballotcross 2804 0x0af4
+musicalsharp 2805 0x0af5
+musicalflat 2806 0x0af6
+malesymbol 2807 0x0af7
+femalesymbol 2808 0x0af8
+telephone 2809 0x0af9
+telephonerecorder 2810 0x0afa
+phonographcopyright 2811 0x0afb
+caret 2812 0x0afc
+singlelowquotemark 2813 0x0afd
+doublelowquotemark 2814 0x0afe
+cursor 2815 0x0aff
+leftcaret 2979 0x0ba3
+rightcaret 2982 0x0ba6
+downcaret 2984 0x0ba8
+upcaret 2985 0x0ba9
+overbar 3008 0x0bc0
+downtack 3010 0x0bc2
+upshoe 3011 0x0bc3
+downstile 3012 0x0bc4
+underbar 3014 0x0bc6
+jot 3018 0x0bca
+quad 3020 0x0bcc
+uptack 3022 0x0bce
+circle 3023 0x0bcf
+upstile 3027 0x0bd3
+downshoe 3030 0x0bd6
+rightshoe 3032 0x0bd8
+leftshoe 3034 0x0bda
+lefttack 3036 0x0bdc
+righttack 3068 0x0bfc
+hebrew_aleph 3296 0x0ce0
+hebrew_beth 3297 0x0ce1
+hebrew_gimmel 3298 0x0ce2
+hebrew_daleth 3299 0x0ce3
+hebrew_he 3300 0x0ce4
+hebrew_waw 3301 0x0ce5
+hebrew_zayin 3302 0x0ce6
+hebrew_het 3303 0x0ce7
+hebrew_teth 3304 0x0ce8
+hebrew_yod 3305 0x0ce9
+hebrew_finalkaph 3306 0x0cea
+hebrew_kaph 3307 0x0ceb
+hebrew_lamed 3308 0x0cec
+hebrew_finalmem 3309 0x0ced
+hebrew_mem 3310 0x0cee
+hebrew_finalnun 3311 0x0cef
+hebrew_nun 3312 0x0cf0
+hebrew_samekh 3313 0x0cf1
+hebrew_ayin 3314 0x0cf2
+hebrew_finalpe 3315 0x0cf3
+hebrew_pe 3316 0x0cf4
+hebrew_finalzadi 3317 0x0cf5
+hebrew_zadi 3318 0x0cf6
+hebrew_kuf 3319 0x0cf7
+hebrew_resh 3320 0x0cf8
+hebrew_shin 3321 0x0cf9
+hebrew_taf 3322 0x0cfa
+BackSpace 65288 0xff08
+Tab 65289 0xff09
+Linefeed 65290 0xff0a
+Clear 65291 0xff0b
+Return 65293 0xff0d
+Pause 65299 0xff13
+Scroll_Lock 65300 0xff14
+Sys_Req 65301 0xff15
+Escape 65307 0xff1b
+Multi_key 65312 0xff20
+Kanji 65313 0xff21
+Home 65360 0xff50
+Left 65361 0xff51
+Up 65362 0xff52
+Right 65363 0xff53
+Down 65364 0xff54
+Prior 65365 0xff55
+Next 65366 0xff56
+End 65367 0xff57
+Begin 65368 0xff58
+Win_L 65371 0xff5b
+Win_R 65372 0xff5c
+App 65373 0xff5d
+Select 65376 0xff60
+Print 65377 0xff61
+Execute 65378 0xff62
+Insert 65379 0xff63
+Undo 65381 0xff65
+Redo 65382 0xff66
+Menu 65383 0xff67
+Find 65384 0xff68
+Cancel 65385 0xff69
+Help 65386 0xff6a
+Break 65387 0xff6b
+Hebrew_switch 65406 0xff7e
+Num_Lock 65407 0xff7f
+KP_Space 65408 0xff80
+KP_Tab 65417 0xff89
+KP_Enter 65421 0xff8d
+KP_F1 65425 0xff91
+KP_F2 65426 0xff92
+KP_F3 65427 0xff93
+KP_F4 65428 0xff94
+KP_Multiply 65450 0xffaa
+KP_Add 65451 0xffab
+KP_Separator 65452 0xffac
+KP_Subtract 65453 0xffad
+KP_Decimal 65454 0xffae
+KP_Divide 65455 0xffaf
+KP_0 65456 0xffb0
+KP_1 65457 0xffb1
+KP_2 65458 0xffb2
+KP_3 65459 0xffb3
+KP_4 65460 0xffb4
+KP_5 65461 0xffb5
+KP_6 65462 0xffb6
+KP_7 65463 0xffb7
+KP_8 65464 0xffb8
+KP_9 65465 0xffb9
+KP_Equal 65469 0xffbd
+F1 65470 0xffbe
+F2 65471 0xffbf
+F3 65472 0xffc0
+F4 65473 0xffc1
+F5 65474 0xffc2
+F6 65475 0xffc3
+F7 65476 0xffc4
+F8 65477 0xffc5
+F9 65478 0xffc6
+F10 65479 0xffc7
+L1 65480 0xffc8
+L2 65481 0xffc9
+L3 65482 0xffca
+L4 65483 0xffcb
+L5 65484 0xffcc
+L6 65485 0xffcd
+L7 65486 0xffce
+L8 65487 0xffcf
+L9 65488 0xffd0
+L10 65489 0xffd1
+R1 65490 0xffd2
+R2 65491 0xffd3
+R3 65492 0xffd4
+R4 65493 0xffd5
+R5 65494 0xffd6
+R6 65495 0xffd7
+R7 65496 0xffd8
+R8 65497 0xffd9
+R9 65498 0xffda
+R10 65499 0xffdb
+R11 65500 0xffdc
+R12 65501 0xffdd
+F33 65502 0xffde
+R14 65503 0xffdf
+R15 65504 0xffe0
+Shift_L 65505 0xffe1
+Shift_R 65506 0xffe2
+Control_L 65507 0xffe3
+Control_R 65508 0xffe4
+Caps_Lock 65509 0xffe5
+Shift_Lock 65510 0xffe6
+Meta_L 65511 0xffe7
+Meta_R 65512 0xffe8
+Alt_L 65513 0xffe9
+Alt_R 65514 0xffea
+Super_L 65515 0xffeb
+Super_R 65516 0xffec
+Hyper_L 65517 0xffed
+Hyper_R 65518 0xffee
+Delete 65535 0xffff
+
+bind
+
+keysym, bind, binding
+
+Copyright © 1998-2000 by Scriptics Corporation.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/label.htm b/hlp/en/tk/label.htm
new file mode 100644
index 0000000..20dba4a
--- /dev/null
+++ b/hlp/en/tk/label.htm
@@ -0,0 +1,143 @@
+Tk Built-In Commands - label manual page
+
+- NAME
+
- label - Create and manipulate label widgets
+- SYNOPSIS
+
+- label pathName ?options?
+
+- STANDARD OPTIONS
+
+- -activebackground -activeforeground -anchor
+
- -background -bitmap -borderwidth
+
- -cursor -disabledforeground -font
+
- -foreground -highlightbackground -highlightcolor
+
- -highlightthickness -image -justify
+
- -padx -pady -relief
+
- -takefocus -text -textvariable
+
- -underline -wraplength
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -height, height, Height
+
- -state, state, State
+
- -width, width, Width
+
+- DESCRIPTION
+
- WIDGET COMMAND
+
+- pathName cget option
+
- pathName configure ?option? ?value option value ...?
+
+- BINDINGS
+
- KEYWORDS
+
+
+label - Create and manipulate label widgets
+
+label pathName ?options?
+
+
+- -activebackground -activeforeground -anchor
+
- -background -bitmap -borderwidth
+
- -cursor -disabledforeground -font
+
- -foreground -highlightbackground -highlightcolor
+
- -highlightthickness -image -justify
+
- -padx -pady -relief
+
- -takefocus -text -textvariable
+
- -underline -wraplength
+
+
+
+- Command-Line Name: -height
+
- Database Name: height
+
- Database Class: Height
+
- Specifies a desired height for the label.
+If an image or bitmap is being displayed in the label then the value is in
+screen units (i.e. any of the forms acceptable to Tk_GetPixels);
+for text it is in lines of text.
+If this option isn't specified, the label's desired height is computed
+from the size of the image or bitmap or text being displayed in it.
+
- Command-Line Name: -state
+
- Database Name: state
+
- Database Class: State
+
- Specifies one of three states for the label: normal, active,
+or disabled. In normal state the button is displayed using the
+foreground and background options. In active state
+the label is displayed using the activeForeground and
+activeBackground options. In the disabled state the
+disabledForeground and background options determine how
+the button is displayed.
+
- Command-Line Name: -width
+
- Database Name: width
+
- Database Class: Width
+
- Specifies a desired width for the label.
+If an image or bitmap is being displayed in the label then the value is in
+screen units (i.e. any of the forms acceptable to Tk_GetPixels);
+for text it is in characters.
+If this option isn't specified, the label's desired width is computed
+from the size of the image or bitmap or text being displayed in it.
+
+
+The label command creates a new window (given by the
+pathName argument) and makes it into a label widget.
+Additional
+options, described above, may be specified on the command line
+or in the option database
+to configure aspects of the label such as its colors, font,
+text, and initial relief. The label command returns its
+pathName argument. At the time this command is invoked,
+there must not exist a window named pathName, but
+pathName's parent must exist.
+
+A label is a widget that displays a textual string, bitmap or image.
+If text is displayed, it must all be in a single font, but it
+can occupy multiple lines on the screen (if it contains newlines
+or if wrapping occurs because of the wrapLength option) and
+one of the characters may optionally be underlined using the
+underline option.
+The label can be manipulated in a few simple ways, such as
+changing its relief or text, using the commands described below.
+
+
+The label command creates a new Tcl command whose
+name is pathName. This
+command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+Option and the args
+determine the exact behavior of the command. The following
+commands are possible for label widgets:
+
+
+- pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the label
+command.
+
- pathName configure ?option? ?value option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the label
+command.
+
+
+
+When a new label is created, it has no default event bindings:
+labels are not intended to be interactive.
+
+
+label, widget
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/listbox.htm b/hlp/en/tk/listbox.htm
new file mode 100644
index 0000000..3fb76c0
--- /dev/null
+++ b/hlp/en/tk/listbox.htm
@@ -0,0 +1,611 @@
+Tk Built-In Commands - listbox manual page
+
+- NAME
+
- listbox - Create and manipulate listbox widgets
+- SYNOPSIS
+
+- listbox pathName ?options?
+
+- STANDARD OPTIONS
+
+- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -exportselection, exportSelection, ExportSelection
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -height
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -listvar
+
- -relief, relief, Relief
+
- -selectbackground, selectBackground, Foreground
+
- -selectborderwidth, selectBorderWidth, BorderWidth
+
- -selectforeground, selectForeground, Background
+
- -setgrid, setGrid, SetGrid
+
- -takefocus, takeFocus, TakeFocus
+
- -width
+
- -xscrollcommand, xScrollCommand, ScrollCommand
+
- -yscrollcommand, yScrollCommand, ScrollCommand
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -height, height, Height
+
- -listvar, listVariable, Variable
+
- -selectmode, selectMode, SelectMode
+
- -width, width, Width
+
+- DESCRIPTION
+
- INDICES
+
+- number
+
- active
+
- anchor
+
- end
+
- @x,y
+
+- WIDGET COMMAND
+
+- pathName activate index
+
- pathName bbox index
+
- pathName cget option
+
- pathName configure ?option? ?value option value ...?
+
- pathName curselection
+
- pathName delete first ?last?
+
- pathName get first ?last?
+
- pathName index index
+
- pathName insert index ?element element ...?
+
- pathName itemcget index option
+
- pathName itemconfigure index ?option? ?value? ?option value ...?
+
+- -background color
+
- -foreground color
+
- -selectbackground color
+
- -selectforeground color
+
+- pathName nearest y
+
- pathName scan option args
+
+- pathName scan mark x y
+
- pathName scan dragto x y.
+
+- pathName see index
+
- pathName selection option arg
+
+- pathName selection anchor index
+
- pathName selection clear first ?last?
+
- pathName selection includes index
+
- pathName selection set first ?last?
+
+- pathName size
+
- pathName xview args
+
+- pathName xview
+
- pathName xview index
+
- pathName xview moveto fraction
+
- pathName xview scroll number what
+
+- pathName yview ?args?
+
+- pathName yview
+
- pathName yview index
+
- pathName yview moveto fraction
+
- pathName yview scroll number what
+
+
+- DEFAULT BINDINGS
+
+
+- KEYWORDS
+
+
+listbox - Create and manipulate listbox widgets
+
+listbox pathName ?options?
+
+
+- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -exportselection, exportSelection, ExportSelection
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -height
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -listvar
+
- -relief, relief, Relief
+
- -selectbackground, selectBackground, Foreground
+
- -selectborderwidth, selectBorderWidth, BorderWidth
+
- -selectforeground, selectForeground, Background
+
- -setgrid, setGrid, SetGrid
+
- -takefocus, takeFocus, TakeFocus
+
- -width
+
- -xscrollcommand, xScrollCommand, ScrollCommand
+
- -yscrollcommand, yScrollCommand, ScrollCommand
+
+
+
+- Command-Line Name: -height
+
- Database Name: height
+
- Database Class: Height
+
- Specifies the desired height for the window, in lines.
+If zero or less, then the desired height for the window is made just
+large enough to hold all the elements in the listbox.
+
- Command-Line Name: -listvar
+
- Database Name: listVariable
+
- Database Class: Variable
+
- Specifies the name of a variable. The value of the variable is a list
+to be displayed inside the widget; if the variable value changes
+then the widget will automatically update itself to reflect the new value.
+Attempts to assign a bad list value to a variable in use as a listvar
+will cause an error. Attempts to unset a variable in use as a listvar
+will fail but will not generate an error.
+
- Command-Line Name: -selectmode
+
- Database Name: selectMode
+
- Database Class: SelectMode
+
- Specifies one of several styles for manipulating the selection.
+The value of the option may be arbitrary, but the default bindings
+expect it to be either single, browse, multiple,
+or extended; the default value is browse.
+
- Command-Line Name: -width
+
- Database Name: width
+
- Database Class: Width
+
- Specifies the desired width for the window in characters.
+If the font doesn't have a uniform width then the width of the
+character ``0'' is used in translating from character units to
+screen units.
+If zero or less, then the desired width for the window is made just
+large enough to hold all the elements in the listbox.
+
+
+The listbox command creates a new window (given by the
+pathName argument) and makes it into a listbox widget.
+Additional
+options, described above, may be specified on the command line
+or in the option database
+to configure aspects of the listbox such as its colors, font,
+text, and relief. The listbox command returns its
+pathName argument. At the time this command is invoked,
+there must not exist a window named pathName, but
+pathName's parent must exist.
+
+A listbox is a widget that displays a list of strings, one per line.
+When first created, a new listbox has no elements.
+Elements may be added or deleted using widget commands described
+below. In addition, one or more elements may be selected as described
+below.
+If a listbox is exporting its selection (see exportSelection
+option), then it will observe the standard X11 protocols
+for handling the selection.
+Listbox selections are available as type STRING;
+the value of the selection will be the text of the selected elements, with
+newlines separating the elements.
+
+It is not necessary for all the elements to be
+displayed in the listbox window at once; commands described below
+may be used to change the view in the window. Listboxes allow
+scrolling in both directions using the standard xScrollCommand
+and yScrollCommand options.
+They also support scanning, as described below.
+
+
+Many of the widget commands for listboxes take one or more indices
+as arguments.
+An index specifies a particular element of the listbox, in any of
+the following ways:
+
+
+- number
-
+Specifies the element as a numerical index, where 0 corresponds
+to the first element in the listbox.
+
- active
-
+Indicates the element that has the location cursor. This element
+will be displayed with an underline when the listbox has the
+keyboard focus, and it is specified with the activate
+widget command.
+
- anchor
-
+Indicates the anchor point for the selection, which is set with the
+selection anchor widget command.
+
- end
-
+Indicates the end of the listbox.
+For most commands this refers to the last element in the listbox,
+but for a few commands such as index and insert
+it refers to the element just after the last one.
+
- @x,y
-
+Indicates the element that covers the point in the listbox window
+specified by x and y (in pixel coordinates). If no
+element covers that point, then the closest element to that
+point is used.
+
+
+In the widget command descriptions below, arguments named index,
+first, and last always contain text indices in one of
+the above forms.
+
+
+The listbox command creates a new Tcl command whose
+name is pathName. This
+command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+Option and the args
+determine the exact behavior of the command. The following
+commands are possible for listbox widgets:
+
+
+- pathName activate index
-
+Sets the active element to the one indicated by index.
+If index is outside the range of elements in the listbox
+then the closest element is activated.
+The active element is drawn with an underline when the widget
+has the input focus, and its index may be retrieved with the
+index active.
+
- pathName bbox index
-
+Returns a list of four numbers describing the bounding box of
+the text in the element given by index.
+The first two elements of the list give the x and y coordinates
+of the upper-left corner of the screen area covered by the text
+(specified in pixels relative to the widget) and the last two
+elements give the width and height of the area, in pixels.
+If no part of the element given by index is visible on the
+screen,
+or if index refers to a non-existent element,
+then the result is an empty string; if the element is
+partially visible, the result gives the full area of the element,
+including any parts that are not visible.
+
- pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the listbox
+command.
+
- pathName configure ?option? ?value option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the listbox
+command.
+
- pathName curselection
-
+Returns a list containing the numerical indices of
+all of the elements in the listbox that are currently selected.
+If there are no elements selected in the listbox then an empty
+string is returned.
+
- pathName delete first ?last?
-
+Deletes one or more elements of the listbox. First and last
+are indices specifying the first and last elements in the range
+to delete. If last isn't specified it defaults to
+first, i.e. a single element is deleted.
+
- pathName get first ?last?
-
+If last is omitted, returns the contents of the listbox
+element indicated by first,
+or an empty string if first refers to a non-existent element.
+If last is specified, the command returns a list whose elements
+are all of the listbox elements between first and last,
+inclusive.
+Both first and last may have any of the standard
+forms for indices.
+
- pathName index index
-
+Returns the integer index value that corresponds to index.
+If index is end the return value is a count of the number
+of elements in the listbox (not the index of the last element).
+
- pathName insert index ?element element ...?
-
+Inserts zero or more new elements in the list just before the
+element given by index. If index is specified as
+end then the new elements are added to the end of the
+list. Returns an empty string.
+
- pathName itemcget index option
-
+Returns the current value of the item configuration option given
+by option. Option may have any of the values accepted
+by the listbox itemconfigure command.
+
- pathName itemconfigure index ?option? ?value? ?option value ...?
-
+Query or modify the configuration options of an item in the listbox.
+If no option is specified, returns a list describing all of
+the available options for the item (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string. The following options
+are currently supported for items:
+
+
+- -background color
-
+Color specifies the background color to use when displaying the
+item. It may have any of the forms accepted by Tk_GetColor.
+
- -foreground color
-
+Color specifies the foreground color to use when displaying the
+item. It may have any of the forms accepted by Tk_GetColor.
+
- -selectbackground color
-
+color specifies the background color to use when displaying the
+item while it is selected. It may have any of the forms accepted by
+Tk_GetColor.
+
- -selectforeground color
-
+color specifies the foreground color to use when displaying the
+item while it is selected. It may have any of the forms accepted by
+Tk_GetColor.
+
+ - pathName nearest y
-
+Given a y-coordinate within the listbox window, this command returns
+the index of the (visible) listbox element nearest to that y-coordinate.
+
- pathName scan option args
-
+This command is used to implement scanning on listboxes. It has
+two forms, depending on option:
+
+
+- pathName scan mark x y
-
+Records x and y and the current view in the listbox
+window; used in conjunction with later scan dragto commands.
+Typically this command is associated with a mouse button press in
+the widget. It returns an empty string.
+
- pathName scan dragto x y.
-
+This command computes the difference between its x and y
+arguments and the x and y arguments to the last
+scan mark command for the widget.
+It then adjusts the view by 10 times the
+difference in coordinates. This command is typically associated
+with mouse motion events in the widget, to produce the effect of
+dragging the list at high speed through the window. The return
+value is an empty string.
+
+ - pathName see index
-
+Adjust the view in the listbox so that the element given by index
+is visible.
+If the element is already visible then the command has no effect;
+if the element is near one edge of the window then the listbox
+scrolls to bring the element into view at the edge; otherwise
+the listbox scrolls to center the element.
+
- pathName selection option arg
-
+This command is used to adjust the selection within a listbox. It
+has several forms, depending on option:
+
+
+- pathName selection anchor index
-
+Sets the selection anchor to the element given by index.
+If index refers to a non-existent element, then the closest
+element is used.
+The selection anchor is the end of the selection that is fixed
+while dragging out a selection with the mouse.
+The index anchor may be used to refer to the anchor
+element.
+
- pathName selection clear first ?last?
-
+If any of the elements between first and last
+(inclusive) are selected, they are deselected.
+The selection state is not changed for elements outside
+this range.
+
- pathName selection includes index
-
+Returns 1 if the element indicated by index is currently
+selected, 0 if it isn't.
+
- pathName selection set first ?last?
-
+Selects all of the elements in the range between
+first and last, inclusive, without affecting
+the selection state of elements outside that range.
+
+ - pathName size
-
+Returns a decimal string indicating the total number of elements
+in the listbox.
+
- pathName xview args
-
+This command is used to query and change the horizontal position of the
+information in the widget's window. It can take any of the following
+forms:
+
+
+- pathName xview
-
+Returns a list containing two elements.
+Each element is a real fraction between 0 and 1; together they describe
+the horizontal span that is visible in the window.
+For example, if the first element is .2 and the second element is .6,
+20% of the listbox's text is off-screen to the left, the middle 40% is visible
+in the window, and 40% of the text is off-screen to the right.
+These are the same values passed to scrollbars via the -xscrollcommand
+option.
+
- pathName xview index
-
+Adjusts the view in the window so that the character position given by
+index is displayed at the left edge of the window.
+Character positions are defined by the width of the character 0.
+
- pathName xview moveto fraction
-
+Adjusts the view in the window so that fraction of the
+total width of the listbox text is off-screen to the left.
+fraction must be a fraction between 0 and 1.
+
- pathName xview scroll number what
-
+This command shifts the view in the window left or right according to
+number and what.
+Number must be an integer.
+What must be either units or pages or an abbreviation
+of one of these.
+If what is units, the view adjusts left or right by
+number character units (the width of the 0 character)
+on the display; if it is pages then the view adjusts by
+number screenfuls.
+If number is negative then characters farther to the left
+become visible; if it is positive then characters farther to the right
+become visible.
+
+ - pathName yview ?args?
-
+This command is used to query and change the vertical position of the
+text in the widget's window.
+It can take any of the following forms:
+
+
+- pathName yview
-
+Returns a list containing two elements, both of which are real fractions
+between 0 and 1.
+The first element gives the position of the listbox element at the
+top of the window, relative to the listbox as a whole (0.5 means
+it is halfway through the listbox, for example).
+The second element gives the position of the listbox element just after
+the last one in the window, relative to the listbox as a whole.
+These are the same values passed to scrollbars via the -yscrollcommand
+option.
+
- pathName yview index
-
+Adjusts the view in the window so that the element given by
+index is displayed at the top of the window.
+
- pathName yview moveto fraction
-
+Adjusts the view in the window so that the element given by fraction
+appears at the top of the window.
+Fraction is a fraction between 0 and 1; 0 indicates the first
+element in the listbox, 0.33 indicates the element one-third the
+way through the listbox, and so on.
+
- pathName yview scroll number what
-
+This command adjusts the view in the window up or down according to
+number and what.
+Number must be an integer.
+What must be either units or pages.
+If what is units, the view adjusts up or down by
+number lines; if it is pages then
+the view adjusts by number screenfuls.
+If number is negative then earlier elements
+become visible; if it is positive then later elements
+become visible.
+
+
+
+Tk automatically creates class bindings for listboxes that give them
+Motif-like behavior. Much of the behavior of a listbox is determined
+by its selectMode option, which selects one of four ways
+of dealing with the selection.
+
+If the selection mode is single or browse, at most one
+element can be selected in the listbox at once.
+In both modes, clicking button 1 on an element selects
+it and deselects any other selected item.
+In browse mode it is also possible to drag the selection
+with button 1.
+
+If the selection mode is multiple or extended,
+any number of elements may be selected at once, including discontiguous
+ranges. In multiple mode, clicking button 1 on an element
+toggles its selection state without affecting any other elements.
+In extended mode, pressing button 1 on an element selects
+it, deselects everything else, and sets the anchor to the element
+under the mouse; dragging the mouse with button 1
+down extends the selection to include all the elements between
+the anchor and the element under the mouse, inclusive.
+
+Most people will probably want to use browse mode for
+single selections and extended mode for multiple selections;
+the other modes appear to be useful only in special situations.
+
+Any time the selection changes in the listbox, the virtual event
+<<ListboxSelect>> will be generated. It is easiest to bind
+to this event to be made aware of any changes to listbox selection.
+
+In addition to the above behavior, the following additional behavior
+is defined by the default bindings:
+
+
+- [1]
-
+In extended mode, the selected range can be adjusted by pressing
+button 1 with the Shift key down: this modifies the selection to
+consist of the elements between the anchor and the element under
+the mouse, inclusive.
+The un-anchored end of this new selection can also be dragged with
+the button down.
+
- [2]
-
+In extended mode, pressing button 1 with the Control key down
+starts a toggle operation: the anchor is set to the element under
+the mouse, and its selection state is reversed. The selection state
+of other elements isn't changed.
+If the mouse is dragged with button 1 down, then the selection state
+of all elements between the anchor and the element under the mouse
+is set to match that of the anchor element; the selection state of
+all other elements remains what it was before the toggle operation
+began.
+
- [3]
-
+If the mouse leaves the listbox window with button 1 down, the window
+scrolls away from the mouse, making information visible that used
+to be off-screen on the side of the mouse.
+The scrolling continues until the mouse re-enters the window, the
+button is released, or the end of the listbox is reached.
+
- [4]
-
+Mouse button 2 may be used for scanning.
+If it is pressed and dragged over the listbox, the contents of
+the listbox drag at high speed in the direction the mouse moves.
+
- [5]
-
+If the Up or Down key is pressed, the location cursor (active
+element) moves up or down one element.
+If the selection mode is browse or extended then the
+new active element is also selected and all other elements are
+deselected.
+In extended mode the new active element becomes the
+selection anchor.
+
- [6]
-
+In extended mode, Shift-Up and Shift-Down move the location
+cursor (active element) up or down one element and also extend
+the selection to that element in a fashion similar to dragging
+with mouse button 1.
+
- [7]
-
+The Left and Right keys scroll the listbox view left and right
+by the width of the character 0.
+Control-Left and Control-Right scroll the listbox view left and
+right by the width of the window.
+Control-Prior and Control-Next also scroll left and right by
+the width of the window.
+
- [8]
-
+The Prior and Next keys scroll the listbox view up and down
+by one page (the height of the window).
+
- [9]
-
+The Home and End keys scroll the listbox horizontally to
+the left and right edges, respectively.
+
- [10]
-
+Control-Home sets the location cursor to the the first element in
+the listbox, selects that element, and deselects everything else
+in the listbox.
+
- [11]
-
+Control-End sets the location cursor to the the last element in
+the listbox, selects that element, and deselects everything else
+in the listbox.
+
- [12]
-
+In extended mode, Control-Shift-Home extends the selection
+to the first element in the listbox and Control-Shift-End extends
+the selection to the last element.
+
- [13]
-
+In multiple mode, Control-Shift-Home moves the location cursor
+to the first element in the listbox and Control-Shift-End moves
+the location cursor to the last element.
+
- [14]
-
+The space and Select keys make a selection at the location cursor
+(active element) just as if mouse button 1 had been pressed over
+this element.
+
- [15]
-
+In extended mode, Control-Shift-space and Shift-Select
+extend the selection to the active element just as if button 1
+had been pressed with the Shift key down.
+
- [16]
-
+In extended mode, the Escape key cancels the most recent
+selection and restores all the elements in the selected range
+to their previous selection state.
+
- [17]
-
+Control-slash selects everything in the widget, except in
+single and browse modes, in which case it selects
+the active element and deselects everything else.
+
- [18]
-
+Control-backslash deselects everything in the widget, except in
+browse mode where it has no effect.
+
- [19]
-
+The F16 key (labelled Copy on many Sun workstations) or Meta-w
+copies the selection in the widget to the clipboard, if there is
+a selection.
+
+
+
+The behavior of listboxes can be changed by defining new bindings for
+individual widgets or by redefining the class bindings.
+
+
+listbox, widget
+
+Copyright © 1990 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/loadTk.htm b/hlp/en/tk/loadTk.htm
new file mode 100644
index 0000000..3770a9d
--- /dev/null
+++ b/hlp/en/tk/loadTk.htm
@@ -0,0 +1,65 @@
+Tk Tk Built-In Commands - Safe manual page
+
+loadTk - Load Tk into a safe interpreter.
+
+::safe::loadTk slave ?-use windowId? ?-display displayName?
+Safe Tk is based on Safe Tcl, which provides a mechanism
+that allows restricted and mediated
+access to auto-loading and packages for safe interpreters.
+Safe Tk adds the ability to configure the interpreter
+for safe Tk operations and load Tk into safe
+interpreters.
+
+
+The ::safe::loadTk command initializes the required data structures
+in the named safe interpreter and then loads Tk into it.
+The command returns the name of the safe interpreter.
+If -use is specified, the window identified by the specified system
+dependent identifier windowId is used to contain the ``.''
+window of the safe interpreter; it can be any valid id, eventually
+referencing a window belonging to another application. As a convenience,
+if the window you plan to use is a Tk Window of the application you
+can use the window name (eg: .x.y) instead of its window Id
+([winfo id .x.y]).
+When -use is not specified,
+a new toplevel window is created for the ``.'' window of
+the safe interpreter. On X11 if you want the embedded window
+to use another display than the default one, specify it with
+-display.
+See the SECURITY ISSUES section below for implementation details.
+
+
+Please read the safe manual page for Tcl to learn about the basic
+security considerations for Safe Tcl.
+
+::safe::loadTk adds the value of tk_library taken from the master
+interpreter to the virtual access path of the safe interpreter so that
+auto-loading will work in the safe interpreter.
+
+
+Tk initialization is now safe with respect to not trusting
+the slave's state for startup. ::safe::loadTk
+registers the slave's name so
+when the Tk initialization (Tk_SafeInit) is called
+and in turn calls the master's ::safe::InitTk it will
+return the desired argv equivalent (-use
+windowId, correct -display, etc...).
+
+When -use is not used, the new toplevel created is specially
+decorated so the user is always aware that the user interface presented comes
+from a potentially unsafe code and can easily delete the corresponding
+interpreter.
+
+On X11, conflicting -use and -display are likely
+to generate a fatal X error.
+
+
+safe, interp, library, load, package, source, unknown
+
+alias, auto-loading, auto_mkindex, load, master interpreter, safe
+interpreter, slave interpreter, source
+
+Copyright © 1995-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/lower.htm b/hlp/en/tk/lower.htm
new file mode 100644
index 0000000..24df3ea
--- /dev/null
+++ b/hlp/en/tk/lower.htm
@@ -0,0 +1,27 @@
+Tk Built-In Commands - lower manual page
+
+lower - Change a window's position in the stacking order
+
+lower window ?belowThis?
+
+If the belowThis argument is omitted then the command lowers
+window so that it is below all of its siblings in the stacking
+order (it will be obscured by any siblings that overlap it and
+will not obscure any siblings).
+If belowThis is specified then it must be the path name of
+a window that is either a sibling of window or the descendant
+of a sibling of window.
+In this case the lower command will insert
+window into the stacking order just below belowThis
+(or the ancestor of belowThis that is a sibling of window);
+this could end up either raising or lowering window.
+
+
+raise
+
+lower, obscure, stacking order
+
+Copyright © 1990 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/menu.htm b/hlp/en/tk/menu.htm
new file mode 100644
index 0000000..f5b2a67
--- /dev/null
+++ b/hlp/en/tk/menu.htm
@@ -0,0 +1,798 @@
+Tk Built-In Commands - menu manual page
+
+- NAME
+
- menu - Create and manipulate menu widgets
+- SYNOPSIS
+
+- menu pathName ?options?
+
+- STANDARD OPTIONS
+
+- -activebackground, activeBackground, Foreground
+
- -activeborderwidth, activeBorderWidth, BorderWidth
+
- -activeforeground, activeForeground, Background
+
- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -disabledforeground, disabledForeground, DisabledForeground
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -postcommand, postCommand, Command
+
- -selectcolor, selectColor, Background
+
- -tearoff, tearOff, TearOff
+
- -tearoffcommand, tearOffCommand, TearOffCommand
+
- -title, title, Title
+
- -type, type, Type
+
+- INTRODUCTION
+
- COMMAND ENTRIES
+
- SEPARATOR ENTRIES
+
- CHECKBUTTON ENTRIES
+
- RADIOBUTTON ENTRIES
+
- CASCADE ENTRIES
+
- TEAR-OFF ENTRIES
+
- MENUBARS
+
- SPECIAL MENUS IN MENUBARS
+
- CLONES
+
- WIDGET COMMAND
+
+- number
+
- active
+
- end
+
- last
+
- none
+
- @number
+
- pattern
+
+
+- pathName activate index
+
- pathName add type ?option value option value ...?
+
+- -activebackground value
+
- -activeforeground value
+
- -accelerator value
+
- -background value
+
- -bitmap value
+
- -columnbreak value
+
- -command value
+
- -font value
+
- -foreground value
+
- -hidemargin value
+
- -image value
+
- -indicatoron value
+
- -label value
+
- -menu value
+
- -offvalue value
+
- -onvalue value
+
- -selectcolor value
+
- -selectimage value
+
- -state value
+
- -underline value
+
- -value value
+
- -variable value
+
+- pathName cget option
+
- pathName clone newPathname ?cloneType?
+
- pathName configure ?option? ?value option value ...?
+
- pathName delete index1 ?index2?
+
- pathName entrycget index option
+
- pathName entryconfigure index ?options?
+
- pathName index index
+
- pathName insert index type ?option value option value ...?
+
- pathName invoke index
+
- pathName post x y
+
- pathName postcascade index
+
- pathName type index
+
- .VS
+
- pathName yposition index
+
+- MENU CONFIGURATIONS
+
+- Pulldown Menus in Menubar
+
- Pulldown Menus in Menu Buttons
+
- Popup Menus
+
- Option Menus
+
- Torn-off Menus
+
+- DEFAULT BINDINGS
+
+
+- BUGS
+
- KEYWORDS
+
+
+menu - Create and manipulate menu widgets
+
+menu pathName ?options?
+
+
+- -activebackground, activeBackground, Foreground
+
- -activeborderwidth, activeBorderWidth, BorderWidth
+
- -activeforeground, activeForeground, Background
+
- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -disabledforeground, disabledForeground, DisabledForeground
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
+
+
+- Command-Line Name: -postcommand
+
- Database Name: postCommand
+
- Database Class: Command
+
- If this option is specified then it provides a Tcl command to execute
+each time the menu is posted. The command is invoked by the post
+widget command before posting the menu. Note that in 8.0 on Macintosh
+and Windows, all commands in a menu systems are executed before any
+are posted. This is due to the limitations in the individual platforms'
+menu managers.
+
- Command-Line Name: -selectcolor
+
- Database Name: selectColor
+
- Database Class: Background
+
- For menu entries that are check buttons or radio buttons, this option
+specifies the color to display in the indicator when the check button
+or radio button is selected.
+
- Command-Line Name: -tearoff
+
- Database Name: tearOff
+
- Database Class: TearOff
+
- This option must have a proper boolean value, which specifies
+whether or not the menu should include a tear-off entry at the
+top. If so, it will exist as entry 0 of the menu and the other
+entries will number starting at 1. The default
+menu bindings arrange for the menu to be torn off when the tear-off
+entry is invoked.
+
- Command-Line Name: -tearoffcommand
+
- Database Name: tearOffCommand
+
- Database Class: TearOffCommand
+
- If this option has a non-empty value, then it specifies a Tcl command
+to invoke whenever the menu is torn off. The actual command will
+consist of the value of this option, followed by a space, followed
+by the name of the menu window, followed by a space, followed by
+the name of the name of the torn off menu window. For example, if
+the option's is ``a b'' and menu .x.y is torn off to
+create a new menu .x.tearoff1, then the command
+``a b .x.y .x.tearoff1'' will be invoked.
+
- Command-Line Name: -title
+
- Database Name: title
+
- Database Class: Title
+
- The string will be used to title the window created when this menu is
+torn off. If the title is NULL, then the window will have the title
+of the menubutton or the text of the cascade item from which this menu
+was invoked.
+
- Command-Line Name: -type
+
- Database Name: type
+
- Database Class: Type
+
- This option can be one of menubar, tearoff, or
+normal, and is set when the menu is created. While the string
+returned by the configuration database will change if this option is
+changed, this does not affect the menu widget's behavior. This is used
+by the cloning mechanism and is not normally set outside of the Tk
+library.
+
+
+The menu command creates a new top-level window (given
+by the pathName argument) and makes it into a menu widget.
+Additional
+options, described above, may be specified on the command line
+or in the option database
+to configure aspects of the menu such as its colors and font.
+The menu command returns its
+pathName argument. At the time this command is invoked,
+there must not exist a window named pathName, but
+pathName's parent must exist.
+
+A menu is a widget that displays a collection of one-line entries arranged
+in one or more columns. There exist several different types of entries,
+each with different properties. Entries of different types may be
+combined in a single menu. Menu entries are not the same as
+entry widgets. In fact, menu entries are not even distinct widgets;
+the entire menu is one widget.
+
+Menu entries are displayed with up to three separate fields.
+The main field is a label in the form of a text string,
+a bitmap, or an image, controlled by the -label,
+-bitmap, and -image options for the entry.
+If the -accelerator option is specified for an entry then a second
+textual field is displayed to the right of the label. The accelerator
+typically describes a keystroke sequence that may be typed in the
+application to cause the same result as invoking the menu entry.
+The third field is an indicator. The indicator is present only for
+checkbutton or radiobutton entries. It indicates whether the entry
+is selected or not, and is displayed to the left of the entry's
+string.
+
+In normal use, an entry becomes active (displays itself differently)
+whenever the mouse pointer is over the entry. If a mouse
+button is released over the entry then the entry is invoked.
+The effect of invocation is different for each type of entry;
+these effects are described below in the sections on individual
+entries.
+
+Entries may be disabled, which causes their labels
+and accelerators to be displayed
+with dimmer colors.
+The default menu bindings will not allow
+a disabled entry to be activated or invoked.
+Disabled entries may be re-enabled, at which point it becomes
+possible to activate and invoke them again.
+
+Whenever a menu's active entry is changed, a <<MenuSelect>> virtual
+event is send to the menu. The active item can then be queried from
+the menu, and an action can be taken, such as setting
+context-sensitive help text for the entry.
+
+
+The most common kind of menu entry is a command entry, which
+behaves much like a button widget. When a command entry is
+invoked, a Tcl command is executed. The Tcl
+command is specified with the -command option.
+
+
+A separator is an entry that is displayed as a horizontal dividing
+line. A separator may not be activated or invoked, and it has
+no behavior other than its display appearance.
+
+
+A checkbutton menu entry behaves much like a checkbutton widget.
+When it is invoked it toggles back and forth between the selected
+and deselected states. When the entry is selected, a particular
+value is stored in a particular global variable (as determined by
+the -onvalue and -variable options for the entry); when
+the entry is deselected another value (determined by the
+-offvalue option) is stored in the global variable.
+An indicator box is displayed to the left of the label in a checkbutton
+entry. If the entry is selected then the indicator's center is displayed
+in the color given by the -selectcolor option for the entry;
+otherwise the indicator's center is displayed in the background color for
+the menu. If a -command option is specified for a checkbutton
+entry, then its value is evaluated as a Tcl command each time the entry
+is invoked; this happens after toggling the entry's
+selected state.
+
+
+A radiobutton menu entry behaves much like a radiobutton widget.
+Radiobutton entries are organized in groups of which only one
+entry may be selected at a time. Whenever a particular entry
+becomes selected it stores a particular value into a particular
+global variable (as determined by the -value and
+-variable options for the entry). This action
+causes any previously-selected entry in the same group
+to deselect itself.
+Once an entry has become selected, any change to the entry's
+associated variable will cause the entry to deselect itself.
+Grouping of radiobutton entries is determined by their
+associated variables: if two entries have the same associated
+variable then they are in the same group.
+An indicator diamond is displayed to the left of the label in each
+radiobutton entry. If the entry is selected then the indicator's
+center is displayed in the color given by the -selectcolor option
+for the entry;
+otherwise the indicator's center is displayed in the background color for
+the menu. If a -command option is specified for a radiobutton
+entry, then its value is evaluated as a Tcl command each time the entry
+is invoked; this happens after selecting the entry.
+
+
+A cascade entry is one with an associated menu (determined
+by the -menu option). Cascade entries allow the construction
+of cascading menus.
+The postcascade widget command can be used to post and unpost
+the associated menu just next to of the cascade entry.
+The associated menu must be a child of the menu containing
+the cascade entry (this is needed in order for menu traversal to
+work correctly).
+
+A cascade entry posts its associated menu by invoking a
+Tcl command of the form
+
menu post x y
+where menu is the path name of the associated menu, and x
+and y are the root-window coordinates of the upper-right
+corner of the cascade entry.
+On Unix, the lower-level menu is unposted by executing a Tcl command with
+the form
+menu unpost
+where menu is the name of the associated menu.
+On other platforms, the platform's native code takes care of unposting the
+menu.
+
+If a -command option is specified for a cascade entry then it is
+evaluated as a Tcl command whenever the entry is invoked. This is not
+supported on Windows.
+
+
+A tear-off entry appears at the top of the menu if enabled with the
+tearOff option. It is not like other menu entries in that
+it cannot be created with the add widget command and
+cannot be deleted with the delete widget command.
+When a tear-off entry is created it appears as a dashed line at
+the top of the menu. Under the default bindings, invoking the
+tear-off entry causes a torn-off copy to be made of the menu and
+all of its submenus.
+
+
+Any menu can be set as a menubar for a toplevel window (see
+toplevel command for syntax). On the Macintosh, whenever the
+toplevel is in front, this menu's cascade items will appear in the
+menubar across the top of the main monitor. On Windows and Unix, this
+menu's items will be displayed in a menubar accross the top of the
+window. These menus will behave according to the interface guidelines
+of their platforms. For every menu set as a menubar, a clone menu is
+made. See the CLONES section for more information.
+
+As noted, menubars may behave differently on different platforms. One
+example of this concerns the handling of checkbuttons and radiobuttons
+within the menu. While it is permitted to put these menu elements on
+menubars, they may not be drawn with indicators on some platforms, due
+to system restrictions.
+
+
+Certain menus in a menubar will be treated specially. On the Macintosh,
+access to the special Apple and Help menus is provided. On Windows,
+access to the Windows System menu in each window is provided. On X Windows,
+a special right-justified help menu is provided. In all cases, these
+menus must be created with the command name of the menubar menu concatenated
+with the special name. So for a menubar named .menubar, on the Macintosh,
+the special menus would be .menubar.apple and .menubar.help; on Windows,
+the special menu would be .menubar.system; on X Windows, the help
+menu would be .menubar.help.
+
+When Tk sees an Apple menu on the Macintosh, that menu's contents make
+up the first items of the Apple menu on the screen whenever the window
+containing the menubar is in front. The menu is the
+first one that the user sees and has a title which is an Apple logo.
+After all of the Tk-defined items, the menu will have a separator,
+followed by all of the items in the user's Apple Menu Items folder.
+Since the System uses a different menu definition procedure for
+the Apple menu than Tk uses for its menus, and the system APIs do
+not fully support everything Tk tries to do, the menu item will only
+have its text displayed. No font attributes, images, bitmaps, or colors
+will be displayed. In addition, a menu with a tearoff item will have
+the tearoff item displayed as "(TearOff)".
+
+When Tk see a Help menu on the Macintosh, the menu's contents are
+appended to the standard help menu on the right of the user's menubar
+whenever the user's menubar is in front. The first items in the menu
+are provided by Apple. Similar to the Apple Menu, cusomization in this
+menu is limited to what the system provides.
+
+When Tk sees a System menu on Windows, its items are appended to the
+system menu that the menubar is attached to. This menu has an icon
+representing a spacebar, and can be invoked with the mouse or by typing
+Alt+Spacebar. Due to limitations in the Windows API, any font changes,
+colors, images, bitmaps, or tearoff images will not appear in the
+system menu.
+
+When Tk see a Help menu on X Windows, the menu is moved to be last in
+the menubar and is right justified.
+
+
+When a menu is set as a menubar for a toplevel window, or when a menu
+is torn off, a clone of the menu is made. This clone is a menu widget
+in its own right, but it is a child of the original. Changes in the
+configuration of the original are reflected in the
+clone. Additionally, any cascades that are pointed to are also cloned
+so that menu traversal will work right. Clones are destroyed when
+either the tearoff or menubar goes away, or when the original menu is
+destroyed.
+
+
+The menu command creates a new Tcl command whose
+name is pathName. This
+command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+Option and the args
+determine the exact behavior of the command.
+
+Many of the widget commands for a menu take as one argument an
+indicator of which entry of the menu to operate on. These
+indicators are called indexes and may be specified in
+any of the following forms:
+
+
+- number
-
+Specifies the entry numerically, where 0 corresponds
+to the top-most entry of the menu, 1 to the entry below it, and
+so on.
+
- active
-
+Indicates the entry that is currently active. If no entry is
+active then this form is equivalent to none. This form may
+not be abbreviated.
+
- end
-
+Indicates the bottommost entry in the menu. If there are no
+entries in the menu then this form is equivalent to none.
+This form may not be abbreviated.
+
- last
-
+Same as end.
+
- none
-
+Indicates ``no entry at all''; this is used most commonly with
+the activate option to deactivate all the entries in the
+menu. In most cases the specification of none causes
+nothing to happen in the widget command.
+This form may not be abbreviated.
+
- @number
-
+In this form, number is treated as a y-coordinate in the
+menu's window; the entry closest to that y-coordinate is used.
+For example, ``@0'' indicates the top-most entry in the
+window.
+
- pattern
-
+If the index doesn't satisfy one of the above forms then this
+form is used. Pattern is pattern-matched against the label of
+each entry in the menu, in order from the top down, until a
+matching entry is found. The rules of Tcl_StringMatch
+are used.
+
+
+The following widget commands are possible for menu widgets:
+
+
+- pathName activate index
-
+Change the state of the entry indicated by index to active
+and redisplay it using its active colors.
+Any previously-active entry is deactivated. If index
+is specified as none, or if the specified entry is
+disabled, then the menu ends up with no active entry.
+Returns an empty string.
+
- pathName add type ?option value option value ...?
-
+Add a new entry to the bottom of the menu. The new entry's type
+is given by type and must be one of cascade,
+checkbutton, command, radiobutton, or separator,
+or a unique abbreviation of one of the above. If additional arguments
+are present, they specify any of the following options:
+
+
+- -activebackground value
-
+Specifies a background color to use for displaying this entry when it
+is active.
+If this option is specified as an empty string (the default), then the
+activeBackground option for the overall menu is used.
+If the tk_strictMotif variable has been set to request strict
+Motif compliance, then this option is ignored and the -background
+option is used in its place.
+This option is not available for separator or tear-off entries.
+
- -activeforeground value
-
+Specifies a foreground color to use for displaying this entry when it
+is active.
+If this option is specified as an empty string (the default), then the
+activeForeground option for the overall menu is used.
+This option is not available for separator or tear-off entries.
+
- -accelerator value
-
+Specifies a string to display at the right side of the menu entry.
+Normally describes an accelerator keystroke sequence that may be
+typed to invoke the same function as the menu entry. This option
+is not available for separator or tear-off entries.
+
- -background value
-
+Specifies a background color to use for displaying this entry when it
+is in the normal state (neither active nor disabled).
+If this option is specified as an empty string (the default), then the
+background option for the overall menu is used.
+This option is not available for separator or tear-off entries.
+
- -bitmap value
-
+Specifies a bitmap to display in the menu instead of a textual
+label, in any of the forms accepted by Tk_GetBitmap.
+This option overrides the -label option but may be reset
+to an empty string to enable a textual label to be displayed.
+If a -image option has been specified, it overrides
+-bitmap.
+This option is not available for separator or tear-off entries.
+
- -columnbreak value
-
+When this option is zero, the appears below the previous entry. When
+this option is one, the menu appears at the top of a new column in the
+menu.
+
- -command value
-
+Specifies a Tcl command to execute when the menu entry is invoked.
+Not available for separator or tear-off entries.
+
- -font value
-
+Specifies the font to use when drawing the label or accelerator
+string in this entry.
+If this option is specified as an empty string (the default) then
+the font option for the overall menu is used.
+This option is not available for separator or tear-off entries.
+
- -foreground value
-
+Specifies a foreground color to use for displaying this entry when it
+is in the normal state (neither active nor disabled).
+If this option is specified as an empty string (the default), then the
+foreground option for the overall menu is used.
+This option is not available for separator or tear-off entries.
+
- -hidemargin value
-
+Specifies whether the standard margins should be drawn for this menu
+entry. This is useful when creating palette with images in them, i.e.,
+color palettes, pattern palettes, etc. 1 indicates that the margin for
+the entry is hidden; 0 means that the margin is used.
+
- -image value
-
+Specifies an image to display in the menu instead of a text string
+or bitmap
+The image must have been created by some previous invocation of
+image create.
+This option overrides the -label and -bitmap options
+but may be reset to an empty string to enable a textual or
+bitmap label to be displayed.
+This option is not available for separator or tear-off entries.
+
- -indicatoron value
-
+Available only for checkbutton and radiobutton entries.
+Value is a boolean that determines whether or not the
+indicator should be displayed.
+
- -label value
-
+Specifies a string to display as an identifying label in the menu
+entry. Not available for separator or tear-off entries.
+
- -menu value
-
+Available only for cascade entries. Specifies the path name of
+the submenu associated with this entry.
+The submenu must be a child of the menu.
+
- -offvalue value
-
+Available only for checkbutton entries. Specifies the value to
+store in the entry's associated variable when the entry is
+deselected.
+
- -onvalue value
-
+Available only for checkbutton entries. Specifies the value to
+store in the entry's associated variable when the entry is selected.
+
- -selectcolor value
-
+Available only for checkbutton and radiobutton entries.
+Specifies the color to display in the indicator when the entry is
+selected.
+If the value is an empty string (the default) then the selectColor
+option for the menu determines the indicator color.
+
- -selectimage value
-
+Available only for checkbutton and radiobutton entries.
+Specifies an image to display in the entry (in place of
+the -image option) when it is selected.
+Value is the name of an image, which must have been created
+by some previous invocation of image create.
+This option is ignored unless the -image option has
+been specified.
+
- -state value
-
+Specifies one of three states for the entry: normal, active,
+or disabled. In normal state the entry is displayed using the
+foreground option for the menu and the background
+option from the entry or the menu.
+The active state is typically used when the pointer is over the entry.
+In active state the entry is displayed using the activeForeground
+option for the menu along with the activebackground option from
+the entry. Disabled state means that the entry
+should be insensitive: the default bindings will refuse to activate
+or invoke the entry.
+In this state the entry is displayed according to the
+disabledForeground option for the menu and the
+background option from the entry.
+This option is not available for separator entries.
+
- -underline value
-
+Specifies the integer index of a character to underline in the entry.
+This option is also queried by the default bindings and used to
+implement keyboard traversal.
+0 corresponds to the first character of the text displayed in the entry,
+1 to the next character, and so on.
+If a bitmap or image is displayed in the entry then this option is ignored.
+This option is not available for separator or tear-off entries.
+
- -value value
-
+Available only for radiobutton entries. Specifies the value to
+store in the entry's associated variable when the entry is selected.
+If an empty string is specified, then the -label option
+for the entry as the value to store in the variable.
+
- -variable value
-
+Available only for checkbutton and radiobutton entries. Specifies
+the name of a global value to set when the entry is selected.
+For checkbutton entries the variable is also set when the entry
+is deselected. For radiobutton entries, changing the variable
+causes the currently-selected entry to deselect itself.
+
The add widget command returns an empty string.
+
+ - pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the menu
+command.
+
- pathName clone newPathname ?cloneType?
-
+Makes a clone of the current menu named newPathName. This clone
+is a menu in its own right, but any changes to the clone are
+propogated to the original menu and vice versa. cloneType can be
+normal, menubar, or tearoff. Should not normally be
+called outside of the Tk library. See the CLONES section for
+more information.
+
- pathName configure ?option? ?value option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the menu
+command.
+
- pathName delete index1 ?index2?
-
+Delete all of the menu entries between index1 and
+index2 inclusive.
+If index2 is omitted then it defaults to index1.
+Attempts to delete a tear-off menu entry are ignored (instead, you
+should change the tearOff option to remove the tear-off entry).
+
- pathName entrycget index option
-
+Returns the current value of a configuration option for
+the entry given by index.
+Option may have any of the values accepted by the add
+widget command.
+
- pathName entryconfigure index ?options?
-
+This command is similar to the configure command, except that
+it applies to the options for an individual entry, whereas configure
+applies to the options for the menu as a whole.
+Options may have any of the values accepted by the add
+widget command. If options are specified, options are modified
+as indicated
+in the command and the command returns an empty string.
+If no options are specified, returns a list describing
+the current options for entry index (see Tk_ConfigureInfo for
+information on the format of this list).
+
- pathName index index
-
+Returns the numerical index corresponding to index, or
+none if index was specified as none.
+
- pathName insert index type ?option value option value ...?
-
+Same as the add widget command except that it inserts the new
+entry just before the entry given by index, instead of appending
+to the end of the menu. The type, option, and value
+arguments have the same interpretation as for the add widget
+command. It is not possible to insert new menu entries before the
+tear-off entry, if the menu has one.
+
- pathName invoke index
-
+Invoke the action of the menu entry. See the sections on the
+individual entries above for details on what happens. If the
+menu entry is disabled then nothing happens. If the
+entry has a command associated with it then the result of that
+command is returned as the result of the invoke widget
+command. Otherwise the result is an empty string. Note: invoking
+a menu entry does not automatically unpost the menu; the default
+bindings normally take care of this before invoking the invoke
+widget command.
+
- pathName post x y
-
+Arrange for the menu to be displayed on the screen at the root-window
+coordinates given by x and y. These coordinates are
+adjusted if necessary to guarantee that the entire menu is visible on
+the screen. This command normally returns an empty string.
+If the postCommand option has been specified, then its value is
+executed as a Tcl script before posting the menu and the result of
+that script is returned as the result of the post widget
+command.
+If an error returns while executing the command, then the error is
+returned without posting the menu.
+
- pathName postcascade index
-
+Posts the submenu associated with the cascade entry given by
+index, and unposts any previously posted submenu.
+If index doesn't correspond to a cascade entry,
+or if pathName isn't posted,
+the command has no effect except to unpost any currently posted
+submenu.
+
- pathName type index
-
+Returns the type of the menu entry given by index.
+This is the type argument passed to the add widget
+command when the entry was created, such as command
+or separator, or tearoff for a tear-off entry.
+
- .VS
-
+pathName unpost
+Unmap the window so that it is no longer displayed. If a
+lower-level cascaded menu is posted, unpost that menu. Returns an
+empty string. This subcommand does not work on Windows and the
+Macintosh, as those platforms have their own way of unposting menus.
+
- pathName yposition index
-
+Returns a decimal string giving the y-coordinate within the menu
+window of the topmost pixel in the entry specified by index.
+
+
+
+The default bindings support four different ways of using menus:
+
+
+- Pulldown Menus in Menubar
-
+This is the most command case. You create a menu widget that will become the
+menu bar. You then add cascade entries to this menu, specifying the
+pull down menus you wish to use in your menu bar. You then create all
+of the pulldowns. Once you have done this, specify the menu using the
+-menu option of the toplevel's widget command. See the
+toplevel manual entry for details.
+
- Pulldown Menus in Menu Buttons
-
+This is the compatable way to do menu bars. You create one menubutton
+widget for each top-level menu, and typically you arrange a series of
+menubuttons in a row in a menubar window. You also create the top-level menus
+and any cascaded submenus, and tie them together with -menu
+options in menubuttons and cascade menu entries. The top-level menu must
+be a child of the menubutton, and each submenu must be a child of the
+menu that refers to it. Once you have done this, the default bindings
+will allow users to traverse and invoke the tree of menus via its
+menubutton; see the menubutton manual entry for details.
+
- Popup Menus
-
+Popup menus typically post in response to a mouse button press or
+keystroke. You create the popup menus and any cascaded submenus,
+then you call the tk_popup procedure at the appropriate time
+to post the top-level menu.
+
- Option Menus
-
+An option menu consists of a menubutton with an associated menu
+that allows you to select one of several values. The current value
+is displayed in the menubutton and is also stored in a global
+variable. Use the tk_optionMenu procedure to create option
+menubuttons and their menus.
+
- Torn-off Menus
-
+You create a torn-off menu by invoking the tear-off entry at
+the top of an existing menu. The default bindings will create a new menu
+that is a copy of the original menu and leave it permanently
+posted as a top-level window. The torn-off menu behaves just
+the same as the original menu.
+
+
+
+Tk automatically creates class bindings for menus that give them
+the following default behavior:
+
+
+- [1]
-
+When the mouse enters a menu, the entry underneath the mouse
+cursor activates; as the mouse moves around the menu, the active
+entry changes to track the mouse.
+
- [2]
-
+When the mouse leaves a menu all of the entries in the menu
+deactivate, except in the special case where the mouse moves from
+a menu to a cascaded submenu.
+
- [3]
-
+When a button is released over a menu, the active entry (if any) is invoked.
+The menu also unposts unless it is a torn-off menu.
+
- [4]
-
+The Space and Return keys invoke the active entry and
+unpost the menu.
+
- [5]
-
+If any of the entries in a menu have letters underlined with
+with -underline option, then pressing one of the underlined
+letters (or its upper-case or lower-case equivalent) invokes that
+entry and unposts the menu.
+
- [6]
-
+The Escape key aborts a menu selection in progress without invoking any
+entry. It also unposts the menu unless it is a torn-off menu.
+
- [7]
-
+The Up and Down keys activate the next higher or lower entry
+in the menu. When one end of the menu is reached, the active
+entry wraps around to the other end.
+
- [8]
-
+The Left key moves to the next menu to the left.
+If the current menu is a cascaded submenu, then the submenu is
+unposted and the current menu entry becomes the cascade entry
+in the parent.
+If the current menu is a top-level menu posted from a
+menubutton, then the current menubutton is unposted and the
+next menubutton to the left is posted.
+Otherwise the key has no effect.
+The left-right order of menubuttons is determined by their stacking
+order: Tk assumes that the lowest menubutton (which by default
+is the first one created) is on the left.
+
- [9]
-
+The Right key moves to the next menu to the right.
+If the current entry is a cascade entry, then the submenu is
+posted and the current menu entry becomes the first entry
+in the submenu.
+Otherwise, if the current menu was posted from a
+menubutton, then the current menubutton is unposted and the
+next menubutton to the right is posted.
+
+
+Disabled menu entries are non-responsive: they don't activate and
+they ignore mouse button presses and releases.
+
+The behavior of menus can be changed by defining new bindings for
+individual widgets or by redefining the class bindings.
+
+
+At present it isn't possible to use the
+option database to specify values for the options to individual
+entries.
+
+
+menu, widget
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/menubutton.htm b/hlp/en/tk/menubutton.htm
new file mode 100644
index 0000000..8b8175e
--- /dev/null
+++ b/hlp/en/tk/menubutton.htm
@@ -0,0 +1,266 @@
+Tk Built-In Commands - menubutton manual page
+
+- NAME
+
- menubutton - Create and manipulate menubutton widgets
+- SYNOPSIS
+
+- menubutton pathName ?options?
+
+- STANDARD OPTIONS
+
+- -activebackground, activeBackground, Foreground
+
- -activeforeground, activeForeground, Background
+
- -anchor, anchor, Anchor
+
- -background or -bg, background, Background
+
- -bitmap, bitmap, Bitmap
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -disabledforeground, disabledForeground, DisabledForeground
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -image, image, Image
+
- -justify, justify, Justify
+
- -padx, padX, Pad
+
- -pady, padY, Pad
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
- -text, text, Text
+
- -textvariable, textVariable, Variable
+
- -underline, underline, Underline
+
- -wraplength, wrapLength, WrapLength
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -direction, direction, Height
+
- -height, height, Height
+
- -indicatoron, indicatorOn, IndicatorOn
+
- -menu, menu, MenuName
+
- -state, state, State
+
- -width, width, Width
+
+- INTRODUCTION
+
- WIDGET COMMAND
+
+- pathName cget option
+
- pathName configure ?option? ?value option value ...?
+
+- DEFAULT BINDINGS
+
+
+- KEYWORDS
+
+
+menubutton - Create and manipulate menubutton widgets
+
+menubutton pathName ?options?
+
+
+- -activebackground, activeBackground, Foreground
+
- -activeforeground, activeForeground, Background
+
- -anchor, anchor, Anchor
+
- -background or -bg, background, Background
+
- -bitmap, bitmap, Bitmap
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -disabledforeground, disabledForeground, DisabledForeground
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -image, image, Image
+
- -justify, justify, Justify
+
- -padx, padX, Pad
+
- -pady, padY, Pad
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
- -text, text, Text
+
- -textvariable, textVariable, Variable
+
- -underline, underline, Underline
+
- -wraplength, wrapLength, WrapLength
+
+
+
+- Command-Line Name: -direction
+
- Database Name: direction
+
- Database Class: Height
+
- Specifies where the menu is going to be popup up. above tries to
+pop the menu above the menubutton. below tries to pop the menu
+below the menubutton. left tries to pop the menu to the left of
+the menubutton. right tries to pop the menu to the right of the
+menu button. flush pops the menu directly over the menubutton.
+
- Command-Line Name: -height
+
- Database Name: height
+
- Database Class: Height
+
- Specifies a desired height for the menubutton.
+If an image or bitmap is being displayed in the menubutton then the value is in
+screen units (i.e. any of the forms acceptable to Tk_GetPixels);
+for text it is in lines of text.
+If this option isn't specified, the menubutton's desired height is computed
+from the size of the image or bitmap or text being displayed in it.
+
- Command-Line Name: -indicatoron
+
- Database Name: indicatorOn
+
- Database Class: IndicatorOn
+
- The value must be a proper boolean value. If it is true then
+a small indicator rectangle will be displayed on the right side
+of the menubutton and the default menu bindings will treat this
+as an option menubutton. If false then no indicator will be
+displayed.
+
- Command-Line Name: -menu
+
- Database Name: menu
+
- Database Class: MenuName
+
- Specifies the path name of the menu associated with this menubutton.
+The menu must be a child of the menubutton.
+
- Command-Line Name: -state
+
- Database Name: state
+
- Database Class: State
+
- Specifies one of three states for the menubutton: normal, active,
+or disabled. In normal state the menubutton is displayed using the
+foreground and background options. The active state is
+typically used when the pointer is over the menubutton. In active state
+the menubutton is displayed using the activeForeground and
+activeBackground options. Disabled state means that the menubutton
+should be insensitive: the default bindings will refuse to activate
+the widget and will ignore mouse button presses.
+In this state the disabledForeground and
+background options determine how the button is displayed.
+
- Command-Line Name: -width
+
- Database Name: width
+
- Database Class: Width
+
- Specifies a desired width for the menubutton.
+If an image or bitmap is being displayed in the menubutton then the value is in
+screen units (i.e. any of the forms acceptable to Tk_GetPixels);
+for text it is in characters.
+If this option isn't specified, the menubutton's desired width is computed
+from the size of the image or bitmap or text being displayed in it.
+
+
+The menubutton command creates a new window (given by the
+pathName argument) and makes it into a menubutton widget.
+Additional
+options, described above, may be specified on the command line
+or in the option database
+to configure aspects of the menubutton such as its colors, font,
+text, and initial relief. The menubutton command returns its
+pathName argument. At the time this command is invoked,
+there must not exist a window named pathName, but
+pathName's parent must exist.
+
+A menubutton is a widget that displays a textual string, bitmap, or image
+and is associated with a menu widget.
+If text is displayed, it must all be in a single font, but it
+can occupy multiple lines on the screen (if it contains newlines
+or if wrapping occurs because of the wrapLength option) and
+one of the characters may optionally be underlined using the
+underline option. In normal usage, pressing
+mouse button 1 over the menubutton causes the associated menu to
+be posted just underneath the menubutton. If the mouse is moved over
+the menu before releasing the mouse button, the button release
+causes the underlying menu entry to be invoked. When the button
+is released, the menu is unposted.
+
+Menubuttons are typically organized into groups called menu bars
+that allow scanning:
+if the mouse button is pressed over one menubutton (causing it
+to post its menu) and the mouse is moved over another menubutton
+in the same menu bar without releasing the mouse button, then the
+menu of the first menubutton is unposted and the menu of the
+new menubutton is posted instead.
+
+There are several interactions between menubuttons and menus; see
+the menu manual entry for information on various menu configurations,
+such as pulldown menus and option menus.
+
+
+The menubutton command creates a new Tcl command whose
+name is pathName. This
+command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+Option and the args
+determine the exact behavior of the command. The following
+commands are possible for menubutton widgets:
+
+
+- pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the menubutton
+command.
+
- pathName configure ?option? ?value option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the menubutton
+command.
+
+
+
+Tk automatically creates class bindings for menubuttons that give them
+the following default behavior:
+
+
+- [1]
-
+A menubutton activates whenever the mouse passes over it and deactivates
+whenever the mouse leaves it.
+
- [2]
-
+Pressing mouse button 1 over a menubutton posts the menubutton:
+its relief changes to raised and its associated menu is posted
+under the menubutton. If the mouse is dragged down into the menu
+with the button still down, and if the mouse button is then
+released over an entry in the menu, the menubutton is unposted
+and the menu entry is invoked.
+
- [3]
-
+If button 1 is pressed over a menubutton and then released over that
+menubutton, the menubutton stays posted: you can still move the mouse
+over the menu and click button 1 on an entry to invoke it.
+Once a menu entry has been invoked, the menubutton unposts itself.
+
- [4]
-
+If button 1 is pressed over a menubutton and then dragged over some
+other menubutton, the original menubutton unposts itself and the
+new menubutton posts.
+
- [5]
-
+If button 1 is pressed over a menubutton and released outside
+any menubutton or menu, the menubutton unposts without invoking
+any menu entry.
+
- [6]
-
+When a menubutton is posted, its associated menu claims the input
+focus to allow keyboard traversal of the menu and its submenus.
+See the menu manual entry for details on these bindings.
+
- [7]
-
+If the underline option has been specified for a menubutton
+then keyboard traversal may be used to post the menubutton:
+Alt+x, where x is the underlined character (or its
+lower-case or upper-case equivalent), may be typed in any window
+under the menubutton's toplevel to post the menubutton.
+
- [8]
-
+The F10 key may be typed in any window to post the first menubutton
+under its toplevel window that isn't disabled.
+
- [9]
-
+If a menubutton has the input focus, the space and return keys
+post the menubutton.
+
+
+If the menubutton's state is disabled then none of the above
+actions occur: the menubutton is completely non-responsive.
+
+The behavior of menubuttons can be changed by defining new bindings for
+individual widgets or by redefining the class bindings.
+
+
+menubutton, widget
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/message.htm b/hlp/en/tk/message.htm
new file mode 100644
index 0000000..10b799b
--- /dev/null
+++ b/hlp/en/tk/message.htm
@@ -0,0 +1,196 @@
+Tk Built-In Commands - message manual page
+
+- NAME
+
- message - Create and manipulate message widgets
+- SYNOPSIS
+
+- message pathName ?options?
+
+- STANDARD OPTIONS
+
+- -anchor, anchor, Anchor
+
- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -padx, padX, Pad
+
- -pady, padY, Pad
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
- -text, text, Text
+
- -textvariable, textVariable, Variable
+
- -width
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -aspect, aspect, Aspect
+
- -justify, justify, Justify
+
- -width, width, Width
+
+- DESCRIPTION
+
- WIDGET COMMAND
+
+- pathName cget option
+
- pathName configure ?option? ?value option value ...?
+
+- DEFAULT BINDINGS
+
- BUGS
+
- KEYWORDS
+
+
+message - Create and manipulate message widgets
+
+message pathName ?options?
+
+
+- -anchor, anchor, Anchor
+
- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -padx, padX, Pad
+
- -pady, padY, Pad
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
- -text, text, Text
+
- -textvariable, textVariable, Variable
+
- -width
+
+
+
+- Command-Line Name: -aspect
+
- Database Name: aspect
+
- Database Class: Aspect
+
- Specifies a non-negative integer value indicating desired
+aspect ratio for the text. The aspect ratio is specified as
+100*width/height. 100 means the text should
+be as wide as it is tall, 200 means the text should
+be twice as wide as it is tall, 50 means the text should
+be twice as tall as it is wide, and so on.
+Used to choose line length for text if width option
+isn't specified.
+Defaults to 150.
+
- Command-Line Name: -justify
+
- Database Name: justify
+
- Database Class: Justify
+
- Specifies how to justify lines of text.
+Must be one of left, center, or right. Defaults
+to left.
+This option works together with the anchor, aspect,
+padX, padY, and width options to provide a variety
+of arrangements of the text within the window.
+The aspect and width options determine the amount of
+screen space needed to display the text.
+The anchor, padX, and padY options determine where this
+rectangular area is displayed within the widget's window, and the
+justify option determines how each line is displayed within that
+rectangular region.
+For example, suppose anchor is e and justify is
+left, and that the message window is much larger than needed
+for the text.
+The the text will displayed so that the left edges of all the lines
+line up and the right edge of the longest line is padX from
+the right side of the window; the entire text block will be centered
+in the vertical span of the window.
+
- Command-Line Name: -width
+
- Database Name: width
+
- Database Class: Width
+
- Specifies the length of lines in the window.
+The value may have any of the forms acceptable to Tk_GetPixels.
+If this option has a value greater than zero then the aspect
+option is ignored and the width option determines the line
+length.
+If this option has a value less than or equal to zero, then
+the aspect option determines the line length.
+
+
+The message command creates a new window (given by the
+pathName argument) and makes it into a message widget.
+Additional
+options, described above, may be specified on the command line
+or in the option database
+to configure aspects of the message such as its colors, font,
+text, and initial relief. The message command returns its
+pathName argument. At the time this command is invoked,
+there must not exist a window named pathName, but
+pathName's parent must exist.
+
+A message is a widget that displays a textual string. A message
+widget has three special features. First, it breaks up
+its string into lines in order to produce a given aspect ratio
+for the window. The line breaks are chosen at word boundaries
+wherever possible (if not even a single word would fit on a
+line, then the word will be split across lines). Newline characters
+in the string will force line breaks; they can be used, for example,
+to leave blank lines in the display.
+
+The second feature of a message widget is justification. The text
+may be displayed left-justified (each line starts at the left side of
+the window), centered on a line-by-line basis, or right-justified
+(each line ends at the right side of the window).
+
+The third feature of a message widget is that it handles control
+characters and non-printing characters specially. Tab characters
+are replaced with enough blank space to line up on the next
+8-character boundary. Newlines cause line breaks. Other control
+characters (ASCII code less than 0x20) and characters not defined
+in the font are displayed as a four-character sequence \xhh where
+hh is the two-digit hexadecimal number corresponding to
+the character. In the unusual case where the font doesn't contain
+all of the characters in ``0123456789abcdef\x'' then control
+characters and undefined characters are not displayed at all.
+
+
+The message command creates a new Tcl command whose
+name is pathName. This
+command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+Option and the args
+determine the exact behavior of the command. The following
+commands are possible for message widgets:
+
+
+- pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the message
+command.
+
- pathName configure ?option? ?value option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the message
+command.
+
+
+
+When a new message is created, it has no default event bindings:
+messages are intended for output purposes only.
+
+
+Tabs don't work very well with text that is centered or right-justified.
+The most common result is that the line is justified wrong.
+
+
+message, widget
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/messageBox.htm b/hlp/en/tk/messageBox.htm
new file mode 100644
index 0000000..f253b02
--- /dev/null
+++ b/hlp/en/tk/messageBox.htm
@@ -0,0 +1,95 @@
+Tk Built-In Commands - tk_messageBox manual page
+
+- NAME
+
- tk_messageBox - pops up a message window and waits for user response.
+- SYNOPSIS
+
+- tk_messageBox ?option value ...?
+
+- DESCRIPTION
+
+- -default name
+
- -icon iconImage
+
- -message string
+
- -parent window
+
- -title titleString
+
- -type predefinedType
+
+- abortretryignore
+
- ok
+
- okcancel
+
- retrycancel
+
- yesno
+
- yesnocancel
+
+
+- EXAMPLE
+
- KEYWORDS
+
+
+tk_messageBox - pops up a message window and waits for user response.
+
+tk_messageBox ?option value ...?
+
+This procedure creates and displays a message window with an
+application-specified message, an icon and a set of buttons. Each of
+the buttons in the message window is identified by a unique symbolic
+name (see the -type options). After the message window is
+popped up, tk_messageBox waits for the user to select one of the
+buttons. Then it returns the symbolic name of the selected button.
+
+The following option-value pairs are supported:
+
+
+- -default name
-
+Name gives the symbolic name of the default button for
+this message window ('ok', 'cancel', and so on). See -type
+for a list of the symbolic names. If this option is not specified,
+the first button in the dialog will be made the default.
+
- -icon iconImage
-
+Specifies an icon to display. IconImage must be one of the
+following: error, info, question or
+warning. If this option is not specified, then the info icon will be
+displayed.
+
- -message string
-
+Specifies the message to display in this message box.
+
- -parent window
-
+Makes window the logical parent of the message box. The message
+box is displayed on top of its parent window.
+
- -title titleString
-
+Specifies a string to display as the title of the message box. The
+default value is an empty string.
+
- -type predefinedType
-
+Arranges for a predefined set of buttons to be displayed. The
+following values are possible for predefinedType:
+
+
+- abortretryignore
-
+Displays three buttons whose symbolic names are abort,
+retry and ignore.
+
- ok
-
+Displays one button whose symbolic name is ok.
+
- okcancel
-
+Displays two buttons whose symbolic names are ok and cancel.
+
- retrycancel
-
+Displays two buttons whose symbolic names are retry and cancel.
+
- yesno
-
+Displays two buttons whose symbolic names are yes and no.
+
- yesnocancel
-
+Displays three buttons whose symbolic names are yes, no
+and cancel.
+
+
+
+
+set answer [tk_messageBox -message "Really quit?" -type yesno -icon question]
+switch -- $answer {
+ yes exit
+ no {tk_messageBox -message "I know you like this application!" -type ok}
+}
+
+message box
+
+Copyright © 1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/option.htm b/hlp/en/tk/option.htm
new file mode 100644
index 0000000..50984c7
--- /dev/null
+++ b/hlp/en/tk/option.htm
@@ -0,0 +1,96 @@
+Built-In Commands - option manual page
+
+- NAME
+
- option - Add/retrieve window options to/from the option database
+- SYNOPSIS
+
+- option add pattern value ?priority?
+
- option clear
+
- option get window name class
+
- option readfile fileName ?priority?
+
+- DESCRIPTION
+
+- widgetDefault
+
- startupFile
+
- userDefault
+
- interactive
+
+- KEYWORDS
+
+
+option - Add/retrieve window options to/from the option database
+
+option add pattern value ?priority?
+option clear
+option get window name class
+option readfile fileName ?priority?
+
+The option command allows you to add entries to the Tk option
+database or to retrieve options from the database. The add
+form of the command adds a new option to the database.
+Pattern contains
+the option being specified, and consists of names and/or classes
+separated by asterisks or dots, in the usual X format. Value
+contains a text string to associate with pattern; this is the
+value that will be returned in calls to Tk_GetOption or by
+invocations of the option get command. If priority
+is specified, it indicates the priority level for this option (see
+below for legal values); it defaults to interactive.
+This command always returns an empty string.
+
+The option clear command clears the option database. Default
+options (from the
+RESOURCE_MANAGER property or the .Xdefaults
+file) will be reloaded automatically the next time an
+option is added to the database or removed from it. This command
+always returns an empty string.
+
+The option get command returns the value of the option
+specified for window
+under name and class. If several entries in the option
+database match window, name, and class, then
+the command returns whichever was created with highest
+priority level. If there are several matching
+entries at the same priority level, then it returns whichever entry
+was most recently entered into the option database. If there are
+no matching entries, then the empty string is returned.
+
+The readfile form of the command reads fileName,
+which should have the standard format for an
+X resource database such as .Xdefaults, and adds all the
+options specified in that file to the option database. If priority
+is specified, it indicates the priority level at which to enter the
+options; priority defaults to interactive.
+
+The priority arguments to the option command are
+normally specified symbolically using one of the following values:
+
+
+- widgetDefault
-
+Level 20. Used for default values hard-coded into widgets.
+
- startupFile
-
+Level 40. Used for options specified in application-specific
+startup files.
+
- userDefault
-
+Level 60. Used for options specified in user-specific defaults
+files, such as .Xdefaults, resource databases loaded into
+the X server, or user-specific startup files.
+
- interactive
-
+Level 80. Used for options specified interactively after the application
+starts running. If priority isn't specified, it defaults to
+this level.
+
+
+Any of the above keywords may be abbreviated. In addition, priorities
+may be specified numerically using integers between 0 and 100,
+inclusive. The numeric form is probably a bad idea except for new priority
+levels other than the ones given above.
+
+
+database, option, priority, retrieve
+
+Copyright © 1990 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/optionMenu.htm b/hlp/en/tk/optionMenu.htm
new file mode 100644
index 0000000..be8641c
--- /dev/null
+++ b/hlp/en/tk/optionMenu.htm
@@ -0,0 +1,30 @@
+Tk Built-In Commands - tk_optionMenu manual page
+
+tk_optionMenu - Create an option menubutton and its menu
+
+tk_optionMenu w varName value ?value value ...?
+
+This procedure creates an option menubutton whose name is w,
+plus an associated menu.
+Together they allow the user to select one of the values
+given by the value arguments.
+The current value will be stored in the global variable whose
+name is given by varName and it will also be displayed as the label
+in the option menubutton.
+The user can click on the menubutton to display a menu containing
+all of the values and thereby select a new value.
+Once a new value is selected, it will be stored in the variable
+and appear in the option menubutton.
+The current value can also be changed by setting the variable.
+
+The return value from tk_optionMenu is the name of the menu
+associated with w, so that the caller can change its configuration
+options or manipulate it in other ways.
+
+
+option menu
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/options.htm b/hlp/en/tk/options.htm
new file mode 100644
index 0000000..46f993a
--- /dev/null
+++ b/hlp/en/tk/options.htm
@@ -0,0 +1,453 @@
+Tk Built-In Commands - options manual page
+
+- NAME
+
- options - Standard options supported by widgets
+- DESCRIPTION
+
+- -activebackground, activeBackground, Foreground
+
- -activeborderwidth, activeBorderWidth, BorderWidth
+
- -activeforeground, activeForeground, Background
+
- -anchor, anchor, Anchor
+
- -background or -bg, background, Background
+
- -bitmap, bitmap, Bitmap
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -disabledforeground, disabledForeground, DisabledForeground
+
- -exportselection, exportSelection, ExportSelection
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -image, image, Image
+
- -insertbackground, insertBackground, Foreground
+
- -insertborderwidth, insertBorderWidth, BorderWidth
+
- -insertofftime, insertOffTime, OffTime
+
- -insertontime, insertOnTime, OnTime
+
- -insertwidth, insertWidth, InsertWidth
+
- -jump, jump, Jump
+
- -justify, justify, Justify
+
- -orient, orient, Orient
+
- -padx, padX, Pad
+
- -pady, padY, Pad
+
- -relief, relief, Relief
+
- -repeatdelay, repeatDelay, RepeatDelay
+
- -repeatinterval, repeatInterval, RepeatInterval
+
- -selectbackground, selectBackground, Foreground
+
- -selectborderwidth, selectBorderWidth, BorderWidth
+
- -selectforeground, selectForeground, Background
+
- -setgrid, setGrid, SetGrid
+
- -takefocus, takeFocus, TakeFocus
+
- -text, text, Text
+
- -textvariable, textVariable, Variable
+
- -troughcolor, troughColor, Background
+
- -underline, underline, Underline
+
- -wraplength, wrapLength, WrapLength
+
- -xscrollcommand, xScrollCommand, ScrollCommand
+
- -yscrollcommand, yScrollCommand, ScrollCommand
+
+- SEE ALSO
+
- KEYWORDS
+
+
+options - Standard options supported by widgets
+
+This manual entry describes the common configuration options supported
+by widgets in the Tk toolkit. Every widget does not necessarily support
+every option (see the manual entries for individual widgets for a list
+of the standard options supported by that widget), but if a widget does
+support an option with one of the names listed below, then the option
+has exactly the effect described below.
+
+In the descriptions below, ``Command-Line Name'' refers to the
+switch used in class commands and configure widget commands to
+set this value. For example, if an option's command-line switch is
+-foreground and there exists a widget .a.b.c, then the
+command
+
.a.b.c configure -foreground black
+may be used to specify the value black for the option in the
+the widget .a.b.c. Command-line switches may be abbreviated,
+as long as the abbreviation is unambiguous.
+``Database Name'' refers to the option's name in the option database (e.g.
+in .Xdefaults files). ``Database Class'' refers to the option's class value
+in the option database.
+
+- Command-Line Name: -activebackground
+
- Database Name: activeBackground
+
- Database Class: Foreground
+
- Specifies background color to use when drawing active elements.
+An element (a widget or portion of a widget) is active if the
+mouse cursor is positioned over the element and pressing a mouse button
+will cause some action to occur.
+If strict Motif compliance has been requested by setting the
+tk_strictMotif variable, this option will normally be
+ignored; the normal background color will be used instead.
+For some elements on Windows and Macintosh systems, the active color
+will only be used while mouse button 1 is pressed over the element.
+
- Command-Line Name: -activeborderwidth
+
- Database Name: activeBorderWidth
+
- Database Class: BorderWidth
+
- Specifies a non-negative value indicating
+the width of the 3-D border drawn around active elements. See above for
+definition of active elements.
+The value may have any of the forms acceptable to Tk_GetPixels.
+This option is typically only available in widgets displaying more
+than one element at a time (e.g. menus but not buttons).
+
- Command-Line Name: -activeforeground
+
- Database Name: activeForeground
+
- Database Class: Background
+
- Specifies foreground color to use when drawing active elements.
+See above for definition of active elements.
+
- Command-Line Name: -anchor
+
- Database Name: anchor
+
- Database Class: Anchor
+
- Specifies how the information in a widget (e.g. text or a bitmap)
+is to be displayed in the widget.
+Must be one of the values n, ne, e, se,
+s, sw, w, nw, or center.
+For example, nw means display the information such that its
+top-left corner is at the top-left corner of the widget.
+
- Command-Line Name: -background or -bg
+
- Database Name: background
+
- Database Class: Background
+
- Specifies the normal background color to use when displaying the
+widget.
+
- Command-Line Name: -bitmap
+
- Database Name: bitmap
+
- Database Class: Bitmap
+
- Specifies a bitmap to display in the widget, in any of the forms
+acceptable to Tk_GetBitmap.
+The exact way in which the bitmap is displayed may be affected by
+other options such as anchor or justify.
+Typically, if this option is specified then it overrides other
+options that specify a textual value to display in the widget;
+the bitmap option may be reset to an empty string to re-enable
+a text display.
+In widgets that support both bitmap and image options,
+image will usually override bitmap.
+
- Command-Line Name: -borderwidth or -bd
+
- Database Name: borderWidth
+
- Database Class: BorderWidth
+
- Specifies a non-negative value indicating the width
+of the 3-D border to draw around the outside of the widget (if such a
+border is being drawn; the relief option typically determines
+this). The value may also be used when drawing 3-D effects in the
+interior of the widget.
+The value may have any of the forms acceptable to Tk_GetPixels.
+
- Command-Line Name: -cursor
+
- Database Name: cursor
+
- Database Class: Cursor
+
- Specifies the mouse cursor to be used for the widget.
+The value may have any of the forms acceptable to Tk_GetCursor.
+
- Command-Line Name: -disabledforeground
+
- Database Name: disabledForeground
+
- Database Class: DisabledForeground
+
- Specifies foreground color to use when drawing a disabled element.
+If the option is specified as an empty string (which is typically the
+case on monochrome displays), disabled elements are drawn with the
+normal foreground color but they are dimmed by drawing them
+with a stippled fill pattern.
+
- Command-Line Name: -exportselection
+
- Database Name: exportSelection
+
- Database Class: ExportSelection
+
- Specifies whether or not a selection in the widget should also be
+the X selection.
+The value may have any of the forms accepted by Tcl_GetBoolean,
+such as true, false, 0, 1, yes, or no.
+If the selection is exported, then selecting in the widget deselects
+the current X selection, selecting outside the widget deselects any
+widget selection, and the widget will respond to selection retrieval
+requests when it has a selection. The default is usually for widgets
+to export selections.
+
- Command-Line Name: -font
+
- Database Name: font
+
- Database Class: Font
+
- Specifies the font to use when drawing text inside the widget.
+The value may have any of the forms accepted by Tk_GetFont.
+
- Command-Line Name: -foreground or -fg
+
- Database Name: foreground
+
- Database Class: Foreground
+
- Specifies the normal foreground color to use when displaying the widget.
+
- Command-Line Name: -highlightbackground
+
- Database Name: highlightBackground
+
- Database Class: HighlightBackground
+
- Specifies the color to display in the traversal highlight region when
+the widget does not have the input focus.
+
- Command-Line Name: -highlightcolor
+
- Database Name: highlightColor
+
- Database Class: HighlightColor
+
- Specifies the color to use for the traversal highlight rectangle that is
+drawn around the widget when it has the input focus.
+
- Command-Line Name: -highlightthickness
+
- Database Name: highlightThickness
+
- Database Class: HighlightThickness
+
- Specifies a non-negative value indicating the width of the highlight
+rectangle to draw around the outside of the widget when it has the
+input focus.
+The value may have any of the forms acceptable to Tk_GetPixels.
+If the value is zero, no focus highlight is drawn around the widget.
+
- Command-Line Name: -image
+
- Database Name: image
+
- Database Class: Image
+
- Specifies an image to display in the widget, which must have been
+created with the image create command.
+Typically, if the image option is specified then it overrides other
+options that specify a bitmap or textual value to display in the widget;
+the image option may be reset to an empty string to re-enable
+a bitmap or text display.
+
- Command-Line Name: -insertbackground
+
- Database Name: insertBackground
+
- Database Class: Foreground
+
- Specifies the color to use as background in the area covered by the
+insertion cursor. This color will normally override either the normal
+background for the widget (or the selection background if the insertion
+cursor happens to fall in the selection).
+
- Command-Line Name: -insertborderwidth
+
- Database Name: insertBorderWidth
+
- Database Class: BorderWidth
+
- Specifies a non-negative value indicating the width
+of the 3-D border to draw around the insertion cursor.
+The value may have any of the forms acceptable to Tk_GetPixels.
+
- Command-Line Name: -insertofftime
+
- Database Name: insertOffTime
+
- Database Class: OffTime
+
- Specifies a non-negative integer value indicating the number of
+milliseconds the insertion cursor should remain ``off'' in each blink cycle.
+If this option is zero then the cursor doesn't blink: it is on
+all the time.
+
- Command-Line Name: -insertontime
+
- Database Name: insertOnTime
+
- Database Class: OnTime
+
- Specifies a non-negative integer value indicating the number of
+milliseconds the insertion cursor should remain ``on'' in each blink cycle.
+
- Command-Line Name: -insertwidth
+
- Database Name: insertWidth
+
- Database Class: InsertWidth
+
- Specifies a value indicating the total width of the insertion cursor.
+The value may have any of the forms acceptable to Tk_GetPixels.
+If a border has been specified for the insertion
+cursor (using the insertBorderWidth option), the border
+will be drawn inside the width specified by the insertWidth
+option.
+
- Command-Line Name: -jump
+
- Database Name: jump
+
- Database Class: Jump
+
- For widgets with a slider that can be dragged to adjust a value,
+such as scrollbars, this option determines when
+notifications are made about changes in the value.
+The option's value must be a boolean of the form accepted by
+Tcl_GetBoolean.
+If the value is false, updates are made continuously as the
+slider is dragged.
+If the value is true, updates are delayed until the mouse button
+is released to end the drag; at that point a single notification
+is made (the value ``jumps'' rather than changing smoothly).
+
- Command-Line Name: -justify
+
- Database Name: justify
+
- Database Class: Justify
+
- When there are multiple lines of text displayed in a widget, this
+option determines how the lines line up with each other.
+Must be one of left, center, or right.
+Left means that the lines' left edges all line up, center
+means that the lines' centers are aligned, and right means
+that the lines' right edges line up.
+
- Command-Line Name: -orient
+
- Database Name: orient
+
- Database Class: Orient
+
- For widgets that can lay themselves out with either a horizontal
+or vertical orientation, such as scrollbars, this option specifies
+which orientation should be used. Must be either horizontal
+or vertical or an abbreviation of one of these.
+
- Command-Line Name: -padx
+
- Database Name: padX
+
- Database Class: Pad
+
- Specifies a non-negative value indicating how much extra space
+to request for the widget in the X-direction.
+The value may have any of the forms acceptable to Tk_GetPixels.
+When computing how large a window it needs, the widget will
+add this amount to the width it would normally need (as determined
+by the width of the things displayed in the widget); if the geometry
+manager can satisfy this request, the widget will end up with extra
+internal space to the left and/or right of what it displays inside.
+Most widgets only use this option for padding text: if they are
+displaying a bitmap or image, then they usually ignore padding
+options.
+
- Command-Line Name: -pady
+
- Database Name: padY
+
- Database Class: Pad
+
- Specifies a non-negative value indicating how much extra space
+to request for the widget in the Y-direction.
+The value may have any of the forms acceptable to Tk_GetPixels.
+When computing how large a window it needs, the widget will add
+this amount to the height it would normally need (as determined by
+the height of the things displayed in the widget); if the geometry
+manager can satisfy this request, the widget will end up with extra
+internal space above and/or below what it displays inside.
+Most widgets only use this option for padding text: if they are
+displaying a bitmap or image, then they usually ignore padding
+options.
+
- Command-Line Name: -relief
+
- Database Name: relief
+
- Database Class: Relief
+
- Specifies the 3-D effect desired for the widget. Acceptable
+values are raised, sunken, flat, ridge,
+solid, and groove.
+The value
+indicates how the interior of the widget should appear relative
+to its exterior; for example, raised means the interior of
+the widget should appear to protrude from the screen, relative to
+the exterior of the widget.
+
- Command-Line Name: -repeatdelay
+
- Database Name: repeatDelay
+
- Database Class: RepeatDelay
+
- Specifies the number of milliseconds a button or key must be held
+down before it begins to auto-repeat. Used, for example, on the
+up- and down-arrows in scrollbars.
+
- Command-Line Name: -repeatinterval
+
- Database Name: repeatInterval
+
- Database Class: RepeatInterval
+
- Used in conjunction with repeatDelay: once auto-repeat
+begins, this option determines the number of milliseconds between
+auto-repeats.
+
- Command-Line Name: -selectbackground
+
- Database Name: selectBackground
+
- Database Class: Foreground
+
- Specifies the background color to use when displaying selected
+items.
+
- Command-Line Name: -selectborderwidth
+
- Database Name: selectBorderWidth
+
- Database Class: BorderWidth
+
- Specifies a non-negative value indicating the width
+of the 3-D border to draw around selected items.
+The value may have any of the forms acceptable to Tk_GetPixels.
+
- Command-Line Name: -selectforeground
+
- Database Name: selectForeground
+
- Database Class: Background
+
- Specifies the foreground color to use when displaying selected
+items.
+
- Command-Line Name: -setgrid
+
- Database Name: setGrid
+
- Database Class: SetGrid
+
- Specifies a boolean value that determines whether this widget controls the
+resizing grid for its top-level window.
+This option is typically used in text widgets, where the information
+in the widget has a natural size (the size of a character) and it makes
+sense for the window's dimensions to be integral numbers of these units.
+These natural window sizes form a grid.
+If the setGrid option is set to true then the widget will
+communicate with the window manager so that when the user interactively
+resizes the top-level window that contains the widget, the dimensions of
+the window will be displayed to the user in grid units and the window
+size will be constrained to integral numbers of grid units.
+See the section GRIDDED GEOMETRY MANAGEMENT in the wm manual
+entry for more details.
+
- Command-Line Name: -takefocus
+
- Database Name: takeFocus
+
- Database Class: TakeFocus
+
- Determines whether the window accepts the focus during keyboard
+traversal (e.g., Tab and Shift-Tab).
+Before setting the focus to a window, the traversal scripts
+consult the value of the takeFocus option.
+A value of 0 means that the window should be skipped entirely
+during keyboard traversal.
+1 means that the window should receive the input
+focus as long as it is viewable (it and all of its ancestors are mapped).
+An empty value for the option means that the traversal scripts make
+the decision about whether or not to focus on the window: the current
+algorithm is to skip the window if it is
+disabled, if it has no key bindings, or if it is not viewable.
+If the value has any other form, then the traversal scripts take
+the value, append the name of the window to it (with a separator space),
+and evaluate the resulting string as a Tcl script.
+The script must return 0, 1, or an empty string: a
+0 or 1 value specifies whether the window will receive
+the input focus, and an empty string results in the default decision
+described above.
+Note: this interpretation of the option is defined entirely by
+the Tcl scripts that implement traversal: the widget implementations
+ignore the option entirely, so you can change its meaning if you
+redefine the keyboard traversal scripts.
+
- Command-Line Name: -text
+
- Database Name: text
+
- Database Class: Text
+
- Specifies a string to be displayed inside the widget. The way in which
+the string is displayed depends on the particular widget and may be
+determined by other options, such as anchor or justify.
+
- Command-Line Name: -textvariable
+
- Database Name: textVariable
+
- Database Class: Variable
+
- Specifies the name of a variable. The value of the variable is a text
+string to be displayed inside the widget; if the variable value changes
+then the widget will automatically update itself to reflect the new value.
+The way in which the string is displayed in the widget depends on the
+particular widget and may be determined by other options, such as
+anchor or justify.
+
- Command-Line Name: -troughcolor
+
- Database Name: troughColor
+
- Database Class: Background
+
- Specifies the color to use for the rectangular trough areas
+in widgets such as scrollbars and scales. This option is ignored for
+scrollbars on Windows (native widget doesn't recognize this option).
+
- Command-Line Name: -underline
+
- Database Name: underline
+
- Database Class: Underline
+
- Specifies the integer index of a character to underline in the widget.
+This option is used by the default bindings to implement keyboard
+traversal for menu buttons and menu entries.
+0 corresponds to the first character of the text displayed in the
+widget, 1 to the next character, and so on.
+
- Command-Line Name: -wraplength
+
- Database Name: wrapLength
+
- Database Class: WrapLength
+
- For widgets that can perform word-wrapping, this option specifies
+the maximum line length.
+Lines that would exceed this length are wrapped onto the next line,
+so that no line is longer than the specified length.
+The value may be specified in any of the standard forms for
+screen distances.
+If this value is less than or equal to 0 then no wrapping is done: lines
+will break only at newline characters in the text.
+
- Command-Line Name: -xscrollcommand
+
- Database Name: xScrollCommand
+
- Database Class: ScrollCommand
+
- Specifies the prefix for a command used to communicate with horizontal
+scrollbars.
+When the view in the widget's window changes (or
+whenever anything else occurs that could change the display in a
+scrollbar, such as a change in the total size of the widget's
+contents), the widget will
+generate a Tcl command by concatenating the scroll command and
+two numbers.
+Each of the numbers is a fraction between 0 and 1, which indicates
+a position in the document. 0 indicates the beginning of the document,
+1 indicates the end, .333 indicates a position one third the way through
+the document, and so on.
+The first fraction indicates the first information in the document
+that is visible in the window, and the second fraction indicates
+the information just after the last portion that is visible.
+The command is
+then passed to the Tcl interpreter for execution. Typically the
+xScrollCommand option consists of the path name of a scrollbar
+widget followed by ``set'', e.g. ``.x.scrollbar set'': this will cause
+the scrollbar to be updated whenever the view in the window changes.
+If this option is not specified, then no command will be executed.
+
- Command-Line Name: -yscrollcommand
+
- Database Name: yScrollCommand
+
- Database Class: ScrollCommand
+
- Specifies the prefix for a command used to communicate with vertical
+scrollbars. This option is treated in the same way as the
+xScrollCommand option, except that it is used for vertical
+scrollbars and is provided by widgets that support vertical scrolling.
+See the description of xScrollCommand for details
+on how this option is used.
+
+
+
+colors, cursors, font
+
+class, name, standard option, switch
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/pack.htm b/hlp/en/tk/pack.htm
new file mode 100644
index 0000000..e4cba6e
--- /dev/null
+++ b/hlp/en/tk/pack.htm
@@ -0,0 +1,281 @@
+Tk Built-In Commands - pack manual page
+
+- NAME
+
- pack - Geometry manager that packs around edges of cavity
+- SYNOPSIS
+
+- pack option arg ?arg ...?
+
+- DESCRIPTION
+
+- pack slave ?slave ...? ?options?
+
- pack configure slave ?slave ...? ?options?
+
+- -after other
+
- -anchor anchor
+
- -before other
+
- -expand boolean
+
- -fill style
+
+- none
+
- x
+
- y
+
- both
+
+- -in other
+
- -ipadx amount
+
- -ipady amount
+
- -padx amount
+
- -pady amount
+
- -side side
+
+- pack forget slave ?slave ...?
+
- pack info slave
+
- pack propagate master ?boolean?
+
- pack slaves master
+
+- THE PACKER ALGORITHM
+
+
+- EXPANSION
+
- GEOMETRY PROPAGATION
+
- RESTRICTIONS ON MASTER WINDOWS
+
- PACKING ORDER
+
- KEYWORDS
+
+
+pack - Geometry manager that packs around edges of cavity
+
+pack option arg ?arg ...?
+
+The pack command is used to communicate with the packer,
+a geometry manager that arranges the children of a parent by
+packing them in order around the edges of the parent.
+The pack command can have any of several forms, depending
+on the option argument:
+
+
+- pack slave ?slave ...? ?options?
-
+If the first argument to pack is a window name (any value
+starting with ``.''), then the command is processed in the same
+way as pack configure.
+
- pack configure slave ?slave ...? ?options?
-
+The arguments consist of the names of one or more slave windows
+followed by pairs of arguments that specify how
+to manage the slaves.
+See ``THE PACKER ALGORITHM'' below for details on how the options
+are used by the packer.
+The following options are supported:
+
+
+- -after other
-
+Other must the name of another window.
+Use its master as the master for the slaves, and insert
+the slaves just after other in the packing order.
+
- -anchor anchor
-
+Anchor must be a valid anchor position such as n
+or sw; it specifies where to position each slave in its
+parcel.
+Defaults to center.
+
- -before other
-
+Other must the name of another window.
+Use its master as the master for the slaves, and insert
+the slaves just before other in the packing order.
+
- -expand boolean
-
+Specifies whether the slaves should be expanded to consume
+extra space in their master.
+Boolean may have any proper boolean value, such as 1
+or no.
+Defaults to 0.
+
- -fill style
-
+If a slave's parcel is larger than its requested dimensions, this
+option may be used to stretch the slave.
+Style must have one of the following values:
+
+
+- none
-
+Give the slave its requested dimensions plus any internal padding
+requested with -ipadx or -ipady. This is the default.
+
- x
-
+Stretch the slave horizontally to fill the entire width of its
+parcel (except leave external padding as specified by -padx).
+
- y
-
+Stretch the slave vertically to fill the entire height of its
+parcel (except leave external padding as specified by -pady).
+
- both
-
+Stretch the slave both horizontally and vertically.
+
+ - -in other
-
+Insert the slave(s) at the end of the packing order for the master
+window given by other.
+
- -ipadx amount
-
+Amount specifies how much horizontal internal padding to
+leave on each side of the slave(s).
+Amount must be a valid screen distance, such as 2 or .5c.
+It defaults to 0.
+
- -ipady amount
-
+Amount specifies how much vertical internal padding to
+leave on each side of the slave(s).
+Amount defaults to 0.
+
- -padx amount
-
+Amount specifies how much horizontal external padding to
+leave on each side of the slave(s).
+Amount defaults to 0.
+
- -pady amount
-
+Amount specifies how much vertical external padding to
+leave on each side of the slave(s).
+Amount defaults to 0.
+
- -side side
-
+Specifies which side of the master the slave(s) will be packed against.
+Must be left, right, top, or bottom.
+Defaults to top.
+
If no -in, -after or -before option is specified
+then each of the slaves will be inserted at the end of the packing list
+for its parent unless it is already managed by the packer (in which
+case it will be left where it is).
+If one of these options is specified then all the slaves will be
+inserted at the specified point.
+If any of the slaves are already managed by the geometry manager
+then any unspecified options for them retain their previous values rather
+than receiving default values.
+
+ - pack forget slave ?slave ...?
-
+Removes each of the slaves from the packing order for its
+master and unmaps their windows.
+The slaves will no longer be managed by the packer.
+
- pack info slave
-
+Returns a list whose elements are the current configuration state of
+the slave given by slave in the same option-value form that
+might be specified to pack configure.
+The first two elements of the list are ``-in master'' where
+master is the slave's master.
+
- pack propagate master ?boolean?
-
+If boolean has a true boolean value such as 1 or on
+then propagation is enabled for master, which must be a window
+name (see ``GEOMETRY PROPAGATION'' below).
+If boolean has a false boolean value then propagation is
+disabled for master.
+In either of these cases an empty string is returned.
+If boolean is omitted then the command returns 0 or
+1 to indicate whether propagation is currently enabled
+for master.
+Propagation is enabled by default.
+
- pack slaves master
-
+Returns a list of all of the slaves in the packing order for master.
+The order of the slaves in the list is the same as their order in
+the packing order.
+If master has no slaves then an empty string is returned.
+
+
+
+For each master the packer maintains an ordered list of slaves
+called the packing list.
+The -in, -after, and -before configuration
+options are used to specify the master for each slave and the slave's
+position in the packing list.
+If none of these options is given for a slave then the slave
+is added to the end of the packing list for its parent.
+
+The packer arranges the slaves for a master by scanning the
+packing list in order.
+At the time it processes each slave, a rectangular area within
+the master is still unallocated.
+This area is called the cavity; for the first slave it
+is the entire area of the master.
+
+For each slave the packer carries out the following steps:
+
+
+- [1]
-
+The packer allocates a rectangular parcel for the slave
+along the side of the cavity given by the slave's -side option.
+If the side is top or bottom then the width of the parcel is
+the width of the cavity and its height is the requested height
+of the slave plus the -ipady and -pady options.
+For the left or right side the height of the parcel is
+the height of the cavity and the width is the requested width
+of the slave plus the -ipadx and -padx options.
+The parcel may be enlarged further because of the -expand
+option (see ``EXPANSION'' below)
+
- [2]
-
+The packer chooses the dimensions of the slave.
+The width will normally be the slave's requested width plus
+twice its -ipadx option and the height will normally be
+the slave's requested height plus twice its -ipady
+option.
+However, if the -fill option is x or both
+then the width of the slave is expanded to fill the width of the parcel,
+minus twice the -padx option.
+If the -fill option is y or both
+then the height of the slave is expanded to fill the width of the parcel,
+minus twice the -pady option.
+
- [3]
-
+The packer positions the slave over its parcel.
+If the slave is smaller than the parcel then the -anchor
+option determines where in the parcel the slave will be placed.
+If -padx or -pady is non-zero, then the given
+amount of external padding will always be left between the
+slave and the edges of the parcel.
+
+
+Once a given slave has been packed, the area of its parcel
+is subtracted from the cavity, leaving a smaller rectangular
+cavity for the next slave.
+If a slave doesn't use all of its parcel, the unused space
+in the parcel will not be used by subsequent slaves.
+If the cavity should become too small to meet the needs of
+a slave then the slave will be given whatever space is
+left in the cavity.
+If the cavity shrinks to zero size, then all remaining slaves
+on the packing list will be unmapped from the screen until
+the master window becomes large enough to hold them again.
+
+
+If a master window is so large that there will be extra space
+left over after all of its slaves have been packed, then the
+extra space is distributed uniformly among all of the slaves
+for which the -expand option is set.
+Extra horizontal space is distributed among the expandable
+slaves whose -side is left or right,
+and extra vertical space is distributed among the expandable
+slaves whose -side is top or bottom.
+
+
+The packer normally computes how large a master must be to
+just exactly meet the needs of its slaves, and it sets the
+requested width and height of the master to these dimensions.
+This causes geometry information to propagate up through a
+window hierarchy to a top-level window so that the entire
+sub-tree sizes itself to fit the needs of the leaf windows.
+However, the pack propagate command may be used to
+turn off propagation for one or more masters.
+If propagation is disabled then the packer will not set
+the requested width and height of the packer.
+This may be useful if, for example, you wish for a master
+window to have a fixed size that you specify.
+
+
+The master for each slave must either be the slave's parent
+(the default) or a descendant of the slave's parent.
+This restriction is necessary to guarantee that the
+slave can be placed over any part of its master that is
+visible without danger of the slave being clipped by its parent.
+
+
+If the master for a slave is not its parent then you must make sure
+that the slave is higher in the stacking order than the master.
+Otherwise the master will obscure the slave and it will appear as
+if the slave hasn't been packed correctly.
+The easiest way to make sure the slave is higher than the master is
+to create the master window first: the most recently created window
+will be highest in the stacking order.
+Or, you can use the raise and lower commands to change
+the stacking order of either the master or the slave.
+
+
+geometry manager, location, packer, parcel, propagation, size
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/palette.htm b/hlp/en/tk/palette.htm
new file mode 100644
index 0000000..9e38ce2
--- /dev/null
+++ b/hlp/en/tk/palette.htm
@@ -0,0 +1,58 @@
+Tk Built-In Commands - tk_setPalette manual page
+
+tk_setPalette, tk_bisque - Modify the Tk color palette
+
+tk_setPalette background
+tk_setPalette name value ?name value ...?
+tk_bisque
+
+The tk_setPalette procedure changes the color scheme for Tk.
+It does this by modifying the colors of existing widgets and by changing
+the option database so that future widgets will use the new color scheme.
+If tk_setPalette is invoked with a single argument, the
+argument is the name of a color to use as the normal background
+color; tk_setPalette will compute a complete color palette
+from this background color.
+Alternatively, the arguments to tk_setPalette may consist of any number
+of name-value pairs, where the first argument of the pair
+is the name of an option in the Tk option database and the second
+argument is the new value to use for that option. The following
+database names are currently supported:
+activeBackground foreground selectColor
+activeForeground highlightBackground selectBackground
+background highlightColor selectForeground
+disabledForeground insertBackground troughColor
+tk_setPalette tries to compute reasonable defaults for any
+options that you don't specify. You can specify options other
+than the above ones and Tk will change those options on widgets as
+well. This feature may be useful if you are using custom widgets with
+additional color options.
+
+Once it has computed the new value to use for each of the color options,
+tk_setPalette scans the widget hierarchy to modify the options
+of all existing widgets. For each widget, it checks to see if any
+of the above options is defined for the widget. If so, and if the
+option's current value is the default, then the value is changed; if
+the option has a value other than the default, tk_setPalette
+will not change it. The default for an option is the one provided by
+the widget ([lindex [$w configure $option] 3]) unless
+tk_setPalette has been run previously, in which case it is the
+value specified in the previous invocation of tk_setPalette.
+
+After modifying all the widgets in the application, tk_setPalette
+adds options to the option database to change the defaults for
+widgets created in the future. The new options are added at
+priority widgetDefault, so they will be overridden by options
+from the .Xdefaults file or options specified on the command-line
+that creates a widget.
+
+The procedure tk_bisque is provided for backward compatibility:
+it restores the application's colors to the light brown (``bisque'')
+color scheme used in Tk 3.6 and earlier versions.
+
+
+bisque, color, palette
+
+Copyright © 1995-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/photo.htm b/hlp/en/tk/photo.htm
new file mode 100644
index 0000000..fb95208
--- /dev/null
+++ b/hlp/en/tk/photo.htm
@@ -0,0 +1,427 @@
+Tk Built-In Commands - photo manual page
+
+- NAME
+
- photo - Full-color images
+- SYNOPSIS
+
+- image create photo ?name? ?options?
+
+- DESCRIPTION
+
- CREATING PHOTOS
+
+- -data string
+
- -format format-name
+
- -file name
+
- -gamma value
+
- -height number
+
- -palette palette-spec
+
- -width number
+
+- IMAGE COMMAND
+
+- imageName blank
+
- imageName cget option
+
- imageName configure ?option? ?value option value ...?
+
- imageName copy sourceImage ?option value(s) ...?
+
+- -from x1 y1 x2 y2
+
- -to x1 y1 x2 y2
+
- -shrink
+
- -zoom x y
+
- -subsample x y
+
+- imageName data ?option value(s) ...?
+
+- -background color
+
- -format format-name
+
- -from x1 y1 x2 y2
+
- -grayscale
+
+- imageName get x y
+
- imageName put data ?option value(s) ...?
+
+- -format format-name
+
- -from x1 y1 x2 y2
+
- -shrink
+
- -to x y
+
+- imageName read filename ?option value(s) ...?
+
+- -format format-name
+
- -from x1 y1 x2 y2
+
- -shrink
+
- -to x y
+
+- imageName redither
+
- imageName write filename ?option value(s) ...?
+
+- -background color
+
- -format format-name
+
- -from x1 y1 x2 y2
+
- -grayscale
+
+
+- IMAGE FORMATS
+
- COLOR ALLOCATION
+
- CREDITS
+
- KEYWORDS
+
+
+photo - Full-color images
+
+image create photo ?name? ?options?
+
+A photo is an image whose pixels can display any color or be
+transparent. A photo image is stored internally in full color (32
+bits per pixel), and is displayed using dithering if necessary. Image
+data for a photo image can be obtained from a file or a string, or it
+can be supplied from
+C code through a procedural interface. At present, only GIF and PPM/PGM
+formats are supported, but an interface exists to allow additional
+image file formats to be added easily. A photo image is transparent
+in regions where no image data has been supplied.
+
+
+Like all images, photos are created using the image create
+command.
+Photos support the following options:
+
+
+- -data string
-
+Specifies the contents of the image as a string. The string can
+contain base64 encoded data or binary data. The format of the
+string must be one of those for which there is an image file format
+handler that will accept string data. If both the -data
+and -file options are specified, the -file option takes
+precedence.
+
- -format format-name
-
+Specifies the name of the file format for the data specified with the
+-data or -file option.
+
- -file name
-
+name gives the name of a file that is to be read to supply data
+for the photo image. The file format must be one of those for which
+there is an image file format handler that can read data.
+
- -gamma value
-
+Specifies that the colors allocated for displaying this image in a
+window should be corrected for a non-linear display with the specified
+gamma exponent value. (The intensity produced by most
+CRT displays is a power function of the input value, to a good
+approximation; gamma is the exponent and is typically around 2).
+The value specified must be greater than zero. The default
+value is one (no correction). In general, values greater than one
+will make the image lighter, and values less than one will make it
+darker.
+
- -height number
-
+Specifies the height of the image, in pixels. This option is useful
+primarily in situations where the user wishes to build up the contents
+of the image piece by piece. A value of zero (the default) allows the
+image to expand or shrink vertically to fit the data stored in it.
+
- -palette palette-spec
-
+Specifies the resolution of the color cube to be allocated for
+displaying this image, and thus the number of colors used from the
+colormaps of the windows where it is displayed. The
+palette-spec string may be either a single decimal number,
+specifying the number of shades of gray to use, or three decimal
+numbers separated by slashes (/), specifying the number of shades of
+red, green and blue to use, respectively. If the first form (a single
+number) is used, the image will be displayed in monochrome (i.e.,
+grayscale).
+
- -width number
-
+Specifies the width of the image, in pixels. This option is useful
+primarily in situations where the user wishes to build up the contents
+of the image piece by piece. A value of zero (the default) allows the
+image to expand or shrink horizontally to fit the data stored in it.
+
+
+
+When a photo image is created, Tk also creates a new command
+whose name is the same as the image.
+This command may be used to invoke various operations
+on the image.
+It has the following general form:
+imageName option ?arg arg ...?
+Option and the args
+determine the exact behavior of the command.
+
+Those options that write data to the image generally expand the size
+of the image, if necessary, to accommodate the data written to the
+image, unless the user has specified non-zero values for the
+-width and/or -height configuration options, in which
+case the width and/or height, respectively, of the image will not be
+changed.
+
+The following commands are possible for photo images:
+
+
+- imageName blank
-
+Blank the image; that is, set the entire image to have no data, so it
+will be displayed as transparent, and the background of whatever
+window it is displayed in will show through.
+
- imageName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the
+image create photo command.
+
- imageName configure ?option? ?value option value ...?
-
+Query or modify the configuration options for the image.
+If no option is specified, returns a list describing all of
+the available options for imageName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the
+image create photo command.
+
- imageName copy sourceImage ?option value(s) ...?
-
+Copies a region from the image called sourceImage (which must
+be a photo image) to the image called imageName, possibly with
+pixel zooming and/or subsampling. If no options are specified, this
+command copies the whole of sourceImage into imageName,
+starting at coordinates (0,0) in imageName. The following
+options may be specified:
+
+
+- -from x1 y1 x2 y2
-
+Specifies a rectangular sub-region of the source image to be copied.
+(x1,y1) and (x2,y2) specify diagonally opposite corners of
+the rectangle. If x2 and y2 are not specified, the
+default value is the bottom-right corner of the source image. The
+pixels copied will include the left and top edges of the specified
+rectangle but not the bottom or right edges. If the -from
+option is not given, the default is the whole source image.
+
- -to x1 y1 x2 y2
-
+Specifies a rectangular sub-region of the destination image to be
+affected. (x1,y1) and (x2,y2) specify diagonally opposite
+corners of the rectangle. If x2 and y2 are not specified,
+the default value is (x1,y1) plus the size of the source
+region (after subsampling and zooming, if specified). If x2 and
+y2 are specified, the source region will be replicated if
+necessary to fill the destination region in a tiled fashion.
+
- -shrink
-
+Specifies that the size of the destination image should be reduced, if
+necessary, so that the region being copied into is at the bottom-right
+corner of the image. This option will not affect the width or height
+of the image if the user has specified a non-zero value for the
+-width or -height configuration option, respectively.
+
- -zoom x y
-
+Specifies that the source region should be magnified by a factor of
+x in the X direction and y in the Y direction. If y
+is not given, the default value is the same as x. With this
+option, each pixel in the source image will be expanded into a block
+of x x y pixels in the destination image, all the same
+color. x and y must be greater than 0.
+
- -subsample x y
-
+Specifies that the source image should be reduced in size by using
+only every xth pixel in the X direction and yth pixel in
+the Y direction. Negative values will cause the image to be flipped
+about the Y or X axes, respectively. If y is not given, the
+default value is the same as x.
+
+ - imageName data ?option value(s) ...?
-
+Returns image data in the form of a string. The following options
+may be specified:
+
+
+- -background color
-
+If the color is specified, the data will not contain any transparency
+information. In all transparent pixels the color will be replaced by
+the specified color.
+
- -format format-name
-
+Specifies the name of the image file format handler to be used.
+Specifically, this subcommand searches
+for the first handler whose name matches a initial substring of
+format-name and which has the capability to read this image data.
+If this option is not given, this subcommand uses the first
+handler that has the capability to read the image data.
+
- -from x1 y1 x2 y2
-
+Specifies a rectangular region of imageName to be returned.
+If only x1 and y1 are specified, the region
+extends from (x1,y1) to the bottom-right corner of
+imageName. If all four coordinates are given, they specify
+diagonally opposite corners of the rectangular region, including x1,y1
+and excluding x2,y2. The default, if this option is not given, is the
+whole image.
+
- -grayscale
-
+If this options is specified, the data will not contain color
+information. All pixel data will be transformed into grayscale.
+
+ - imageName get x y
-
+Returns the color of the pixel at coordinates (x,y) in the
+image as a list of three integers between 0 and 255, representing the
+red, green and blue components respectively.
+
- imageName put data ?option value(s) ...?
-
+Sets pixels in imageName to the data specified in
+data. This command first searches the list of image file
+format handlers for a handler that can interpret the data
+in data, and then reads the image in filename into
+imageName (the destination image). The following options
+may be specified:
+
+
+- -format format-name
-
+Specifies the format of the image data in data.
+Specifically, only image file format handlers whose names begin with
+format-name will be used while searching for an image data
+format handler to read the data.
+
- -from x1 y1 x2 y2
-
+Specifies a rectangular sub-region of the image file data to be
+returned. If only x1 and y1 are specified, the region
+extends from (x1,y1) to the bottom-right corner of the image
+in the image file. If all four coordinates are specified, they
+specify diagonally opposite corners or the region. The default,
+if this option is not specified, is the whole of the image.
+
- -shrink
-
+If this option, the size of imageName will be reduced, if
+necessary, so that the region into which the image file data are read
+is at the bottom-right corner of the imageName. This option
+will not affect the width or height of the image if the user has
+specified a non-zero value for the -width or -height
+configuration option, respectively.
+
- -to x y
-
+Specifies the coordinates of the top-left corner of the region of
+imageName into which data from filename are to be read.
+The default is (0,0).
+
+ - imageName read filename ?option value(s) ...?
-
+Reads image data from the file named filename into the image.
+This command first searches the list of
+image file format handlers for a handler that can interpret the data
+in filename, and then reads the image in filename into
+imageName (the destination image). The following options may be
+specified:
+
+
+- -format format-name
-
+Specifies the format of the image data in filename.
+Specifically, only image file format handlers whose names begin with
+format-name will be used while searching for an image data
+format handler to read the data.
+
- -from x1 y1 x2 y2
-
+Specifies a rectangular sub-region of the image file data to be copied
+to the destination image. If only x1 and y1 are
+specified, the region extends from (x1,y1) to the bottom-right
+corner of the image in the image file. If all four coordinates are
+specified, they specify diagonally opposite corners or the region.
+The default, if this option is not specified, is the whole of the
+image in the image file.
+
- -shrink
-
+If this option, the size of imageName will be reduced, if
+necessary, so that the region into which the image file data are read
+is at the bottom-right corner of the imageName. This option
+will not affect the width or height of the image if the user has
+specified a non-zero value for the -width or -height
+configuration option, respectively.
+
- -to x y
-
+Specifies the coordinates of the top-left corner of the region of
+imageName into which data from filename are to be read.
+The default is (0,0).
+
+ - imageName redither
-
+The dithering algorithm used in displaying photo images propagates
+quantization errors from one pixel to its neighbors.
+If the image data for imageName is supplied in pieces, the
+dithered image may not be exactly correct. Normally the difference is
+not noticeable, but if it is a problem, this command can be used to
+recalculate the dithered image in each window where the image is
+displayed.
+
- imageName write filename ?option value(s) ...?
-
+Writes image data from imageName to a file named filename.
+The following options may be specified:
+
+
+- -background color
-
+If the color is specified, the data will not contain any transparency
+information. In all transparent pixels the color will be replaced by
+the specified color.
+
- -format format-name
-
+Specifies the name of the image file format handler to be used to
+write the data to the file. Specifically, this subcommand searches
+for the first handler whose name matches a initial substring of
+format-name and which has the capability to write an image
+file. If this option is not given, this subcommand uses the first
+handler that has the capability to write an image file.
+
- -from x1 y1 x2 y2
-
+Specifies a rectangular region of imageName to be written to the
+image file. If only x1 and y1 are specified, the region
+extends from (x1,y1) to the bottom-right corner of
+imageName. If all four coordinates are given, they specify
+diagonally opposite corners of the rectangular region. The default,
+if this option is not given, is the whole image.
+
- -grayscale
-
+If this options is specified, the data will not contain color
+information. All pixel data will be transformed into grayscale.
+
+
+
+The photo image code is structured to allow handlers for additional
+image file formats to be added easily. The photo image code maintains
+a list of these handlers. Handlers are added to the list by
+registering them with a call to Tk_CreatePhotoImageFormat. The
+standard Tk distribution comes with handlers for PPM/PGM and GIF formats,
+which are automatically registered on initialization.
+
+When reading an image file or processing
+string data specified with the -data configuration option, the
+photo image code invokes each handler in turn until one is
+found that claims to be able to read the data in the file or string.
+Usually this will find the correct handler, but if it doesn't, the
+user may give a format name with the -format option to specify
+which handler to use. In fact the photo image code will try those
+handlers whose names begin with the string specified for the
+-format option (the comparison is case-insensitive). For
+example, if the user specifies -format gif, then a handler
+named GIF87 or GIF89 may be invoked, but a handler
+named JPEG may not (assuming that such handlers had been
+registered).
+
+When writing image data to a file, the processing of the
+-format option is slightly different: the string value given
+for the -format option must begin with the complete name of the
+requested handler, and may contain additional information following
+that, which the handler can use, for example, to specify which variant
+to use of the formats supported by the handler.
+
+
+When a photo image is displayed in a window, the photo image code
+allocates colors to use to display the image and dithers the image, if
+necessary, to display a reasonable approximation to the image using
+the colors that are available. The colors are allocated as a color
+cube, that is, the number of colors allocated is the product of the
+number of shades of red, green and blue.
+
+Normally, the number of
+colors allocated is chosen based on the depth of the window. For
+example, in an 8-bit PseudoColor window, the photo image code will
+attempt to allocate seven shades of red, seven shades of green and
+four shades of blue, for a total of 198 colors. In a 1-bit StaticGray
+(monochrome) window, it will allocate two colors, black and white. In
+a 24-bit DirectColor or TrueColor window, it will allocate 256 shades
+each of red, green and blue. Fortunately, because of the way that
+pixel values can be combined in DirectColor and TrueColor windows,
+this only requires 256 colors to be allocated. If not all of the
+colors can be allocated, the photo image code reduces the number of
+shades of each primary color and tries again.
+
+The user can exercise some control over the number of colors that a
+photo image uses with the -palette configuration option. If
+this option is used, it specifies the maximum number of shades of
+each primary color to try to allocate. It can also be used to force
+the image to be displayed in shades of gray, even on a color display,
+by giving a single number rather than three numbers separated by
+slashes.
+
+
+The photo image type was designed and implemented by Paul Mackerras,
+based on his earlier photo widget and some suggestions from
+John Ousterhout.
+
+
+photo, image, color
+
+Copyright © 1994 The Australian National University
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/place.htm b/hlp/en/tk/place.htm
new file mode 100644
index 0000000..079a556
--- /dev/null
+++ b/hlp/en/tk/place.htm
@@ -0,0 +1,240 @@
+Built-In Commands - place manual page
+
+- NAME
+
- place - Geometry manager for fixed or rubber-sheet placement
+- SYNOPSIS
+
+- place window option value ?option value ...?
+
- place configure window option value ?option value ...?
+
- place forget window
+
- place info window
+
- place slaves window
+
+- DESCRIPTION
+
+- -in master
+
- -x location
+
- -relx location
+
- -y location
+
- -rely location
+
- -anchor where
+
- -width size
+
- -relwidth size
+
- -height size
+
- -relheight size
+
- -bordermode mode
+
+- FINE POINTS
+
- KEYWORDS
+
+
+place - Geometry manager for fixed or rubber-sheet placement
+
+place window option value ?option value ...?
+place configure window option value ?option value ...?
+place forget window
+place info window
+place slaves window
+
+The placer is a geometry manager for Tk.
+It provides simple fixed placement of windows, where you specify
+the exact size and location of one window, called the slave,
+within another window, called the master.
+The placer also provides rubber-sheet placement, where you specify the
+size and location of the slave in terms of the dimensions of
+the master, so that the slave changes size and location
+in response to changes in the size of the master.
+Lastly, the placer allows you to mix these styles of placement so
+that, for example, the slave has a fixed width and height but is
+centered inside the master.
+
+If the first argument to the place command is a window path
+name or configure then the command arranges for the placer
+to manage the geometry of a slave whose path name is window.
+The remaining arguments consist of one or more option-value
+pairs that specify the way in which window's
+geometry is managed.
+If the placer is already managing window, then the
+option-value pairs modify the configuration for window.
+In this form the place command returns an empty string as result.
+The following option-value pairs are supported:
+
+
+- -in master
-
+Master specifes the path name of the window relative
+to which window is to be placed.
+Master must either be window's parent or a descendant
+of window's parent.
+In addition, master and window must both be descendants
+of the same top-level window.
+These restrictions are necessary to guarantee
+that window is visible whenever master is visible.
+If this option isn't specified then the master defaults to
+window's parent.
+
- -x location
-
+Location specifies the x-coordinate within the master window
+of the anchor point for window.
+The location is specified in screen units (i.e. any of the forms
+accepted by Tk_GetPixels) and need not lie within the bounds
+of the master window.
+
- -relx location
-
+Location specifies the x-coordinate within the master window
+of the anchor point for window.
+In this case the location is specified in a relative fashion
+as a floating-point number: 0.0 corresponds to the left edge
+of the master and 1.0 corresponds to the right edge of the master.
+Location need not be in the range 0.0-1.0.
+If both -x and -relx are specified for a slave
+then their values are summed. For example, -relx 0.5 -x -2
+positions the left edge of the slave 2 pixels to the left of the
+center of its master.
+
- -y location
-
+Location specifies the y-coordinate within the master window
+of the anchor point for window.
+The location is specified in screen units (i.e. any of the forms
+accepted by Tk_GetPixels) and need not lie within the bounds
+of the master window.
+
- -rely location
-
+Location specifies the y-coordinate within the master window
+of the anchor point for window.
+In this case the value is specified in a relative fashion
+as a floating-point number: 0.0 corresponds to the top edge
+of the master and 1.0 corresponds to the bottom edge of the master.
+Location need not be in the range 0.0-1.0.
+If both -y and -rely are specified for a slave
+then their values are summed. For example, -rely 0.5 -x 3
+positions the top edge of the slave 3 pixels below the
+center of its master.
+
- -anchor where
-
+Where specifies which point of window is to be positioned
+at the (x,y) location selected by the -x, -y,
+-relx, and -rely options.
+The anchor point is in terms of the outer area of window
+including its border, if any.
+Thus if where is se then the lower-right corner of
+window's border will appear at the given (x,y) location
+in the master.
+The anchor position defaults to nw.
+
- -width size
-
+Size specifies the width for window in screen units
+(i.e. any of the forms accepted by Tk_GetPixels).
+The width will be the outer width of window including its
+border, if any.
+If size is an empty string, or if no -width
+or -relwidth option is specified, then the width requested
+internally by the window will be used.
+
- -relwidth size
-
+Size specifies the width for window.
+In this case the width is specified as a floating-point number
+relative to the width of the master: 0.5 means window will
+be half as wide as the master, 1.0 means window will have
+the same width as the master, and so on.
+If both -width and -relwidth are specified for a slave,
+their values are summed. For example, -relwidth 1.0 -width 5
+makes the slave 5 pixels wider than the master.
+
- -height size
-
+Size specifies the height for window in screen units
+(i.e. any of the forms accepted by Tk_GetPixels).
+The height will be the outer dimension of window including its
+border, if any.
+If size is an empty string, or if no -height or
+-relheight option is specified, then the height requested
+internally by the window will be used.
+
- -relheight size
-
+Size specifies the height for window.
+In this case the height is specified as a floating-point number
+relative to the height of the master: 0.5 means window will
+be half as high as the master, 1.0 means window will have
+the same height as the master, and so on.
+If both -height and -relheight are specified for a slave,
+their values are summed. For example, -relheight 1.0 -height -2
+makes the slave 2 pixels shorter than the master.
+
- -bordermode mode
-
+Mode determines the degree to which borders within the
+master are used in determining the placement of the slave.
+The default and most common value is inside.
+In this case the placer considers the area of the master to
+be the innermost area of the master, inside any border:
+an option of -x 0 corresponds to an x-coordinate just
+inside the border and an option of -relwidth 1.0
+means window will fill the area inside the master's
+border.
+If mode is outside then the placer considers
+the area of the master to include its border;
+this mode is typically used when placing window
+outside its master, as with the options -x 0 -y 0 -anchor ne.
+Lastly, mode may be specified as ignore, in which
+case borders are ignored: the area of the master is considered
+to be its official X area, which includes any internal border but
+no external border. A bordermode of ignore is probably
+not very useful.
+
+
+If the same value is specified separately with
+two different options, such as -x and -relx, then
+the most recent option is used and the older one is ignored.
+
+The place slaves command returns a list of all the slave
+windows for which window is the master.
+If there are no slaves for window then an empty string is
+returned.
+
+The place forget command causes the placer to stop managing
+the geometry of window. As a side effect of this command
+window will be unmapped so that it doesn't appear on the
+screen.
+If window isn't currently managed by the placer then the
+command has no effect.
+Place forget returns an empty string as result.
+
+The place info command returns a list giving the current
+configuration of window.
+The list consists of option-value pairs in exactly the
+same form as might be specified to the place configure
+command.
+If the configuration of a window has been retrieved with
+place info, that configuration can be restored later by
+first using place forget to erase any existing information
+for the window and then invoking place configure with
+the saved information.
+
+
+It is not necessary for the master window to be the parent
+of the slave window.
+This feature is useful in at least two situations.
+First, for complex window layouts it means you can create a
+hierarchy of subwindows whose only purpose
+is to assist in the layout of the parent.
+The ``real children'' of the parent (i.e. the windows that
+are significant for the application's user interface) can be
+children of the parent yet be placed inside the windows
+of the geometry-management hierarchy.
+This means that the path names of the ``real children''
+don't reflect the geometry-management hierarchy and users
+can specify options for the real children
+without being aware of the structure of the geometry-management
+hierarchy.
+
+A second reason for having a master different than the slave's
+parent is to tie two siblings together.
+For example, the placer can be used to force a window always to
+be positioned centered just below one of its
+siblings by specifying the configuration
+
-in sibling -relx 0.5 -rely 1.0 -anchor n -bordermode outside
+Whenever the sibling is repositioned in the future, the slave
+will be repositioned as well.
+
+Unlike many other geometry managers (such as the packer)
+the placer does not make any attempt to manipulate the geometry of
+the master windows or the parents of slave windows (i.e. it doesn't
+set their requested sizes).
+To control the sizes of these windows, make them windows like
+frames and canvases that provide configuration options for this purpose.
+
+
+geometry manager, height, location, master, place, rubber sheet, slave, width
+
+Copyright © 1992 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/popup.htm b/hlp/en/tk/popup.htm
new file mode 100644
index 0000000..3040424
--- /dev/null
+++ b/hlp/en/tk/popup.htm
@@ -0,0 +1,23 @@
+Tk Built-In Commands - tk_popup manual page
+
+tk_popup - Post a popup menu
+
+tk_popup menu x y ?entry?
+
+This procedure posts a menu at a given position on the screen and
+configures Tk so that the menu and its cascaded children can be
+traversed with the mouse or the keyboard.
+Menu is the name of a menu widget and x and y
+are the root coordinates at which to display the menu.
+If entry is omitted or an empty string, the
+menu's upper left corner is positioned at the given point.
+Otherwise entry gives the index of an entry in menu and
+the menu will be positioned so that the entry is positioned over
+the given point.
+
+
+menu, popup
+
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/radiobutton.htm b/hlp/en/tk/radiobutton.htm
new file mode 100644
index 0000000..d8f34d5
--- /dev/null
+++ b/hlp/en/tk/radiobutton.htm
@@ -0,0 +1,311 @@
+Tk Built-In Commands - radiobutton manual page
+
+- NAME
+
- radiobutton - Create and manipulate radiobutton widgets
+- SYNOPSIS
+
+- radiobutton pathName ?options?
+
+- STANDARD OPTIONS
+
+- -activebackground, activeBackground, Foreground
+
- -activeforeground, activeForeground, Background
+
- -anchor, anchor, Anchor
+
- -background or -bg, background, Background
+
- -bitmap, bitmap, Bitmap
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -disabledforeground, disabledForeground, DisabledForeground
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -image, image, Image
+
- -justify, justify, Justify
+
- -padx, padX, Pad
+
- -pady, padY, Pad
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
- -text, text, Text
+
- -textvariable, textVariable, Variable
+
- -underline, underline, Underline
+
- -wraplength, wrapLength, WrapLength
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -command, command, Command
+
- -height, height, Height
+
- -indicatoron, indicatorOn, IndicatorOn
+
- -selectcolor, selectColor, Background
+
- -selectimage, selectImage, SelectImage
+
- -state, state, State
+
- -value, value, Value
+
- -variable, variable, Variable
+
- -width, width, Width
+
+- DESCRIPTION
+
- WIDGET COMMAND
+
+- pathName cget option
+
- pathName configure ?option? ?value option value ...?
+
- pathName deselect
+
- pathName flash
+
- pathName invoke
+
- pathName select
+
+- BINDINGS
+
+
+- KEYWORDS
+
+
+radiobutton - Create and manipulate radiobutton widgets
+
+radiobutton pathName ?options?
+
+
+- -activebackground, activeBackground, Foreground
+
- -activeforeground, activeForeground, Background
+
- -anchor, anchor, Anchor
+
- -background or -bg, background, Background
+
- -bitmap, bitmap, Bitmap
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -disabledforeground, disabledForeground, DisabledForeground
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -image, image, Image
+
- -justify, justify, Justify
+
- -padx, padX, Pad
+
- -pady, padY, Pad
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
- -text, text, Text
+
- -textvariable, textVariable, Variable
+
- -underline, underline, Underline
+
- -wraplength, wrapLength, WrapLength
+
+
+
+- Command-Line Name: -command
+
- Database Name: command
+
- Database Class: Command
+
- Specifies a Tcl command to associate with the button. This command
+is typically invoked when mouse button 1 is released over the button
+window. The button's global variable (-variable option) will
+be updated before the command is invoked.
+
- Command-Line Name: -height
+
- Database Name: height
+
- Database Class: Height
+
- Specifies a desired height for the button.
+If an image or bitmap is being displayed in the button then the value is in
+screen units (i.e. any of the forms acceptable to Tk_GetPixels);
+for text it is in lines of text.
+If this option isn't specified, the button's desired height is computed
+from the size of the image or bitmap or text being displayed in it.
+
- Command-Line Name: -indicatoron
+
- Database Name: indicatorOn
+
- Database Class: IndicatorOn
+
- Specifies whether or not the indicator should be drawn. Must be a
+proper boolean value. If false, the relief option is
+ignored and the widget's relief is always sunken if the widget is
+selected and raised otherwise.
+
- Command-Line Name: -selectcolor
+
- Database Name: selectColor
+
- Database Class: Background
+
- Specifies a background color to use when the button is selected.
+If indicatorOn is true then the color applies to the indicator.
+Under Windows, this color is used as the background for the indicator
+regardless of the select state.
+If indicatorOn is false, this color is used as the background
+for the entire widget, in place of background or activeBackground,
+whenever the widget is selected.
+If specified as an empty string then no special color is used for
+displaying when the widget is selected.
+
- Command-Line Name: -selectimage
+
- Database Name: selectImage
+
- Database Class: SelectImage
+
- Specifies an image to display (in place of the image option)
+when the radiobutton is selected.
+This option is ignored unless the image option has been
+specified.
+
- Command-Line Name: -state
+
- Database Name: state
+
- Database Class: State
+
- Specifies one of three states for the radiobutton: normal, active,
+or disabled. In normal state the radiobutton is displayed using the
+foreground and background options. The active state is
+typically used when the pointer is over the radiobutton. In active state
+the radiobutton is displayed using the activeForeground and
+activeBackground options. Disabled state means that the radiobutton
+should be insensitive: the default bindings will refuse to activate
+the widget and will ignore mouse button presses.
+In this state the disabledForeground and
+background options determine how the radiobutton is displayed.
+
- Command-Line Name: -value
+
- Database Name: value
+
- Database Class: Value
+
- Specifies value to store in the button's associated variable whenever
+this button is selected.
+
- Command-Line Name: -variable
+
- Database Name: variable
+
- Database Class: Variable
+
- Specifies name of global variable to set whenever this button is
+selected. Changes in this variable also cause the button to select
+or deselect itself.
+Defaults to the value selectedButton.
+
- Command-Line Name: -width
+
- Database Name: width
+
- Database Class: Width
+
- Specifies a desired width for the button.
+If an image or bitmap is being displayed in the button, the value is in
+screen units (i.e. any of the forms acceptable to Tk_GetPixels);
+for text it is in characters.
+If this option isn't specified, the button's desired width is computed
+from the size of the image or bitmap or text being displayed in it.
+
+
+The radiobutton command creates a new window (given by the
+pathName argument) and makes it into a radiobutton widget.
+Additional
+options, described above, may be specified on the command line
+or in the option database
+to configure aspects of the radiobutton such as its colors, font,
+text, and initial relief. The radiobutton command returns its
+pathName argument. At the time this command is invoked,
+there must not exist a window named pathName, but
+pathName's parent must exist.
+
+A radiobutton is a widget that displays a textual string, bitmap or image
+and a diamond or circle called an indicator.
+If text is displayed, it must all be in a single font, but it
+can occupy multiple lines on the screen (if it contains newlines
+or if wrapping occurs because of the wrapLength option) and
+one of the characters may optionally be underlined using the
+underline option. A radiobutton has
+all of the behavior of a simple button: it can display itself in either
+of three different ways, according to the state option;
+it can be made to appear
+raised, sunken, or flat; it can be made to flash; and it invokes
+a Tcl command whenever mouse button 1 is clicked over the
+check button.
+
+In addition, radiobuttons can be selected.
+If a radiobutton is selected, the indicator is normally
+drawn with a selected appearance, and
+a Tcl variable associated with the radiobutton is set to a particular
+value (normally 1).
+Under Unix, the indicator is drawn with a sunken relief and a special
+color. Under Windows, the indicator is drawn with a round mark inside.
+If the radiobutton is not selected, then the indicator is drawn with a
+deselected appearance, and the associated variable is
+set to a different value (typically 0).
+Under Unix, the indicator is drawn with a raised relief and no special
+color. Under Windows, the indicator is drawn without a round mark inside.
+Typically, several radiobuttons share a single variable and the
+value of the variable indicates which radiobutton is to be selected.
+When a radiobutton is selected it sets the value of the variable to
+indicate that fact; each radiobutton also monitors the value of
+the variable and automatically selects and deselects itself when the
+variable's value changes.
+By default the variable selectedButton
+is used; its contents give the name of the button that is
+selected, or the empty string if no button associated with that
+variable is selected.
+The name of the variable for a radiobutton,
+plus the variable to be stored into it, may be modified with options
+on the command line or in the option database.
+Configuration options may also be used to modify the way the
+indicator is displayed (or whether it is displayed at all).
+By default a radiobutton is configured to select itself on button clicks.
+
+
+The radiobutton command creates a new Tcl command whose
+name is pathName. This
+command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+Option and the args
+determine the exact behavior of the command. The following
+commands are possible for radiobutton widgets:
+
+
+- pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the radiobutton
+command.
+
- pathName configure ?option? ?value option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the radiobutton
+command.
+
- pathName deselect
-
+Deselects the radiobutton and sets the associated variable to an
+empty string.
+If this radiobutton was not currently selected, the command has
+no effect.
+
- pathName flash
-
+Flashes the radiobutton. This is accomplished by redisplaying the radiobutton
+several times, alternating between active and normal colors. At
+the end of the flash the radiobutton is left in the same normal/active
+state as when the command was invoked.
+This command is ignored if the radiobutton's state is disabled.
+
- pathName invoke
-
+Does just what would have happened if the user invoked the radiobutton
+with the mouse: selects the button and invokes
+its associated Tcl command, if there is one.
+The return value is the return value from the Tcl command, or an
+empty string if there is no command associated with the radiobutton.
+This command is ignored if the radiobutton's state is disabled.
+
- pathName select
-
+Selects the radiobutton and sets the associated variable to the
+value corresponding to this widget.
+
+
+
+Tk automatically creates class bindings for radiobuttons that give them
+the following default behavior:
+
+
+- [1]
-
+On Unix systems, a radiobutton activates whenever the mouse passes
+over it and deactivates whenever the mouse leaves the radiobutton. On
+Mac and Windows systems, when mouse button 1 is pressed over a
+radiobutton, the button activates whenever the mouse pointer is inside
+the button, and deactivates whenever the mouse pointer leaves the
+button.
+
- [2]
-
+When mouse button 1 is pressed over a radiobutton it is invoked (it
+becomes selected and the command associated with the button is
+invoked, if there is one).
+
- [3]
-
+When a radiobutton has the input focus, the space key causes the radiobutton
+to be invoked.
+
+
+If the radiobutton's state is disabled then none of the above
+actions occur: the radiobutton is completely non-responsive.
+
+The behavior of radiobuttons can be changed by defining new bindings for
+individual widgets or by redefining the class bindings.
+
+
+radiobutton, widget
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/raise.htm b/hlp/en/tk/raise.htm
new file mode 100644
index 0000000..8902ebb
--- /dev/null
+++ b/hlp/en/tk/raise.htm
@@ -0,0 +1,27 @@
+Tk Built-In Commands - raise manual page
+
+raise - Change a window's position in the stacking order
+
+raise window ?aboveThis?
+
+If the aboveThis argument is omitted then the command raises
+window so that it is above all of its siblings in the stacking
+order (it will not be obscured by any siblings and will obscure
+any siblings that overlap it).
+If aboveThis is specified then it must be the path name of
+a window that is either a sibling of window or the descendant
+of a sibling of window.
+In this case the raise command will insert
+window into the stacking order just above aboveThis
+(or the ancestor of aboveThis that is a sibling of window);
+this could end up either raising or lowering window.
+
+
+lower
+
+obscure, raise, stacking order
+
+Copyright © 1990 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/scale.htm b/hlp/en/tk/scale.htm
new file mode 100644
index 0000000..ce97c19
--- /dev/null
+++ b/hlp/en/tk/scale.htm
@@ -0,0 +1,334 @@
+Tk Built-In Commands - scale manual page
+
+- NAME
+
- scale - Create and manipulate scale widgets
+- SYNOPSIS
+
+- scale pathName ?options?
+
+- STANDARD OPTIONS
+
+- -activebackground, activeBackground, Foreground
+
- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -orient, orient, Orient
+
- -relief, relief, Relief
+
- -repeatdelay, repeatDelay, RepeatDelay
+
- -repeatinterval, repeatInterval, RepeatInterval
+
- -takefocus, takeFocus, TakeFocus
+
- -troughcolor, troughColor, Background
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -bigincrement, bigIncrement, BigIncrement
+
- -command, command, Command
+
- -digits, digits, Digits
+
- -from, from, From
+
- -label, label, Label
+
- -length, length, Length
+
- -resolution, resolution, Resolution
+
- -showvalue, showValue, ShowValue
+
- -sliderlength, sliderLength, SliderLength
+
- -sliderrelief, sliderRelief, SliderRelief
+
- -state, state, State
+
- -tickinterval, tickInterval, TickInterval
+
- -to, to, To
+
- -variable, variable, Variable
+
- -width, width, Width
+
+- DESCRIPTION
+
- WIDGET COMMAND
+
+- pathName cget option
+
- pathName configure ?option? ?value option value ...?
+
- pathName coords ?value?
+
- pathName get ?x y?
+
- pathName identify x y
+
- pathName set value
+
+- BINDINGS
+
+
+- KEYWORDS
+
+
+scale - Create and manipulate scale widgets
+
+scale pathName ?options?
+
+
+- -activebackground, activeBackground, Foreground
+
- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -orient, orient, Orient
+
- -relief, relief, Relief
+
- -repeatdelay, repeatDelay, RepeatDelay
+
- -repeatinterval, repeatInterval, RepeatInterval
+
- -takefocus, takeFocus, TakeFocus
+
- -troughcolor, troughColor, Background
+
+
+
+- Command-Line Name: -bigincrement
+
- Database Name: bigIncrement
+
- Database Class: BigIncrement
+
- Some interactions with the scale cause its value to change by
+``large'' increments; this option specifies the size of the
+large increments. If specified as 0, the large increments default
+to 1/10 the range of the scale.
+
- Command-Line Name: -command
+
- Database Name: command
+
- Database Class: Command
+
- Specifies the prefix of a Tcl command to invoke whenever the scale's
+value is changed via a widget command.
+The actual command consists
+of this option followed by a space and a real number indicating the
+new value of the scale.
+
- Command-Line Name: -digits
+
- Database Name: digits
+
- Database Class: Digits
+
- An integer specifying how many significant digits should be retained
+when converting the value of the scale to a string.
+If the number is less than or equal to zero, then the scale picks
+the smallest value that guarantees that every possible slider
+position prints as a different string.
+
- Command-Line Name: -from
+
- Database Name: from
+
- Database Class: From
+
- A real value corresponding to the left or top end of the scale.
+
- Command-Line Name: -label
+
- Database Name: label
+
- Database Class: Label
+
- A string to display as a label for the scale. For
+vertical scales the label is displayed just to the right of the
+top end of the scale. For horizontal scales the label is displayed
+just above the left end of the scale. If the option is specified
+as an empty string, no label is displayed.
+
- Command-Line Name: -length
+
- Database Name: length
+
- Database Class: Length
+
- Specifies the desired long dimension of the scale in screen units
+(i.e. any of the forms acceptable to Tk_GetPixels).
+For vertical scales this is the scale's height; for horizontal scales
+it is the scale's width.
+
- Command-Line Name: -resolution
+
- Database Name: resolution
+
- Database Class: Resolution
+
- A real value specifying the resolution for the scale.
+If this value is greater than zero then the scale's value will always be
+rounded to an even multiple of this value, as will tick marks and
+the endpoints of the scale. If the value is less than zero then no
+rounding occurs. Defaults to 1 (i.e., the value will be integral).
+
- Command-Line Name: -showvalue
+
- Database Name: showValue
+
- Database Class: ShowValue
+
- Specifies a boolean value indicating whether or not the current
+value of the scale is to be displayed.
+
- Command-Line Name: -sliderlength
+
- Database Name: sliderLength
+
- Database Class: SliderLength
+
- Specfies the size of the slider, measured in screen units along the slider's
+long dimension. The value may be specified in any of the forms acceptable
+to Tk_GetPixels.
+
- Command-Line Name: -sliderrelief
+
- Database Name: sliderRelief
+
- Database Class: SliderRelief
+
- Specifies the relief to use when drawing the slider, such as raised
+or sunken.
+
- Command-Line Name: -state
+
- Database Name: state
+
- Database Class: State
+
- Specifies one of three states for the scale: normal,
+active, or disabled.
+If the scale is disabled then the value may not be changed and the scale
+won't activate.
+If the scale is active, the slider is displayed using the color
+specified by the activeBackground option.
+
- Command-Line Name: -tickinterval
+
- Database Name: tickInterval
+
- Database Class: TickInterval
+
- Must be a real value.
+Determines the spacing between numerical
+tick marks displayed below or to the left of the slider.
+If 0, no tick marks will be displayed.
+
- Command-Line Name: -to
+
- Database Name: to
+
- Database Class: To
+
- Specifies a real value corresponding
+to the right or bottom end of the scale.
+This value may be either less than or greater than the from option.
+
- Command-Line Name: -variable
+
- Database Name: variable
+
- Database Class: Variable
+
- Specifies the name of a global variable to link to the scale. Whenever the
+value of the variable changes, the scale will update to reflect this
+value.
+Whenever the scale is manipulated interactively, the variable
+will be modified to reflect the scale's new value.
+
- Command-Line Name: -width
+
- Database Name: width
+
- Database Class: Width
+
- Specifies the desired narrow dimension of the trough in screen units
+(i.e. any of the forms acceptable to Tk_GetPixels).
+For vertical scales this is the trough's width; for horizontal scales
+this is the trough's height.
+
+
+The scale command creates a new window (given by the
+pathName argument) and makes it into a scale widget.
+Additional
+options, described above, may be specified on the command line
+or in the option database
+to configure aspects of the scale such as its colors, orientation,
+and relief. The scale command returns its
+pathName argument. At the time this command is invoked,
+there must not exist a window named pathName, but
+pathName's parent must exist.
+
+A scale is a widget that displays a rectangular trough and a
+small slider. The trough corresponds to a range
+of real values (determined by the from, to, and
+resolution options),
+and the position of the slider selects a particular real value.
+The slider's position (and hence the scale's value) may be adjusted
+with the mouse or keyboard as described in the BINDINGS
+section below. Whenever the scale's value is changed, a Tcl
+command is invoked (using the command option) to notify
+other interested widgets of the change.
+In addition, the value
+of the scale can be linked to a Tcl variable (using the variable
+option), so that changes in either are reflected in the other.
+
+Three annotations may be displayed in a scale widget: a label
+appearing at the top right of the widget (top left for horizontal
+scales), a number displayed just to the left of the slider
+(just above the slider for horizontal scales), and a collection
+of numerical tick marks just to the left of the current value
+(just below the trough for horizontal scales). Each of these three
+annotations may be enabled or disabled using the
+configuration options.
+
+
+The scale command creates a new Tcl command whose
+name is pathName. This
+command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+Option and the args
+determine the exact behavior of the command. The following
+commands are possible for scale widgets:
+
+
+- pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the scale
+command.
+
- pathName configure ?option? ?value option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the scale
+command.
+
- pathName coords ?value?
-
+Returns a list whose elements are the x and y coordinates of
+the point along the centerline of the trough that corresponds
+to value.
+If value is omitted then the scale's current value is used.
+
- pathName get ?x y?
-
+If x and y are omitted, returns the current value
+of the scale. If x and y are specified, they give
+pixel coordinates within the widget; the command returns
+the scale value corresponding to the given pixel.
+Only one of x or y is used: for horizontal scales
+y is ignored, and for vertical scales x is ignored.
+
- pathName identify x y
-
+Returns a string indicating what part of the scale lies under
+the coordinates given by x and y.
+A return value of slider means that the point is over
+the slider; trough1 means that the point is over the
+portion of the slider above or to the left of the slider;
+and trough2 means that the point is over the portion
+of the slider below or to the right of the slider.
+If the point isn't over one of these elements, an empty string
+is returned.
+
- pathName set value
-
+This command is invoked to change the current value of the scale,
+and hence the position at which the slider is displayed. Value
+gives the new value for the scale.
+The command has no effect if the scale is disabled.
+
+
+
+Tk automatically creates class bindings for scales that give them
+the following default behavior.
+Where the behavior is different for vertical and horizontal scales,
+the horizontal behavior is described in parentheses.
+
+
+- [1]
-
+If button 1 is pressed in the trough, the scale's value will
+be incremented or decremented by the value of the resolution
+option so that the slider moves in the direction of the cursor.
+If the button is held down, the action auto-repeats.
+
- [2]
-
+If button 1 is pressed over the slider, the slider can be dragged
+with the mouse.
+
- [3]
-
+If button 1 is pressed in the trough with the Control key down,
+the slider moves all the way to the end of its range, in the
+direction towards the mouse cursor.
+
- [4]
-
+If button 2 is pressed, the scale's value is set to the mouse
+position. If the mouse is dragged with button 2 down, the scale's
+value changes with the drag.
+
- [5]
-
+The Up and Left keys move the slider up (left) by the value
+of the resolution option.
+
- [6]
-
+The Down and Right keys move the slider down (right) by the value
+of the resolution option.
+
- [7]
-
+Control-Up and Control-Left move the slider up (left) by the
+value of the bigIncrement option.
+
- [8]
-
+Control-Down and Control-Right move the slider down (right) by the
+value of the bigIncrement option.
+
- [9]
-
+Home moves the slider to the top (left) end of its range.
+
- [10]
-
+End moves the slider to the bottom (right) end of its range.
+
+
+If the scale is disabled using the state option then
+none of the above bindings have any effect.
+
+The behavior of scales can be changed by defining new bindings for
+individual widgets or by redefining the class bindings.
+
+
+scale, slider, trough, widget
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/scrollbar.htm b/hlp/en/tk/scrollbar.htm
new file mode 100644
index 0000000..4013d77
--- /dev/null
+++ b/hlp/en/tk/scrollbar.htm
@@ -0,0 +1,414 @@
+Tk Built-In Commands - scrollbar manual page
+
+- NAME
+
- scrollbar - Create and manipulate scrollbar widgets
+- SYNOPSIS
+
+- scrollbar pathName ?options?
+
+- STANDARD OPTIONS
+
+- -activebackground, activeBackground, Foreground
+
- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -jump, jump, Jump
+
- -orient, orient, Orient
+
- -relief, relief, Relief
+
- -repeatdelay, repeatDelay, RepeatDelay
+
- -repeatinterval, repeatInterval, RepeatInterval
+
- -takefocus, takeFocus, TakeFocus
+
- -troughcolor, troughColor, Background
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -activerelief, activeRelief, ActiveRelief
+
- -command, command, Command
+
- -elementborderwidth, elementBorderWidth, BorderWidth
+
- -width, width, Width
+
+- DESCRIPTION
+
- ELEMENTS
+
+- arrow1
+
- trough1
+
- slider
+
- trough2
+
- arrow2
+
+- WIDGET COMMAND
+
+- pathName activate ?element?
+
- pathName cget option
+
- pathName configure ?option? ?value option value ...?
+
- pathName delta deltaX deltaY
+
- pathName fraction x y
+
- pathName get
+
- pathName identify x y
+
- pathName set first last
+
+- SCROLLING COMMANDS
+
+- prefix moveto fraction
+
- prefix scroll number units
+
- prefix scroll number pages
+
+- OLD COMMAND SYNTAX
+
+- pathName set totalUnits windowUnits firstUnit lastUnit
+
+
+- prefix unit
+
+- BINDINGS
+
+
+- KEYWORDS
+
+
+scrollbar - Create and manipulate scrollbar widgets
+
+scrollbar pathName ?options?
+
+
+- -activebackground, activeBackground, Foreground
+
- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -jump, jump, Jump
+
- -orient, orient, Orient
+
- -relief, relief, Relief
+
- -repeatdelay, repeatDelay, RepeatDelay
+
- -repeatinterval, repeatInterval, RepeatInterval
+
- -takefocus, takeFocus, TakeFocus
+
- -troughcolor, troughColor, Background
+
+
+
+- Command-Line Name: -activerelief
+
- Database Name: activeRelief
+
- Database Class: ActiveRelief
+
- Specifies the relief to use when displaying the element that is
+active, if any.
+Elements other than the active element are always displayed with
+a raised relief.
+
- Command-Line Name: -command
+
- Database Name: command
+
- Database Class: Command
+
- Specifies the prefix of a Tcl command to invoke to change the view
+in the widget associated with the scrollbar. When a user requests
+a view change by manipulating the scrollbar, a Tcl command is
+invoked. The actual command consists of this option followed by
+additional information as described later. This option almost always has
+a value such as .t xview or .t yview, consisting of the
+name of a widget and either xview (if the scrollbar is for
+horizontal scrolling) or yview (for vertical scrolling).
+All scrollable widgets have xview and yview commands
+that take exactly the additional arguments appended by the scrollbar
+as described in SCROLLING COMMANDS below.
+
- Command-Line Name: -elementborderwidth
+
- Database Name: elementBorderWidth
+
- Database Class: BorderWidth
+
- Specifies the width of borders drawn around the internal elements
+of the scrollbar (the two arrows and the slider). The value may
+have any of the forms acceptable to Tk_GetPixels.
+If this value is less than zero, the value of the borderWidth
+option is used in its place.
+
- Command-Line Name: -width
+
- Database Name: width
+
- Database Class: Width
+
- Specifies the desired narrow dimension of the scrollbar window,
+not including 3-D border, if any. For vertical
+scrollbars this will be the width and for horizontal scrollbars
+this will be the height.
+The value may have any of the forms acceptable to Tk_GetPixels.
+
+
+The scrollbar command creates a new window (given by the
+pathName argument) and makes it into a scrollbar widget.
+Additional options, described above, may be specified on the command
+line or in the option database to configure aspects of the scrollbar
+such as its colors, orientation, and relief.
+The scrollbar command returns its pathName argument.
+At the time this command is invoked, there must not exist a window
+named pathName, but pathName's parent must exist.
+
+A scrollbar is a widget that displays two arrows, one at each end of
+the scrollbar, and a slider in the middle portion of the
+scrollbar.
+It provides information about what is visible in an associated window
+that displays an document of some sort (such as a file being edited or
+a drawing).
+The position and size of the slider indicate which portion of the
+document is visible in the associated window. For example, if the
+slider in a vertical scrollbar covers the top third of the area
+between the two arrows, it means that the associated window displays
+the top third of its document.
+
+Scrollbars can be used to adjust the view in the associated window
+by clicking or dragging with the mouse. See the BINDINGS section
+below for details.
+
+
+A scrollbar displays five elements, which are referred to in the
+widget commands for the scrollbar:
+
+
+- arrow1
-
+The top or left arrow in the scrollbar.
+
- trough1
-
+The region between the slider and arrow1.
+
- slider
-
+The rectangle that indicates what is visible in the associated widget.
+
- trough2
-
+The region between the slider and arrow2.
+
- arrow2
-
+The bottom or right arrow in the scrollbar.
+
+
+
+The scrollbar command creates a new Tcl command whose
+name is pathName. This
+command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+Option and the args
+determine the exact behavior of the command. The following
+commands are possible for scrollbar widgets:
+
+
+- pathName activate ?element?
-
+Marks the element indicated by element as active, which
+causes it to be displayed as specified by the activeBackground
+and activeRelief options.
+The only element values understood by this command are arrow1,
+slider, or arrow2.
+If any other value is specified then no element of the scrollbar
+will be active.
+If element is not specified, the command returns
+the name of the element that is currently active, or an empty string
+if no element is active.
+
- pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the scrollbar
+command.
+
- pathName configure ?option? ?value option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the scrollbar
+command.
+
- pathName delta deltaX deltaY
-
+Returns a real number indicating the fractional change in
+the scrollbar setting that corresponds to a given change
+in slider position. For example, if the scrollbar is horizontal,
+the result indicates how much the scrollbar setting must change
+to move the slider deltaX pixels to the right (deltaY is
+ignored in this case).
+If the scrollbar is vertical, the result indicates how much the
+scrollbar setting must change to move the slider deltaY pixels
+down. The arguments and the result may be zero or negative.
+
- pathName fraction x y
-
+Returns a real number between 0 and 1 indicating where the point
+given by x and y lies in the trough area of the scrollbar.
+The value 0 corresponds to the top or left of the trough, the
+value 1 corresponds to the bottom or right, 0.5 corresponds to
+the middle, and so on.
+X and y must be pixel coordinates relative to the scrollbar
+widget.
+If x and y refer to a point outside the trough, the closest
+point in the trough is used.
+
- pathName get
-
+Returns the scrollbar settings in the form of a list whose
+elements are the arguments to the most recent set widget command.
+
- pathName identify x y
-
+Returns the name of the element under the point given by x and
+y (such as arrow1), or an empty string if the point does
+not lie in any element of the scrollbar.
+X and y must be pixel coordinates relative to the scrollbar
+widget.
+
- pathName set first last
-
+This command is invoked by the scrollbar's associated widget to
+tell the scrollbar about the current view in the widget.
+The command takes two arguments, each of which is a real fraction
+between 0 and 1.
+The fractions describe the range of the document that is visible in
+the associated widget.
+For example, if first is 0.2 and last is 0.4, it means
+that the first part of the document visible in the window is 20%
+of the way through the document, and the last visible part is 40%
+of the way through.
+
+
+
+When the user interacts with the scrollbar, for example by dragging
+the slider, the scrollbar notifies the associated widget that it
+must change its view.
+The scrollbar makes the notification by evaluating a Tcl command
+generated from the scrollbar's -command option.
+The command may take any of the following forms.
+In each case, prefix is the contents of the
+-command option, which usually has a form like .t yview
+
+
+- prefix moveto fraction
-
+Fraction is a real number between 0 and 1.
+The widget should adjust its view so that the point given
+by fraction appears at the beginning of the widget.
+If fraction is 0 it refers to the beginning of the
+document. 1.0 refers to the end of the document, 0.333
+refers to a point one-third of the way through the document,
+and so on.
+
- prefix scroll number units
-
+The widget should adjust its view by number units.
+The units are defined in whatever way makes sense for the widget,
+such as characters or lines in a text widget.
+Number is either 1, which means one unit should scroll off
+the top or left of the window, or -1, which means that one unit
+should scroll off the bottom or right of the window.
+
- prefix scroll number pages
-
+The widget should adjust its view by number pages.
+It is up to the widget to define the meaning of a page; typically
+it is slightly less than what fits in the window, so that there
+is a slight overlap between the old and new views.
+Number is either 1, which means the next page should
+become visible, or -1, which means that the previous page should
+become visible.
+
+
+
+In versions of Tk before 4.0, the set and get widget
+commands used a different form.
+This form is still supported for backward compatibility, but it
+is deprecated.
+In the old command syntax, the set widget command has the
+following form:
+
+
+- pathName set totalUnits windowUnits firstUnit lastUnit
-
+In this form the arguments are all integers.
+TotalUnits gives the total size of the object being displayed in the
+associated widget. The meaning of one unit depends on the associated
+widget; for example, in a text editor widget units might
+correspond to lines of
+text. WindowUnits indicates the total number of units that
+can fit in the associated window at one time. FirstUnit
+and lastUnit give the indices of the first and last units
+currently visible in the associated window (zero corresponds to the
+first unit of the object).
+
+
+Under the old syntax the get widget command returns a list
+of four integers, consisting of the totalUnits, windowUnits,
+firstUnit, and lastUnit values from the last set
+widget command.
+
+The commands generated by scrollbars also have a different form
+when the old syntax is being used:
+
+
+- prefix unit
-
+Unit is an integer that indicates what should appear at
+the top or left of the associated widget's window.
+It has the same meaning as the firstUnit and lastUnit
+arguments to the set widget command.
+
+
+The most recent set widget command determines whether or not
+to use the old syntax.
+If it is given two real arguments then the new syntax will be
+used in the future, and if it is given four integer arguments then
+the old syntax will be used.
+
+
+Tk automatically creates class bindings for scrollbars that give them
+the following default behavior.
+If the behavior is different for vertical and horizontal scrollbars,
+the horizontal behavior is described in parentheses.
+
+
+
+- [1]
-
+Pressing button 1 over arrow1 causes the view in the
+associated widget to shift up (left) by one unit so that the
+document appears to move down (right) one unit.
+If the button is held down, the action auto-repeats.
+
- [2]
-
+Pressing button 1 over trough1 causes the view in the
+associated widget to shift up (left) by one screenful so that the
+document appears to move down (right) one screenful.
+If the button is held down, the action auto-repeats.
+
- [3]
-
+Pressing button 1 over the slider and dragging causes the view
+to drag with the slider.
+If the jump option is true, then the view doesn't drag along
+with the slider; it changes only when the mouse button is released.
+
- [4]
-
+Pressing button 1 over trough2 causes the view in the
+associated widget to shift down (right) by one screenful so that the
+document appears to move up (left) one screenful.
+If the button is held down, the action auto-repeats.
+
- [5]
-
+Pressing button 1 over arrow2 causes the view in the
+associated widget to shift down (right) by one unit so that the
+document appears to move up (left) one unit.
+If the button is held down, the action auto-repeats.
+
- [6]
-
+If button 2 is pressed over the trough or the slider, it sets
+the view to correspond to the mouse position; dragging the
+mouse with button 2 down causes the view to drag with the mouse.
+If button 2 is pressed over one of the arrows, it causes the
+same behavior as pressing button 1.
+
- [7]
-
+If button 1 is pressed with the Control key down, then if the
+mouse is over arrow1 or trough1 the view changes
+to the very top (left) of the document; if the mouse is over
+arrow2 or trough2 the view changes
+to the very bottom (right) of the document; if the mouse is
+anywhere else then the button press has no effect.
+
- [8]
-
+In vertical scrollbars the Up and Down keys have the same behavior
+as mouse clicks over arrow1 and arrow2, respectively.
+In horizontal scrollbars these keys have no effect.
+
- [9]
-
+In vertical scrollbars Control-Up and Control-Down have the same
+behavior as mouse clicks over trough1 and trough2, respectively.
+In horizontal scrollbars these keys have no effect.
+
- [10]
-
+In horizontal scrollbars the Up and Down keys have the same behavior
+as mouse clicks over arrow1 and arrow2, respectively.
+In vertical scrollbars these keys have no effect.
+
- [11]
-
+In horizontal scrollbars Control-Up and Control-Down have the same
+behavior as mouse clicks over trough1 and trough2, respectively.
+In vertical scrollbars these keys have no effect.
+
- [12]
-
+The Prior and Next keys have the same behavior
+as mouse clicks over trough1 and trough2, respectively.
+
- [13]
-
+The Home key adjusts the view to the top (left edge) of the document.
+
- [14]
-
+The End key adjusts the view to the bottom (right edge) of the document.
+
+
+
+scrollbar, widget
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/selection.htm b/hlp/en/tk/selection.htm
new file mode 100644
index 0000000..3373c13
--- /dev/null
+++ b/hlp/en/tk/selection.htm
@@ -0,0 +1,130 @@
+Tk Built-In Commands - selection manual page
+
+- NAME
+
- selection - Manipulate the X selection
+- SYNOPSIS
+
+- selection option ?arg arg ...?
+
+- DESCRIPTION
+
+- selection clear ?-displayof window? ?-selection selection?
+
- selection get ?-displayof window? ?-selection selection? ?-type type?
+
- selection handle ?-selection selection? ?-type type? ?-format format? window command
+
- selection own ?-displayof window? ?-selection selection?
+
- selection own ?-command command? ?-selection selection? window
+
+- KEYWORDS
+
+
+selection - Manipulate the X selection
+
+selection option ?arg arg ...?
+
+This command provides a Tcl interface to the X selection mechanism and
+implements the full selection functionality described in the
+X Inter-Client Communication Conventions Manual (ICCCM).
+
+The first argument to selection determines the format of the
+rest of the arguments and the behavior of the command. The following
+forms are currently supported:
+
+
+
+- selection clear ?-displayof window? ?-selection selection?
-
+If selection exists anywhere on window's display, clear it
+so that no window owns the selection anymore. Selection
+specifies the X selection that should be cleared, and should be an
+atom name such as PRIMARY or CLIPBOARD; see the Inter-Client
+Communication Conventions Manual for complete details.
+Selection defaults to PRIMARY and window defaults to ``.''.
+Returns an empty string.
+
- selection get ?-displayof window? ?-selection selection? ?-type type?
-
+Retrieves the value of selection from window's display and
+returns it as a result. Selection defaults to PRIMARY and
+window defaults to ``.''.
+Type specifies the form in which the selection is to be returned
+(the desired ``target'' for conversion, in ICCCM terminology), and
+should be an atom name such as STRING or FILE_NAME; see the
+Inter-Client Communication Conventions Manual for complete details.
+Type defaults to STRING. The selection owner may choose to
+return the selection in any of several different representation
+formats, such as STRING, ATOM, INTEGER, etc. (this format is different
+than the selection type; see the ICCCM for all the confusing details).
+If the selection is returned in a non-string format, such as INTEGER
+or ATOM, the selection command converts it to string format as a
+collection of fields separated by spaces: atoms are converted to their
+textual names, and anything else is converted to hexadecimal integers.
+
- selection handle ?-selection selection? ?-type type? ?-format format? window command
-
+Creates a handler for selection requests, such that command will
+be executed whenever selection is owned by window and
+someone attempts to retrieve it in the form given by type
+(e.g. type is specified in the selection get command).
+Selection defaults to PRIMARY, type defaults to STRING, and
+format defaults to STRING. If command is an empty string
+then any existing handler for window, type, and
+selection is removed.
+
+When selection is requested, window is the selection owner,
+and type is the requested type, command will be executed
+as a Tcl command with two additional numbers appended to it
+(with space separators).
+The two additional numbers
+are offset and maxChars: offset specifies a starting
+character position in the selection and maxChars gives the maximum
+number of characters to retrieve. The command should return a value consisting
+of at most maxChars of the selection, starting at position
+offset. For very large selections (larger than maxChars)
+the selection will be retrieved using several invocations of command
+with increasing offset values. If command returns a string
+whose length is less than maxChars, the return value is assumed to
+include all of the remainder of the selection; if the length of
+command's result is equal to maxChars then
+command will be invoked again, until it eventually
+returns a result shorter than maxChars. The value of maxChars
+will always be relatively large (thousands of characters).
+
+If command returns an error then the selection retrieval is rejected
+just as if the selection didn't exist at all.
+
+The format argument specifies the representation that should be
+used to transmit the selection to the requester (the second column of
+Table 2 of the ICCCM), and defaults to STRING. If format is
+STRING, the selection is transmitted as 8-bit ASCII characters (i.e.
+just in the form returned by command). If format is
+ATOM, then the return value from command is divided into fields
+separated by white space; each field is converted to its atom value,
+and the 32-bit atom value is transmitted instead of the atom name.
+For any other format, the return value from command is
+divided into fields separated by white space and each field is
+converted to a 32-bit integer; an array of integers is transmitted
+to the selection requester.
+
The format argument is needed only for compatibility with
+selection requesters that don't use Tk. If Tk is being
+used to retrieve the selection then the value is converted back to
+a string at the requesting end, so format is
+irrelevant.
+
- selection own ?-displayof window? ?-selection selection?
-
+
- selection own ?-command command? ?-selection selection? window
-
+The first form of selection own returns the path name of the
+window in this application that owns selection on the display
+containing window, or an empty string if no window in this
+application owns the selection. Selection defaults to PRIMARY and
+window defaults to ``.''.
+
+
+The second form of selection own causes window to become
+the new owner of selection on window's display, returning
+an empty string as result. The existing owner, if any, is notified
+that it has lost the selection.
+If command is specified, it is a Tcl script to execute when
+some other window claims ownership of the selection away from
+window. Selection defaults to PRIMARY.
+
+
+clear, format, handler, ICCCM, own, selection, target, type
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/send.htm b/hlp/en/tk/send.htm
new file mode 100644
index 0000000..51da636
--- /dev/null
+++ b/hlp/en/tk/send.htm
@@ -0,0 +1,98 @@
+Tk Built-In Commands - send manual page
+
+- NAME
+
- send - Execute a command in a different application
+- SYNOPSIS
+
+- send ?options? app cmd ?arg arg ...?
+
+- DESCRIPTION
+
+- -async
+
- -displayof pathName
+
- - -
+
+- APPLICATION NAMES
+
- DISABLING SENDS
+
- SECURITY
+
- KEYWORDS
+
+
+send - Execute a command in a different application
+
+send ?options? app cmd ?arg arg ...?
+
+This command arranges for cmd (and args) to be executed in the
+application named by app. It returns the result or
+error from that command execution.
+App may be the name of any application whose main window is
+on the display containing the sender's main window; it need not
+be within the same process.
+If no arg arguments are present, then the command to be executed is
+contained entirely within the cmd argument. If one or
+more args are present, they are concatenated to form the
+command to be executed, just as for the eval command.
+
+If the initial arguments of the command begin with ``-''
+they are treated as options. The following options are
+currently defined:
+
+
+- -async
-
+Requests asynchronous invocation. In this case the send
+command will complete immediately without waiting for cmd
+to complete in the target application; no result will be available
+and errors in the sent command will be ignored.
+If the target application is in the same process as the sending
+application then the -async option is ignored.
+
- -displayof pathName
-
+Specifies that the target application's main window is on the display
+of the window given by pathName, instead of the display containing
+the application's main window.
+
- - -
-
+Serves no purpose except to terminate the list of options. This
+option is needed only if app could contain a leading ``-''
+character.
+
+
+
+The name of an application is set initially from the name of the
+program or script that created the application.
+You can query and change the name of an application with the
+tk appname command.
+
+
+If the send command is removed from an application (e.g.
+with the command rename send {}) then the application
+will not respond to incoming send requests anymore, nor will it
+be able to issue outgoing requests.
+Communication can be reenabled by invoking the tk appname
+command.
+
+
+The send command is potentially a serious security loophole. On Unix,
+any application that can connect to your X server can send
+scripts to your applications.
+These incoming scripts can use Tcl to read and
+write your files and invoke subprocesses under your name.
+Host-based access control such as that provided by xhost
+is particularly insecure, since it allows anyone with an account
+on particular hosts to connect to your server, and if disabled it
+allows anyone anywhere to connect to your server.
+In order to provide at least a small amount of
+security, Tk checks the access control being used by the server
+and rejects incoming sends unless (a) xhost-style access control
+is enabled (i.e. only certain hosts can establish connections) and (b) the
+list of enabled hosts is empty.
+This means that applications cannot connect to your server unless
+they use some other form of authorization
+such as that provide by xauth.
+Under Windows, send is currently disabled. Most of the
+functionality is provided by the dde command instead.
+
+application, dde, name, remote execution, security, send
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/text.htm b/hlp/en/tk/text.htm
new file mode 100644
index 0000000..6902825
--- /dev/null
+++ b/hlp/en/tk/text.htm
@@ -0,0 +1,1768 @@
+Tk Built-In Commands - text manual page
+
+- NAME
+
- text - Create and manipulate text widgets
+- SYNOPSIS
+
+- text pathName ?options?
+
+- STANDARD OPTIONS
+
+- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -exportselection, exportSelection, ExportSelection
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -insertbackground, insertBackground, Foreground
+
- -insertborderwidth, insertBorderWidth, BorderWidth
+
- -insertofftime, insertOffTime, OffTime
+
- -insertontime, insertOnTime, OnTime
+
- -insertwidth, insertWidth, InsertWidth
+
- -padx, padX, Pad
+
- -pady, padY, Pad
+
- -relief, relief, Relief
+
- -selectbackground, selectBackground, Foreground
+
- -selectborderwidth, selectBorderWidth, BorderWidth
+
- -selectforeground, selectForeground, Background
+
- -setgrid, setGrid, SetGrid
+
- -takefocus, takeFocus, TakeFocus
+
- -xscrollcommand, xScrollCommand, ScrollCommand
+
- -yscrollcommand, yScrollCommand, ScrollCommand
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -height, height, Height
+
- -spacing1, spacing1, Spacing1
+
- -spacing2, spacing2, Spacing2
+
- -spacing3, spacing3, Spacing3
+
- -state, state, State
+
- -tabs, tabs, Tabs
+
- -width, width, Width
+
- -wrap, wrap, Wrap
+
+- DESCRIPTION
+
- INDICES
+
+- line.char
+
- @x,y
+
- end
+
- mark
+
- tag.first
+
- tag.last
+
- pathName
+
- .VS
+
+
+- + count chars
+
- - count chars
+
- + count lines
+
- - count lines
+
- linestart
+
- lineend
+
- wordstart
+
- wordend
+
+- TAGS
+
+- -background color
+
- -bgstipple bitmap
+
- -borderwidth pixels
+
- -elide boolean
+
- -fgstipple bitmap
+
- -font fontName
+
- -foreground color
+
- -justify justify
+
- -lmargin1 pixels
+
- -lmargin2 pixels
+
- -offset pixels
+
- -overstrike boolean
+
- -relief relief
+
- -rmargin pixels
+
- -spacing1 pixels
+
- -spacing2 pixels
+
- -spacing3 pixels
+
- -tabs tabList
+
- -underline boolean
+
- -wrap mode
+
+- MARKS
+
- EMBEDDED WINDOWS
+
+- -align where
+
- -create script
+
- -padx pixels
+
- -pady pixels
+
- -stretch boolean
+
- -window pathName
+
+- EMBEDDED IMAGES
+
+- -align where
+
- -image image
+
- -name ImageName
+
- -padx pixels
+
- -pady pixels
+
+- THE SELECTION
+
+
+- THE INSERTION CURSOR
+
- WIDGET COMMAND
+
+- pathName bbox index
+
- pathName cget option
+
- pathName compare index1 op index2
+
- pathName configure ?option? ?value option value ...?
+
- pathName debug ?boolean?
+
- pathName delete index1 ?index2?
+
- pathName dlineinfo index
+
- pathName dump ?switches? index1 ?index2?
+
+
+- -all
+
- -command command
+
- -image
+
- -mark
+
- -tag
+
- -text
+
- -window
+
+
+- pathName get index1 ?index2?
+
- pathName image option ?arg arg ...?
+
+- pathName image cget index option
+
- pathName image configure index ?option value ...?
+
- pathName image create index ?option value ...?
+
- pathName image names
+
+- pathName index index
+
- pathName insert index chars ?tagList chars tagList ...?
+
- pathName mark option ?arg arg ...?
+
+- pathName mark gravity markName ?direction?
+
- pathName mark names
+
- pathName mark next index
+
- pathName mark previous index
+
- pathName mark set markName index
+
- pathName mark unset markName ?markName markName ...?
+
+- pathName scan option args
+
+- pathName scan mark x y
+
- pathName scan dragto x y
+
+- pathName search ?switches? pattern index ?stopIndex?
+
+- -forwards
+
- -backwards
+
- -exact
+
- -regexp
+
- -nocase
+
- -count varName
+
- -elide
+
- - -
+
+- pathName see index
+
- pathName tag option ?arg arg ...?
+
+- pathName tag add tagName index1 ?index2 index1 index2 ...?
+
- pathName tag bind tagName ?sequence? ?script?
+
- pathName tag cget tagName option
+
- pathName tag configure tagName ?option? ?value? ?option value ...?
+
- pathName tag delete tagName ?tagName ...?
+
- pathName tag lower tagName ?belowThis?
+
- pathName tag names ?index?
+
- pathName tag nextrange tagName index1 ?index2?
+
- pathName tag prevrange tagName index1 ?index2?
+
- pathName tag raise tagName ?aboveThis?
+
- pathName tag ranges tagName
+
- pathName tag remove tagName index1 ?index2 index1 index2 ...?
+
+- pathName window option ?arg arg ...?
+
+- pathName window cget index option
+
- pathName window configure index ?option value ...?
+
- pathName window create index ?option value ...?
+
- pathName window names
+
+- pathName xview option args
+
+- pathName xview
+
- pathName xview moveto fraction
+
- pathName xview scroll number what
+
+- pathName yview ?args?
+
+- pathName yview
+
- pathName yview moveto fraction
+
- pathName yview scroll number what
+
- pathName yview ?-pickplace? index
+
+
+- pathName yview number
+
+
+- BINDINGS
+
+
+- PERFORMANCE ISSUES
+
- KEYWORDS
+
+
+text - Create and manipulate text widgets
+
+text pathName ?options?
+
+
+- -background or -bg, background, Background
+
- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -exportselection, exportSelection, ExportSelection
+
- -font, font, Font
+
- -foreground or -fg, foreground, Foreground
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -insertbackground, insertBackground, Foreground
+
- -insertborderwidth, insertBorderWidth, BorderWidth
+
- -insertofftime, insertOffTime, OffTime
+
- -insertontime, insertOnTime, OnTime
+
- -insertwidth, insertWidth, InsertWidth
+
- -padx, padX, Pad
+
- -pady, padY, Pad
+
- -relief, relief, Relief
+
- -selectbackground, selectBackground, Foreground
+
- -selectborderwidth, selectBorderWidth, BorderWidth
+
- -selectforeground, selectForeground, Background
+
- -setgrid, setGrid, SetGrid
+
- -takefocus, takeFocus, TakeFocus
+
- -xscrollcommand, xScrollCommand, ScrollCommand
+
- -yscrollcommand, yScrollCommand, ScrollCommand
+
+
+
+- Command-Line Name: -height
+
- Database Name: height
+
- Database Class: Height
+
- Specifies the desired height for the window, in units of characters
+in the font given by the -font option.
+Must be at least one.
+
- Command-Line Name: -spacing1
+
- Database Name: spacing1
+
- Database Class: Spacing1
+
- Requests additional space above each text line in the widget,
+using any of the standard forms for screen distances.
+If a line wraps, this option only applies to the first line
+on the display.
+This option may be overriden with -spacing1 options in
+tags.
+
- Command-Line Name: -spacing2
+
- Database Name: spacing2
+
- Database Class: Spacing2
+
- For lines that wrap (so that they cover more than one line on the
+display) this option specifies additional space to provide between
+the display lines that represent a single line of text.
+The value may have any of the standard forms for screen distances.
+This option may be overriden with -spacing2 options in
+tags.
+
- Command-Line Name: -spacing3
+
- Database Name: spacing3
+
- Database Class: Spacing3
+
- Requests additional space below each text line in the widget,
+using any of the standard forms for screen distances.
+If a line wraps, this option only applies to the last line
+on the display.
+This option may be overriden with -spacing3 options in
+tags.
+
- Command-Line Name: -state
+
- Database Name: state
+
- Database Class: State
+
- Specifies one of two states for the text: normal or disabled.
+If the text is disabled then characters may not be inserted or deleted
+and no insertion cursor will be displayed, even if the input focus is
+in the widget.
+
- Command-Line Name: -tabs
+
- Database Name: tabs
+
- Database Class: Tabs
+
- Specifies a set of tab stops for the window. The option's value consists
+of a list of screen distances giving the positions of the tab stops. Each
+position may optionally be followed in the next list element
+by one of the keywords left, right, center,
+or numeric, which specifies how to justify
+text relative to the tab stop. Left is the default; it causes
+the text following the tab character to be positioned with its left edge
+at the tab position. Right means that the right edge of the text
+following the tab character is positioned at the tab position, and
+center means that the text is centered at the tab position.
+Numeric means that the decimal point in the text is positioned
+at the tab position; if there is no decimal point then the least
+significant digit of the number is positioned just to the left of the
+tab position; if there is no number in the text then the text is
+right-justified at the tab position.
+For example, -tabs {2c left 4c 6c center} creates three
+tab stops at two-centimeter intervals; the first two use left
+justification and the third uses center justification.
+If the list of tab stops does not have enough elements to cover all
+of the tabs in a text line, then Tk extrapolates new tab stops using
+the spacing and alignment from the last tab stop in the list.
+The value of the tabs option may be overridden by -tabs
+options in tags.
+If no -tabs option is specified, or if it is specified as
+an empty list, then Tk uses default tabs spaced every eight
+(average size) characters.
+
- Command-Line Name: -width
+
- Database Name: width
+
- Database Class: Width
+
- Specifies the desired width for the window in units of characters
+in the font given by the -font option.
+If the font doesn't have a uniform width then the width of the
+character ``0'' is used in translating from character units to
+screen units.
+
- Command-Line Name: -wrap
+
- Database Name: wrap
+
- Database Class: Wrap
+
- Specifies how to handle lines in the text that are too long to be
+displayed in a single line of the text's window.
+The value must be none or char or word.
+A wrap mode of none means that each line of text appears as
+exactly one line on the screen; extra characters that don't fit
+on the screen are not displayed.
+In the other modes each line of text will be broken up into several
+screen lines if necessary to keep all the characters visible.
+In char mode a screen line break may occur after any character;
+in word mode a line break will only be made at word boundaries.
+
+
+The text command creates a new window (given by the
+pathName argument) and makes it into a text widget.
+Additional
+options, described above, may be specified on the command line
+or in the option database
+to configure aspects of the text such as its default background color
+and relief. The text command returns the
+path name of the new window.
+
+A text widget displays one or more lines of text and allows that
+text to be edited.
+Text widgets support four different kinds of annotations on the
+text, called tags, marks, embedded windows or embedded images.
+Tags allow different portions of the text
+to be displayed with different fonts and colors.
+In addition, Tcl commands can be associated with tags so
+that scripts are invoked when particular actions such as keystrokes
+and mouse button presses occur in particular ranges of the text.
+See TAGS below for more details.
+
+The second form of annotation consists of marks, which are floating
+markers in the text.
+Marks are used to keep track of various interesting positions in the
+text as it is edited.
+See MARKS below for more details.
+
+The third form of annotation allows arbitrary windows to be
+embedded in a text widget.
+See EMBEDDED WINDOWS below for more details.
+
+The fourth form of annotation allows Tk images to be embedded in a text
+widget.
+See EMBEDDED IMAGES below for more details.
+
+
+Many of the widget commands for texts take one or more indices
+as arguments.
+An index is a string used to indicate a particular place within
+a text, such as a place to insert characters or one endpoint of a
+range of characters to delete.
+Indices have the syntax
+base modifier modifier modifier ...
+Where base gives a starting point and the modifiers
+adjust the index from the starting point (e.g. move forward or
+backward one character). Every index must contain a base,
+but the modifiers are optional.
+
+The base for an index must have one of the following forms:
+
+
+- line.char
-
+Indicates char'th character on line line.
+Lines are numbered from 1 for consistency with other UNIX programs
+that use this numbering scheme.
+Within a line, characters are numbered from 0.
+If char is end then it refers to the newline character
+that ends the line.
+
- @x,y
-
+Indicates the character that covers the pixel whose x and y coordinates
+within the text's window are x and y.
+
- end
-
+Indicates the end of the text (the character just after the last
+newline).
+
- mark
-
+Indicates the character just after the mark whose name is mark.
+
- tag.first
-
+Indicates the first character in the text that has been tagged with
+tag.
+This form generates an error if no characters are currently tagged
+with tag.
+
- tag.last
-
+Indicates the character just after the last one in the text that has
+been tagged with tag.
+This form generates an error if no characters are currently tagged
+with tag.
+
- pathName
-
+Indicates the position of the embedded window whose name is
+pathName.
+This form generates an error if there is no embedded window
+by the given name.
+
- .VS
-
+imageName
+Indicates the position of the embedded image whose name is
+imageName.
+This form generates an error if there is no embedded image
+by the given name.
+
+
+If the base could match more than one of the above forms, such
+as a mark and imageName both having the same value, then
+the form earlier in the above list takes precedence.
+If modifiers follow the base index, each one of them must have one
+of the forms listed below. Keywords such as chars and wordend
+may be abbreviated as long as the abbreviation is unambiguous.
+
+
+- + count chars
-
+Adjust the index forward by count characters, moving to later
+lines in the text if necessary. If there are fewer than count
+characters in the text after the current index, then set the index
+to the last character in the text.
+Spaces on either side of count are optional.
+
- - count chars
-
+Adjust the index backward by count characters, moving to earlier
+lines in the text if necessary. If there are fewer than count
+characters in the text before the current index, then set the index
+to the first character in the text.
+Spaces on either side of count are optional.
+
- + count lines
-
+Adjust the index forward by count lines, retaining the same
+character position within the line. If there are fewer than count
+lines after the line containing the current index, then set the index
+to refer to the same character position on the last line of the text.
+Then, if the line is not long enough to contain a character at the indicated
+character position, adjust the character position to refer to the last
+character of the line (the newline).
+Spaces on either side of count are optional.
+
- - count lines
-
+Adjust the index backward by count lines, retaining the same
+character position within the line. If there are fewer than count
+lines before the line containing the current index, then set the index
+to refer to the same character position on the first line of the text.
+Then, if the line is not long enough to contain a character at the indicated
+character position, adjust the character position to refer to the last
+character of the line (the newline).
+Spaces on either side of count are optional.
+
- linestart
-
+Adjust the index to refer to the first character on the line.
+
- lineend
-
+Adjust the index to refer to the last character on the line (the newline).
+
- wordstart
-
+Adjust the index to refer to the first character of the word containing
+the current index. A word consists of any number of adjacent characters
+that are letters, digits, or underscores, or a single character that
+is not one of these.
+
- wordend
-
+Adjust the index to refer to the character just after the last one of the
+word containing the current index. If the current index refers to the last
+character of the text then it is not modified.
+
+
+If more than one modifier is present then they are applied in
+left-to-right order. For example, the index ``end - 1 chars''
+refers to the next-to-last character in the text and
+``insert wordstart - 1 c'' refers to the character just before
+the first one in the word containing the insertion cursor.
+
+
+The first form of annotation in text widgets is a tag.
+A tag is a textual string that is associated with some of the characters
+in a text.
+Tags may contain arbitrary characters, but it is probably best to
+avoid using the the characters `` '' (space), +, or -:
+these characters have special meaning in indices, so tags containing
+them can't be used as indices.
+There may be any number of tags associated with characters in a
+text.
+Each tag may refer to a single character, a range of characters, or
+several ranges of characters.
+An individual character may have any number of tags associated with it.
+
+A priority order is defined among tags, and this order is used in
+implementing some of the tag-related functions described below.
+When a tag is defined (by associating it with characters or setting
+its display options or binding commands to it), it is given
+a priority higher than any existing tag.
+The priority order of tags may be redefined using the
+``pathName tag raise'' and ``pathName tag lower''
+widget commands.
+
+Tags serve three purposes in text widgets.
+First, they control the way information is displayed on the screen.
+By default, characters are displayed as determined by the
+background, font, and foreground options for the
+text widget.
+However, display options may be associated with individual tags
+using the ``pathName tag configure'' widget command.
+If a character has been tagged, then the display options associated
+with the tag override the default display style.
+The following options are currently supported for tags:
+
+
+- -background color
-
+Color specifies the background color to use for characters
+associated with the tag.
+It may have any of the forms accepted by Tk_GetColor.
+
- -bgstipple bitmap
-
+Bitmap specifies a bitmap that is used as a stipple pattern
+for the background.
+It may have any of the forms accepted by Tk_GetBitmap.
+If bitmap hasn't been specified, or if it is specified
+as an empty string, then a solid fill will be used for the
+background.
+
- -borderwidth pixels
-
+Pixels specifies the width of a 3-D border to draw around
+the background.
+It may have any of the forms accepted by Tk_GetPixels.
+This option is used in conjunction with the -relief
+option to give a 3-D appearance to the background for characters;
+it is ignored unless the -background option
+has been set for the tag.
+
- -elide boolean
-
+Elide specifies whether the data should be elided.
+Elided data is not displayed and takes no space on screen, but further
+on behaves just as normal data.
+
- -fgstipple bitmap
-
+Bitmap specifies a bitmap that is used as a stipple pattern
+when drawing text and other foreground information such as
+underlines.
+It may have any of the forms accepted by Tk_GetBitmap.
+If bitmap hasn't been specified, or if it is specified
+as an empty string, then a solid fill will be used.
+
- -font fontName
-
+FontName is the name of a font to use for drawing characters.
+It may have any of the forms accepted by Tk_GetFont.
+
- -foreground color
-
+Color specifies the color to use when drawing text and other
+foreground information such as underlines.
+It may have any of the forms accepted by Tk_GetColor.
+
- -justify justify
-
+If the first character of a display line has a tag for which this
+option has been specified, then justify determines how to
+justify the line.
+It must be one of left, right, or center.
+If a line wraps, then the justification for each line on the
+display is determined by the first character of that display line.
+
- -lmargin1 pixels
-
+If the first character of a text line has a tag for which this
+option has been specified, then pixels specifies how
+much the line should be indented from the left edge of the
+window.
+Pixels may have any of the standard forms for screen
+distances.
+If a line of text wraps, this option only applies to the
+first line on the display; the -lmargin2 option controls
+the indentation for subsequent lines.
+
- -lmargin2 pixels
-
+If the first character of a display line has a tag for which this
+option has been specified, and if the display line is not the
+first for its text line (i.e., the text line has wrapped), then
+pixels specifies how much the line should be indented from
+the left edge of the window.
+Pixels may have any of the standard forms for screen
+distances.
+This option is only used when wrapping is enabled, and it only
+applies to the second and later display lines for a text line.
+
- -offset pixels
-
+Pixels specifies an amount by which the text's baseline
+should be offset vertically from the baseline of the overall
+line, in pixels.
+For example, a positive offset can be used for superscripts
+and a negative offset can be used for subscripts.
+Pixels may have any of the standard forms for screen
+distances.
+
- -overstrike boolean
-
+Specifies whether or not to draw a horizontal rule through
+the middle of characters.
+Boolean may have any of the forms accepted by Tk_GetBoolean.
+
- -relief relief
-
+Relief specifies the 3-D relief to use for drawing backgrounds,
+in any of the forms accepted by Tk_GetRelief.
+This option is used in conjunction with the -borderwidth
+option to give a 3-D appearance to the background for characters;
+it is ignored unless the -background option
+has been set for the tag.
+
- -rmargin pixels
-
+If the first character of a display line has a tag for which this
+option has been specified, then pixels specifies how wide
+a margin to leave between the end of the line and the right
+edge of the window.
+Pixels may have any of the standard forms for screen
+distances.
+This option is only used when wrapping is enabled.
+If a text line wraps, the right margin for each line on the
+display is determined by the first character of that display
+line.
+
- -spacing1 pixels
-
+Pixels specifies how much additional space should be
+left above each text line, using any of the standard forms for
+screen distances.
+If a line wraps, this option only applies to the first
+line on the display.
+
- -spacing2 pixels
-
+For lines that wrap, this option specifies how much additional
+space to leave between the display lines for a single text line.
+Pixels may have any of the standard forms for screen
+distances.
+
- -spacing3 pixels
-
+Pixels specifies how much additional space should be
+left below each text line, using any of the standard forms for
+screen distances.
+If a line wraps, this option only applies to the last
+line on the display.
+
- -tabs tabList
-
+TabList specifies a set of tab stops in the same form
+as for the -tabs option for the text widget. This
+option only applies to a display line if it applies to the
+first character on that display line.
+If this option is specified as an empty string, it cancels
+the option, leaving it unspecified for the tag (the default).
+If the option is specified as a non-empty string that is
+an empty list, such as -tags { }, then it requests
+default 8-character tabs as described for the tags
+widget option.
+
- -underline boolean
-
+Boolean specifies whether or not to draw an underline underneath
+characters.
+It may have any of the forms accepted by Tk_GetBoolean.
+
- -wrap mode
-
+Mode specifies how to handle lines that are wider than the
+text's window.
+It has the same legal values as the -wrap option
+for the text widget: none, char, or word.
+If this tag option is specified, it overrides the -wrap option
+for the text widget.
+
+
+If a character has several tags associated with it, and if their
+display options conflict, then the options of the highest priority
+tag are used.
+If a particular display option hasn't been specified for a
+particular tag, or if it is specified as an empty string, then
+that option will never be used; the next-highest-priority
+tag's option will used instead.
+If no tag specifies a particular display option, then the default
+style for the widget will be used.
+
+The second purpose for tags is event bindings.
+You can associate bindings with a tag in much the same way you can
+associate bindings with a widget class: whenever particular X
+events occur on characters with the given tag, a given
+Tcl command will be executed.
+Tag bindings can be used to give behaviors to ranges of characters;
+among other things, this allows hypertext-like
+features to be implemented.
+For details, see the description of the tag bind widget
+command below.
+
+The third use for tags is in managing the selection.
+See THE SELECTION below.
+
+
+The second form of annotation in text widgets is a mark.
+Marks are used for remembering particular places in a text.
+They are something like tags, in that they have names and
+they refer to places in the file, but a mark isn't associated
+with particular characters.
+Instead, a mark is associated with the gap between two characters.
+Only a single position may be associated with a mark at any given
+time.
+If the characters around a mark are deleted the mark will still
+remain; it will just have new neighbor characters.
+In contrast, if the characters containing a tag are deleted then
+the tag will no longer have an association with characters in
+the file.
+Marks may be manipulated with the ``pathName mark'' widget
+command, and their current locations may be determined by using the
+mark name as an index in widget commands.
+
+Each mark also has a gravity, which is either left or
+right.
+The gravity for a mark specifies what happens to the mark when
+text is inserted at the point of the mark.
+If a mark has left gravity, then the mark is treated as if it
+were attached to the character on its left, so the mark will
+remain to the left of any text inserted at the mark position.
+If the mark has right gravity, new text inserted at the mark
+position will appear to the left of the mark (so that the mark
+remains rightmost). The gravity for a mark defaults to right.
+
+The name space for marks is different from that for tags: the
+same name may be used for both a mark and a tag, but they will refer
+to different things.
+
+Two marks have special significance.
+First, the mark insert is associated with the insertion cursor,
+as described under THE INSERTION CURSOR below.
+Second, the mark current is associated with the character
+closest to the mouse and is adjusted automatically to track the
+mouse position and any changes to the text in the widget (one
+exception: current is not updated in response to mouse
+motions if a mouse button is down; the update will be deferred
+until all mouse buttons have been released).
+Neither of these special marks may be deleted.
+
+
+The third form of annotation in text widgets is an embedded window.
+Each embedded window annotation causes a window to be displayed
+at a particular point in the text.
+There may be any number of embedded windows in a text widget,
+and any widget may be used as an embedded window (subject to the
+usual rules for geometry management, which require the text window
+to be the parent of the embedded window or a descendant of its
+parent).
+The embedded window's position on the screen will be updated as the
+text is modified or scrolled, and it will be mapped and unmapped as
+it moves into and out of the visible area of the text widget.
+Each embedded window occupies one character's worth of index space
+in the text widget, and it may be referred to either by the name
+of its embedded window or by its position in the widget's
+index space.
+If the range of text containing the embedded window is deleted then
+the window is destroyed.
+
+When an embedded window is added to a text widget with the
+window create widget command, several configuration
+options may be associated with it.
+These options may be modified later with the window configure
+widget command.
+The following options are currently supported:
+
+
+- -align where
-
+If the window is not as tall as the line in which it is displayed,
+this option determines where the window is displayed in the line.
+Where must have one of the values top (align the top of the window
+with the top of the line), center (center the window
+within the range of the line), bottom (align the bottom of the
+window with the bottom of the line's area),
+or baseline (align the bottom of the window with the baseline
+of the line).
+
- -create script
-
+Specifies a Tcl script that may be evaluated to create the window
+for the annotation.
+If no -window option has been specified for the annotation
+this script will be evaluated when the annotation is about to
+be displayed on the screen.
+Script must create a window for the annotation and return
+the name of that window as its result.
+If the annotation's window should ever be deleted, script
+will be evaluated again the next time the annotation is displayed.
+
- -padx pixels
-
+Pixels specifies the amount of extra space to leave on
+each side of the embedded window.
+It may have any of the usual forms defined for a screen distance.
+
- -pady pixels
-
+Pixels specifies the amount of extra space to leave on
+the top and on the bottom of the embedded window.
+It may have any of the usual forms defined for a screen distance.
+
- -stretch boolean
-
+If the requested height of the embedded window is less than the
+height of the line in which it is displayed, this option can be
+used to specify whether the window should be stretched vertically
+to fill its line.
+If the -pady option has been specified as well, then the
+requested padding will be retained even if the window is
+stretched.
+
- -window pathName
-
+Specifies the name of a window to display in the annotation.
+
+
+
+The final form of annotation in text widgets is an embedded image.
+Each embedded image annotation causes an image to be displayed
+at a particular point in the text.
+There may be any number of embedded images in a text widget,
+and a particular image may be embedded in multiple places in the same
+text widget.
+The embedded image's position on the screen will be updated as the
+text is modified or scrolled.
+Each embedded image occupies one character's worth of index space
+in the text widget, and it may be referred to either by
+its position in the widget's index space, or the name it is assigned
+when the image is inserted into the text widget widh image create.
+If the range of text containing the embedded image is deleted then
+that copy of the image is removed from the screen.
+
+When an embedded image is added to a text widget with the image
+create widget command, a name unique to this instance of the image
+is returned. This name may then be used to refer to this image
+instance. The name is taken to be the value of the -name option
+(described below). If the -name option is not provided, the
+-image name is used instead. If the imageName is already
+in use in the text widget, then #nn is added to the end of the
+imageName, where nn is an arbitrary integer. This insures
+the imageName is unique.
+Once this name is assigned to this instance of the image, it does not
+change, even though the -image or -name values can be changed
+with image configure.
+
+When an embedded image is added to a text widget with the
+image create widget command, several configuration
+options may be associated with it.
+These options may be modified later with the image configure
+widget command.
+The following options are currently supported:
+
+
+- -align where
-
+If the image is not as tall as the line in which it is displayed,
+this option determines where the image is displayed in the line.
+Where must have one of the values top (align the top of the image
+with the top of the line), center (center the image
+within the range of the line), bottom (align the bottom of the
+image with the bottom of the line's area),
+or baseline (align the bottom of the image with the baseline
+of the line).
+
- -image image
-
+Specifies the name of the Tk image to display in the annotation.
+If image is not a valid Tk image, then an error is returned.
+
- -name ImageName
-
+Specifies the name by which this image instance may be referenced in
+the text widget. If ImageName is not supplied, then the
+name of the Tk image is used instead.
+If the imageName is already in use, #nn is appended to
+the end of the name as described above.
+
- -padx pixels
-
+Pixels specifies the amount of extra space to leave on
+each side of the embedded image.
+It may have any of the usual forms defined for a screen distance.
+
- -pady pixels
-
+Pixels specifies the amount of extra space to leave on
+the top and on the bottom of the embedded image.
+It may have any of the usual forms defined for a screen distance.
+
+
+
+Selection support is implemented via tags.
+If the exportSelection option for the text widget is true
+then the sel tag will be associated with the selection:
+
+
+- [1]
-
+Whenever characters are tagged with sel the text widget
+will claim ownership of the selection.
+
- [2]
-
+Attempts to retrieve the
+selection will be serviced by the text widget, returning all the
+characters with the sel tag.
+
- [3]
-
+If the selection is claimed away by another application or by another
+window within this application, then the sel tag will be removed
+from all characters in the text.
+
+
+The sel tag is automatically defined when a text widget is
+created, and it may not be deleted with the ``pathName tag delete''
+widget command. Furthermore, the selectBackground,
+selectBorderWidth, and selectForeground options for
+the text widget are tied to the -background,
+-borderwidth, and -foreground options for the sel
+tag: changes in either will automatically be reflected in the
+other.
+
+
+The mark named insert has special significance in text widgets.
+It is defined automatically when a text widget is created and it
+may not be unset with the ``pathName mark unset'' widget
+command.
+The insert mark represents the position of the insertion
+cursor, and the insertion cursor will automatically be drawn at
+this point whenever the text widget has the input focus.
+
+
+The text command creates a new Tcl command whose
+name is the same as the path name of the text's window. This
+command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+PathName is the name of the command, which is the same as
+the text widget's path name. Option and the args
+determine the exact behavior of the command. The following
+commands are possible for text widgets:
+
+
+- pathName bbox index
-
+Returns a list of four elements describing the screen area
+of the character given by index.
+The first two elements of the list give the x and y coordinates
+of the upper-left corner of the area occupied by the
+character, and the last two elements give the width and height
+of the area.
+If the character is only partially visible on the screen, then
+the return value reflects just the visible part.
+If the character is not visible on the screen then the return
+value is an empty list.
+
- pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the text
+command.
+
- pathName compare index1 op index2
-
+Compares the indices given by index1 and index2 according
+to the relational operator given by op, and returns 1 if
+the relationship is satisfied and 0 if it isn't.
+Op must be one of the operators <, <=, ==, >=, >, or !=.
+If op is == then 1 is returned if the two indices refer to
+the same character, if op is < then 1 is returned if index1
+refers to an earlier character in the text than index2, and
+so on.
+
- pathName configure ?option? ?value option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the text
+command.
+
- pathName debug ?boolean?
-
+If boolean is specified, then it must have one of the true or
+false values accepted by Tcl_GetBoolean.
+If the value is a true one then internal consistency checks will be
+turned on in the B-tree code associated with text widgets.
+If boolean has a false value then the debugging checks will
+be turned off.
+In either case the command returns an empty string.
+If boolean is not specified then the command returns on
+or off to indicate whether or not debugging is turned on.
+There is a single debugging switch shared by all text widgets: turning
+debugging on or off in any widget turns it on or off for all widgets.
+For widgets with large amounts of text, the consistency checks may
+cause a noticeable slow-down.
+
- pathName delete index1 ?index2?
-
+Delete a range of characters from the text.
+If both index1 and index2 are specified, then delete
+all the characters starting with the one given by index1
+and stopping just before index2 (i.e. the character at
+index2 is not deleted).
+If index2 doesn't specify a position later in the text
+than index1 then no characters are deleted.
+If index2 isn't specified then the single character at
+index1 is deleted.
+It is not allowable to delete characters in a way that would leave
+the text without a newline as the last character.
+The command returns an empty string.
+
- pathName dlineinfo index
-
+Returns a list with five elements describing the area occupied
+by the display line containing index.
+The first two elements of the list give the x and y coordinates
+of the upper-left corner of the area occupied by the
+line, the third and fourth elements give the width and height
+of the area, and the fifth element gives the position of the baseline
+for the line, measured down from the top of the area.
+All of this information is measured in pixels.
+If the current wrap mode is none and the line extends beyond
+the boundaries of the window,
+the area returned reflects the entire area of the line, including the
+portions that are out of the window.
+If the line is shorter than the full width of the window then the
+area returned reflects just the portion of the line that is occupied
+by characters and embedded windows.
+If the display line containing index is not visible on
+the screen then the return value is an empty list.
+
- pathName dump ?switches? index1 ?index2?
-
+Return the contents of the text widget from index1 up to,
+but not including index2,
+including the text and
+information about marks, tags, and embedded windows.
+If index2 is not specified, then it defaults to
+one character past index1. The information is returned
+in the following format:
+
+
+
-
+key1 value1 index1 key2 value2 index2 ...
+
+The possible key values are text, mark,
+tagon, tagoff, and window. The corresponding
+value is the text, mark name, tag name, or window name.
+The index information is the index of the
+start of the text, the mark, the tag transition, or the window.
+One or more of the following switches (or abbreviations thereof)
+may be specified to control the dump:
+
+
+- -all
-
+Return information about all elements: text, marks, tags, images and windows.
+This is the default.
+
- -command command
-
+Instead of returning the information as the result of the dump operation,
+invoke the command on each element of the text widget within the range.
+The command has three arguments appended to it before it is evaluated:
+the key, value, and index.
+
- -image
-
+Include information about images in the dump results.
+
- -mark
-
+Include information about marks in the dump results.
+
- -tag
-
+Include information about tag transitions in the dump results. Tag
+information is returned as tagon and tagoff elements that
+indicate the begin and end of each range of each tag, respectively.
+
- -text
-
+Include information about text in the dump results. The value is the
+text up to the next element or the end of range indicated by index2.
+A text element does not span newlines. A multi-line block of text that
+contains no marks or tag transitions will still be dumped as a set
+of text seqments that each end with a newline. The newline is part
+of the value.
+
- -window
-
+Include information about embedded windows in the dump results.
+The value of a window is its Tk pathname, unless the window
+has not been created yet. (It must have a create script.)
+In this case an empty string is returned, and you must query the
+window by its index position to get more information.
+
+
+
+
+- pathName get index1 ?index2?
-
+Return a range of characters from the text.
+The return value will be all the characters in the text starting
+with the one whose index is index1 and ending just before
+the one whose index is index2 (the character at index2
+will not be returned).
+If index2 is omitted then the single character at index1
+is returned.
+If there are no characters in the specified range (e.g. index1
+is past the end of the file or index2 is less than or equal
+to index1) then an empty string is returned.
+If the specified range contains embedded windows, no information
+about them is included in the returned string.
+
- pathName image option ?arg arg ...?
-
+This command is used to manipulate embedded images.
+The behavior of the command depends on the option argument
+that follows the tag argument.
+The following forms of the command are currently supported:
+
+
+- pathName image cget index option
-
+Returns the value of a configuration option for an embedded image.
+Index identifies the embedded image, and option
+specifies a particular configuration option, which must be one of
+the ones listed in the section EMBEDDED IMAGES.
+
- pathName image configure index ?option value ...?
-
+Query or modify the configuration options for an embedded image.
+If no option is specified, returns a list describing all of
+the available options for the embedded image at index
+(see Tk_ConfigureInfo for information on the format of this list).
+If option is specified with no value, then the command
+returns a list describing the one named option (this list will be
+identical to the corresponding sublist of the value returned if no
+option is specified).
+If one or more option-value pairs are specified, then the command
+modifies the given option(s) to have the given value(s); in
+this case the command returns an empty string.
+See EMBEDDED IMAGES for information on the options that
+are supported.
+
- pathName image create index ?option value ...?
-
+This command creates a new image annotation, which will appear
+in the text at the position given by index.
+Any number of option-value pairs may be specified to
+configure the annotation.
+Returns a unique identifier that may be used as an index to refer to
+this image.
+See EMBEDDED IMAGES for information on the options that
+are supported, and a description of the identifier returned.
+
- pathName image names
-
+Returns a list whose elements are the names of all image instances currently
+embedded in window.
+
+ - pathName index index
-
+Returns the position corresponding to index in the form
+line.char where line is the line number and char
+is the character number.
+Index may have any of the forms described under INDICES above.
+
- pathName insert index chars ?tagList chars tagList ...?
-
+Inserts all of the chars arguments just before the character at
+index.
+If index refers to the end of the text (the character after
+the last newline) then the new text is inserted just before the
+last newline instead.
+If there is a single chars argument and no tagList, then
+the new text will receive any tags that are present on both the
+character before and the character after the insertion point; if a tag
+is present on only one of these characters then it will not be
+applied to the new text.
+If tagList is specified then it consists of a list of
+tag names; the new characters will receive all of the tags in
+this list and no others, regardless of the tags present around
+the insertion point.
+If multiple chars-tagList argument pairs are present,
+they produce the same effect as if a separate insert widget
+command had been issued for each pair, in order.
+The last tagList argument may be omitted.
+
- pathName mark option ?arg arg ...?
-
+This command is used to manipulate marks. The exact behavior of
+the command depends on the option argument that follows
+the mark argument. The following forms of the command
+are currently supported:
+
+
+- pathName mark gravity markName ?direction?
-
+If direction is not specified, returns left or right
+to indicate which of its adjacent characters markName is attached
+to.
+If direction is specified, it must be left or right;
+the gravity of markName is set to the given value.
+
- pathName mark names
-
+Returns a list whose elements are the names of all the marks that
+are currently set.
+
- pathName mark next index
-
+Returns the name of the next mark at or after index.
+If index is specified in numerical form, then the search for
+the next mark begins at that index.
+If index is the name of a mark, then the search for
+the next mark begins immediately after that mark.
+This can still return a mark at the same position if
+there are multiple marks at the same index.
+These semantics mean that the mark next operation can be used to
+step through all the marks in a text widget in the same order
+as the mark information returned by the dump operation.
+If a mark has been set to the special end index,
+then it appears to be after end with respect to the mark next operation.
+An empty string is returned if there are no marks after index.
+
- pathName mark previous index
-
+Returns the name of the mark at or before index.
+If index is specified in numerical form, then the search for
+the previous mark begins with the character just before that index.
+If index is the name of a mark, then the search for
+the next mark begins immediately before that mark.
+This can still return a mark at the same position if
+there are multiple marks at the same index.
+These semantics mean that the mark previous operation can be used to
+step through all the marks in a text widget in the reverse order
+as the mark information returned by the dump operation.
+An empty string is returned if there are no marks before index.
+
- pathName mark set markName index
-
+Sets the mark named markName to a position just before the
+character at index.
+If markName already exists, it is moved from its old position;
+if it doesn't exist, a new mark is created.
+This command returns an empty string.
+
- pathName mark unset markName ?markName markName ...?
-
+Remove the mark corresponding to each of the markName arguments.
+The removed marks will not be usable in indices and will not be
+returned by future calls to ``pathName mark names''.
+This command returns an empty string.
+
+ - pathName scan option args
-
+This command is used to implement scanning on texts. It has
+two forms, depending on option:
+
+
+- pathName scan mark x y
-
+Records x and y and the current view in the text window,
+for use in conjunction with later scan dragto commands.
+Typically this command is associated with a mouse button press in
+the widget. It returns an empty string.
+
- pathName scan dragto x y
-
+This command computes the difference between its x and y
+arguments and the x and y arguments to the last
+scan mark command for the widget.
+It then adjusts the view by 10 times the difference in coordinates.
+This command is typically associated
+with mouse motion events in the widget, to produce the effect of
+dragging the text at high speed through the window. The return
+value is an empty string.
+
+ - pathName search ?switches? pattern index ?stopIndex?
-
+Searches the text in pathName starting at index for a range
+of characters that matches pattern.
+If a match is found, the index of the first character in the match is
+returned as result; otherwise an empty string is returned.
+One or more of the following switches (or abbreviations thereof)
+may be specified to control the search:
+
+
+- -forwards
-
+The search will proceed forward through the text, finding the first
+matching range starting at or after the position given by index.
+This is the default.
+
- -backwards
-
+The search will proceed backward through the text, finding the
+matching range closest to index whose first character
+is before index.
+
- -exact
-
+Use exact matching: the characters in the matching range must be
+identical to those in pattern.
+This is the default.
+
- -regexp
-
+Treat pattern as a regular expression and match it against
+the text using the rules for regular expressions (see the regexp
+command for details).
+
- -nocase
-
+Ignore case differences between the pattern and the text.
+
- -count varName
-
+The argument following -count gives the name of a variable;
+if a match is found, the number of index positions between beginning and
+end of the matching range will be stored in the variable. If there are no
+embedded images or windows in the matching range, this is equivalent to the
+number of characters matched. In either case, the range matchIdx to
+matchIdx + $count chars will return the entire matched text.
+
- -elide
-
+Find elidden (hidden) text as well. By default only displayed text is
+searched.
+
- - -
-
+This switch has no effect except to terminate the list of switches:
+the next argument will be treated as pattern even if it starts
+with -.
+
The matching range must be entirely within a single line of text.
+For regular expression matching the newlines are removed from the ends
+of the lines before matching: use the $ feature in regular
+expressions to match the end of a line.
+For exact matching the newlines are retained.
+If stopIndex is specified, the search stops at that index:
+for forward searches, no match at or after stopIndex will
+be considered; for backward searches, no match earlier in the
+text than stopIndex will be considered.
+If stopIndex is omitted, the entire text will be searched:
+when the beginning or end of the text is reached, the search
+continues at the other end until the starting location is reached
+again; if stopIndex is specified, no wrap-around will occur.
+
+ - pathName see index
-
+Adjusts the view in the window so that the character given by index
+is completely visible.
+If index is already visible then the command does nothing.
+If index is a short distance out of view, the command
+adjusts the view just enough to make index visible at the
+edge of the window.
+If index is far out of view, then the command centers
+index in the window.
+
- pathName tag option ?arg arg ...?
-
+This command is used to manipulate tags. The exact behavior of the
+command depends on the option argument that follows the
+tag argument. The following forms of the command are currently
+supported:
+
+
+- pathName tag add tagName index1 ?index2 index1 index2 ...?
-
+Associate the tag tagName with all of the characters starting
+with index1 and ending just before
+index2 (the character at index2 isn't tagged).
+A single command may contain any number of index1-index2
+pairs.
+If the last index2 is omitted then the single character at
+index1 is tagged.
+If there are no characters in the specified range (e.g. index1
+is past the end of the file or index2 is less than or equal
+to index1) then the command has no effect.
+
- pathName tag bind tagName ?sequence? ?script?
-
+This command associates script with the tag given by
+tagName.
+Whenever the event sequence given by sequence occurs for a
+character that has been tagged with tagName,
+the script will be invoked.
+This widget command is similar to the bind command except that
+it operates on characters in a text rather than entire widgets.
+See the bind manual entry for complete details
+on the syntax of sequence and the substitutions performed
+on script before invoking it.
+If all arguments are specified then a new binding is created, replacing
+any existing binding for the same sequence and tagName
+(if the first character of script is ``+'' then script
+augments an existing binding rather than replacing it).
+In this case the return value is an empty string.
+If script is omitted then the command returns the script
+associated with tagName and sequence (an error occurs
+if there is no such binding).
+If both script and sequence are omitted then the command
+returns a list of all the sequences for which bindings have been
+defined for tagName.
+
+The only events for which bindings may be specified are those related
+to the mouse and keyboard (such as Enter, Leave,
+ButtonPress, Motion, and KeyPress) or virtual events.
+Event bindings for a text widget use the current mark described
+under MARKS above. An Enter event triggers for a tag when the tag
+first becomes present on the current character, and a Leave event
+triggers for a tag when it ceases to be present on the current character.
+Enter and Leave events can happen either because the
+current mark moved or because the character at that position
+changed. Note that these events are different than Enter and
+Leave events for windows. Mouse and keyboard events are directed
+to the current character. If a virtual event is used in a binding, that
+binding can trigger only if the virtual event is defined by an underlying
+mouse-related or keyboard-related event.
+
+It is possible for the current character to have multiple tags,
+and for each of them to have a binding for a particular event
+sequence.
+When this occurs, one binding is invoked for each tag, in order
+from lowest-priority to highest priority.
+If there are multiple matching bindings for a single tag, then
+the most specific binding is chosen (see the manual entry for
+the bind command for details).
+continue and break commands within binding scripts
+are processed in the same way as for bindings created with
+the bind command.
+
If bindings are created for the widget as a whole using the
+bind command, then those bindings will supplement the
+tag bindings.
+The tag bindings will be invoked first, followed by bindings
+for the window as a whole.
+
- pathName tag cget tagName option
-
+This command returns the current value of the option named option
+associated with the tag given by tagName.
+Option may have any of the values accepted by the tag configure
+widget command.
+
- pathName tag configure tagName ?option? ?value? ?option value ...?
-
+This command is similar to the configure widget command except
+that it modifies options associated with the tag given by tagName
+instead of modifying options for the overall text widget.
+If no option is specified, the command returns a list describing
+all of the available options for tagName (see Tk_ConfigureInfo
+for information on the format of this list).
+If option is specified with no value, then the command returns
+a list describing the one named option (this list will be identical to
+the corresponding sublist of the value returned if no option
+is specified).
+If one or more option-value pairs are specified, then the command
+modifies the given option(s) to have the given value(s) in tagName;
+in this case the command returns an empty string.
+See TAGS above for details on the options available for tags.
+
- pathName tag delete tagName ?tagName ...?
-
+Deletes all tag information for each of the tagName
+arguments.
+The command removes the tags from all characters in the file
+and also deletes any other information associated with the tags,
+such as bindings and display information.
+The command returns an empty string.
+
- pathName tag lower tagName ?belowThis?
-
+Changes the priority of tag tagName so that it is just lower
+in priority than the tag whose name is belowThis.
+If belowThis is omitted, then tagName's priority
+is changed to make it lowest priority of all tags.
+
- pathName tag names ?index?
-
+Returns a list whose elements are the names of all the tags that
+are active at the character position given by index.
+If index is omitted, then the return value will describe
+all of the tags that exist for the text (this includes all tags
+that have been named in a ``pathName tag'' widget
+command but haven't been deleted by a ``pathName tag delete''
+widget command, even if no characters are currently marked with
+the tag).
+The list will be sorted in order from lowest priority to highest
+priority.
+
- pathName tag nextrange tagName index1 ?index2?
-
+This command searches the text for a range of characters tagged
+with tagName where the first character of the range is
+no earlier than the character at index1 and no later than
+the character just before index2 (a range starting at
+index2 will not be considered).
+If several matching ranges exist, the first one is chosen.
+The command's return value is a list containing
+two elements, which are the index of the first character of the
+range and the index of the character just after the last one in
+the range.
+If no matching range is found then the return value is an
+empty string.
+If index2 is not given then it defaults to the end of the text.
+
- pathName tag prevrange tagName index1 ?index2?
-
+This command searches the text for a range of characters tagged
+with tagName where the first character of the range is
+before the character at index1 and no earlier than
+the character at index2 (a range starting at
+index2 will be considered).
+If several matching ranges exist, the one closest to index1 is chosen.
+The command's return value is a list containing
+two elements, which are the index of the first character of the
+range and the index of the character just after the last one in
+the range.
+If no matching range is found then the return value is an
+empty string.
+If index2 is not given then it defaults to the beginning of the text.
+
- pathName tag raise tagName ?aboveThis?
-
+Changes the priority of tag tagName so that it is just higher
+in priority than the tag whose name is aboveThis.
+If aboveThis is omitted, then tagName's priority
+is changed to make it highest priority of all tags.
+
- pathName tag ranges tagName
-
+Returns a list describing all of the ranges of text that have been
+tagged with tagName.
+The first two elements of the list describe the first tagged range
+in the text, the next two elements describe the second range, and
+so on.
+The first element of each pair contains the index of the first
+character of the range, and the second element of the pair contains
+the index of the character just after the last one in the
+range.
+If there are no characters tagged with tag then an
+empty string is returned.
+
- pathName tag remove tagName index1 ?index2 index1 index2 ...?
-
+Remove the tag tagName from all of the characters starting
+at index1 and ending just before
+index2 (the character at index2 isn't affected).
+A single command may contain any number of index1-index2
+pairs.
+If the last index2 is omitted then the single character at
+index1 is tagged.
+If there are no characters in the specified range (e.g. index1
+is past the end of the file or index2 is less than or equal
+to index1) then the command has no effect.
+This command returns an empty string.
+
+ - pathName window option ?arg arg ...?
-
+This command is used to manipulate embedded windows.
+The behavior of the command depends on the option argument
+that follows the tag argument.
+The following forms of the command are currently supported:
+
+
+- pathName window cget index option
-
+Returns the value of a configuration option for an embedded window.
+Index identifies the embedded window, and option
+specifies a particular configuration option, which must be one of
+the ones listed in the section EMBEDDED WINDOWS.
+
- pathName window configure index ?option value ...?
-
+Query or modify the configuration options for an embedded window.
+If no option is specified, returns a list describing all of
+the available options for the embedded window at index
+(see Tk_ConfigureInfo for information on the format of this list).
+If option is specified with no value, then the command
+returns a list describing the one named option (this list will be
+identical to the corresponding sublist of the value returned if no
+option is specified).
+If one or more option-value pairs are specified, then the command
+modifies the given option(s) to have the given value(s); in
+this case the command returns an empty string.
+See EMBEDDED WINDOWS for information on the options that
+are supported.
+
- pathName window create index ?option value ...?
-
+This command creates a new window annotation, which will appear
+in the text at the position given by index.
+Any number of option-value pairs may be specified to
+configure the annotation.
+See EMBEDDED WINDOWS for information on the options that
+are supported.
+Returns an empty string.
+
- pathName window names
-
+Returns a list whose elements are the names of all windows currently
+embedded in window.
+
+ - pathName xview option args
-
+This command is used to query and change the horizontal position of the
+text in the widget's window. It can take any of the following
+forms:
+
+
+- pathName xview
-
+Returns a list containing two elements.
+Each element is a real fraction between 0 and 1; together they describe
+the portion of the document's horizontal span that is visible in
+the window.
+For example, if the first element is .2 and the second element is .6,
+20% of the text is off-screen to the left, the middle 40% is visible
+in the window, and 40% of the text is off-screen to the right.
+The fractions refer only to the lines that are actually visible in the
+window: if the lines in the window are all very short, so that they
+are entirely visible, the returned fractions will be 0 and 1,
+even if there are other lines in the text that are
+much wider than the window.
+These are the same values passed to scrollbars via the -xscrollcommand
+option.
+
- pathName xview moveto fraction
-
+Adjusts the view in the window so that fraction of the horizontal
+span of the text is off-screen to the left.
+Fraction is a fraction between 0 and 1.
+
- pathName xview scroll number what
-
+This command shifts the view in the window left or right according to
+number and what.
+Number must be an integer.
+What must be either units or pages or an abbreviation
+of one of these.
+If what is units, the view adjusts left or right by
+number average-width characters on the display; if it is
+pages then the view adjusts by number screenfuls.
+If number is negative then characters farther to the left
+become visible; if it is positive then characters farther to the right
+become visible.
+
+ - pathName yview ?args?
-
+This command is used to query and change the vertical position of the
+text in the widget's window.
+It can take any of the following forms:
+
+
+- pathName yview
-
+Returns a list containing two elements, both of which are real fractions
+between 0 and 1.
+The first element gives the position of the first character in the
+top line in the window, relative to the text as a whole (0.5 means
+it is halfway through the text, for example).
+The second element gives the position of the character just after
+the last one in the bottom line of the window,
+relative to the text as a whole.
+These are the same values passed to scrollbars via the -yscrollcommand
+option.
+
- pathName yview moveto fraction
-
+Adjusts the view in the window so that the character given by fraction
+appears on the top line of the window.
+Fraction is a fraction between 0 and 1; 0 indicates the first
+character in the text, 0.33 indicates the character one-third the
+way through the text, and so on.
+
- pathName yview scroll number what
-
+This command adjust the view in the window up or down according to
+number and what.
+Number must be an integer.
+What must be either units or pages.
+If what is units, the view adjusts up or down by
+number lines on the display; if it is pages then
+the view adjusts by number screenfuls.
+If number is negative then earlier positions in the text
+become visible; if it is positive then later positions in the text
+become visible.
+
- pathName yview ?-pickplace? index
-
+Changes the view in the widget's window to make index visible.
+If the -pickplace option isn't specified then index will
+appear at the top of the window.
+If -pickplace is specified then the widget chooses where
+index appears in the window:
+
+
+- [1]
-
+If index is already visible somewhere in the window then the
+command does nothing.
+
- [2]
-
+If index is only a few lines off-screen above the window then
+it will be positioned at the top of the window.
+
- [3]
-
+If index is only a few lines off-screen below the window then
+it will be positioned at the bottom of the window.
+
- [4]
-
+Otherwise, index will be centered in the window.
+
The -pickplace option has been obsoleted by the see widget
+command (see handles both x- and y-motion to make a location
+visible, whereas -pickplace only handles motion in y).
+
+ - pathName yview number
-
+This command makes the first character on the line after
+the one given by number visible at the top of the window.
+Number must be an integer.
+This command used to be used for scrolling, but now it is obsolete.
+
+
+
+Tk automatically creates class bindings for texts that give them
+the following default behavior.
+In the descriptions below, ``word'' is dependent on the value of
+the tcl_wordchars variable. See tclvars(n).
+
+
+- [1]
-
+Clicking mouse button 1 positions the insertion cursor
+just before the character underneath the mouse cursor, sets the
+input focus to this widget, and clears any selection in the widget.
+Dragging with mouse button 1 strokes out a selection between
+the insertion cursor and the character under the mouse.
+
- [2]
-
+Double-clicking with mouse button 1 selects the word under the mouse
+and positions the insertion cursor at the beginning of the word.
+Dragging after a double click will stroke out a selection consisting
+of whole words.
+
- [3]
-
+Triple-clicking with mouse button 1 selects the line under the mouse
+and positions the insertion cursor at the beginning of the line.
+Dragging after a triple click will stroke out a selection consisting
+of whole lines.
+
- [4]
-
+The ends of the selection can be adjusted by dragging with mouse
+button 1 while the Shift key is down; this will adjust the end
+of the selection that was nearest to the mouse cursor when button
+1 was pressed.
+If the button is double-clicked before dragging then the selection
+will be adjusted in units of whole words; if it is triple-clicked
+then the selection will be adjusted in units of whole lines.
+
- [5]
-
+Clicking mouse button 1 with the Control key down will reposition the
+insertion cursor without affecting the selection.
+
- [6]
-
+If any normal printing characters are typed, they are
+inserted at the point of the insertion cursor.
+
- [7]
-
+The view in the widget can be adjusted by dragging with mouse button 2.
+If mouse button 2 is clicked without moving the mouse, the selection
+is copied into the text at the position of the mouse cursor.
+The Insert key also inserts the selection, but at the position of
+the insertion cursor.
+
- [8]
-
+If the mouse is dragged out of the widget
+while button 1 is pressed, the entry will automatically scroll to
+make more text visible (if there is more text off-screen on the side
+where the mouse left the window).
+
- [9]
-
+The Left and Right keys move the insertion cursor one character to the
+left or right; they also clear any selection in the text.
+If Left or Right is typed with the Shift key down, then the insertion
+cursor moves and the selection is extended to include the new character.
+Control-Left and Control-Right move the insertion cursor by words, and
+Control-Shift-Left and Control-Shift-Right move the insertion cursor
+by words and also extend the selection.
+Control-b and Control-f behave the same as Left and Right, respectively.
+Meta-b and Meta-f behave the same as Control-Left and Control-Right,
+respectively.
+
- [10]
-
+The Up and Down keys move the insertion cursor one line up or
+down and clear any selection in the text.
+If Up or Right is typed with the Shift key down, then the insertion
+cursor moves and the selection is extended to include the new character.
+Control-Up and Control-Down move the insertion cursor by paragraphs (groups
+of lines separated by blank lines), and
+Control-Shift-Up and Control-Shift-Down move the insertion cursor
+by paragraphs and also extend the selection.
+Control-p and Control-n behave the same as Up and Down, respectively.
+
- [11]
-
+The Next and Prior keys move the insertion cursor forward or backwards
+by one screenful and clear any selection in the text.
+If the Shift key is held down while Next or Prior is typed, then
+the selection is extended to include the new character.
+Control-v moves the view down one screenful without moving the
+insertion cursor or adjusting the selection.
+
- [12]
-
+Control-Next and Control-Prior scroll the view right or left by one page
+without moving the insertion cursor or affecting the selection.
+
- [13]
-
+Home and Control-a move the insertion cursor to the
+beginning of its line and clear any selection in the widget.
+Shift-Home moves the insertion cursor to the beginning of the line
+and also extends the selection to that point.
+
- [14]
-
+End and Control-e move the insertion cursor to the
+end of the line and clear any selection in the widget.
+Shift-End moves the cursor to the end of the line and extends the selection
+to that point.
+
- [15]
-
+Control-Home and Meta-< move the insertion cursor to the beginning of
+the text and clear any selection in the widget.
+Control-Shift-Home moves the insertion cursor to the beginning of the text
+and also extends the selection to that point.
+
- [16]
-
+Control-End and Meta-> move the insertion cursor to the end of the
+text and clear any selection in the widget.
+Control-Shift-End moves the cursor to the end of the text and extends
+the selection to that point.
+
- [17]
-
+The Select key and Control-Space set the selection anchor to the position
+of the insertion cursor. They don't affect the current selection.
+Shift-Select and Control-Shift-Space adjust the selection to the
+current position of the insertion cursor, selecting from the anchor
+to the insertion cursor if there was not any selection previously.
+
- [18]
-
+Control-/ selects the entire contents of the widget.
+
- [19]
-
+Control-\ clears any selection in the widget.
+
- [20]
-
+The F16 key (labelled Copy on many Sun workstations) or Meta-w
+copies the selection in the widget to the clipboard, if there is a selection.
+
- [21]
-
+The F20 key (labelled Cut on many Sun workstations) or Control-w
+copies the selection in the widget to the clipboard and deletes
+the selection.
+If there is no selection in the widget then these keys have no effect.
+
- [22]
-
+The F18 key (labelled Paste on many Sun workstations) or Control-y
+inserts the contents of the clipboard at the position of the
+insertion cursor.
+
- [23]
-
+The Delete key deletes the selection, if there is one in the widget.
+If there is no selection, it deletes the character to the right of
+the insertion cursor.
+
- [24]
-
+Backspace and Control-h delete the selection, if there is one
+in the widget.
+If there is no selection, they delete the character to the left of
+the insertion cursor.
+
- [25]
-
+Control-d deletes the character to the right of the insertion cursor.
+
- [26]
-
+Meta-d deletes the word to the right of the insertion cursor.
+
- [27]
-
+Control-k deletes from the insertion cursor to the end of its line;
+if the insertion cursor is already at the end of a line, then
+Control-k deletes the newline character.
+
- [28]
-
+Control-o opens a new line by inserting a newline character in
+front of the insertion cursor without moving the insertion cursor.
+
- [29]
-
+Meta-backspace and Meta-Delete delete the word to the left of the
+insertion cursor.
+
- [30]
-
+Control-x deletes whatever is selected in the text widget.
+
- [31]
-
+Control-t reverses the order of the two characters to the right of
+the insertion cursor.
+
+
+If the widget is disabled using the -state option, then its
+view can still be adjusted and text can still be selected,
+but no insertion cursor will be displayed and no text modifications will
+take place.
+
+The behavior of texts can be changed by defining new bindings for
+individual widgets or by redefining the class bindings.
+
+
+Text widgets should run efficiently under a variety
+of conditions. The text widget uses about 2-3 bytes of
+main memory for each byte of text, so texts containing a megabyte
+or more should be practical on most workstations.
+Text is represented internally with a modified B-tree structure
+that makes operations relatively efficient even with large texts.
+Tags are included in the B-tree structure in a way that allows
+tags to span large ranges or have many disjoint smaller ranges
+without loss of efficiency.
+Marks are also implemented in a way that allows large numbers of
+marks.
+In most cases it is fine to have large numbers of unique tags,
+or a tag that has many distinct ranges.
+
+One performance problem can arise if you have hundreds or thousands
+of different tags that all have the following characteristics:
+the first and last ranges of each tag are near the beginning and
+end of the text, respectively,
+or a single tag range covers most of the text widget.
+The cost of adding and deleting tags like this is proportional
+to the number of other tags with the same properties.
+In contrast, there is no problem with having thousands of distinct
+tags if their overall ranges are localized and spread uniformly throughout
+the text.
+
+Very long text lines can be expensive,
+especially if they have many marks and tags within them.
+
+The display line with the insert cursor is redrawn each time the
+cursor blinks, which causes a steady stream of graphics traffic.
+Set the insertOffTime attribute to 0 avoid this.
+
+text, widget
+
+Copyright © 1992 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/tk.htm b/hlp/en/tk/tk.htm
new file mode 100644
index 0000000..9b1c5fd
--- /dev/null
+++ b/hlp/en/tk/tk.htm
@@ -0,0 +1,66 @@
+Tk Built-In Commands - tk manual page
+
+tk - Manipulate Tk internal state
+
+tk option ?arg arg ...?
+
+The tk command provides access to miscellaneous
+elements of Tk's internal state.
+Most of the information manipulated by this command pertains to the
+application as a whole, or to a screen or display, rather than to a
+particular window.
+The command can take any of a number of different forms
+depending on the option argument. The legal forms are:
+
+
+- tk appname ?newName?
-
+If newName isn't specified, this command returns the name
+of the application (the name that may be used in send
+commands to communicate with the application).
+If newName is specified, then the name of the application
+is changed to newName.
+If the given name is already in use, then a suffix of the form
+`` #2'' or `` #3'' is appended in order to make the name unique.
+The command's result is the name actually chosen.
+newName should not start with a capital letter.
+This will interfere with option processing, since names starting with
+capitals are assumed to be classes; as a result, Tk may not
+be able to find some options for the application.
+If sends have been disabled by deleting the send command,
+this command will reenable them and recreate the send
+command.
+
- tk scaling ?-displayof window? ?number?
-
+Sets and queries the current scaling factor used by Tk to convert between
+physical units (for example, points, inches, or millimeters) and pixels. The
+number argument is a floating point number that specifies the number of
+pixels per point on window's display. If the window argument is
+omitted, it defaults to the main window. If the number argument is
+omitted, the current value of the scaling factor is returned.
+
+A ``point'' is a unit of measurement equal to 1/72 inch. A scaling factor
+of 1.0 corresponds to 1 pixel per point, which is equivalent to a standard
+72 dpi monitor. A scaling factor of 1.25 would mean 1.25 pixels per point,
+which is the setting for a 90 dpi monitor; setting the scaling factor to
+1.25 on a 72 dpi monitor would cause everything in the application to be
+displayed 1.25 times as large as normal. The initial value for the scaling
+factor is set when the application starts, based on properties of the
+installed monitor, but it can be changed at any time. Measurements made
+after the scaling factor is changed will use the new scaling factor, but it
+is undefined whether existing widgets will resize themselves dynamically to
+accomodate the new scaling factor.
+
- tk useinputmethods ?-displayof window? ?boolean?
-
+Sets and queries the state of whether Tk should use XIM (X Input Methods)
+for filtering events. The resulting state is returned. XIM is used in
+some locales (ie: Japanese, Korean), to handle special input devices. This
+feature is only significant on X. If XIM support is not available, this
+will always return 0. If the window argument is omitted, it defaults
+to the main window. If the boolean argument is omitted, the current
+state is returned. This is turned on by default for the main display.
+
+
+application name, send
+
+Copyright © 1992 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/tk.toc.html b/hlp/en/tk/tk.toc.html
new file mode 100644
index 0000000..67d600a
--- /dev/null
+++ b/hlp/en/tk/tk.toc.html
@@ -0,0 +1,61 @@
+Tcl Commands
+bell
+destroy
+label
+photo
+bind
+entry
+listbox
+place
+tk_popup
+bindtags
+event
+loadTk
+radiobutton
+bitmap
+focus
+lower
+raise
+tk_dialog
+tkerror
+button
+font
+menu
+scale
+tkvars
+canvas
+frame
+menubutton
+scrollbar
+tkwait
+checkbutton
+grab
+message
+selection
+toplevel
+clipboard
+grid
+option
+send
+winfo
+colors
+image
+options
+text
+tk_bisque
+tk_chooseColor
+tk_chooseDirectory
+tk_focusPrev
+tk_focusFollowsMouse
+tk_focusNext
+tk_getOpenFile
+tk_getSaveFile
+tk_optionMenu
+tk_setPalette
+wm
+cursors
+keysyms
+pack
+tk
+tk_messageBox
+
diff --git a/hlp/en/tk/tkerror.htm b/hlp/en/tk/tkerror.htm
new file mode 100644
index 0000000..fd00c5a
--- /dev/null
+++ b/hlp/en/tk/tkerror.htm
@@ -0,0 +1,28 @@
+Tk Built-In Commands - tkerror manual page
+
+tkerror - Command invoked to process background errors
+
+tkerror message
+
+Note: as of Tk 4.1 the tkerror command has been renamed to
+bgerror because the event loop (which is what usually invokes
+it) is now part of Tcl. For backward compatibility
+the bgerror provided by the current Tk version still
+tries to call tkerror if there is one (or an auto loadable one),
+so old script defining that error handler should still work, but you
+should anyhow modify your scripts to use bgerror instead
+of tkerror because that support for the old name might vanish
+in the near future. If that call fails, bgerror
+posts a dialog showing the error and offering to see the stack trace
+to the user. If you want your own error management you should
+directly override bgerror instead of tkerror.
+Documentation for bgerror is available as part of Tcl's
+documentation.
+
+
+background error, reporting
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/tkvars.htm b/hlp/en/tk/tkvars.htm
new file mode 100644
index 0000000..75396ca
--- /dev/null
+++ b/hlp/en/tk/tkvars.htm
@@ -0,0 +1,60 @@
+Tk Built-In Commands - tkvars manual page
+
+tkvars - Variables used or set by Tk
+
+The following Tcl variables are either set or used by Tk at various times
+in its execution:
+
+
+- tk_library
-
+This variable holds the file name for a directory containing a library
+of Tcl scripts related to Tk. These scripts include an initialization
+file that is normally processed whenever a Tk application starts up,
+plus other files containing procedures that implement default behaviors
+for widgets.
+The initial value of tcl_library is set when Tk is added to
+an interpreter; this is done by searching several different directories
+until one is found that contains an appropriate Tk startup script.
+If the TK_LIBRARY environment variable exists, then
+the directory it names is checked first.
+If TK_LIBRARY isn't set or doesn't refer to an appropriate
+directory, then Tk checks several other directories based on a
+compiled-in default location, the location of the Tcl library directory,
+the location of the binary containing the application, and the current
+working directory.
+The variable can be modified by an application to switch to a different
+library.
+
- tk_patchLevel
-
+Contains a decimal integer giving the current patch level for Tk.
+The patch level is incremented for each new release or patch, and
+it uniquely identifies an official version of Tk.
+
- tkPriv
-
+This variable is an array containing several pieces of information
+that are private to Tk. The elements of tkPriv are used by
+Tk library procedures and default bindings.
+They should not be accessed by any code outside Tk.
+
- tk_strictMotif
-
+This variable is set to zero by default.
+If an application sets it to one, then Tk attempts to adhere as
+closely as possible to Motif look-and-feel standards.
+For example, active elements such as buttons and scrollbar
+sliders will not change color when the pointer passes over them.
+
- tk_version
-
+Tk sets this variable in the interpreter for each application.
+The variable holds the current version number of the Tk
+library in the form major.minor. Major and
+minor are integers. The major version number increases in
+any Tk release that includes changes that are not backward compatible
+(i.e. whenever existing Tk applications and scripts may have to change to
+work with the new release). The minor version number increases with
+each new release of Tk, except that it resets to zero whenever the
+major version number changes.
+
+
+
+variables, version
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/tkwait.htm b/hlp/en/tk/tkwait.htm
new file mode 100644
index 0000000..b5bddce
--- /dev/null
+++ b/hlp/en/tk/tkwait.htm
@@ -0,0 +1,39 @@
+Built-In Commands - tkwait manual page
+
+tkwait - Wait for variable to change or window to be destroyed
+
+tkwait variable name
+tkwait visibility name
+tkwait window name
+
+The tkwait command waits for one of several things to happen,
+then it returns without taking any other actions.
+The return value is always an empty string.
+If the first argument is variable (or any abbreviation of
+it) then the second argument is the name of a global variable and the
+command waits for that variable to be modified.
+If the first argument is visibility (or any abbreviation
+of it) then the second argument is the name of a window and the
+tkwait command waits for a change in its
+visibility state (as indicated by the arrival of a VisibilityNotify
+event). This form is typically used to wait for a newly-created
+window to appear on the screen before taking some action.
+If the first argument is window (or any abbreviation
+of it) then the second argument is the name of a window and the
+tkwait command waits for that window to be destroyed.
+This form is typically used to wait for a user to finish interacting
+with a dialog box before using the result of that interaction.
+
+While the tkwait command is waiting it processes events in
+the normal fashion, so the application will continue to respond
+to user interactions.
+If an event handler invokes tkwait again, the nested call
+to tkwait must complete before the outer call can complete.
+
+
+variable, visibility, wait, window
+
+Copyright © 1992 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/toplevel.htm b/hlp/en/tk/toplevel.htm
new file mode 100644
index 0000000..5089789
--- /dev/null
+++ b/hlp/en/tk/toplevel.htm
@@ -0,0 +1,211 @@
+Tk Built-In Commands - toplevel manual page
+
+- NAME
+
- toplevel - Create and manipulate toplevel widgets
+- SYNOPSIS
+
+- toplevel pathName ?options?
+
+- STANDARD OPTIONS
+
+- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
+- WIDGET-SPECIFIC OPTIONS
+
+- -background, background, Background
+
- -class, class, Class
+
- -colormap, colormap, Colormap
+
- -container, container, Container
+
- -height, height, Height
+
- -menu, menu, Menu
+
- -screen, ,
+
- -use, use, Use
+
- -visual, visual, Visual
+
- -width, width, Width
+
+- DESCRIPTION
+
- WIDGET COMMAND
+
+- pathName cget option
+
- pathName configure ?option? ?value option value ...?
+
+- BINDINGS
+
- KEYWORDS
+
+
+toplevel - Create and manipulate toplevel widgets
+
+toplevel pathName ?options?
+
+
+- -borderwidth or -bd, borderWidth, BorderWidth
+
- -cursor, cursor, Cursor
+
- -highlightbackground, highlightBackground, HighlightBackground
+
- -highlightcolor, highlightColor, HighlightColor
+
- -highlightthickness, highlightThickness, HighlightThickness
+
- -relief, relief, Relief
+
- -takefocus, takeFocus, TakeFocus
+
+
+
+- Command-Line Name: -background
+
- Database Name: background
+
- Database Class: Background
+
- This option is the same as the standard background option
+except that its value may also be specified as an empty string.
+In this case, the widget will display no background or border, and
+no colors will be consumed from its colormap for its background
+and border.
+
- Command-Line Name: -class
+
- Database Name: class
+
- Database Class: Class
+
- Specifies a class for the window.
+This class will be used when querying the option database for
+the window's other options, and it will also be used later for
+other purposes such as bindings.
+The class option may not be changed with the configure
+widget command.
+
- Command-Line Name: -colormap
+
- Database Name: colormap
+
- Database Class: Colormap
+
- Specifies a colormap to use for the window.
+The value may be either new, in which case a new colormap is
+created for the window and its children, or the name of another
+window (which must be on the same screen and have the same visual
+as pathName), in which case the new window will use the colormap
+from the specified window.
+If the colormap option is not specified, the new window
+uses the default colormap of its screen.
+This option may not be changed with the configure
+widget command.
+
- Command-Line Name: -container
+
- Database Name: container
+
- Database Class: Container
+
- The value must be a boolean. If true, it means that this window will
+be used as a container in which some other application will be embedded
+(for example, a Tk toplevel can be embedded using the -use option).
+The window will support the appropriate window manager protocols for
+things like geometry requests. The window should not have any
+children of its own in this application.
+This option may not be changed with the configure
+widget command.
+
- Command-Line Name: -height
+
- Database Name: height
+
- Database Class: Height
+
- Specifies the desired height for the window in any of the forms
+acceptable to Tk_GetPixels.
+If this option is less than or equal to zero then the window will
+not request any size at all.
+
- Command-Line Name: -menu
+
- Database Name: menu
+
- Database Class: Menu
+
- Specifies a menu widget to be used as a menubar. On the Macintosh, the
+menubar will be displayed accross the top of the main monitor. On
+Microsoft Windows and all UNIX platforms, the menu will appear accross
+the toplevel window as part of the window dressing maintained by the
+window manager.
+
- Command-Line Name: -screen
+
- Database Name:
+
- Database Class:
+
- Specifies the screen on which to place the new window.
+Any valid screen name may be used, even one associated with a
+different display.
+Defaults to the same screen as its parent.
+This option is special in that it may not be specified via the option
+database, and it may not be modified with the configure
+widget command.
+
- Command-Line Name: -use
+
- Database Name: use
+
- Database Class: Use
+
- This option is used for embedding. If the value isn't an empty string,
+it must be the the window identifier of a container window, specified as
+a hexadecimal string like the ones returned by the winfo id
+command. The toplevel widget will be created as a child of the given
+container instead of the root window for the screen. If the container
+window is in a Tk application, it must be a frame or toplevel widget for
+which the -container option was specified.
+This option may not be changed with the configure
+widget command.
+
- Command-Line Name: -visual
+
- Database Name: visual
+
- Database Class: Visual
+
- Specifies visual information for the new window in any of the
+forms accepted by Tk_GetVisual.
+If this option is not specified, the new window will use the default
+visual for its screen.
+The visual option may not be modified with the configure
+widget command.
+
- Command-Line Name: -width
+
- Database Name: width
+
- Database Class: Width
+
- Specifies the desired width for the window in any of the forms
+acceptable to Tk_GetPixels.
+If this option is less than or equal to zero then the window will
+not request any size at all.
+
+
+The toplevel command creates a new toplevel widget (given
+by the pathName argument). Additional
+options, described above, may be specified on the command line
+or in the option database
+to configure aspects of the toplevel such as its background color
+and relief. The toplevel command returns the
+path name of the new window.
+
+A toplevel is similar to a frame except that it is created as a
+top-level window: its X parent is the root window of a screen
+rather than the logical parent from its path name. The primary
+purpose of a toplevel is to serve as a container for dialog boxes
+and other collections of widgets. The only visible features
+of a toplevel are its background color and an optional 3-D border
+to make the toplevel appear raised or sunken.
+
+
+The toplevel command creates a new Tcl command whose
+name is the same as the path name of the toplevel's window. This
+command may be used to invoke various
+operations on the widget. It has the following general form:
+pathName option ?arg arg ...?
+PathName is the name of the command, which is the same as
+the toplevel widget's path name. Option and the args
+determine the exact behavior of the command. The following
+commands are possible for toplevel widgets:
+
+
+- pathName cget option
-
+Returns the current value of the configuration option given
+by option.
+Option may have any of the values accepted by the toplevel
+command.
+
- pathName configure ?option? ?value option value ...?
-
+Query or modify the configuration options of the widget.
+If no option is specified, returns a list describing all of
+the available options for pathName (see Tk_ConfigureInfo for
+information on the format of this list). If option is specified
+with no value, then the command returns a list describing the
+one named option (this list will be identical to the corresponding
+sublist of the value returned if no option is specified). If
+one or more option-value pairs are specified, then the command
+modifies the given widget option(s) to have the given value(s); in
+this case the command returns an empty string.
+Option may have any of the values accepted by the toplevel
+command.
+
+
+
+When a new toplevel is created, it has no default event bindings:
+toplevels are not intended to be interactive.
+
+
+toplevel, widget
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/winfo.htm b/hlp/en/tk/winfo.htm
new file mode 100644
index 0000000..a43cb91
--- /dev/null
+++ b/hlp/en/tk/winfo.htm
@@ -0,0 +1,332 @@
+Tk Built-In Commands - winfo manual page
+
+- NAME
+
- winfo - Return window-related information
+- SYNOPSIS
+
+- winfo option ?arg arg ...?
+
+- DESCRIPTION
+
+- winfo atom ?-displayof window? name
+
- winfo atomname ?-displayof window? id
+
- winfo cells window
+
- winfo children window
+
- winfo class window
+
- winfo colormapfull window
+
- winfo containing ?-displayof window? rootX rootY
+
- winfo depth window
+
- winfo exists window
+
- winfo fpixels window number
+
- winfo geometry window
+
- winfo height window
+
- winfo id window
+
- winfo interps ?-displayof window?
+
- winfo ismapped window
+
- winfo manager window
+
- winfo name window
+
- winfo parent window
+
- winfo pathname ?-displayof window? id
+
- winfo pixels window number
+
- winfo pointerx window
+
- winfo pointerxy window
+
- winfo pointery window
+
- winfo reqheight window
+
- winfo reqwidth window
+
- winfo rgb window color
+
- winfo rootx window
+
- winfo rooty window
+
- winfo screen window
+
- winfo screencells window
+
- winfo screendepth window
+
- winfo screenheight window
+
- winfo screenmmheight window
+
- winfo screenmmwidth window
+
- winfo screenvisual window
+
- winfo screenwidth window
+
- winfo server window
+
- winfo toplevel window
+
- winfo viewable window
+
- winfo visual window
+
- winfo visualid window
+
- winfo visualsavailable window ?includeids?
+
- winfo vrootheight window
+
- winfo vrootwidth window
+
- winfo vrootx window
+
- winfo vrooty window
+
- winfo width window
+
- winfo x window
+
- winfo y window
+
+- KEYWORDS
+
+
+winfo - Return window-related information
+
+winfo option ?arg arg ...?
+
+The winfo command is used to retrieve information about windows
+managed by Tk. It can take any of a number of different forms,
+depending on the option argument. The legal forms are:
+
+
+- winfo atom ?-displayof window? name
-
+Returns a decimal string giving the integer identifier for the
+atom whose name is name. If no atom exists with the name
+name then a new one is created.
+If the -displayof option is given then the atom is looked
+up on the display of window; otherwise it is looked up on
+the display of the application's main window.
+
- winfo atomname ?-displayof window? id
-
+Returns the textual name for the atom whose integer identifier is
+id.
+If the -displayof option is given then the identifier is looked
+up on the display of window; otherwise it is looked up on
+the display of the application's main window.
+This command is the inverse of the winfo atom command.
+It generates an error if no such atom exists.
+
- winfo cells window
-
+Returns a decimal string giving the number of cells in the
+color map for window.
+
- winfo children window
-
+Returns a list containing the path names of all the children
+of window. The list is in stacking order, with the lowest
+window first. Top-level windows are returned as children
+of their logical parents.
+
- winfo class window
-
+Returns the class name for window.
+
- winfo colormapfull window
-
+Returns 1 if the colormap for window is known to be full, 0
+otherwise. The colormap for a window is ``known'' to be full if the last
+attempt to allocate a new color on that window failed and this
+application hasn't freed any colors in the colormap since the
+failed allocation.
+
- winfo containing ?-displayof window? rootX rootY
-
+Returns the path name for the window containing the point given
+by rootX and rootY.
+RootX and rootY are specified in screen units (i.e.
+any form acceptable to Tk_GetPixels) in the coordinate
+system of the root window (if a virtual-root window manager is in
+use then the coordinate system of the virtual root window is used).
+If the -displayof option is given then the coordinates refer
+to the screen containing window; otherwise they refer to the
+screen of the application's main window.
+If no window in this application contains the point then an empty
+string is returned.
+In selecting the containing window, children are given higher priority
+than parents and among siblings the highest one in the stacking order is
+chosen.
+
- winfo depth window
-
+Returns a decimal string giving the depth of window (number
+of bits per pixel).
+
- winfo exists window
-
+Returns 1 if there exists a window named window, 0 if no such
+window exists.
+
- winfo fpixels window number
-
+Returns a floating-point value giving the number of pixels
+in window corresponding to the distance given by number.
+Number may be specified in any of the forms acceptable
+to Tk_GetScreenMM, such as ``2.0c'' or ``1i''.
+The return value may be fractional; for an integer value, use
+winfo pixels.
+
- winfo geometry window
-
+Returns the geometry for window, in the form
+widthxheight+x+y. All dimensions are
+in pixels.
+
- winfo height window
-
+Returns a decimal string giving window's height in pixels.
+When a window is first created its height will be 1 pixel; the
+height will eventually be changed by a geometry manager to fulfill
+the window's needs.
+If you need the true height immediately after creating a widget,
+invoke update to force the geometry manager to arrange it,
+or use winfo reqheight to get the window's requested height
+instead of its actual height.
+
- winfo id window
-
+Returns a hexadecimal string giving a low-level platform-specific
+identifier for window. On Unix platforms, this is the X
+window identifier. Under Windows, this is the Windows
+HWND. On the Macintosh the value has no meaning outside Tk.
+
- winfo interps ?-displayof window?
-
+Returns a list whose members are the names of all Tcl interpreters
+(e.g. all Tk-based applications) currently registered for a particular display.
+If the -displayof option is given then the return value refers
+to the display of window; otherwise it refers to
+the display of the application's main window.
+
- winfo ismapped window
-
+Returns 1 if window is currently mapped, 0 otherwise.
+
- winfo manager window
-
+Returns the name of the geometry manager currently
+responsible for window, or an empty string if window
+isn't managed by any geometry manager.
+The name is usually the name of the Tcl command for the geometry
+manager, such as pack or place.
+If the geometry manager is a widget, such as canvases or text, the
+name is the widget's class command, such as canvas.
+
- winfo name window
-
+Returns window's name (i.e. its name within its parent, as opposed
+to its full path name).
+The command winfo name . will return the name of the application.
+
- winfo parent window
-
+Returns the path name of window's parent, or an empty string
+if window is the main window of the application.
+
- winfo pathname ?-displayof window? id
-
+Returns the path name of the window whose X identifier is id.
+Id must be a decimal, hexadecimal, or octal integer and must
+correspond to a window in the invoking application.
+If the -displayof option is given then the identifier is looked
+up on the display of window; otherwise it is looked up on
+the display of the application's main window.
+
- winfo pixels window number
-
+Returns the number of pixels in window corresponding
+to the distance given by number.
+Number may be specified in any of the forms acceptable
+to Tk_GetPixels, such as ``2.0c'' or ``1i''.
+The result is rounded to the nearest integer value; for a
+fractional result, use winfo fpixels.
+
- winfo pointerx window
-
+If the mouse pointer is on the same screen as window, returns the
+pointer's x coordinate, measured in pixels in the screen's root window.
+If a virtual root window is in use on the screen, the position is
+measured in the virtual root.
+If the mouse pointer isn't on the same screen as window then
+-1 is returned.
+
- winfo pointerxy window
-
+If the mouse pointer is on the same screen as window, returns a list
+with two elements, which are the pointer's x and y coordinates measured
+in pixels in the screen's root window.
+If a virtual root window is in use on the screen, the position
+is computed in the virtual root.
+If the mouse pointer isn't on the same screen as window then
+both of the returned coordinates are -1.
+
- winfo pointery window
-
+If the mouse pointer is on the same screen as window, returns the
+pointer's y coordinate, measured in pixels in the screen's root window.
+If a virtual root window is in use on the screen, the position
+is computed in the virtual root.
+If the mouse pointer isn't on the same screen as window then
+-1 is returned.
+
- winfo reqheight window
-
+Returns a decimal string giving window's requested height,
+in pixels. This is the value used by window's geometry
+manager to compute its geometry.
+
- winfo reqwidth window
-
+Returns a decimal string giving window's requested width,
+in pixels. This is the value used by window's geometry
+manager to compute its geometry.
+
- winfo rgb window color
-
+Returns a list containing three decimal values, which are the
+red, green, and blue intensities that correspond to color in
+the window given by window. Color
+may be specified in any of the forms acceptable for a color
+option.
+
- winfo rootx window
-
+Returns a decimal string giving the x-coordinate, in the root
+window of the screen, of the
+upper-left corner of window's border (or window if it
+has no border).
+
- winfo rooty window
-
+Returns a decimal string giving the y-coordinate, in the root
+window of the screen, of the
+upper-left corner of window's border (or window if it
+has no border).
+
- winfo screen window
-
+Returns the name of the screen associated with window, in
+the form displayName.screenIndex.
+
- winfo screencells window
-
+Returns a decimal string giving the number of cells in the default
+color map for window's screen.
+
- winfo screendepth window
-
+Returns a decimal string giving the depth of the root window
+of window's screen (number of bits per pixel).
+
- winfo screenheight window
-
+Returns a decimal string giving the height of window's screen,
+in pixels.
+
- winfo screenmmheight window
-
+Returns a decimal string giving the height of window's screen,
+in millimeters.
+
- winfo screenmmwidth window
-
+Returns a decimal string giving the width of window's screen,
+in millimeters.
+
- winfo screenvisual window
-
+Returns one of the following strings to indicate the default visual
+class for window's screen: directcolor, grayscale,
+pseudocolor, staticcolor, staticgray, or
+truecolor.
+
- winfo screenwidth window
-
+Returns a decimal string giving the width of window's screen,
+in pixels.
+
- winfo server window
-
+Returns a string containing information about the server for
+window's display. The exact format of this string may vary
+from platform to platform. For X servers the string
+has the form ``XmajorRminor vendor vendorVersion''
+where major and minor are the version and revision
+numbers provided by the server (e.g., X11R5), vendor
+is the name of the vendor for the server, and vendorRelease
+is an integer release number provided by the server.
+
- winfo toplevel window
-
+Returns the path name of the top-level window containing window.
+
- winfo viewable window
-
+Returns 1 if window and all of its ancestors up through the
+nearest toplevel window are mapped. Returns 0 if any of these
+windows are not mapped.
+
- winfo visual window
-
+Returns one of the following strings to indicate the visual
+class for window: directcolor, grayscale,
+pseudocolor, staticcolor, staticgray, or
+truecolor.
+
- winfo visualid window
-
+Returns the X identifier for the visual for window.
+
- winfo visualsavailable window ?includeids?
-
+Returns a list whose elements describe the visuals available for
+window's screen.
+Each element consists of a visual class followed by an integer depth.
+The class has the same form as returned by winfo visual.
+The depth gives the number of bits per pixel in the visual.
+In addition, if the includeids argument is provided, then the
+depth is followed by the X identifier for the visual.
+
- winfo vrootheight window
-
+Returns the height of the virtual root window associated with window
+if there is one; otherwise returns the height of window's screen.
+
- winfo vrootwidth window
-
+Returns the width of the virtual root window associated with window
+if there is one; otherwise returns the width of window's screen.
+
- winfo vrootx window
-
+Returns the x-offset of the virtual root window associated with window,
+relative to the root window of its screen.
+This is normally either zero or negative.
+Returns 0 if there is no virtual root window for window.
+
- winfo vrooty window
-
+Returns the y-offset of the virtual root window associated with window,
+relative to the root window of its screen.
+This is normally either zero or negative.
+Returns 0 if there is no virtual root window for window.
+
- winfo width window
-
+Returns a decimal string giving window's width in pixels.
+When a window is first created its width will be 1 pixel; the
+width will eventually be changed by a geometry manager to fulfill
+the window's needs.
+If you need the true width immediately after creating a widget,
+invoke update to force the geometry manager to arrange it,
+or use winfo reqwidth to get the window's requested width
+instead of its actual width.
+
- winfo x window
-
+Returns a decimal string giving the x-coordinate, in window's
+parent, of the
+upper-left corner of window's border (or window if it
+has no border).
+
- winfo y window
-
+Returns a decimal string giving the y-coordinate, in window's
+parent, of the
+upper-left corner of window's border (or window if it
+has no border).
+
+
+
+atom, children, class, geometry, height, identifier, information, interpreters, mapped, parent, path name, screen, virtual root, width, window
+
+Copyright © 1990-1994 The Regents of the University of California.
+Copyright © 1994-1997 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/wish.htm b/hlp/en/tk/wish.htm
new file mode 100644
index 0000000..03fafa6
--- /dev/null
+++ b/hlp/en/tk/wish.htm
@@ -0,0 +1,198 @@
+Tk Applications - wish manual page
+
+- NAME
+
- wish - Simple windowing shell
+- SYNOPSIS
+
+- wish ?fileName arg arg ...?
+
+- OPTIONS
+
+- -colormap new
+
- -display display
+
- -geometry geometry
+
- -name name
+
- -sync
+
- -use id
+
- -visual visual
+
- - -
+
+- DESCRIPTION
+
- OPTIONS
+
- APPLICATION NAME AND CLASS
+
- VARIABLES
+
+- argc
+
- argv
+
- argv0
+
- geometry
+
- tcl_interactive
+
+- SCRIPT FILES
+
- PROMPTS
+
- KEYWORDS
+
+
+wish - Simple windowing shell
+
+wish ?fileName arg arg ...?
+
+
+- -colormap new
-
+Specifies that the window should have a new private colormap instead of
+using the default colormap for the screen.
+
- -display display
-
+Display (and screen) on which to display window.
+
- -geometry geometry
-
+Initial geometry to use for window. If this option is specified, its
+value is stored in the geometry global variable of the application's
+Tcl interpreter.
+
- -name name
-
+Use name as the title to be displayed in the window, and
+as the name of the interpreter for send commands.
+
- -sync
-
+Execute all X server commands synchronously, so that errors
+are reported immediately. This will result in much slower
+execution, but it is useful for debugging.
+
- -use id
-
+Specifies that the main window for the application is to be embedded in
+the window whose identifier is id, instead of being created as an
+independent toplevel window. Id must be specified in the same
+way as the value for the -use option for toplevel widgets (i.e.
+it has a form like that returned by the winfo id command).
+
- -visual visual
-
+Specifies the visual to use for the window.
+Visual may have any of the forms supported by the Tk_GetVisual
+procedure.
+
- - -
-
+Pass all remaining arguments through to the script's argv
+variable without interpreting them.
+This provides a mechanism for passing arguments such as -name
+to a script instead of having wish interpret them.
+
+
+Wish is a simple program consisting of the Tcl command
+language, the Tk toolkit, and a main program that reads commands
+from standard input or from a file.
+It creates a main window and then processes Tcl commands.
+If wish is invoked with no arguments, or with a first argument
+that starts with ``-'', then it reads Tcl commands interactively from
+standard input.
+It will continue processing commands until all windows have been
+deleted or until end-of-file is reached on standard input.
+If there exists a file .wishrc in the home directory of
+the user, wish evaluates the file as a Tcl script
+just before reading the first command from standard input.
+
+If wish is invoked with an initial fileName argument, then
+fileName is treated as the name of a script file.
+Wish will evaluate the script in fileName (which
+presumably creates a user interface), then it will respond to events
+until all windows have been deleted.
+Commands will not be read from standard input.
+There is no automatic evaluation of .wishrc in this
+case, but the script file can always source it if desired.
+
+
+Wish automatically processes all of the command-line options
+described in the OPTIONS summary above.
+Any other command-line arguments besides these are passed through
+to the application using the argc and argv variables
+described later.
+
+
+The name of the application, which is used for purposes such as
+send commands, is taken from the -name option,
+if it is specified; otherwise it is taken from fileName,
+if it is specified, or from the command name by which
+wish was invoked. In the last two cases, if the name contains a ``/''
+character, then only the characters after the last slash are used
+as the application name.
+
+The class of the application, which is used for purposes such as
+specifying options with a RESOURCE_MANAGER property or .Xdefaults
+file, is the same as its name except that the first letter is
+capitalized.
+
+
+Wish sets the following Tcl variables:
+
+
+- argc
-
+Contains a count of the number of arg arguments (0 if none),
+not including the options described above.
+
- argv
-
+Contains a Tcl list whose elements are the arg arguments
+that follow a - - option or don't match any of the
+options described in OPTIONS above, in order, or an empty string
+if there are no such arguments.
+
- argv0
-
+Contains fileName if it was specified.
+Otherwise, contains the name by which wish was invoked.
+
- geometry
-
+If the -geometry option is specified, wish copies its
+value into this variable. If the variable still exists after
+fileName has been evaluated, wish uses the value of
+the variable in a wm geometry command to set the main
+window's geometry.
+
- tcl_interactive
-
+Contains 1 if wish is reading commands interactively (fileName
+was not specified and standard input is a terminal-like
+device), 0 otherwise.
+
+
+
+If you create a Tcl script in a file whose first line is
+#!/usr/local/bin/wish
+then you can invoke the script file directly from your shell if
+you mark it as executable.
+This assumes that wish has been installed in the default
+location in /usr/local/bin; if it's installed somewhere else
+then you'll have to modify the above line to match.
+Many UNIX systems do not allow the #! line to exceed about
+30 characters in length, so be sure that the wish executable
+can be accessed with a short file name.
+
+An even better approach is to start your script files with the
+following three lines:
+
#!/bin/sh
+# the next line restarts using wish \
+exec wish "$0" "$@"
+This approach has three advantages over the approach in the previous
+paragraph. First, the location of the wish binary doesn't have
+to be hard-wired into the script: it can be anywhere in your shell
+search path. Second, it gets around the 30-character file name limit
+in the previous approach.
+Third, this approach will work even if wish is
+itself a shell script (this is done on some systems in order to
+handle multiple architectures or operating systems: the wish
+script selects one of several binaries to run). The three lines
+cause both sh and wish to process the script, but the
+exec is only executed by sh.
+sh processes the script first; it treats the second
+line as a comment and executes the third line.
+The exec statement cause the shell to stop processing and
+instead to start up wish to reprocess the entire script.
+When wish starts up, it treats all three lines as comments,
+since the backslash at the end of the second line causes the third
+line to be treated as part of the comment on the second line.
+
+
+When wish is invoked interactively it normally prompts for each
+command with ``% ''. You can change the prompt by setting the
+variables tcl_prompt1 and tcl_prompt2. If variable
+tcl_prompt1 exists then it must consist of a Tcl script
+to output a prompt; instead of outputting a prompt wish
+will evaluate the script in tcl_prompt1.
+The variable tcl_prompt2 is used in a similar way when
+a newline is typed but the current command isn't yet complete;
+if tcl_prompt2 isn't set then no prompt is output for
+incomplete commands.
+
+
+shell, toolkit
+
+Copyright © 1991-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/en/tk/wm.htm b/hlp/en/tk/wm.htm
new file mode 100644
index 0000000..0d2f89d
--- /dev/null
+++ b/hlp/en/tk/wm.htm
@@ -0,0 +1,519 @@
+Tk Built-In Commands - wm manual page
+
+- NAME
+
- wm - Communicate with window manager
+- SYNOPSIS
+
+- wm option window ?args?
+
+- DESCRIPTION
+
+- wm aspect window ?minNumer minDenom maxNumer maxDenom?
+
- wm client window ?name?
+
- wm colormapwindows window ?windowList?
+
- wm command window ?value?
+
- wm deiconify window
+
- wm focusmodel window ?active|passive?
+
- wm frame window
+
- wm geometry window ?newGeometry?
+
- wm grid window ?baseWidth baseHeight widthInc heightInc?
+
- wm group window ?pathName?
+
- wm iconbitmap window ?bitmap?
+
- wm iconify window
+
- wm iconmask window ?bitmap?
+
- wm iconname window ?newName?
+
- wm iconposition window ?x y?
+
- wm iconwindow window ?pathName?
+
- wm maxsize window ?width height?
+
- wm minsize window ?width height?
+
- wm overrideredirect window ?boolean?
+
- wm positionfrom window ?who?
+
- wm protocol window ?name? ?command?
+
- wm resizable window ?width height?
+
- wm sizefrom window ?who?
+
- wm state window ?newstate?
+
- wm title window ?string?
+
- wm transient window ?master?
+
- wm withdraw window
+
+- GEOMETRY MANAGEMENT
+
- GRIDDED GEOMETRY MANAGEMENT
+
- BUGS
+
- KEYWORDS
+
+
+wm - Communicate with window manager
+
+wm option window ?args?
+
+The wm command is used to interact with window managers in
+order to control such things as the title for a window, its geometry,
+or the increments in terms of which it may be resized. The wm
+command can take any of a number of different forms, depending on
+the option argument. All of the forms expect at least one
+additional argument, window, which must be the path name of a
+top-level window.
+
+The legal forms for the wm command are:
+
+
+- wm aspect window ?minNumer minDenom maxNumer maxDenom?
-
+If minNumer, minDenom, maxNumer, and maxDenom
+are all specified, then they will be passed to the window manager
+and the window manager should use them to enforce a range of
+acceptable aspect ratios for window. The aspect ratio of
+window (width/length) will be constrained to lie
+between minNumer/minDenom and maxNumer/maxDenom.
+If minNumer etc. are all specified as empty strings, then
+any existing aspect ratio restrictions are removed.
+If minNumer etc. are specified, then the command returns an
+empty string. Otherwise, it returns
+a Tcl list containing four elements, which are the current values
+of minNumer, minDenom, maxNumer, and maxDenom
+(if no aspect restrictions are in effect, then an empty string is
+returned).
+
- wm client window ?name?
-
+If name is specified, this command stores name (which
+should be the name of
+the host on which the application is executing) in window's
+WM_CLIENT_MACHINE property for use by the window manager or
+session manager.
+The command returns an empty string in this case.
+If name isn't specified, the command returns the last name
+set in a wm client command for window.
+If name is specified as an empty string, the command deletes the
+WM_CLIENT_MACHINE property from window.
+
- wm colormapwindows window ?windowList?
-
+This command is used to manipulate the WM_COLORMAP_WINDOWS
+property, which provides information to the window managers about
+windows that have private colormaps.
+If windowList isn't specified, the command returns a list
+whose elements are the names of the windows in the WM_COLORMAP_WINDOWS
+property.
+If windowList is specified, it consists of a list of window
+path names; the command overwrites the WM_COLORMAP_WINDOWS
+property with the given windows and returns an empty string.
+The WM_COLORMAP_WINDOWS property should normally contain a
+list of the internal windows within window whose colormaps differ
+from their parents.
+The order of the windows in the property indicates a priority order:
+the window manager will attempt to install as many colormaps as possible
+from the head of this list when window gets the colormap focus.
+If window is not included among the windows in windowList,
+Tk implicitly adds it at the end of the WM_COLORMAP_WINDOWS
+property, so that its colormap is lowest in priority.
+If wm colormapwindows is not invoked, Tk will automatically set
+the property for each top-level window to all the internal windows
+whose colormaps differ from their parents, followed by the top-level
+itself; the order of the internal windows is undefined.
+See the ICCCM documentation for more information on the
+WM_COLORMAP_WINDOWS property.
+
- wm command window ?value?
-
+If value is specified, this command stores value in window's
+WM_COMMAND property for use by the window manager or
+session manager and returns an empty string.
+Value must have proper list structure; the elements should
+contain the words of the command used to invoke the application.
+If value isn't specified then the command returns the last value
+set in a wm command command for window.
+If value is specified as an empty string, the command
+deletes the WM_COMMAND property from window.
+
- wm deiconify window
-
+Arrange for window to be displayed in normal (non-iconified) form.
+This is done by mapping the window. If the window has never been
+mapped then this command will not map the window, but it will ensure
+that when the window is first mapped it will be displayed
+in de-iconified form. On Windows, a deiconified window will also be
+raised and be given the focus (made the active window).
+Returns an empty string.
+
- wm focusmodel window ?active|passive?
-
+If active or passive is supplied as an optional argument
+to the command, then it specifies the focus model for window.
+In this case the command returns an empty string. If no additional
+argument is supplied, then the command returns the current focus
+model for window.
+An active focus model means that window will claim the
+input focus for itself or its descendants, even at times when
+the focus is currently in some other application. Passive means that
+window will never claim the focus for itself: the window manager
+should give the focus to window at appropriate times. However,
+once the focus has been given to window or one of its descendants,
+the application may re-assign the focus among window's descendants.
+The focus model defaults to passive, and Tk's focus command
+assumes a passive model of focusing.
+
- wm frame window
-
+If window has been reparented by the window manager into a
+decorative frame, the command returns the platform specific window
+identifier for the outermost frame that contains window (the
+window whose parent is the root or virtual root). If window
+hasn't been reparented by the window manager then the command returns
+the platform specific window identifier for window.
+
- wm geometry window ?newGeometry?
-
+If newGeometry is specified, then the geometry of window
+is changed and an empty string is returned. Otherwise the current
+geometry for window is returned (this is the most recent
+geometry specified either by manual resizing or
+in a wm geometry command). NewGeometry has
+the form =widthxheight±x±y, where
+any of =, widthxheight, or ±x±y
+may be omitted. Width and height are positive integers
+specifying the desired dimensions of window. If window
+is gridded (see GRIDDED GEOMETRY MANAGEMENT below) then the dimensions
+are specified in grid units; otherwise they are specified in pixel
+units. X and y specify the desired location of
+window on the screen, in pixels.
+If x is preceded by +, it specifies
+the number of pixels between the left edge of the screen and the left
+edge of window's border; if preceded by - then
+x specifies the number of pixels
+between the right edge of the screen and the right edge of window's
+border. If y is preceded by + then it specifies the
+number of pixels between the top of the screen and the top
+of window's border; if y is preceded by - then
+it specifies the number of pixels between the bottom of window's
+border and the bottom of the screen.
+If newGeometry is specified as an empty string then any
+existing user-specified geometry for window is cancelled, and
+the window will revert to the size requested internally by its
+widgets.
+
- wm grid window ?baseWidth baseHeight widthInc heightInc?
-
+This command indicates that window is to be managed as a
+gridded window.
+It also specifies the relationship between grid units and pixel units.
+BaseWidth and baseHeight specify the number of grid
+units corresponding to the pixel dimensions requested internally
+by window using Tk_GeometryRequest. WidthInc
+and heightInc specify the number of pixels in each horizontal
+and vertical grid unit.
+These four values determine a range of acceptable sizes for
+window, corresponding to grid-based widths and heights
+that are non-negative integers.
+Tk will pass this information to the window manager; during
+manual resizing, the window manager will restrict the window's size
+to one of these acceptable sizes.
+Furthermore, during manual resizing the window manager will display
+the window's current size in terms of grid units rather than pixels.
+If baseWidth etc. are all specified as empty strings, then
+window will no longer be managed as a gridded window. If
+baseWidth etc. are specified then the return value is an
+empty string.
+Otherwise the return value is a Tcl list containing
+four elements corresponding to the current baseWidth,
+baseHeight, widthInc, and heightInc; if
+window is not currently gridded, then an empty string
+is returned.
+Note: this command should not be needed very often, since the
+Tk_SetGrid library procedure and the setGrid option
+provide easier access to the same functionality.
+
- wm group window ?pathName?
-
+If pathName is specified, it gives the path name for the leader of
+a group of related windows. The window manager may use this information,
+for example, to unmap all of the windows in a group when the group's
+leader is iconified. PathName may be specified as an empty string to
+remove window from any group association. If pathName is
+specified then the command returns an empty string; otherwise it
+returns the path name of window's current group leader, or an empty
+string if window isn't part of any group.
+
- wm iconbitmap window ?bitmap?
-
+If bitmap is specified, then it names a bitmap in the standard
+forms accepted by Tk (see the Tk_GetBitmap manual entry for details).
+This bitmap is passed to the window manager to be displayed in
+window's icon, and the command returns an empty string. If
+an empty string is specified for bitmap, then any current icon
+bitmap is cancelled for window.
+If bitmap is specified then the command returns an empty string.
+Otherwise it returns the name of
+the current icon bitmap associated with window, or an empty
+string if window has no icon bitmap. On the Windows operating
+system, an additional flag is supported:
+wm iconbitmap window ?-default? ?image?.
+If the -default
+flag is given, the icon is applied to all toplevel windows (existing
+and future) to which no other specific icon has yet been applied.
+In addition to bitmap image types, any file which contains a valid
+Windows icon is also accepted (usually .ico or .icr files). Tcl will
+first test if the files contains an icon, and if that fails, test for
+a bitmap.
+
- wm iconify window
-
+Arrange for window to be iconified. It window hasn't
+yet been mapped for the first time, this command will arrange for
+it to appear in the iconified state when it is eventually mapped.
+
- wm iconmask window ?bitmap?
-
+If bitmap is specified, then it names a bitmap in the standard
+forms accepted by Tk (see the Tk_GetBitmap manual entry for details).
+This bitmap is passed to the window manager to be used as a mask
+in conjunction with the iconbitmap option: where the mask
+has zeroes no icon will be displayed; where it has ones, the bits
+from the icon bitmap will be displayed. If
+an empty string is specified for bitmap then any current icon
+mask is cancelled for window (this is equivalent to specifying
+a bitmap of all ones). If bitmap is specified
+then the command returns an empty string. Otherwise it
+returns the name of the current icon mask associated with
+window, or an empty string if no mask is in effect.
+
- wm iconname window ?newName?
-
+If newName is specified, then it is passed to the window
+manager; the window manager should display newName inside
+the icon associated with window. In this case an empty
+string is returned as result. If newName isn't specified
+then the command returns the current icon name for window,
+or an empty string if no icon name has been specified (in this
+case the window manager will normally display the window's title,
+as specified with the wm title command).
+
- wm iconposition window ?x y?
-
+If x and y are specified, they are passed to the window
+manager as a hint about where to position the icon for window.
+In this case an empty string is returned. If x and y are
+specified as empty strings then any existing icon position hint is cancelled.
+If neither x nor y is specified, then the command returns
+a Tcl list containing two values, which are the current icon position
+hints (if no hints are in effect then an empty string is returned).
+
- wm iconwindow window ?pathName?
-
+If pathName is specified, it is the path name for a window to
+use as icon for window: when window is iconified then
+pathName will be mapped to serve as icon, and when window
+is de-iconified then pathName will be unmapped again. If
+pathName is specified as an empty string then any existing
+icon window association for window will be cancelled. If
+the pathName argument is specified then an empty string is
+returned. Otherwise the command returns the path name of the
+current icon window for window, or an empty string if there
+is no icon window currently specified for window.
+Button press events are disabled for window as long as it is
+an icon window; this is needed in order to allow window managers
+to ``own'' those events.
+Note: not all window managers support the notion of an icon window.
+
- wm maxsize window ?width height?
-
+If width and height are specified, they give
+the maximum permissible dimensions for window.
+For gridded windows the dimensions are specified in
+grid units; otherwise they are specified in pixel units.
+The window manager will restrict the window's dimensions to be
+less than or equal to width and height.
+If width and height are
+specified, then the command returns an empty string. Otherwise
+it returns a Tcl list with two elements, which are the
+maximum width and height currently in effect.
+The maximum size defaults to the size of the screen.
+If resizing has been disabled with the wm resizable command,
+then this command has no effect.
+See the sections on geometry management below for more information.
+
- wm minsize window ?width height?
-
+If width and height are specified, they give the
+minimum permissible dimensions for window.
+For gridded windows the dimensions are specified in
+grid units; otherwise they are specified in pixel units.
+The window manager will restrict the window's dimensions to be
+greater than or equal to width and height.
+If width and height are
+specified, then the command returns an empty string. Otherwise
+it returns a Tcl list with two elements, which are the
+minimum width and height currently in effect.
+The minimum size defaults to one pixel in each dimension.
+If resizing has been disabled with the wm resizable command,
+then this command has no effect.
+See the sections on geometry management below for more information.
+
- wm overrideredirect window ?boolean?
-
+If boolean is specified, it must have a proper boolean form and
+the override-redirect flag for window is set to that value.
+If boolean is not specified then 1 or 0 is
+returned to indicate whether or not the override-redirect flag
+is currently set for window.
+Setting the override-redirect flag for a window causes
+it to be ignored by the window manager; among other things, this means
+that the window will not be reparented from the root window into a
+decorative frame and the user will not be able to manipulate the
+window using the normal window manager mechanisms.
+
- wm positionfrom window ?who?
-
+If who is specified, it must be either program or
+user, or an abbreviation of one of these two. It indicates
+whether window's current position was requested by the
+program or by the user. Many window managers ignore program-requested
+initial positions and ask the user to manually position the window; if
+user is specified then the window manager should position the
+window at the given place without asking the user for assistance.
+If who is specified as an empty string, then the current position
+source is cancelled.
+If who is specified, then the command returns an empty string.
+Otherwise it returns user or program to indicate the
+source of the window's current position, or an empty string if
+no source has been specified yet. Most window managers interpret
+``no source'' as equivalent to program.
+Tk will automatically set the position source to user
+when a wm geometry command is invoked, unless the source has
+been set explicitly to program.
+
- wm protocol window ?name? ?command?
-
+This command is used to manage window manager protocols such as
+WM_DELETE_WINDOW.
+Name is the name of an atom corresponding to a window manager
+protocol, such as WM_DELETE_WINDOW or WM_SAVE_YOURSELF
+or WM_TAKE_FOCUS.
+If both name and command are specified, then command
+is associated with the protocol specified by name.
+Name will be added to window's WM_PROTOCOLS
+property to tell the window manager that the application has a
+protocol handler for name, and command will
+be invoked in the future whenever the window manager sends a
+message to the client for that protocol.
+In this case the command returns an empty string.
+If name is specified but command isn't, then the current
+command for name is returned, or an empty string if there
+is no handler defined for name.
+If command is specified as an empty string then the current
+handler for name is deleted and it is removed from the
+WM_PROTOCOLS property on window; an empty string is
+returned.
+Lastly, if neither name nor command is specified, the
+command returns a list of all the protocols for which handlers
+are currently defined for window.
+
+Tk always defines a protocol handler for WM_DELETE_WINDOW, even if
+you haven't asked for one with wm protocol.
+If a WM_DELETE_WINDOW message arrives when you haven't defined
+a handler, then Tk handles the message by destroying the window for
+which it was received.
+
- wm resizable window ?width height?
-
+This command controls whether or not the user may interactively
+resize a top-level window. If width and height are
+specified, they are boolean values that determine whether the
+width and height of window may be modified by the user.
+In this case the command returns an empty string.
+If width and height are omitted then the command
+returns a list with two 0/1 elements that indicate whether the
+width and height of window are currently resizable.
+By default, windows are resizable in both dimensions.
+If resizing is disabled, then the window's size will be the size
+from the most recent interactive resize or wm geometry
+command. If there has been no such operation then
+the window's natural size will be used.
+
- wm sizefrom window ?who?
-
+If who is specified, it must be either program or
+user, or an abbreviation of one of these two. It indicates
+whether window's current size was requested by the
+program or by the user. Some window managers ignore program-requested
+sizes and ask the user to manually size the window; if
+user is specified then the window manager should give the
+window its specified size without asking the user for assistance.
+If who is specified as an empty string, then the current size
+source is cancelled.
+If who is specified, then the command returns an empty string.
+Otherwise it returns user or window to indicate the
+source of the window's current size, or an empty string if
+no source has been specified yet. Most window managers interpret
+``no source'' as equivalent to program.
+
- wm state window ?newstate?
-
+If newstate is specified, the window will be set to the new state,
+otherwise it returns the current state of window: either
+normal, iconic, withdrawn, icon, or (Windows only)
+zoomed. The difference between iconic and icon is that
+iconic refers to a window that has been iconified (e.g., with the
+wm iconify command) while icon refers to a window whose only
+purpose is to serve as the icon for some other window (via the wm
+iconwindow command). The icon state cannot be set.
+
- wm title window ?string?
-
+If string is specified, then it will be passed to the window
+manager for use as the title for window (the window manager
+should display this string in window's title bar). In this
+case the command returns an empty string. If string isn't
+specified then the command returns the current title for the
+window. The title for a window defaults to its name.
+
- wm transient window ?master?
-
+If master is specified, then the window manager is informed
+that window is a transient window (e.g. pull-down menu) working
+on behalf of master (where master is the
+path name for a top-level window). Some window managers will use
+this information to manage window specially. If master
+is specified as an empty string then window is marked as not
+being a transient window any more. If master is specified,
+then the command returns an empty string. Otherwise the command
+returns the path name of window's current master, or an
+empty string if window isn't currently a transient window.
+
- wm withdraw window
-
+Arranges for window to be withdrawn from the screen. This
+causes the window to be unmapped and forgotten about by the window
+manager. If the window
+has never been mapped, then this command
+causes the window to be mapped in the withdrawn state. Not all
+window managers appear to know how to handle windows that are
+mapped in the withdrawn state.
+Note: it sometimes seems to be necessary to withdraw a
+window and then re-map it (e.g. with wm deiconify) to get some
+window managers to pay attention to changes in window attributes
+such as group.
+
+
+
+By default a top-level window appears on the screen in its
+natural size, which is the one determined internally by its
+widgets and geometry managers.
+If the natural size of a top-level window changes, then the window's size
+changes to match.
+A top-level window can be given a size other than its natural size in two ways.
+First, the user can resize the window manually using the facilities
+of the window manager, such as resize handles.
+Second, the application can request a particular size for a
+top-level window using the wm geometry command.
+These two cases are handled identically by Tk; in either case,
+the requested size overrides the natural size.
+You can return the window to its natural by invoking wm geometry
+with an empty geometry string.
+
+Normally a top-level window can have any size from one pixel in each
+dimension up to the size of its screen.
+However, you can use the wm minsize and wm maxsize commands
+to limit the range of allowable sizes.
+The range set by wm minsize and wm maxsize applies to
+all forms of resizing, including the window's natural size as
+well as manual resizes and the wm geometry command.
+You can also use the command wm resizable to completely
+disable interactive resizing in one or both dimensions.
+
+
+Gridded geometry management occurs when one of the widgets of an
+application supports a range of useful sizes.
+This occurs, for example, in a text editor where the scrollbars,
+menus, and other adornments are fixed in size but the edit widget
+can support any number of lines of text or characters per line.
+In this case, it is usually desirable to let the user specify the
+number of lines or characters-per-line, either with the
+wm geometry command or by interactively resizing the window.
+In the case of text, and in other interesting cases also, only
+discrete sizes of the window make sense, such as integral numbers
+of lines and characters-per-line; arbitrary pixel sizes are not useful.
+
+Gridded geometry management provides support for this kind of
+application.
+Tk (and the window manager) assume that there is a grid of some
+sort within the application and that the application should be
+resized in terms of grid units rather than pixels.
+Gridded geometry management is typically invoked by turning on
+the setGrid option for a widget; it can also be invoked
+with the wm grid command or by calling Tk_SetGrid.
+In each of these approaches the particular widget (or sometimes
+code in the application as a whole) specifies the relationship between
+integral grid sizes for the window and pixel sizes.
+To return to non-gridded geometry management, invoke
+wm grid with empty argument strings.
+
+When gridded geometry management is enabled then all the dimensions specified
+in wm minsize, wm maxsize, and wm geometry commands
+are treated as grid units rather than pixel units.
+Interactive resizing is also carried out in even numbers of grid units
+rather than pixels.
+
+
+Most existing window managers appear to have bugs that affect the
+operation of the wm command. For example, some changes won't
+take effect if the window is already active: the window will have
+to be withdrawn and de-iconified in order to make the change happen.
+
+On the Windows operating system wm iconbitmap has no effect when
+passed a bitmap: only icon files currently work properly.
+
+
+aspect ratio, deiconify, focus model, geometry, grid, group, icon, iconify, increments, position, size, title, top-level window, units, window manager
+
+Copyright © 1991-1994 The Regents of the University of California.
+Copyright © 1994-1996 Sun Microsystems, Inc.
+Copyright © 1995-1997 Roger E. Critchlow Jr.
+
diff --git a/hlp/fr/tcl/SafeBase.htm b/hlp/fr/tcl/SafeBase.htm
new file mode 100644
index 0000000..1778ac7
--- /dev/null
+++ b/hlp/fr/tcl/SafeBase.htm
@@ -0,0 +1,130 @@
+
+
+
+
+Safe Tcl Commandes Internes Tcl
+
+NOM
+Safe Base - MИcanisme pour la crИation et la manipulation d'interprИteurs sШr.
+
+SYNTAXE
+::safe::interpCreate ?slave? ?options...?
+::safe::interpInit slave ?options...?
+::safe::interpConfigure slave ?options...?
+::safe::interpDelete slave
+::safe::interpAddToAccessPath slave directory
+::safe::interpFindInAccessPath slave directory
+::safe::setLogCmd ?cmd arg...?
+
+OPTIONS
+?-accessPath pathList? ?-statics boolean? ?-noStatics? ?-nested boolean? ?-nestedLoadOk? ?-deleteHook script?
+
+DESCRIPTION
+Safe Tcl est un mИcanisme pour exИcuter des scripts Tcl Иtrangers sans risque et pour fournir un accХs Ю de tels scripts potentiellement dangereux.
+Safe Base s'assure que des scripts Tcl Иtrangers ne peuvent nuire Ю l'application hТte. Safe Base prИvient les attaques d'intИgritИ et de sИcuritИ. Les scripts Иtrangers sont empЙchИs de corrompre l'Иtat de l'application ou de l'ordinateur hТte. Ces scripts sont Иgalement empЙchИs de rИvИler l'information stockИe sur l'ordinateur principal ou dans l'application hТte Ю n'importe quel espion.
+Safe Base permet Ю un interprХteur maНtre de crИer des interprХteurs sИcurisИs et restreints qui contiennent un ensemble d'alias prИdИfinis pour les commandes
source,
load,
file,
encoding, et
exit et peuvent employer des mИcanismes d'auto-chargement et de paquet.
+Aucune connaissance de la structure de systХme de fichiers n'est nИcessaire Ю l'interprХteur sШr, parce qu'il accХde seulement Ю un chemin virtuel contenant des repХres. Quand l'interprХteur sШr demande le source d'un fichier, il emploie les repХres dans le chemin virtuel en tant qu'ИlИment du nom du fichier; l'interprХteur maНtre d'une maniХre transparente traduit les repХres en vrais noms de rИpertoires et exИcute l'opИration demandИe (voir la section SECURITE ci-dessous pour les dИtails). DiffИrents niveaux de sИcuritИ peuvent Йtre choisis en employant les flags optionnels des commandes dИcrites ci-dessous.
+Toutes les commandes fournies dans l'interprХteur maНtre par la commande Safe Base rИsident dans le namespace safe:
+
+COMMANDES
+Les commandes suivantes sont fournies dans le maНtre interprИteur:
+
+ - ::safe::interpCreate ?slave? ?options...?
+
- CrИe un interprХteur sШr, installe les alias dИcrits dans la section ALIAS et initialise le mИcanisme d'auto-chargement et de paquet comme indiquИ par les options fournies. Voir la section OPTIONS ci-dessous pour un description de l optionnel arguments. ci-dessous pour une description des arguments facultatifs. Si l'argument slave est omis, un nom sera gИnИrИ.. ::safe::interpCreate renvoie toujours le nom d'interprХteur.
+
+
::safe::interpInit slave ?options...?
+- Cette commande est identique Ю interpCreate exceptИ qu'elle ne crИe pas l'interprХteur sШr. slave doit avoir ИtИ crИИ par d'autres moyens, comme interp create-safe.
+
+
::safe::interpConfigure slave ?options...?
+- Si aucunes options ne sont donnИes, renvoie les paramХtres pour toutes les options de l'interprХteur sШr comme liste d'options et leurs valeurs courantes pour slave. Si un argument additionnel est fourni, renvoie une liste de 2 ИlИments name et value oЫ name est le nom complet de cette option et value la valeur courante pour cette option et slave. Si plus de deux arguments additionnels sont fournis, il modifiera l'interprХteur sШr et changera chacunes et seulement les option fournies. Voir la section OPTIONS ci-dessous pour la description d'options. Exemple d'utilisation:
+
# CrИe un nouvel interp avec la mЙme configuration que "$i0" :
+
set i1 [eval safe::interpCreate [safe::interpConfigure $i0]]
+
# Obtient le deleteHook courant
+
set dh [safe::interpConfigure $i0 -del]
+
# Change (seulement) l'attribut de chargement statics ok d'un interp
+
# et son deleteHook (laissant le reste inchangИ) :
+ safe::interpConfigure $i0 -delete {foo bar} -statics 0 ;
+
+
::safe::interpDelete slave
+- Efface l'interprХteur sШr et nettoie les structures de donnИes principales correspondantes d'interprХteur. Si un script deleteHook a ИtИ spИcifiИ pour cet interprИteur, il est ИvaluИ avant l'interprИteur que soit effacИ, avec le nom de l'interprИteur comme argument additionnel.
+
+
::safe::interpFindInAccessPath slave directory
+- Cette commande trouve et renvoie le jeton pour le vrai rИpertoire directory de l'accХs au chemin virtuel courant de l'interprХteur sШr. Elle gИnХre une erreur si le rИpertoire n'est pas trouvИ. Exemple d'utilisation:
+
$slave eval [list set tk_library [::safe::interpFindInAccessPath $ name $tk_library]]
+
+
::safe::interpAddToAccessPath slave directory
+- Cette commande ajoute directory au chemin virtuel maintenu pour l'interprХteur sШr dans le maНtre, et retourne un jeton qui peut Йtre utilisИ dans l'interprИteur sШr pour obtenir accХs aux fichiers dans ce rИpertoire. Si le rИpertoire est dИjЮ dans le chemin virtuel, elle renvoie seulement le jeton sans ajouter le rИpertoire au chemin virtuel de nouveau. Exemple d'utilisation:
+
 $slave eval [list set tk_library [::safe::interpAddToAccessPath $nom $ tk_library]]
+
+
::safe::setLogCmd ?cmd arg...?
+- Cette commande installe un script qui sera appelИ quand les ИvИnements intИressants du cycle de vie se produisent pour un interprХteur sШr. Une fois appelИe sans arguments, elle renvoie le script actuellement installИ. Si appelИe avec un argument, une chaНne vide, le script actuellement installИ est enlevИ et la journalisation est arrЙtИe. Le script sera appelИ avec un argument supplИmentaire, une chaНne dИcrivant l'ИvХnement intИressant. Le but principal est d'aider le debugging des interprИteur sШrs. En utilisant ce service vous pouvez obtenir des message d'erreurs complets pendant que l'interprИteur sШr reГoit seulement des messages d'erreurs gИnИriques. Ceci empЙche l'interprИteur sШr de voir des messages au sujet des Иchecs et d'autres ИvИnements qui pourraient contenir une information sensible telle que de vrais noms de rИpertoire.
+
Exemple d'utilisation:
+
::safe::setLogCmd puts stderr
+
+
+
+Ci-dessous vous trouverez la sortie d'une session exemple dans laquelle un interprИteur sШr a essayИ de " sourcer " un fichier non trouvИ dans son chemin d'accХs virtuel. Notez que l'interprИteur sШr a seulement reГu un message d'erreur disant que le fichier n'a pas ИtИ trouvИ:
+NOTICE for slave interp10 : Created
+NOTICE for slave interp10 : Setting accessPath=(/foo/bar) staticsok=1 nestedok=0 deletehook=()
+NOTICE for slave interp10 : auto_path in interp10 has been set to {$p(:0:)}
+ERROR for slave interp10 : /foo/bar/init.tcl: no such file or directory
+
+
+OPTIONS
+Les options suivantes sont communes Ю
::safe::interpCreate,
::safe::interpInit, et
::safe::interpConfigure. N'importe quel nom d'option peut Йtre abrИgИ Ю son nom non-ambigu minimal. Les noms d'option ne sont ne sont pas sensibles Ю la casse.
+
+ - -accessPath directoryList
- Cette option place la liste de rИpertoires desquels l'interprИteur sШr peut source et load des fichiers. Si cette option n'est pas spИcifiИe, ou si elle est donnИe comme liste vide, l'interprИteur sШr emploiera les mЙme rИpertoires que son maНtre pour auto-chargement. Voir la section SECURITE ci-dessous pour plus de dИtail au sujet des chemins virtuels, des jetons et du contrТle d'accХs.
+
+
-statics boolean
+- Cette option indique si l'interprИteur sШr sera autorisИ Ю charger les packages statiquement liИs (comme load {} Tk). La valeur par dИfaut est true : les interprИteur sШrs sont autorisИ Ю charger les packages statiquement liИs.
+
+
-noStatics
+- Cette option est un raccourci de convenance pour -statics false et indique ainsi que l'interprИteur sШr ne sera pas autorisИ Ю charger les packages statiquement liИs.
+
+
-nested boolean
+- Cette option spИcifie si l'interprИteur sШr sera autorisИ Ю charger des packages dans ses propre sous-interprИteurs. La valeur par dИfaut est false: les interprИteur sШrs ne sont pas autorisИ Ю charger de packages dans leurs propres interprХteurs secondaires.
+
+
-nestedLoadOk
+- Cette option est un raccourci de convenance pour -nested true et indique ainsi que l'interprИteur sШr sera autorisИ Ю charger des packages dans ses propres interprХteurs secondaires.
+
+
-deleteHook script
+- Quand Ю cette option est donnИ un script non vide, elle est ИvaluИe dans le maНtre avec le nom de l'interprХteur sШr comme argument additionnel juste avant supprimer rИellement l'interprХteur sШr. Donner une valeur vide enlХve n'importe quel script d'effacement actuellement installИ pour cet interprИteur sШr. La valeur par dИfaut ({}) n'est n'avoir aucun appel de suppression.
+
+
+
+ALIAS
+Les alias suivants sont fournis dans un interprИteur sШr:
+
+ - source fileName
+
- Le fichier requis, un fichier source Tcl, est "sourcИ" dans interprИteur sШr s'il est trouvИ. L'alias source peut seulement " sourcer " les fichier des rИpertoires qui se trouvent dans le chemin virtuel pour l'interprИteur sШr. L'alias source exige de l'interprИteur sШr qu'il utilise un des noms de jeton dans son chemin virtuel pour dИsigner le rИpertoire dans lequel le fichier a "sourcer" peut Йtre trouvИ. Voir la section sur la SECURITE pour une discussion plus approfondie des restrictions sur les noms de fichiers valides.
+
+
load fileName
+- Le fichier requis, un fichier objet partagИ, est chargИ dynamiquement dans l'interprИteur sШr s'il est trouvИ. Le nom de fichier doit contenir le nom d'un jeton mentionnИ dans le chemin virtuel de l'interprИteur sШr pour Йtre trouvИ avec succХs. De plus, le fichier objet partagИ doit contenir un point d'entrИe sШr; voyez la page de manueluel de la commande load pour plus de dИtails.
+
+
file ?subCmd args...?
+- L'alias file donne accХs Ю un sous ensemble sШr des sous-commandes de file; il permet seulement les sous-commandes dirname, join, extension, root, tail, pathname et split. Pour plus de dИtails sur ces sous-commandes voyez la page de manueluel pour la commande file.
+
+
encoding ?subCmd args...?
+- L'alias encoding donne accХs Ю un sous ensemble sШr des sous-commandes de encoding il interdit de fixer l'encodage systХme, mais permet tout autre sous-commandes incluant system Ю vИrifier l'encodage courant.
+
+
exit
+- L'interprХteur appelant est supprimИ et son traitement est arrЙtИ, mais le processus Tcl dans lequel cet interprХteur existe n'est pas terminИ.
+
+
+
+SECURITE
+La Safe Base n'essaye pas d'empЙcher complХtement les attaques d'ennui et de deni de service. Ces formes d'attaque empЙchent temporairement l'application ou l'utilisateur d'utiliser l'ordinateur pour effectuer des tБches utiles, par exemple en consommant tout le temps CPU ou tout l'affichage disponible. Ces attaques, quoique graves, sont considИrИes comme moins importantes en gИnИral que les attaques d'intИgritИ et d'intimitИ que la Safe Base doit empЙcher.
+Les commandes disponibles dans un interprИteur sШr, en plus de l'ensemble sШr comme dИfini en page de manueluel d'
interp, sont des alias de
source,
load,
exit, et des sous-ensembles sШrs de
file et
encoding. L'interprИteur sШr peut aussi auto-charger du code et il peut demander que des packages soient chargИs..
+Puisque certaines de ces commandes accХdent au systХme de fichiers local, il y a un danger potentiel de fuites d'information au sujet de la structure des rИpertoires. Pour empЙcher ceci, les commandes qui prennent des noms de fichier comme aguments dans un interprИteur sШr utilisent des jetons au lieu des noms rИels de rИpertoires. Ces jetons sont traduits en nom rИel de rИpertoire pendant qu'une requЙte pour, ex., sourcer un fichier est traitИe par le maНtre interprИteur. Ce systХme de chemin virtuel est maintenu dans l'interprХteur principal pour chaque interprХteur sШr crИИ par
::safe::interpCreate ou initialisИ par
::safe::interpInit et le chemin pointe des jetons accessibles dans l'interprИteur sШr vers les noms de chemin rИels sur le systХme de fichier local empЙchant de ce fait les interprХteurs sШrs de connaНtre la structure du systХme de fichiers de la machine sur lequel l'interprХteur s'exИcute. Les seuls arguments valides de noms de fichier pour les alias
source et
load fournis Ю l'esclave sont des chemin sous la forme de
[file jointokenfilename] (ie, en utilisant les formats natifs de chemin:
token/filename sous Unix,
token\filename sous Windows, et
token:filename sur Mac), oЫ
token reprИsente un des rИpertoires de la liste
accessPath et
filename est un fichier dans ce rИpertoire (on ne permet aucun accХs aux sous-rИpertoires).
+Quand un jeton est utilisИ par un interprИteur sШr dans un requЙte pour " sourcer " ou charger un fichier, le jeton est vИrifiИ et traduit en un nom rИel de chemin et le fichier a "sourcer" ou chargИ est localisИ sur le systХme de fichier. L'interprИteur sШr n'a jamais connaissance du nom de chemin actuel sous lequel le fichier est stockИ sur le systХme de fichier.
+Pour empЙcher une fuite d'information potentielle Ю partir de fichiers sensibles accidentellement inclus dans l'ensemble de fichiers qui peut Йtre "sourcИ" par un interprИteur sШr, l'alias
source restreint l'accХs aux fichiers respectant les contraintes suivantes: le nom de chemin ne doit pas avoir plus de quatorze caractХres, ne doit pas contenir plus d'un point ("
."), doit finir avec l'extension
.tcl ou Йtre appelИ
tclIndex.
+Chaque ИlИment de la liste initiale de chemin d'accХs sera assignИ Ю un jeton qui sera placИe dans l'auto_path de l'esclave et le premier ИlИment de cette liste sera fixИ en tant que tcl_library pour cet esclave.
+Si l'argument de chemin d'accХs n'est pas donnИ ou est une liste vide, le comportement par dИfaut est de laisser l'esclave acceder aux mЙmes packages que le maНtre (ou pour Йtre plus prИcis: seulement les packages Иcrits en Tcl (ne peuvent pas Йtre dangereux tant qu'ils fonctionnent dans l'interprИteur esclave) et les extensions C qui fournissent un point d'entrИe Safe_Init). Dans ce but, l'auto_path du maНtre sera employИ pour construire le chemin d'accХs de l'esclave. Pour que l'esclave charge avec succХs la bibliothХque Tcl (qui inclut le mИcanisme d'auto-chargement) la tcl_library sera ajoutИe ou dИplacИe Ю la premiХre position si nИcessaire, dans le chemin d'accХs de l'esclave, ainsi la tcl_library esclave sera la mЙme que celle du maНtre (son vrai chemin sera cependant toujours invisible Ю l'esclave). Pour que l'auto-chargement fonctionne de mЙme pour l'esclave et le maНtre dans ce cas par dИfaut, les sous rИpertoires de premier-niveau de chaque rИpertoire dans l'auto_path du maНtre sera aussi ajoutИ (si aucun n'est dИjЮ inclus) au chemin d'accХs de l'esclave. Vous pouvez toujours indiquer un chemin plus restrictif pour lequel les sous rИpertoires ne seront jamais recherchИs explicitement en spИcifiant votre liste de rИpertoires avec le flag -accessPath au lieu de compter sur ce mИcanisme par dИfaut.
+Quand le
accessPath est changИ aprХs la premiХre crИation ou l'initialisation (c.a.d au travers de
interpConfigure -accessPathlist), un
auto_reset est automatiquement ИvaluИ dans l'interprИteur sШr pour synchroniser son
auto_index avec la nouvelle liste de jetons
+
+VOIR EGALEMENT
+
+DerniХre rИvision: 8.0
+
+
+
diff --git a/hlp/fr/tcl/Tcl.htm b/hlp/fr/tcl/Tcl.htm
new file mode 100644
index 0000000..ea88f19
--- /dev/null
+++ b/hlp/fr/tcl/Tcl.htm
@@ -0,0 +1,47 @@
+
+
+
+
+Tcl Commandes Internes Tcl
+
+NOM
+Tcl - Sommaire de la syntaxe du langage Tcl.
+DESCRIPTION
+Les rХgles suivantes definissent la syntaxe et la sИmantique du langage Tcl:
+
+ - [1]
- Un script Tcl est une chaНne contenant une ou plusieurs commandes. Les point-virgules et les sauts de lignes sont des sИparateurs de commandes sauf placИs entre guillemets comme dИcrit ci-dessous. Les crochets fermants sont des terminateurs de commande pendant la substitution de commande (voir ci-dessous) sauf placИs entre guillemets.
+
+
[2]- Une commande est ИvaluИe en deux Иtapes. D'abord, l'interprИteur Tcl divise la commande en mots et effectue les substitutions comme dИcrit ci-dessous. Ces substitutions sont effectuИes de la mЙme faГon pour toutes les commandes. Le premier mot est utilisИ pour localiser une commande Ю exИcuter, ensuite tous les mots de la commande sont transmis Ю la fonction de la commande. La fonction de la commande est libre d'interprИter chacun des mots Ю sa guise, tel un entier, un nom de variable, une liste, ou un script Tcl. DiffИrentes commandes interprХtent leurs mots diffИremment.
+
[3]- Les mots d'une commande sont sИparИs par un espace (exceptИ les saut de lignes, qui sont des sИparateurs de commandes).
+
[4]- Si le premier caractХre d'un mot est un guillemet double(") alors le mot est terminИ par le guillemet double suivant. Si des points-virgules, crochets fermants, ou un espace (incluant les sauts de lignes) apparaissent entre les guillemets alors ils sont traitИs comme des caractХres ordinaires et inclus dans le mot. Les substitution de commandes, substitution de variable , et la substitution backslash sont effectuИes sur les caractХres entre les guillemets comme dИcrit ci-dessous. Le double-guillemets ne sont pas retenus comme partie du mot.
+
[5]- Si le premier caractХre d'un mot est une accolade ouvrante ({) alors le mot est terminИ par l'accolade fermante correspondante (}). Si les accolades sont imbriquИes dans le mot: pour chaque accolade ouverte supplИmentaire il doit y avoir une accolade fermante supplИmentaire (nИanmoins, si une accolade ouvrante ou fermante dans le mot est prИcИdИe avec un antislash alors il n'est pas nИcessaire de lui faire correspondre une accolade fermante). Aucune substitution n'est effectuИe sur les caractХres entre les accolades exceptИ pour les substitutions backslash-newline dИcrites ci-dessous, et les points-virgules, saut de lignes, crochets fermants, ou l'espace ne font l'objet d'une quelconque interprИtation spИciale. Le mot consistera en exactement les caractХres entre les accolades externes, non inclues les accolades elles-mЙme.
+
[6]- Si un mot contient un crochet ouvert ("[") alors Tcl effectue une substitution de commande. Pour ceci il appelle l'interprИteur Tcl rИcursivement pour traiter les caractХres suivants le crochet ouvert comme un script Tcl. Le script peut contiennent n'importe quel nombre de commandes et doit Йtre terminИ par un crochet fermИ ("]"). Le rИsultat du script (i.e. le rИsultat de sa derniХre commande) est substituИ en un mot Ю la place des crochets et de tous les caractХres entre eux. Il peut y avoir quelconque nombre de substitution de commandess dans un seul mot. La substitution de commandes n'est pas effectuИe sur les mots entourИs d'accolades.
+
[7]- Si un mot contient un signe dollar ("$") alors Tcl effectue une substitution de variable: le signe dollar et les caractХres suivants sont remplacИs dans le mot par les valeur d'une variable. La substitution de variable peut prendre quelconque des formes suivantes:
+ - $name
- Name est le nom d'une variable scalaire; le nom est terminИ par tout caractХre qui n'est pas une lettre, un chiffre, ou un underscore.
+ - $name(index)
- Name donne le nom d'une variable tableau et index donne le nom d'un ИlИment Ю l'intИrieur du tableau. Name doit contenir seulement des lettres, chiffres, et underscores. La substitution de commandes, substitution de variables, et substitutions backslash sont effectuИes sur les caractХres de index.
+ - ${name}
- Name est le nom d'une variable scalaire. Il peut contenir tous les caractХres exceptИs des accolades fermantes.
+
+Il peut y avoir n'importe quel nombre de substitution de variables dans un seul mot. La substitution de variables n'est pas effectuИe sur les mots entourИs d'accolades.
+
[8]- Si un antislash ("\") apparail Ю l'intИrieur un mot alors une substitution backslash se produit. Dans tout les cas sauf ceux dИcrit ci-dessous le backslash est omis et le caractХre suivant est traitИ comme un caractХre ordinaire et inclus dans le mot. Ceci permet aux caractХres tels que les double guillemets, crochets fermants, et signes dollar d'Йtre inclus dans les mots sans dИclencher de traitement spИcial. La table suivante liste les sequences backslash qui sont gИrИes spИcialement, avec la valeur qui remplace chaque sИquence.
+ - \a
- Bip (bell) (0x7).
+ - \b
- Retour arriХre (0x8).
+ - \f
- Saut de page (0xc).
+ - \n
- Saut de ligne (0xa).
+ - \r
- Retour chariot (0xd).
+ - \t
- Tabulation (0x9).
+ - \v
- Tabulation verticale (0xb).
+ - \<newline>whiteSpace
- Un espace remplace les backslash, newline, et tout les espaces et tabulationss aprХs le saut de ligne. Cette sИquence backslash est unique dans le sens ou elle est remplacИe dans un pre-traitement sИparИ avant que la commande soit analysИe. Ceci signifie qu'elle sera remplacИe mЙme quand elle se produit entre accolades, et l'espace rИsultant sera traitИ comme un separateur de mot s'il n'est pas entre accolades ou guillemets.
+ - \\
- Backslash ("\").
+ - \ooo
- Les chiffres ooo (un, deux, ou les trois ) donnent la valeur octale sur huit bits du caractХre Unicode qui sera insИrИ. Les bits forts du caractХre Unicode seront Ю 0.
+ - \xhh
- Les chiffres hexadИcimaux hh donnent la valeur hexadИcimale sur huit bits du caractХre Unicode qui sera insИrИ. N'importe quel nombre de chiffres hexadИcimaux peuvent Йtre prИsents; nИanmoins, tout sauf les deux derniers sont ignorИs (le rИsultat est toujours une quantitИ sur un octet). Les bits forts du caractХre Unicode seront Ю 0.
+ - \uhhhh
- Les chiffres hexadИcimaux hhhh (un, deux, trois, ou les quatre) donnent la valeur hexadИcimale sur seize bit du caractХre Unicode qui sera insИrИ.
+
+La substitution backslash n'est pas effectuИe sur les mots entourИs d'accolades, exceptИ pour backslash-newline comme dИcrit plus haut.
+
+
[9]- Si un caractХre diХse ("#") apparait Ю un point oЫ Tcl attend le premier caractХre du premier mot d'une commande, alors le caractХre diХse et les caractХres qui suivent, jusqu'au saut de ligne suivant, sont considИrИs comme des commentaires et ignorИs. Le caractХre commentaire a seulement une signification quand il apparait au dИbut d'une commande.
+
[10]- Chaque caractХre est traitИ exactement une fois par l'interprИteur Tcl comme partie de la crИation des mots d'une commande. Par exemple, si une substitution de variable se produit alors aucune substitution suivante n'est effectuИe sur la valeur de la variable; la valeur est insИrИe dans le mot texto. Si une substitution de commandes se produit alors la commande imbriquИe est traitИe entiХrement par l'appel recursif de l'interprИteur Tcl; aucune substitution n'est effectuИe avant l'appel recursif et aucune substitution supplИmentaire n'est effectuИe dans le rИsultat du script imbriquИ.
+
[11]- Les substitutions n'affectent pas les limites des mots d'une commande. Par exemple, pendant une substitution de variable la valeur totale de la variable devient une partie d'un simple mot, mЙme si la valeur de la variable contient des espaces.
+
+
+DerniХre rИvision: 8.1
+
diff --git a/hlp/fr/tcl/Tcltest.htm b/hlp/fr/tcl/Tcltest.htm
new file mode 100644
index 0000000..f9b8b3b
--- /dev/null
+++ b/hlp/fr/tcl/Tcltest.htm
@@ -0,0 +1,309 @@
+
+
+
+
+Tcltest Commandes internes Tcl
+
+NOM
+Tcltest - Support du systХme de test et utilitaires
+
+SYNTAXE
+package require tcltest ?1.0?
+::tcltest::test name desc ?constraint? script expectedAnswer
+::tcltest::cleanupTests ?runningMultipleTests?
+::tcltest::getMatchingTestFiles
+::tcltest::loadTestedCommands
+::tcltest::makeFile contents name
+::tcltest::removeFile name
+::tcltest::makeDirectory name
+::tcltest::removeDirectory name
+::tcltest::viewFile name
+::tcltest::normalizeMsg msg
+::tcltest::bytestring string
+::tcltest::saveState
+::tcltest::restoreState
+::tcltest::threadReap
+
+DESCRIPTION
+Le package tcltest fournit Ю l'utilisateur des utilitaires pour Иcrire et faire fonctionner des tests dans le systХme de test Tcl. Il peut Иgalement Йtre utilisИ pour crИer un systХme de test personnalisИ pour une extension.
+Le systХme de test Tcl comporte de multiples fichiers .test, chacun d'entre eux comprenant plusieurs cas de test. Chaque test comporte un appel Ю la commande test, qui indique le nom du test, une description brХve, les contraintes qui s'appliquent au cas testИ, le script Ю exИcuter, et les rИsultats attendus. Voir les sections "Tests", "Contraintes de test", et " Faire fonctionner les fichiers de test " pour plus d'informations.
+
Il est Иgalement possible d'enrichir ce systХme de test pour mettre en place votre propre systХme de test sur mesure. Pour plus d'information, voir la section "Personnaliser le systХme de test".
+
Cette approche pour tester a ИtИ conГue et initialement mise en place par Mary Ann May-Pumphrey de Sun Microsystems au dИbut des annИes 1990. Nous lui adressons de sincХres remerciements pour avoir fait don de son travail au profit de la version publique de Tcl.
+
COMMANDES
+
+
+ - ::tcltest::test name desc ?constraints? script expectedAnswer
- La commande ::tcltest::test lance script et compare son rИsultat Ю expectedAnswer. Elle imprime un message d'erreur si les deux ne correspondent pas. Si::tcltest::verbose contient "p" ou "s", elle imprime aussi un message si le test rИussit (p: passed) ou a ИtИ omis (s: skipped). Le test sera omis s'il ne correspond pas Ю la variable ::tcltest::match, s'il correspond Ю l'un des ИlИments de ::tcltest::skip, ou si l'un des ИlИments de constraints s'avХre ne pas Йtre vrai. La commande ::tcltest::test n'a pas de valeur de retour dИfinie. Voir la section "Ecrire un nouveau test" pour plus d'informations sur cette commande.
+ - ::tcltest::cleanupTests ?runningMultipleTests?
- Cette commande doit normalement Йtre appelИe Ю la fin d'un fichier de test. Elle imprime des statistiques au sujet des tests ИxИcutИs et supprime les fichiers crИИs par ::tcltest::makeDirectory et ::tcltest::makeFile. Les noms des fichiers et rИpertoires crИИs en dehors de ::tcltest::makeFile et ::tcltest::makeDirectory, et qui n'ont jamais ИtИ dИtruits, sont affichИs dans ::tcltest::outputChannel. Cette commande restaure Иgalement l'environnement d'ИxИcution initial, tel que dИcrit par le tableau ::env.calledFromAll doit normalement Йtre indiquИ quand ::tcltest::cleanupTests est appelИ depuis un fichier "all.tcl". Des fichiers Tcl sont gИnИralement utilisИs pour exИcuter des tests multiples. Pour plus d'information sur comment exИcuter des tests multiples, voir la section "ExИcuter des fichiers de test". Cette procИdure n'a pas de valeur de retour dИfinie.
+ - ::tcltest::getMatchingTestFiles
- Cette commande est utilisИe quand vous voulez exИcuter plusieurs fichiers de test. Elle retourne la liste des tests qui doivent Йtre sourcИs dans un fichier "all.tcl". Voir la section "ExИcuter des fichiers de test" pour plus d'informations.
+ - ::tcltest::loadTestedCommands
- Cette commande utilise le script indiquИ par l'option -load ou -loadfile pour charger les commandes testИes par le systХme de test. AutorisИe Ю Йtre vide, dans le cas oЫ; les commandes testИes sont accumulИes dans l'interprИteur qui ИxИcute le systХme de test.
+ - ::tcltest::makeFile contents name
- CrИe un fichier qui sera automatiquement supprimИ par ::tcltest::cleanupTests Ю la fin du fichier de test. Cette procИdure n'a pas de valeur de retour dИfinie.
+ - ::tcltest::removeFile name
- Force la suppression du fichier rИfИrencИ par name. Ce nom de fichier doit Йtre indiquИ en rИfИrence au ::tcltest::temporaryDirectory. Cette procИdure n'a pas de valeur de retour dИfinie.
+ - ::tcltest::makeDirectory name
- CrИe un rИpertoire name, qui sera automatiquement supprimИ par ::tcltest::cleanupTests Ю la fin du fichier de test. Cette procИdure n'a pas de valeur de retour dИfinie.
+ - ::tcltest::removeDirectory name
- Force la suppression du fichier rИfИrencИ par name. Cette procИdure n'a pas de valeur de retour dИfinie.
+ - ::tcltest::viewFile file
- Renvoie le contenu de file.
+ - ::tcltest::normalizeMsg msg
- Retire les fins de lignes superflues de msg.
+ - ::tcltest::bytestring string
- Construit une chaНne qui se compose de la suite des octets demandИs, et non la chaНne formИe de caractХres UTF-8 corrects, Ю partir de la valeur de string. Cela permet au testeur de crИer des chaНnes dИnormalisИes ou impropement formИes, pour les passer Ю des procИdures C qui sont supposИes accepter des chaНnes comprenant des NULL, et confirmer que le rИsultat sous forme de chaНne correspond bien Ю la suite d'octets prИvue.
+ - ::tcltest::saveState
- et ::tcltest::restoreState sauvent et restaurent les procИdures et les variables globales. Un fichier de test peut contenir des appels Ю ::tcltest::saveState et ::tcltest:restoreState s'il crИe des variables globales ou des procИdures.
+ - ::tcltest::threadReap
- ::tcltest::threadReap fonctionne seulement si testthread est dИfini, gИnИralement en compilant tcltest. Si testthread est dИfini, ::tcltest::threadReap tue tous les threads Ю l'exception du thread principal. Il rИcupХre l'ID du thread principal en appelant testthread names pendant l'initialisation. Cette valeur est stockИe dans ::tcltest::mainThread. ::tcltest::threadReap retourne le nombre de threads existants en tout. (?)
+
+
+TESTS
+La procИdure test ИxИcute un script de test est affiche un message d'erreur si le rИsultat du script ne correspond pas au rИsultat attendu. Voici la spИcification de la commande test :
+
+
test <name> <description> ?<constraint>? <script> <expectedAnswer>
+
+
+
L'argument <name> doit obИir au motif:
+
<target>-<majorNum>.<minorNum>
+
+
Pour les tests "en boНte blanche" (tests de rИgression), la cible <target > doit Йtre le nom de la fonction C ou de la procИdure Tcl qui est testИe. Pour les tests "en boНte noire", la cible <target> doit Йtre le nom de la fonctionnalitИ testИe. Des tests apparentИs doivent avoir le mЙme numИro majeur <majorNum>.
+
+
L'argument <description> est une courte description textuelle du test, pour aider les personnes Ю comprendre ce qui est testИ. Le nom de la fonction Tcl ou C devrait y Йtre inclus pour les tests de rИgression. Si le cas de test est dИfini pour reproduire un bug, inclure l'identifiant (bugID) dans la description.
+
+
L'argument optionnel <constraints> peut Йtre une liste d'un ou plusieurs mots-clИs ou une expression. Si l'argument <constraints> se compose de mots-clИs, chacun d'entre eux doit Йtre le nom d'un ИlИment du tableau ::tcltest::testConstraints. Si l'un de ces ИlИments est faux ou n'existe pas, le test est sautИ. Si l'argument <constraints> est une expression, cette expression sera ИvaluИe: si le rИsultat est vrai, alors le test sera ИxИcutИ.
+
+
Ajoutez des contraintes appropriИes (par exemple, unixOnly) pour les tests qui ne doivent pas toujours Йtre ИxИcutИs. Par exemple, un test qui ne doit Йtre effectuИ que sur Unix devrait ressembler Ю:
+
test getAttribute-1.1 {testing file permissions} {unixOnly} {
+ lindex [file attributes foo.tcl] 5
+} {00644}
+
Exemple de test contenant une expression:
+
test unixNotfy-1.1 {Tcl_DeleteFileHandler} {unixOnly && !testthread} {
+ catch {vwait x}
+ set f [open foo w]
+ fileevent $f writable {set x 1}
+ vwait x
+ close $f
+ list [catch {vwait x} msg] $msg
+} {1 {ne peut pas attendre la variable "x": attendrait indИfiniment }}
+
+
Voir la section "Contraintes de Test" pour la liste des contraintes prИdИfinies et pour savoir comment ajouter vos propres contraintes.
+
+
L'argument <script> contient le script a exИcuter pour effectuer le test. Il doit retourner un rИsultat dont la validitИ peut Йtre vИrifiИe. Si votre script demande qu'un fichier soit crИИ Ю la volИe, utilisez svp la procИdure ::tcltest::makeFile. Si votre test demande qu'un petit fichier (moins de 50 lignes) soit contrôlИ en lecture, svp pensez Ю crИer le fichier Ю la volИe en utilisant la procИdure ::tcltest::makeFile. Les fichiers crИИs par la procИdure ::tcltest::makeFile seront automatiquement supprimИs par la procИdure ::tcltest::cleanupTests appelИe Ю la fin de chaque fichier de test.
+
+
L'argument <expectedAnswer> sera comparИ au rИsultat de l'Иvaluation de l'argument <script>. S'ils correspondent, le test passe, sinon il Иchoue.
+
+
LES VARIABLES DU NAMESPACE TCLTEST
+
Les variables suivantes sont dИfinies dans le namespace tcltest et peuvent Йtre utilisИes par des tests:
+
+ - ::tcltest::outputChannel
- outputfileID - par dИfaut stdout, peut Йtre prИcisИ en indiquant -outfile sur la ligne de commande. Tout test qui imprime des rИsultats devrait envoyer cette sortie Ю ::tcltest::outputChannel plutôt que de sortir par dИfaut sur stdout.
+
::tcltest::errorChannel- errorfileID - par dИfaut stderr, peut Йtre prИcisИ en indiquant -errfile sur la ligne de commande. Tout test qui imprime des messages d'erreur devrait le faire vers ::tcltest::errorChannel plutôt que directement dans stderr.
+
::tcltest::mainThread- main thread ID - 1 par dИfaut. Ce sera le seul thread qui ne sera pas tuИ par ::tcltest::threadReap et qui sera assignИ conformИment Ю la valeur de retour de testthread names Ю l'initialisation.
+
::tcltest::originalEnv- copie du tableau global "env" au dИbut de l'ИxИcution du test. Ce tableau est utilisИ pour restaurer le tableau "env" Ю sa valeur initiale quand ::tcltest::cleanupTests est appelИe.
+
::tcltest::workingDirectory- le rИpertoire dans lequel le systХme de test a ИtИ lancИ.
+
::tcltest::temporaryDirectory- le rИpertoire de sortie - par dИfaut ::tcltest::workingDirectory , peut Йtre prИcisИ en indiquant -tmpdir en ligne de commande.
+
::tcltest::testsDirectory- lЮ oЫ; se trouvent les tests - par dИfaut ::tcltest::workingDirectory , si le script ne peut pas dИterminer oЫ; le rИpertoire de tests se trouve. Il est possible de changer cette valeur par dИfaut en prИcisant -testdir en ligne de commande. Cette variable devrait toujours Йtre prИcisИe explicitement si les tests sont ИxИcutИs depuis un fichier all.tcl.
+
::tcltest::tcltest- le nom de l'ИxИcutable utilisИ pour appeler le systХme de test.
+
::tcltest::loadScript- Le script ИxИcutИ en tant que loadTestCommands. PrИcisИ par -load ou -loadfile.
+
+
+
+
CONTRAINTES DE TEST
+
+
Les contraintes sont utilisИes pour dИterminer si un test doit Йtre ignorИ. Chaque contrainte est stockИe comme un indice du tableau ::tcltest::testConstraints. Par exemple, la contrainte unixOnly est dИfinie de la faГon suivante:
+
set ::tcltest::testConstraints(unixOnly) \
+ [string equal $tcl_platform(platform) "unix"]
+
+
Si un test est contraint par "unixOnly", il ne s'exИcutera que si la valeur de ::tcltest::testConstraints(unixOnly) est vraie. Plusieurs contraintes sont dИfinies dans le package tcltest. Pour ajouter des contraintes spИcifiques Ю un fichier ou Ю un test, vous pouvez crИer l'index correspondant du tableau ::tcltest::testsConstraints dans votre propre fichier de test.
+
+
Voici la liste des contraintes dИfinies dans le package
tcltest :
+
+ - unix
- le test ne peut s'exИcuter que sur les plateformes UNIX
+ - pc
- le test ne peut s'exИcuter que sur les plateformes Windows
+ - nt
- le test ne peut s'exИcuter que sur les plateformes Windows NT
+ - 95
- le test ne peut s'exИcuter que sur les plateformes Windows 95
+ - 98
- le test ne peut s'exИcuter que sur les plateformes Windows 98
+ - mac
- le test ne peut s'exИcuter que sur les plateformes Mac
+ - unixOrPc
- le test ne peut s'exИcuter que sur les plateformes UNIX ou PC
+ - macOrPC
- le test ne peut s'exИcuter que sur les plateformes Mac ou PC
+ - macOrUnix
- le test ne peut s'exИcuter que sur les plateformes Mac ou Unix
+ - tempNotPc
- le test ne peut Йtre ИxИcutИ sur Windows. C'est un flag pour dИsactiver temporairement un test.
+ - tempNotMac
- le test ne peut Йtre ИxИcutИ sur un Mac. C'est un flag pour dИsactiver temporairement un test.
+ - unixCrash
- le test se plante s'il est ИxИcutИ sur UNIX. C'est un flag pour dИsactiver temporairement un test.
+ - pcCrash
- le test se plante s'il est ИxИcutИ sur PC. C'est un flag pour dИsactiver temporairement un test.
+ - macCrash
- le test se plante s'il est ИxИcutИ sur Mac. C'est un flag pour dИsactiver temporairement un test.
+ - emptyTest
- le test est vide, et donc ne vaut pas la peine d'Йtre ИxИcutИ, mais il reste afin d'Йtre Иcrit dans le futur. Cette contrainte provoque l'omission systИmatique du test.
+ - knownBug
- le test est connu pour se planter, et le bug n'est pas encore corrigИ. Cette contrainte provoque l'omission du test., sauf si l'utilisateur demande le contraire. Voir la section "Introduction" pour plus d'informations.
+ - nonPortable
- ce test ne peut Йtre effectuИ que dans l'environnement de dИveloppement Tcl/Tk maНtre. Certains tests sont par nature non portables, parce qu'ils dИpendent de choses telles que la longueur de mot du processeur, la configuration du systХme de fichiers, le gestionnaire de fenЙtres, etc. Ces tests sont seulement ИxИcutИs dans l'environnement de dИveloppement Tcl principal, oЫ; la configuration est bien connue. Cette contrainte provoque l'omission du test, sauf si l'utilisateur demande le contraire.
+ - userInteraction
- ce test demande une interaction avec l'utilisateur. Cette contrainte provoque l'omission du test, sauf si l'utilisateur demande le contraire.
+ - interactive
- ce test ne peut Йtre effectuИ qu'en mode interactif, c'est Ю dire si la variable globale tcl_interactive est positionnИe Ю 1.
+ - nonBlockFiles
- ce test ne peut s'exИcuter que si la plateforme supporte de mettre les fichiers en mode non-bloquИ.
+ - asyncPipeClose
- ce test ne peut s'exИcuter que si la plateforme supporte "async flush" et "async close" sur un pipe.
+ - unixExecs
- le test ne peut s'exИcuter que si la machine dispose des commandes telles que 'cat', 'echo', etc.
+ - hasIsoLocale
- le test ne peut s'exИcuter que s'il peut passer dans une locale ISO.
+ - root
- le test ne peut s'exИcuter que si l'utilisateur Unix est root
+ - notRoot
- le test ne peut s'exИcuter que si l'utilisateur Unix n'est pas root
+ - eformat
- le test ne peut s'exИcuter que si l'application a une version fonctionnelle de sprintf respectant le format "e" des nombres flottants.
+ - stdio
- le test ne peut s'exИcuter que si l'application courante peut fonctionner au travers d'un pipe
+
+
+
FAIRE FONCTIONNER LES FICHIERS DE TEST
+
Utiliser la commande suivante pour exИcuter un fichier de test qui utilise le package tcltest:
+
<shell> <testFile> ?<option> ?<value>?? ...
+
Les options de ligne de commande sont les suivantes (les variables du namespace tcltest qui correspondent Ю chacune des options sont indiquИes entre parenthХses Ю la fin de la description) :
+
+ - -help
- affiche le mode d'utilisation
+ - -verbose <level>
-
+dИfinit le niveau de verbositИ comme une sous-chaНne de "bps". Voir la section "Informations issus des tests" pour une explication de cette option. (::tcltest::verbose)
+ - -match <matchList>
-
+effectue seulement les tests qui correspondent aux motifs de "glob" dИfinis dans <matchList>. (::tcltest::match)
+ - -skip <skipList>
-
+n'effectue pas les tests qui correspondent Ю un ou plusieurs motifs de "glob" dИfinis dans <skipList>. (::tcltest::skip)
+ - -file <globPatternList>
-
+source seulement les fichiers de test dont les noms rИpondent Ю l'un des motifs de <globPatternList> dИfinis par rapport au rИpertoire::tcltest::testsDirectory. Cette option n'a de sens qui si vous effectuez des tests utilisant "all.tcl" en tant que <testFile> au lieu d'effectuer directement des fichiers unitaires de test. (::tcltest::matchFiles)
+ - -notfile <globPatternList>
-
+source tous les fichiers sauf ceux dont les noms rИpondent Ю l'un des motifs de <globPatternList> dИfinis par rapport au rИpertoire::tcltest::testsDirectory. Cette option n'a de sens qui si vous effectuez des tests utilisant "all.tcl" en tant que <testFile> au lieu d'effectuer directement des fichiers unitaires de test. (::tcltest::skipFiles)
+ - -constraints <list>
-
+les tests contenant une contrainte parmi la liste <list> ne seront pas sautИs. Notez que les ИlИments de <list> doivent correspondrent exactement aux contraintes existantes. Ceci est utile si vous voulez avoir la certitude que les tests ayant une contrainte particuliХre sont effectuИs (par exemple, si le testeur souhaite que tous les tests contenant la contrainte knownBug soient effectuИs). (::tcltest::testConstraints(constraintName))
+ - -limitconstraints <bool>
- Si l'argument de cette option est 1, les tests effectuИs seront ceux qui respectent les contraintes dИfinies par l'option -constraints. La valeur par dИfaut de cet indicateur est 0 (false). Ceci est utile si vous voulez exИcuter seulement les tests qui rИpondent aux contraintes listИes par l'option -constraints. Un testeur peut vouloir cela par exemple pour n'effectuer que les tests contraints par unixOnly et aucun autre. (::tcltest::limitConstraints)
+ - -load <script>
- utilisera le script indiquИ pour charger les commandes Ю tester (::tcltest::loadTestedCommands). La valeur par dИfaut est un script vide. Voir Иgalement -loadfile ci-dessous. (::tcltest::loadScript)
+ - -loadfile <scriptfile>
- utilisera le contenu du fichier indiquИ pour charger les commandes Ю tester (::tcltest::loadTestedCommands).Voir Иgalement -load ci-dessus. La valeur par dИfaut est un script vide. (::tcltest::loadScript)
+ - -tmpdir <directoryName>
- mettra tous les fichiers temporaires (crИИs avec ::tcltest::makeFile et ::tcltest::makeDirectory) dans le rИpertoire indiquИ. L'emplacement par dИfaut est ::tcltest::workingDirectory. (::tcltest::temporaryDirectory)
+ - -testdir <directoryName>
- cherche les tests Ю exИcuter dans le rИpertoire indiquИ. L'emplacement par dИfaut est ::tcltest::workingDirectory. (::tcltest::testsDirectory)
+ - -preservecore <level>
- contrôle pour les fichiers core. Cette option dИtermine quel niveau de contrôle sera effectuИ pour les fichiers "core". La valeur par dИfaut pour <level> est 0. Les niveaux <level> sont dИfinis comme suit :
+ - 0
- Pas de contrôle - ne pas contrôler les fichiers core Ю la fin de chaque test, mais les contrôler Ю chaque fois que::tcltest::cleanupTests est appelИ depuis un fichier all.tcl.
+ - 1
- VИrifier l'existence de fichiers core Ю la fin de chaque commande de test et Ю chaque fois que::tcltest::cleanupTests est appelИ depuis un fichier all.tcl.
+ - 2
- VИrifier l'existence de fichiers core Ю la fin de chaque commande de test et Ю chaque fois que::tcltest::cleanupTests est appelИ depuis un fichier all.tcl. Sauvegarder tout fichier core produit dans ::tcltest::temporaryDirectory. (::tcltest::preserveCore)
+
+
+ - -debug <debugLevel>
- afficher l'information de debug dans stdout. Ceci est utilisИ pour dИbugger le code du systХme de test. Le niveau de debug par dИfaut est 0. Les niveaux sont dИfinis ainsi:
+ - 0
- Ne pas afficher les informations de debug.
+ - 1
- Afficher l'information indiquant si un test est sautИ parce qu'il ne rИpond Ю aucune des conditions indiquИes dans -match ou ::tcltest::match (userSpecifiedNonMatch), ou parce qu'il rИpond Ю une quelconque des conditions indiquИes par -skip ou ::tcltest::skip ((userSpecifiedSkip).
+ - 2
- Affiche le tableau des options interprИtИ par le processeur de ligne de commande, le contenu du tableau ::env, et toutes les variables utilisateur dИfinies dans le namespace courant, quand elles sont utilisИes.
+ - 3
- Affiche l'information concernant ce que font les procИdures individuelles de le systХme de test.(::tcltest::debug)
+
+
+ - -outfile <filename>
- envoie la sortie gИnИrИe par le package tcltest vers le fichier indiquИ. La valeur par dИfaut est stdout. Notez que la sortie de debug va systИmatiquement dans stdout, quelque soit la valeur de cette option. (::tcltest::outputChannel)
+ - -errfile <filename>
- envoie les erreurs gИnИrИes par le package tcltest vers le fichier indiquИ. La valeur par dИfaut est stderr. (::tcltest::errorChannel)
+
+
+
Une seconde faГon d'exИcuter les tests est de dИmarrer un shell, de charger le package tcltest, puis de sourcer un fichier de test appropriИ ou d'utiliser la commande test. Pour utiliser les options en mode interactif, alimenter la variable qui leur correspond dans le namespace tcltest aprХs avoir chargИ le package.
+
Voir la section "Contraintes de Test" pour toutes les contraintes prИ-construites qui peuvent Йtre utilisИes dans le tableau ::tcltest::testConstraints. Voir la section "Les variables du namespace Tcltest" pour des informations sur les autres variables dИfinies dans le namespace tcltest.
+
Une derniХre faГon d'exИcuter les tests est d'indiquer les fichiers de test Ю exИcuter Ю l'intИrieur d'un fichier all.tcl (qui peut Йtre nommИ diffИremment). C'est l'approche utilisИe par le systХme de test de Tcl. Ce fichier charge le package tcltest, dИfinit l'emplacement du rИpertoire de test (::tcltest::testsDirectory), dИtermine quels fichiers de test exИcuter, source chacun de ces fichiers, appelle ::tcltest::cleanupTests et finit de s'exИcuter.
+
Un fichier all.tcl plus ИlaborИ peut faire du prИ- et du post-processing avant de sourcer chaque fichier .test, utiliser des interprИteurs diffИrents pour chaque fichier, ou manipuler des structures de rИpertoires complexes. Pour un exemple de fichier all.tcl, voir la section "Exemples" de ce document.
+
RESULTATS DES TESTS
+
AprХs que tous les fichiers de test indiquИs aient ИtИ ИxИcutИs, le nombre de tests rИussis, sautИs ou ИchouИs est envoyИ dans::tcltest::outputChannel. A côtИ de cette information statistique, la sortie peut Йtre pilotИe pour chaque test par la variable ::tcltest::verbose.
+
+
::tcltest::verbose peut avoir pour valeur n'importe quelle sous-chaНne ou permutation de "bps". Dans la chaНne "bps", le 'b' se rИfХre au corps (body) du test, le 'p' se rИfХre aux tests rИussis (passed) et le 's' signifiИ tests sautИs (skipped). La valeur par dИfaut de ::tcltest::verbose est "b". Si 'b' est prИsent, alors le corps entier du test est imprimИ pour chaque test ИchouИ; sinon seulement le nom du test, la sortie souhaitИe et la sortie obtenue sont imprimИs pour chaque test ИchouИ. Si 'p' est prИsent, alors une ligne est imprimИe pour chaque test rИussi, sinon aucune ligne n'est imprimИe pour les tests rИussis. Si 's' est prИsent, alors une ligne (contenant les contraintes qui ont fait que le test a ИtИ sautИ) est imprimИe pour chaque test sautИ, sinon aucune ligne n'est imprimИe dans ce cas.
+
Vous pouvez positionner ::tcltest::verbose, soit interactivement (une fois que le package tcltest a ИtИ chargИ) ou en utilisant l'argument de ligne de commande -verbose, par exemple:
+
tclsh socket.test -verbose bps
+
+
CONTENUS D'UN FICHIER DE TEST
+
+
Les fichiers de test doivent commencer par charger le package tcltest:
+
if {[lsearch [namespace children] ::tcltest] == -1} {
+ package require tcltest
+ namespace import ::tcltest::*
+}
+
+
Les fichiers de tests doivent se terminer par l'appel de la fonction de nettoyage ::tcltest::cleanupTests. La procИdure ::tcltest::cleanupTests affiche des statistiques au sujet du nombre de tests rИussis, sautИs ou ИchouИs, et supprime tous les fichiers crИИs au moyen des procИdures ::tcltest::makeFile et ::tcltest::makeDirectory.
+
+
# Supprime les fichiers crИИs par ces tests
+
# Retour au rИpertoire de travail initial
+# Supprime les tableaux globaux
+::tcltest::cleanupTests
+return
+
+
Les fichiers de tests doivent se finir par une extension .test. Les noms des fichiers de tests qui contiennent des tests de rИgression (dits de boНte transparente) doivent Йtre nommИs d'aprХs les fichiers de code Tcl ou C qu'ils testent. Par exemple, le fichier de test du programme C "tclCmdAH.c" doit Йtre "cmdAH.test". Les fichiers qui contiennent des tests "boНte noire" (black-box tests) devraient se conformer au motif "*_bb.test".
+
+
SELECTIONNER DES TESTS A EXECUTER DANS UN FICHIER
+
Normalement, quand un fichier est sourcИ, tous les tests qu'il contient sont ИxИcutИs. Individuellement, un test sera sautИ si l'une des conditions suivantes est vraie:
+
+ - [1]
- le nom du test ne correspond pas (en utilisant la correspondance de type "glob") Ю un ou plusieurs ИlИments de la variable ::tcltest::match.
+ - [2]
- le nom du test correspond (en utilisant la correspondance de type "glob") Ю un ou plusieurs ИlИments de la variable ::tcltest::skip.
+ - [3]
- l'argument constraints de l'appel Ю ::tcltest::call, s'il existe, contient une ou plusieurs valeurs fausses.
+
+
+
Vous pouvez dИfinir ::tcltest::match et/ou ::tcltest::skip, soit interactivement (aprХs que le package tcltest a ИtИ sourcИ), ou en utilisant les arguments de ligne de commande -match et -skip, par exemple :
+
tclsh info.test -match '*-5.* *-7.*' -skip '*-7.1*'
+
Soyez sûr de bien placer les quotes, de faГon que votre shell ne fasse pas les substitutions de type glob sur les motifs que vous indiquez (que ce soit bien l'interprИteur tcl qui fasse ces substitutions).
+
Les contraintes prИdИfinies (par exemple knownBug et nonPortable) peuvent Йtre changИes soit interactivement (aprХs que le package tcltest a ИtИ sourcИ), en dИfinissant la variable ::tcltest::testConstraints(constraint), ou en utilisant l'option de ligne de commande -constraints avec le nom de la contrainte comme argument. L'exemple suivant montre comment faire fonctionner des tests contraints par les restrictsions knownBug et nonPortable:
+
tclsh all.tcl -constraints "knownBug nonPortable"
+
Voir la section "Contraintes de Test" pour plus d' information sur l'utilisation des contraintes prИdИfinies et l'ajout de nouvelles contraintes.
+
+
PERSONNALISER LE SYSTEME DE TEST
+
+
Pour crИer votre propre systХme de test, crИer un fichier .tcl qui contient votre namespace. Dans ce fichier, appeller le package
tcltest (package require tcltest). Les commandes qui peuvent Йtre redИfinies pour personnaliser le systХme de test sont:
+
+ - ::tcltest::PrintUsageInfoHook
- afficher de l'information complИmentaire, spИcifique Ю votre situation.
+ - ::tcltest::processCmdLineArgsFlagHook
- avertir le systХme au sujet d'options additionnelles que vous voulez qu'il comprenne.
+ - ::tcltest::processCmdLineArgsHook flags
- traiter les options additionnelles que vous avez communiquИes au systХme de test au travers de ::tcltest::processCmdLineArgsFlagHook.
+ - ::tcltest::initConstraintsHook
- ajouter des contraintes additionnelles aux contraintes prИdИfinies par tcltest.
+ - ::tcltest::cleanupTestsHook
- faire du nettoyage additionnel
+
+
+
Pour ajouter de nouvelles options Ю votre systХme de test personnalisИ, redИfinissez ::tcltest::processCmdLineArgsAddFlagHook pour la liste des options additionnelles Ю interprИter, et ::tcltest::processCmdLineArgsHook pour les traiter effectivement . Par exemple:
+
proc ::tcltest::processCmdLineArgsAddFlagHook {} {
+ return [list -flag1 -flag2]
+}
+
+proc ::tcltest::processCmdLineArgsHook {flagArray} {
+ array set flag $flagArray
+
+ if {[info exists flag(-flag1)]} {
+ # Handle flag1
+ }
+
+ if {[info exists flag(-flag2)]} {
+ # Handle flag2
+ }
+
+ return
+}
+
+
+
Vous pouvez aussi vouloir ajouter un mode d'emploi pour ces options. Ce mode d'emploi s'affichera quand l'utilisateur indiquera -help. Pour dИfinir le mode d'emploi additionnel, dИfinissez votre propre procИdure ::tcltest::PrintUsageInfoHook. A l'intИrieur de cette procИdure, vous afficherez le mode d'emploi complИmentaire pour chacune des options que vous avez ajoutИes.
+
+
Pour ajouter de nouvelles contraintes prИdИfinies au systХme de test, dИfinissez votre propre version de ::tcltest::initConstraintsHook. A l'intИrieur de cette procИdure, vous pouvez complИter le tableau ::tcltest::testConstraints. Par exemple:
+
proc ::tcltest::initConstraintsHook {} {
+ set ::tcltest::testConstraints(win95Or98) \
+ [expr {$::tcltest::testConstraints(95) || \
+ $::tcltest::testConstraints(98)}]
+}
+
+
Enfin, si vous voulez ajouter du code de nettoyage complИmentaire, vous pouvez dИfinir votre propre ::tcltest::cleanupTestsHook. Par exemple:
+
proc ::tcltest::cleanupTestsHook {} {
+ # Add your cleanup code here
+}
+
+
EXEMPLES
+
+
[1] Un fichier de test simple (foo.test)
+
if {[lsearch [namespace children] ::tcltest] == -1} {
+ package require tcltest
+ namespace import ::tcltest::*
+}
+
+test foo-1.1 {enregistrer 1 dans la variable foo} {} {
+ set foo 1
+} {1}
+
+::tcltest::cleanupTests
+return
+
+
[2] Un fichier all.tcl simple
+
if {[lsearch [namespace children] ::tcltest] == -1} {
+ package require tcltest
+ namespace import ::tcltest::*
+}
+
+set ::tcltest::testSingleFile false
+set ::tcltest::testsDirectory [file dir [info script]]
+
+foreach file [::tcltest::getMatchingTestFiles] {
+ if {[catch {source $file} msg]} {
+ puts stdout $msg
+ }
+}
+
+::tclttest::cleanupTests 1
+return
+
+
[3] ExИcuter un test simple
+
tclsh foo.test
+
+
[4] ExИcuter des tests multiples
+
tclsh all.tcl -file 'foo*.test' -notfile 'foo2.test'
+
+
+
DerniХre rИvision: 8.2
+
diff --git a/hlp/fr/tcl/after.htm b/hlp/fr/tcl/after.htm
new file mode 100644
index 0000000..b20575f
--- /dev/null
+++ b/hlp/fr/tcl/after.htm
@@ -0,0 +1,53 @@
+
+
+
+
+
after Commandes Internes Tcl
+
+
+
+
NOM
+
after - Execute une commande aprХs un certain dИlai
+
+
SYNTAXE
+
after ms
+after ms ?script script script ...?
+after cancel id
+after cancel script script script ...
+after idle ?script script script ...?
+after info ?id?
+
+
DESCRIPTION
+
Cette commande est utilisИe pour retarder l'exИcution d'un programme ou exИcuter une commande en arriХre-plan aprХs un certain dИlai
+. Elle a plusieurs formes, dИpendantes du premier argument de la commande:
+
+
+ - after ms
+ - Ms doit Йtre un entier donnant une durИe en millisecondes. La commande dort pendant ms millisecondes et ensuite retourne. Tant que la commande dort l'application ne rИpond pas aux ИvХnements.
+
+
+after ms ?script script script ...?
- Sous cette forme la commande retourne immИdiatement, mais elle prИpare une commande Tcl Ю Йtre exИcutИe ms millisecondes plus tard comme un gestionnaire d'ИvХnement. La commande sera exИcutИe exactement une fois, Ю l'instant donnИ. La commande retardИe est formИe par concatИnation de tout les arguments de script de la mЙme faГon que par la commande concat. La commande sera exИcutИe au niveau global (en dehors du contexte de toute fonction Tcl). Si une erreur se produit pendant l'exИcution de la commande retardИe alors le mИcanisme bgerror est utilisИ pour rapporter l'erreur. La commande after renvoie un identificateur qui peut Йtre utilisИ pour annuler la commande retardИe en utilisant after cancel.
+
+
+after cancel id
- Annule l'exИcution d'une commande retardИe qui a ИtИ prИcedemment programmИe. Id indique quelle commande sera annulИe; il doit avoir ИtИ la valeur de retour d'une prИcИdente commande after. Si la commande dИsignИe par id a dИjЮ ИtИ exИcutИe alors la commande after cancel n'a pas d'effet.
+
+
+after cancel script script ...
+- Cette commande annule aussi l'exИcution d'une commande retardИe. Les arguments script sont concatИnИs sИparИs par des espaces (comme dans la commande concat). S'il y a une commande en attente qui correspond Ю la chaНne, elle est annulИe et ne sera jamais exИcutИe; si aucune commande n'est en attente alors la commande after cancel n'a pas d'effet.
+
+
+after idle script ?script script ...?
+- ConcatХne les arguments script avec des sИparateurs espace (comme dans la commande concat), et prИpare le script rИsultant Ю Йtre ИvaluИ plus tard comme un callback inactif . Le script sera lancИ exactement une fois, Ю l'instant de rentrer dans la boucle d'ИvХnement et qu'il n'y a pas d'ИvХnements Ю traiter. La commande renvoie un identificateur qui peut Йtre utilisИ pour annuler la commande retardИe en utilisant after cancel. Si une erreur se produit pendant l'exИcution du script alors le mИcanisme bgerror est utilisИ pour rapporter l'erreur.
+
+
+after info ?id?
- Cette commande renvoie l'information au sujet des gestionnaires d'ИvХnement existants. Si aucun argument id est fourni, la commande renvoie une liste d'identificateurs de tous les gestionnaires d'ИvХnements existants crИИs par la commande after pour cet interprИteur. Si id est fourni, il spИcifie un gestionnaire existant; id doit avoir ИtИ la valeur de retour d'un prИcedent appel de after et il ne doit pas avoir ИtИ dИjЮ dИclenchИ ou ИtИ annulИ. Dans ce cas la commande renvoie une liste de deux ИlИments. Le premier ИlИment de la liste est le script associИ Ю id, et le second ИlИment est soit idle soit timer pour indiquer de quelle sorte de gestionnaire d'ИvХnement il s'agit.
+
+
+
Les formes
after ms et
after idle de la commande supposent que l'application est pilotИe par ИvХnement: les commandes retardИes ne seront pas exИcutИes tant que l'application ne rentrera pas dans la boucle d'ИvХnement. Dans les applications qui ne sont pas normalement pilotИes par ИvХnement, telles que
tclsh, on peut activer la boucle d'ИvХnement avec les commandes
vwait et
update.
+
+
VOIR EGALEMENT
+
+
DerniХre rИvision: 7.5
+
+
+
diff --git a/hlp/fr/tcl/append.htm b/hlp/fr/tcl/append.htm
new file mode 100644
index 0000000..9b47afc
--- /dev/null
+++ b/hlp/fr/tcl/append.htm
@@ -0,0 +1,18 @@
+
+
+
+
+
append Commandes Internes Tcl
+
+
+
NOM
+
append - Ajoute Ю une variable
+
+
SYNTAXE
+
append varName ?value value value ...?
+
+
DESCRIPTION
+
Ajoute tous les arguments value Ю la valeur courante de la variable varName. Si varName n'existe pas, il lui est donnИ une valeur Иgale Ю la concatИnation de tous les arguments value. Cette commande fournit un moyen efficace de construire des variables longues par incrИmentation. Par exemple, append a $b est beaucoup plus efficace que set a $a$b si $a est long.
+
+
+
diff --git a/hlp/fr/tcl/array.htm b/hlp/fr/tcl/array.htm
new file mode 100644
index 0000000..97c508d
--- /dev/null
+++ b/hlp/fr/tcl/array.htm
@@ -0,0 +1,42 @@
+
+
+
+
+
array Commandes Internes Tcl
+
+
NOM
+
array - Manipule les variables tableau
+
+
SYNTAXE
+
array option arrayName ?arg arg ...?
+
+
DESCRIPTION
+
Cette commande effectue une des opИrations sur la variable donnИe par
arrayName. Sauf spИcification contraire pour certaines commandes individuelles ci-dessous,
arrayName doit Йtre le nom d'une variable tableau existante. L'argument
option dИtermine l'action effectuИe par la commande. Les
options lИgales (qui peuvent Йtre abrИgИes) sont:
+
+ - array anymore arrayName searchId
- Renvoie 1 s'il reste au moins un ИlИment Ю traiter pour une recherche dans le tableau, 0 si tous les ИlИments ont dИjЮ ИtИ renvoyИs. SearchId indique la recherche Ю vИrifier dans arrayName, et doit avoir ИtИ la valeur de retour d'un prИcИdent appel de array startsearch. Cette option est particuliХrement utile si un tableau contient un ИlИment avec un nom vide, parce que la valeur de retour de array nextelement n'indiquera pas si la recherche est terminИe.
+
+
array donesearch arrayName searchId- Cette commande termine une recherche dans un tableau et dИtruit l'Иtat associИ Ю cette recherche. SearchId indique quelle recherche dИtruire dans arrayName; et doit avoir ИtИ la valeur de retour d'un prИcИdent appel de array startsearch. Renvoie une chaНne vide.
+
+
array exists arrayName
+- Renvoie 1 si arrayName est une variable tableau, 0 s'il n'y a pas de variable de ce nom ou si c'est une variable scalaire.
+
array get arrayName ?pattern? -
+Renvoie une liste contenant des paires d'ИlИments. Le premier ИlИment de chaque paire est le nom d'un ИlИment de arrayName et le second ИlИment de chaque paire est la valeur de l'ИlИment de tableau. L'ordre des paires est indИfini. Si pattern n'est pas spИcifiИ, alors tous les ИlИments du tableau sont inclus dans le rИsultat. Si pattern est spИcifiИ, alors seuls les ИlИments dont les noms correspondent Ю pattern (en utilisant les rХgles de correspondances de string match) sont inclus. Si arrayName n'est pas le nom d'une variable tableau, ou si le tableau ne contient pas d'ИlИments, alors une liste vide est renvoyИe.
+
+
array names arrayName ?pattern?
- Renvoie une liste contenant le noms de tous les ИlИments dans le tableau qui correspondent Ю pattern (en utilisant les rХgles de correspondance de string match). Si pattern est omis alors la commande renvoie tous les noms des ИlИments dans le tableau. S'il n'y a pas d 'ИlИments (correspondants) dans le tableau, ou si arrayName n'est pas le nom d'une variable tableau, alors une chaНne vide est renvoyИe.
+
+
array nextelement arrayName searchId
- Renvoie le nom de l'ИlИment suivant dans arrayName, ou une chaНne vide si tous les ИlИments de arrayName ont dИjЮ ИtИs renvoyИ dans cette recherche. L'argument searchId identifie la recherche, et doit avoir ИtИ la valeur de retour d'une commande array startsearch. Attention: si des ИlИments sont ajoutИs Ю ou effacИs de ce tableau, alors toutes les recherches sont automatiquement terminИes exactement comme si array donesearch avait ИtИ appelИe; ceci causerait l'echec des opИrations array nextelement pour ces recherches.
+
+
array set arrayName list
- Fixe les valeurs d'un ou plusieurs ИlИments de arrayName. list doit avoir une forme identique Ю celle renvoyИe par array get, consistant d'un mЙme nombre d'ИlИments. Chaque ИlИment impair dans list est traitИ comme un nom d'ИlИment dans arrayName, et les ИlИments suivants de list sont utilisИs comme une nouvelle valeur pour cet ИlИment de tableau. Si la variable arrayName n'existe pas dИjЮ et que list est vide, arrayName est crИИe avec une valeur tableau vide.
+
+
array size arrayName
- Renvoie une chaНne dИcimale donnant le nombre d'ИlИments dans le tableau. Si arrayName n'est pas le nom d'un tableau alors 0 est renvoyИ.
+
+
array startsearch arrayName
- Cette commande initialise une recherche ИlИment-par-ИlИment dans le tableau dИsignИ par arrayName, dont les appels de la commande array nextelement renverront les noms des ИlИments individuels dans le tableau. Quand la recherche est terminИe, la commande tableau donesearch sera appelИe. La valeur de retour est un identificateur de recherche qui doit Йtre utilisИ dans les commandes array nextelement et array donesearch; il permet Ю de multiples recherches d'Йtre menИes simultanИment sur le mЙme tableau.
+
+
array unset arrayName ?pattern?
+- Efface tous les ИlИments du tableau qui correspondent Ю pattern (en utilisant les rХgles correspondantes de string match). Si arrayName n'est pas le nom d'une variable tableau ou qu'il n'y a pas d'ИlИments correspondant dans le tableau, alors une chaНne vide est renvoyИe. Si pattern est omis et que c'est une variable tableau, alors la commande efface le tableau entier.
+
+
DerniХre rИvision: 8.3
+
+
+
diff --git a/hlp/fr/tcl/bgerror.htm b/hlp/fr/tcl/bgerror.htm
new file mode 100644
index 0000000..f15286e
--- /dev/null
+++ b/hlp/fr/tcl/bgerror.htm
@@ -0,0 +1,25 @@
+
+
+
+
+
bgerror Commandes Internes Tcl
+
+
+
NOM
+
bgerror - Commande appelИe pour traiter les erreurs d'arriХre-plan
+
+
SYNTAXE
+
bgerror message
+
+
DESCRIPTION
+
La commande bgerror n'existe pas en tant que partie de Tcl. Par contre, les applications individuelles ou les utilisateurs peuvent definir une commande bgerror (ex. comme une fonction Tcl) s'ils souhaitent gИrer les erreurs d'arriХre-plan.
+
Une erreur d'arriХre-plan est une erreur qui se produit dans un gestionnaire d'ИvХnement ou une autre commande qui n'est pas produite par l'application. Par exemple, si une erreur se produit pendant l'exИcution d'une commande spИcifiИe avec la commande
after, alors c'est une erreur d'arriХre-plan. Pour une erreur qui n'est pas d'arriХre-plan, l'erreur peut simplement Йtre remontИe par les Иvaluations de commandes imbriquИes Tcl jusqu'a ce qu'elle atteigne le code de premier plan dans l'application; alors l'application peut rapporter l'erreur de la maniХre souhaitИe. Quand une erreur d'arriХre-plan se produit, le dИroulement s'achХve dans la bibliothХque Tcl et il n'y a pas de moyen precis pour Tcl de rapporter l'erreur.
+
Quand Tcl detecte une erreur d'arriХre-plan, il sauvegarde l'information relative Ю l'erreur et appelle la commande bgerror plus tard comme un gestionnaire d'ИvХnement inactif. Avant d'appeler bgerror, Tcl restaure les variables errorInfo et errorCode aux valeurs en cours Ю l'instant ou l'erreur s'est produite, et appelle bgerror avec le message d'erreur comme seul argument. Tcl suppose que l'application a implИmentИ la commande bgerror, et que la commande rapporte l'erreur d'une maniХre sensИe pour l'application. Tcl ignore tout rИsultat renvoyИ par le commande bgerror tant qu'aucune erreur n'est gИnИrИe.
+
Si une autre erreur Tcl se produit Ю l'intИrieur de la commande bgerror (par exemple, parcequ'aucune commande bgerror n'a ИtИ dИfinie) alors Tcl rapporte l'erreur lui-mЙme en Иcrivant un message sur la sortie standard.
+
Si plusieurs erreurs d'arriХre-plan s'accumulent avant que bgerror soit appelИe pour les traiter, bgerror sera appelИe une fois pour chaque erreur, dans l'ordre ou elles se sont produites. NИanmoins, si bgerror retourne avec une exception break, alors toute les erreurs restantes seront ignorИes sans appeller bgerror.
+
Tcl n'a pas d'implИmentation par dИfaut de bgerror. NИanmoins, dans une application utilisant Tk il y a une fonction bgerror par dИfaut qui affiche une boite de dialogue contenant le message d'erreur et offre Ю l'utilisateur la possibilitИ de visualiser la trace de la pile montrant oЫ l'erreur s'est produite.
+
DerniХre rИvision: 7.5
+
+
+
diff --git a/hlp/fr/tcl/binary.htm b/hlp/fr/tcl/binary.htm
new file mode 100644
index 0000000..39df021
--- /dev/null
+++ b/hlp/fr/tcl/binary.htm
@@ -0,0 +1,178 @@
+
+
+
+
+
binary Commandes Internes Tcl
+
+
NOM
+
binary - InsХre et extrait des champs Ю partir de chaНnes binaires
+
+
SYNTAXE
+
binary format formatString ?arg arg ...?
+binary scan string formatString ?varName varName ...?
+
+
DESCRIPTION
+
Cette commande fournit des facilitИs pour la manipulation de donnИes binaires. La premiХre forme, binary format, crИe une chaНne binaire Ю partir de valeurs Tcl standards. Par exemple, en partant des valeurs 16 et 22, elle produira une chaНne binaire de 8 octets constituИe de deux entiers de 4 octets, un pour chacun des nombres. La seconde forme de la commande, binary scan, fait le contraire: elle extrait les donnИes Ю partir d'une chaНne binaire et les renvoie comme des valeur chaНnes Tcl ordinaire.
+
+
BINARY FORMAT
+
La commande binary format gИnХre une chaНne binaire dont le format est spИcifiИ par le formatString et dont le contenu provient des arguments supplИmentaires. La valeur binaire rИsultante est renvoyИe.
+
Le
formatString est constituИ d'une sИquence de zИro ou plus de spИcificateurs de champs sИparИs par zИro ou plusieurs espaces. Chaque spИcificateur de champ est un simple caractХre suivi par un nombre optionnel
compte. La plupart des spИcificateurs de champs attendent un argument pour formater la valeur. Le caractХre spИcifie comment la valeur est formatИe. Le nombre
compte indique combien d'items du type spИcifiИ sont prИsents dans la valeur. Si prИsent,
compte est un entier dИcimal non-nИgatif ou
*, qui indique normalement que tous les ИlИments de la valeur doivent Йtre utilisИs. Si le nombre d'arguments ne correspond pas au nombre de champs dans le format chaНne qui attend les arguments, alors une erreur est gИnИrИe.
+
Chaque paire type-compte dИplace un curseur imaginaire au travers des donnИes binaires, en stockant les octets Ю la position courante et avancant le curseur juste aprХs le dernier octet stockИ. Le curseur est initialement Ю la position 0 au dИbut des donnИes. Le type peut Йtre l'un des caractХres suivants:
+
+
+ - a
- Stocke une chaНne de caractХres de longueur compte dans la chaНne de sortie. Si arg a moins d'octets que compte, alors des octets supplИmentaire nuls sont utilisИs pour remplir le champ. Si arg est plus long que la longueur spИcifiИe, les caractХres supplИmentaires sont ignorИs. Si compte est *, alors tous les octets de arg sont formatИs. Si compte est omis, alors un caractХre est formatИ. Par exemple,
+binary format a7a* alpha bravo charlie
+renverra une chaНne Иquivalente Ю alpha\000\000bravoc.
+
+ - A
- Cette forme est la mЙme que a exceptИ que des espaces sont utilisИs pour le remplissage au lieu de nuls. Par exemple,
+binary format A6A*A alpha bravo charlie
+renverra alpha bravoc.
+
+ - b
- Stocke une chaНne de compte chiffres binaires en ordre croissant dans chaque octet de la chaНne de sortie. Arg doit contenir une sИquence de 1 et de 0. Les octets rИsultants sont emis du premier au dernier avec les bits formatИs de bas en haut dans chaque octet. Si arg a moins de chiffres que compte, alors des zИros seront utilisИs pour les bits restant. Si arg a plus de chiffres que le nombre spИcifiИs, les chiffres supplИmentaires sont ignorИs. Si compte est *, alors tous les chiffres de arg sont formatИs. Si compte est omis, alors un digit est formatИ. Si le nombre de bits formatИs ne finit pas Ю un une limite d'octet, les bits restants du dernier octet seront des zИros. Par exemple,
+binary format b5b* 11100 111000011010
+renverra une chaНne Иquivalentee Ю \x07\x87\x05.
+ - B
- Cette forme est la mЙme que b exceptИ que le bits sont stockИs dans l'ordre descendant dans chaque octet. Par exemple,
+binary format B5B* 11100 111000011010
+renverra une chaНne Иquivalentee Ю \xe0\xe1\xa0.
+
+ - h
- Stocke une chaНne de compte chiffres hexadИcimaux de bas en haut dans chaque octet de la chaНne de sortie. Arg doit contenir une sИquence de caractХres comprise dans ``0123456789abcdefABCDEF''. Les octets rИsultants sont Иmis du premier au dernier avec les chiffres hexa formatИs de bas en haut dans chaque octet. Si arg a moins de chiffres que compte, alors des zИros sont utilisИs pour les chiffres restants. Si arg a plus de chiffres que le nombre spИcifiИs, les chiffres supplИmentaires seront ignorИs. Si compte est *, alors tous les chiffres de arg seront formatИs. Si compte est omis, alors un digit est formatИ. Si le nombre de chiffres formatИe ne finit pas Ю une limite d'octet, les bits restants du dernier octet seront des zИros. Par exemple,
+binary format h3h* AB def
+renverra une chaНne Иquivalente Ю \xba\x00\xed\x0f.
+
+ - H
- Cette forme est la mЙme que h exceptИ que le chiffres sont stockИs de haut en bas dans chaque octet. Par exemple,
+binary format H3H* ab DEF
+renverra une chaНne Иquivalente Ю \xab\x00\xde\xf0.
+
+ - c
- Stocke une ou plusieurs valeur entiХres 8-bit dans la chaНne de sortie. Si aucun compte n'est spИcifiИ, alors arg doit Йtre une valeur entiХre; autrement arg doit Йtre une liste contenant au moins compte ИlИments entiers. Les 8 bits de poids faible de chaque entier sont stockИs comme une valeur d'un octet Ю la position du curseur. Si compte est *, alors tous les entiers de la liste sont formatИs. Si le nombre d'ИlИments dans la liste est infИrieur Ю compte, alors une erreur est gИnИrИe. Si le nombre d'ИlИments dans la liste est supИrieur Ю compte, alors les ИlИments supplИmentaires sont ignorИs. Par exemple,
+binary format c3cc* {3 -3 128 1} 260 {2 5}
+renverra une chaНne Иquivalente Ю \x03\xfd\x80\x04\x02\x05, alors que
+binary format c {2 5}
+gИnИrera une erreur.
+
+ - s
- Cette forme est la mЙme que c exceptИ qu'elle stocke un ou plusieurs entiers 16-bit en ordre little-endian dans la chaНne de sortie. Les 16 bits de poids faible de chaque entier sont stockИs comme une valeur de deux-octet Ю la position du curseur avec l'octet de poids faible stockИ en premier. Par exemple,
+binary format s3 {3 -3 258 1}
+renverra une chaНne Иquivalente Ю \x03\x00\xfd\xff\x02\x01.
+
+ - S
- Cette forme est la mЙme que s exceptИ qu'elle stocke un ou plusieurs entiers 16-bit en ordre big-endianx dans la chaНne de sortie. Par exemple,
+binary format S3 {3 -3 258 1}
+renverra une chaНne Иquivalente Ю \x00\x03\xff\xfd\x01\x02.
+
+ - i
- Cette forme est la mЙme que c exceptИ qu'elle stocke un ou plusieurs entiers 32-bit en ordre little-endian dans la chaНne de sortie. Les 32 bits de poids faible de chaque entier sont stockИs comme une valeur de quatre-octet Ю la position du curseur avec l'octet de poids faible stockИ en premier.Par exemple,
+binary format i3 {3 -3 65536 1}
+renverra une chaНne Иquivalente Ю \x03\x00\x00\x00\xfd\xff\xff\xff\x00\x00\x01\x00
+
+ - I
- Cette forme est la mЙme que i exceptИ qu'elle stocke un ou plusieurs 32-bit entiers en ordre big-endian dans la chaНne de sortie. Par exemple,
+binary format I3 {3 -3 65536 1}
+renverra une chaНne Иquivalente Ю \x00\x00\x00\x03\xff\xff\xff\xfd\x00\x01\x00\x00
+
+ - f
- Cette forme est la mЙme que c exceptИ qu'elle stocke un ou plusieurs flottants simple precision dans la reprИsentation native de la machine dans la chaНne de sortie. Cette reprИsentation n'est pas portable, donc elle ne doit pas Йtre utilisИe pour communiquer des nombres flottants sur le rИseau. La taille d'un nombre flottant peut varier selon les architectures, donc le nombre d'octets gИnИrИs peut varier.Si la valeur deborde de la reprИsentation native de la machine, alors la valeur de FLT_MAX dИfinie par le systХme sera utilisИe.Parce que Tcl utilise des nombres flottants double-precision en interne, il peut y avoir une certaine perte de precision dans la conversion en simple-precision. Par exemple, sur un systХme Windows s'exИcutant sur un processeur Pentium Intel,
+binary format f2 {1.6 3.4}
+renverra une chaНne Иquivalente Ю\xcd\xcc\xcc\x3f\x9a\x99\x59\x40.
+
+ - d
- Cette forme est la mЙme que f exceptИ qu'elle stocke un ou plusieurs flottants double-precision dans la reprИsentation native de la machine dans la chaНne de sortie. Par exemple, sur un systХme Windows s'exИcutant sur un processeur Pentium Intel,
+binary format d1 {1.6}
+renverra une chaНne Иquivalente Ю \x9a\x99\x99\x99\x99\x99\xf9\x3f.
+
+ - x
- Stocke compte octet nuls dans la chaНne de sortie. Si compte n'est pas spИcifiИ, elle stocke un octet null. Si compte est *, elle gИnХre une erreur. Ce type n'attend pas d'argument.Par exemple,
+binary format a3xa3x2a3 abc def ghi
+renverra une chaНne Иquivalente Ю abc\000def\000\000ghi.
+
+ - X
- DИplace le curseur en arriХre de compte octets dans la chaНne de sortie. Si compte est *ou est supИrieur Ю la position courante du curseur, alors le curseur est positionnИ Ю l'emplacement 0 ainsi l'octet suivant stockИ sera le premier octet dans la chaНne rИsultat. Si compte est omis alors le curseur est dИplacИ d'un octet vers l'arriХre. Ce type n'attend pas d'argument.Par exemple,
+binary format a3X*a3X2a3 abc def ghi
+renverra dghi.
+
+ - @
- DИplace le curseur Ю l'emplacement absolu spИcifiИ par compte dans la chaНne de sortie. La position 0 correspond au premier octet dans la chaНne de sortie. Si compte correspond Ю une position au-dela du dernier octet stockИ, alors des octet nuls seront placИs aux emplacements non initalisИs et le curseur sera placИ Ю l'emplacement spИcifiИ. Si compte est *, alors le curseur est dИplacИ Ю la fin de la chaНne de sortie actuelle. Si compte est omis, alors une erreur est gИnИrИe. Ce type n'attend pas d'argument. Par exemple,
+binary format a5@2a1@*a3@10a1 abcde f ghi j
+renverra abfdeghi\000\000j.
+
+
+
+
+
BINARY SCAN
+
La commande binary scan analyse les champs d'une chaНne binaire, retournant le nombre de conversions effectuИes. String donne l'entrИe Ю analyser et formatString indique comment l'analyser. Chaque varName donne le nom d'une variable; quand un champ de string est analysИ le rИsultat est assignИ Ю la variable correspondante.
+
Comme avec binary format, le formatString est constituИ d'une sИquence de zИro ou plusieurs spИcificateurs de champs sИparИes par zИro ou plusieurs espaces. Chaque spИcificateur de champ est un simple caractХre suivi par un nombre optionnel compte. La plupart des spИcificateurs de champs utilisent un argument pour obtenir la variable dans laquelle les valeurs seront placИes. Le caractХre spИcifie comment les donnИes binaires sont interprИtИes. Le compte indique typiquement combien d'examplaires du type spИcifiИ sont extraits des donnИes. Si prИsent, compte est un entier dИcimal non-nИgatif ou *, qui indique normalement que tous les items restant dans les donnИes doivent Йtre utilisИs. S'il n'y a pas assez d'octets aprХs la position courante du curseur pour satisfaire le spИcificateur de champ courant, alors la variable correspondante est inchangИe et binary scan retourne immИdiatement avec le nombre de variables qui ont ИtИ de'finies. S'il n'y a pas assez d'arguments pour tous les champs de la chaНne format nИcessitant des arguments, alors une erreur est gИnИrИe.
+
Il est important de noter que les c, s, et S (et i et I sur les systХmes 64bit) extraient les donnИes dans des entiers de type long. Ce faisant, les entiers qui ont leurs bit haut positionnИ (0x80 pour chars, 0x8000 pour shorts, 0x80000000 pour ints), seront signИes.Ainsi :
+
set signShort [binary format s1 0x8000]
+binary scan $signShort s1 val;# val == 0xFFFF8000
+
Si vous voulez produire une valeur non signИe, vous pouvez masquer la valeur de retour Ю la taille dИsirИe. Par exemple, pour produire un entier court non signИe:
+
set val [expr {$val & 0xFFFF}];# val == 0x8000
+
Chaque paire type-compte dИplace un curseur imaginaire le long des donnИes binaires, en lisant les octets Ю la position courante. Initialement le curseur est Ю la position 0 au dИbut des donnИes. Le type peut Йtre l'un des caractХres suivants:
+
+ - a
- Les donnИes sont une chaНne de caractХres de longueur compte. Si compte est *, alors tous les octets restants dans string seront scannИs dans la variable. Si compte est omis, alors un caractХre sera scannИ. Par exemple,
+binary scan abcde\000fghi a6a10 var1 var2
+retournera 1 avec la chaНne Иquivalente Ю abcde\000 stockИe dans var1 et var2 inchangИe.
+
+ - A
- Cette forme est la mЙme que a, exceptИ que les espaces et les nulls sont enlevИs de la valeur scannИe avant d'Йtre stockИ dans la variable. Par exemple,
+binary scan "abc efghi \000" A* var1
+renverra 1 avec abc efghi stockИ dans var1.
+
+ - b
- Les donnИes sont transformИes en une chaНne de compte chiffres binaires de bas en haut representИs comme une sИquence de caractХres "1" et "0". Les octets de donnИes sont scannИes du premier au dernier avec les bits rangИs de bas en haut pour chaque octet. Les bits supplИmentaires dans le dernier octet sont ignorés;. Si compte est *, alors tous les bits restant dans string seront scannИs. Si compte est omis, alors un bit sera scannИ.Par exemple,
+binary scan\x07\x87\x05 b5b* var1 var2
+renverra 2 avec 11100 stockИ dans var1 et 1110000110100000 stockИ dans var2.
+
+ - B
- Cette forme est la mЙme que b, exceptИ que les bits sont stockИs dans l'ordre descendant dans chaque octet. Par exemple,
+binary scan\x70\x87\x05 B5B* var1 var2
+renverra 2 avec 01110 stockИ dans var1 et 1000011100000101 stockИ dans var2.
+
+ - h
- Les donnИes sont transformИes en une chaНne de compte chiffres hexadИcimaux dans l'ordre de bas en haut representИs par une sИquence de caractХres de "0123456789abcdef". Les octets de donnИes sont scannИs du premier au dernier avec les chiffres hexa extraits de bas en haut dans chaque octet. Les bits supplИmentaires dans le dernier octet sont ignorИs. Si compte est *, alors tous les chiffres hexa restant dans string sont scannИs. Si compte est omis, alors un digit hexa sera scannИ. Par exemple,
+binary scan\x07\x86\x05 h3h* var1 var2
+renverra 2 avec 706 stockИ dans var1 et 50 stockИ dans var2.
+
+ - H
- Cette forme est la mЙme que h, exceptИ que les chiffres sont extraits de haut en bas dans chaque octet. Par exemple,
+binary scan\x07\x86\x05 H3H* var1 var2
+renverra 2 avec 078 stockИ dans var1 et 05 stockИ dans var2.
+
+ - c
- Les donnИes sont transformИes en compte entiers signИs 8-bit et stockИes dans la variable correspondante sous forme de liste. Si compte est *, alors tous les octets restant de string seront scannИs. Si compte est omis, alors un entier 8-bit sera scannИ. Par exemple,
+binary scan\x07\x86\x05 c2c* var1 var2
+renverra 2 avec 7 -122 stockИ dans var1 et 5 stockИ dans var2. Notez que les entiers renvoyИs sont signИs, mais ils peuvent Йtre convertis en entiers 8-bit non signИes en utilisant une expression telle que:
+expr ( $num + 0x100 ) % 0x100
+
+ - s
- Les donnИes sont interprИtИes comme compte entiers signИs 16-bit representИ en little-endian. Les entiers sont stockИs dans la variable correspondante sous forme de liste. Si compte est *, alors tous les octets restants de string seront scannИs. Si compte est omis, alors un entier 16-bit sera scannИ. Par exemple,
+binary scan\x05\x00\x07\x00\xf0\xff s2s* var1 var2
+renverra 2 avec 5 7 stockИ dans var1 et -16 stockИ dans var2.Notez que les entiers renvoyИs sont signИs, mais ils peuvent Йtre convertis en entiers 16-bit non signИes en utilisant une expression telle que:
+expr ( $num + 0x10000 ) % 0x10000
+
+ - S
- Cette forme est la mЙme que s exceptИ que les donnИes sont interprИtИes comme compte entiers 16-bit signИs representИ en big-endian. Par exemple,
+binary scan\x00\x05\x00\x07\xff\xf0 S2S* var1 var2
+renverra 2 avec 5 7 stockИ dans var1 et -16 stockИ dans var2.
+
+ - i
- Les donnИes sont interprИtИes comme compte entiers 32-bit signИs representИs en little-endian. Les entiers sont stockИs dans la variable correspondante sous forme de liste. Si compte est *, alors tous octets restants de string seront scannИs. Si compte est omis, alors un entier 32-bit sera scannИ. Par exemple,
+binary scan\x05\x00\x00\x00\x07\x00\x00\x00\xf0\xff\xff\xff i2i* var1 var2
+renverra 2 avec 5 7 stockИ dans var1 et -16 stockИ dans var2. Notez que les entiers renvoyИs sont signИs et ne peuvent pas Йtre representИs par Tcl comme valeurs non signИes.
+
+ - I
- Cette forme est la mЙme que i exceptИ que les donnИes sont interprИtИes comme compte entiers 32-bit signИs representИ en big-endian. Par exemple,
+binary\x00\x00\x00\x05\x00\x00\x00\x07\xff\xff\xff\xf0 I2I* var1 var2
+renverra 2 avec 5 7 stockИ dans var1 et -16 stockИ dans var2.
+
+ - f
- Les donnИes sont interprИtИes comme compte nombre flottants simple-prИcision dans la reprИsentation native de la machine. Les nombres flottants sont stockИs dans la variable correspondante sous forme de liste. Si compte est *, alors tous les octets restants de string seront scannИs. Si compte est omis, alors un nombre flottant simple-prИcision sera scannИ. La taille d'un nombre flottant peut varier selon les architectures, donc le nombre d'octets scannИs peut varier. Si les donnИes ne reprИsentent pas un nombre flottant valide, la valeur rИsultante est indИfinie et dИpend du compilateur. Par exemple, sur un systХme Windows s'exИcutant sur un processeur Pentium Intel,
+binary scan\x3f\xcc\xcc\xcd f var1
+>renverra 1 avec 1.6000000238418579 stockИ dans var1.
+
+ - d
- Cette forme est la mЙme que f exceptИ que les donnИes sont interprИtИes comme compte nombre flottants double-precision dans la reprИsentation native de la machine. Par exemple, , sur un systХme Windows s'exИcutant sur un processeur Pentium Intel,
+binary scan\x9a\x99\x99\x99\x99\x99\xf9\x3f d var1
+renverra 1 avec 1.6000000000000001 stockИ dans var1.
+
+ - x
- DИplace le curseur en avant de compte octets dans string. Si compte est * ou est supХrieur au nombre d'octets aprХs la position courante du curseur, alors le curseur est positionnИ aprХs le dernier octet de string. Si compte est omis, alors le curseur est dИplacИ en avant d'un octet. Notez que ce type n'attend pas d'argument. Par exemple,
+binary scan\x01\x02\x03\x04 x2H* var1
+renverra 1 avec 0304 stockИ dans var1.
+
+ - X
- DИplace le curseur en arriХre de compte octets dans string. Si compte est * ou est supИrieur Ю la position courante du curseur, alors le curseur est positionnИ Ю la position 0 de telle sorte que le prochain octet scannИ sera le premier octet de string. Si compte est omis alors le curseur est dИplacИ en arriХre d'un octet. Notez que ce type n'attend pas d'argument. Par exemple,
+binary scan\x01\x02\x03\x04 c2XH* var1 var2
+renverra 2 avec 1 2 stockИ dans var1 et 020304 stockИ dans var2.
+
+ - @
- DИplace le curseur Ю la position absolu de la chaНne spИcifiИe par compte. Notez que la position 0 correspondante au premier octet de string. Si compte correspond Ю une position au-dela de la fin de string, alors le curseur est positionnИ aprХs le dernier octet. Si compte est omis, alors une erreur est gИnИrИe. Par exemple,
+binary scan\x01\x02\x03\x04 c2@1H* var1 var2
+renverra 2 avec 1 2 stockИ dans var1 et 020304 stockИ dans var2.
+
+
+
+
PLATFORM ISSUES
+
Il est parfois souhaitable de formater ou scanner des valeur entiХres dans l'ordre natif des octets de la machine. RИfИrez vous Ю l'ИlИment byteOrder du tableau tcl_platform pour connaНtre le caractХre Ю utiliser pour formater ou scanner des entiers.
+
+
VOIR EGALEMENT
+
+
DerniХre rИvision: 8.0
+
+
+
diff --git a/hlp/fr/tcl/break.htm b/hlp/fr/tcl/break.htm
new file mode 100644
index 0000000..b237300
--- /dev/null
+++ b/hlp/fr/tcl/break.htm
@@ -0,0 +1,18 @@
+
+
+
+
+
break Commandes Internes Tcl
+
+
NOM
+
break √ Sort d'une commande de boucle
+
+
SYNTAXE
+
break
+
+
DESCRIPTION
+
Cette commande est habituellement appelИe dans le corps d'une commande de boucle tel que
for ou
foreach ou
while. Elle renvoie un code TCL_BREAK, qui cause une exception break. L'exception cause l'arrЙt du script courant Ю l'intИrieur de la commande de boucle, qui cesse alors son exИcution et retourne normalement. Les exceptions break sont aussi gИrИes dans quelques autres cas, tels que la commande
catch, les
bindings d'ИvХnement Tk, et les scripts externes des corps de fonction.
+
+
+
diff --git a/hlp/fr/tcl/case.htm b/hlp/fr/tcl/case.htm
new file mode 100644
index 0000000..4de88b9
--- /dev/null
+++ b/hlp/fr/tcl/case.htm
@@ -0,0 +1,21 @@
+
+
+
+
+
case Commandes Internes Tcl
+
+
NOM
+
case - Evalue un parmi plusieurs scripts, dИpendant d'une valeur donnИe
+
+
SYNTAXE
+
case string ?in? patList body ?patList body ...?
+case string ?in? {patList body ?patList body ...?}
+
+
DESCRIPTION
+
Note: la commande case est obsolХte et est supportИe uniquement pour compatibilitИ ascendante. Elle sera supprimИe un jour ou l'autre. Utilisez la plutot la commande switch .
+
La commande case compare string Ю chacun des arguments patList dans l'ordre. Chaque argument patList est une liste d'un ou plusieurs modХles. Si un de ces modХles correspond Ю string alors case Иvalue l'argument body suivant en le transmettant rИcursivement Ю l'interprИteur Tcl et renvoie le rИsultat de cette evaluation. Chaque argument patList est constituИ d'un simple modХle ou d'une liste de modХles. Chaque modХle peut contenir un des jokers dИcrits dans string match. Si un argument patList est default, le body correspondant sera ИvaluИ si aucun patList ne correspond Ю string. Si aucun argument patList ne correspond Ю string et default n'est pas dИfini, alors la commande case renvoie une chaНne vide.
+
Deux syntaxes sont fournies pour les arguments patList et body. La premiХre utilise un argument sИparИ pour chacun des modХles et commandes; cette forme convient si les substitutions sont dИsirИes dans un des modХles ou des commandes. La seconde forme regroupe tous les modХles et commandes dans un simple argument; l'argument doit avoir une structure de liste correcte, les ИlИments de la liste etant les modХles et commandes. La seconde forme facilite la construction de commandes case multi-ligne, car les accolades englobant la liste rendent inutile l'inclusion d'un antislash Ю la fin de chaque ligne. Comme les arguments patList sont entre accolades dans la seconde forme, aucune substitution de commande ou de variable ne leur sont appliquИes; ceci rend le comportement de la seconde forme diffИrent de la premiХre dans quelque cas.
+
DerniХre rИvision: 7.0
+
+
+
diff --git a/hlp/fr/tcl/catch.htm b/hlp/fr/tcl/catch.htm
new file mode 100644
index 0000000..96f8702
--- /dev/null
+++ b/hlp/fr/tcl/catch.htm
@@ -0,0 +1,34 @@
+
+
+
+
+
catch Commandes Internes Tcl
+
+
NOM
+
catch - Evalue un script et intercepte les renvois d'exceptions
+
+
SYNTHESE
+
catch script ?varName?
+
+
DESCRIPTION
+
La commande catch peut Йtre employИe pour empecher les erreurs de faire Иchouer l'Иvaluation d'une commande. Catch appelle l'interprИteur Tcl rИcursivement pour exИcuter script, et retourne toujours sans lever une erreur, indИpendemment de toute erreur produite pendant l'exИcution de script.
+
Si script lХve une erreur, catch renverra une valeur entiХre diffИrente de zИro correspondant Ю un des code de retours d'exceptions (voir tcl.h pour la dИfinitions des codes). Si l'argument varName est fourni, alors le message d'erreur de l'Иvaluation de script est affectИ Ю la variable dИsigne par varName.
+
Si script ne lХve pas d'erreur, catch renverra 0 (TCL_OK) et la valeur renvoyИe par script est affectИe Ю la variable.
+
Notez que
catch intercepte toutes exceptions, incluant celles gИnИrИes par
break et
continue aussi bien que les erreurs. Les seules erreurs qui ne sont pas interceptИes sont les erreurs de syntaxe trouvИes quand le script est compilИ. Ceci est du Ю ce que la commande catch n'intercepte les erreurs qu'Ю l'exИcution. Quand l'instruction catch est compilИe, le script est aussi compilИ et toutes les erreurs de syntaxe gИnИrent une erreur Tcl.
+
+
EXEMPLES
+
La commande
catch peut Йtre employИe dans un
if pour des choix basИs sur le succХs d'un script.
+
if { [catch {open $someFile w} fid] } {
+ puts stderr "Ne peut ouvrir $someFile en Иcriture\n$fid"
+ exit 1
+}
+
+
La commande catch n'interceptera pas les erreurs de syntaxe compilИes. La premiХre fois que la proc foo sera appelИe, le corps sera compilИ et une erreur Tcl sera gИnИrИe.
+
proc foo {} {
+ catch {expr {1 +- }}
+}
+
+
DerniХre rИvision: 8.0
+
+
+
diff --git a/hlp/fr/tcl/cd.htm b/hlp/fr/tcl/cd.htm
new file mode 100644
index 0000000..6ec091f
--- /dev/null
+++ b/hlp/fr/tcl/cd.htm
@@ -0,0 +1,20 @@
+
+
+
+
+
+cd Commandes Internes Tcl
+
+
+
NOM
+
cd - Change le rИpertoire de travail
+
+
SYNTAXE
+
cd ?dirName?
+
+
DESCRIPTION
+
Change le rИpertoire de travail courant en dirName, ou en
+rИpertoire home (dИfini par la variable d'environnement HOME) si dirName n'est pas donnИ. Retoune une chaНne vide.
+
+
+
diff --git a/hlp/fr/tcl/clock.htm b/hlp/fr/tcl/clock.htm
new file mode 100644
index 0000000..026fd09
--- /dev/null
+++ b/hlp/fr/tcl/clock.htm
@@ -0,0 +1,90 @@
+
+
+
+
clock Commandes Internes Tcl
+
+
NOM
+
clock- Obtient et manipule l'heure
+
+
SYNTAXE
+
clock option ?arg arg ...
+
+
DESCRIPTION
+
Cette commande effectue l'une des opИrations qui permettent d'obtenir ou de manipuler des chaНnes ou des valeurs qui reprИsentent une notion de temps. L'argument
option dИtermine l'action effectuИe par la commande. Les
options lИgales (qui peuvent Йtre abrИgИes) sont:
+
+ - clock clicks ?-milliseconds?
- Retourne une valeur haute-rИsolution de l'heure en tant que valeur entiХre dependante du systХme. L'unitИ de valeur dИpend du systХme mais est la plus haute rИsolution d'horloge disponible sur le systХme tel un cycle CPU. Si -milliseconds est spИcifiИ, alors on a la garantie que la valeur a une granularitИ de la milliseconde. Cette valeur ne doit Йtre utilisИe que pour la mesure relative du temps ИcoulИ.
+
+
+clock format clockValue ?-format string? ?-gmt boolean?- Convertit un entier reprИsentant un temps, typiquement renvoyИ par clock seconds, clock scan, ou les options atime, mtime, ou ctime de la commande file, en une forme comprИhensible. Si l'argument -format est prИsent l'argument suivant est une chaНne qui dИcrit comment date et l'heure doivent Йtre formatИs. Les descripteurs de champs sont constituИs d'un % suivi par un caractХre descripteur de champ. Tous les autre caractХres sont copiИs dans rИsultat. Les descripteurs de champs valides sont:
+
+ - %% InsХre un %.
+ - %a Nom abrИgИ d'un jour de la semaine (Mon, Tue, etc.).
+
+ - %A Nom complet d'un jour de la semaine (Monday, Tuesday, etc.).
+
+ - %b Nom abrИgИ d'un mois (Jan, Feb, etc.).
+ - %B Nom complet d'un mois
+ - %c Date et heure Locale spИcifique.
+ - %d Jour du mois (01 - 31).
+ - %H Heure en format 24-heure (00 - 23).
+ - %I Heure en format 12-heure (00 - 12).
+ - %j Jour de l'annИe (001 - 366).
+ - %m Numero du mois (01 - 12).
+ - %M Minute (00 - 59).
+ - %p indicateur AM/PM.
+ - %S Secondes (00 - 59).
+ - %U Semaine de l 'annИe (00 - 52), Dimanche est le premier jour de la semaine.
+
+ - %w Numero du jour de la semaine. (Dimanche = 0).
+ - %W Semaine de l 'annИe (00 - 52), Lundi est le premier jour de la semaine
+
+ - %x Format de Date Locale.
+ - %X Format d'Heure Locale.
+ - %y AnnИe sans siХcle (00 - 99).
+ - %Y AnnИe avec siХcle (ex. 1990)
+ - %Z Nom de Time zone.
+ De plus, les descripteurs de champs suivants peuvent Йtre supportИs sur quelque systХmes (ex. Unix mais pas Windows):
+
+ - %D Date comme %m/%d/%y.
+ - %e Jour du mois (1 - 31), sans le zИro complИmentaire.
+ - %h Nom abrИgИ d'un mois.
+ - %n InsХre un saut de ligne.
+ - %r Heure comme %I:%M:%S %p.
+ - %R Heure comme %H:%M.
+ - %t InsХre une tabulation.
+ - %T Heure comme %H:%M:%S.
+
+Si l'argument - format n'est pas spИcifiИ, la chaНne de formatage "%a %b %d %H:%M:%S %Z %Y" est utilisИe. Si l'argument -gmt est prИsent il doit Йtre suivi d'un boolИen qui s'il est vrai spИcifie que l'heure doit Йtre formatИe comme une heure Greenwich Mean Time. S'il est faux, la timezone locale dИfinie par l'environnement d'exploitation est utilisИe.
+
+
clock scan dateString ?-base clockVal? ?-gmt boolean?
+- Convertit dateString en une valeur d'horloge entiХre (voir clock seconds). Cette commande peut virtuellement analyser et convertir toute chaНne de date et/ou d'heure standard, qui peut inclure des mnИmoniques timezone standards. Si une heure est spИcifiИe seule, la date courante est supposИe. Si la chaНne ne contient pas de mnИmoniques timezone, la timezone locale est supposИe, Ю moins que l'argument -gmt soit vrai, auquel cas la valeur horloge est calculИe en prИsumant que l'heure spИcifiИe est relative Ю Greenwich Mean Time. -gmt, si spИcifiИ, affecte seulement la valeur de l'heure calculИe; elle n'influe pas sur l'interprИtation de -base.
+Si le flag -base est spИcifiИ, l'argument suivant doit contenir une valeur horloge entiХre. Seule la date de cette valeur est utilisИe, pas l'heure. Ceci est utile pour dИterminer l'heure d'un jour spИcifique ou faire d'autres conversions relatives Ю la date.
+La dateString est constituИ de zИro ou plus ИlИments de la forme suivante:
+
+ - time L'heure du jour, qui est de la forme: hh?:mm?:ss?? ?meridian? ?zone? ou hhmm ?meridian? ?zone?. Si mИridien n'est spИcifiИ, hh est interprИtИ sur une horloge 24-heures.
+
+ - date Une date mois et jour spИcifique avec l'annИe optionnelle. Les formats acceptables sont mm/dd?/yy?, monthname dd ?, yy?, dd monthname ?yy?, day, dd monthname yy, ?CC?yymmdd, ?CC?yy-mm-dd, dd-monthname-?CC?yy. L'annИe par dИfaut est l'annИe courante. Si l'annИe est infИrieure Ю 100, les annИes 00-68 seront interprИtИes 2000-2068 et les annИes 69-99 comme 1969-1999. Toutes les plateformes ne savent pas reprИsenter les annИes 38-70, aussi l'utilisation de ces annИes peut entrainer une erreur.
+
+ - ISO 8601 point-in-time
+ Une spИcification ISO 8601, telle que CCyymmddThhmmss, ou T est le literal T, CCyymmdd hhmmss, ou CCyymmddThh:mm:ss.
+
+ - relative time
+ Une spИcification relative Ю l'heure courante. Le format est number unit , les unitИs acceptables sont year, fortnight, month, week, day, hour, minute (ou min), et second (ou sec). L'unitИ peut Йtre donnИe au singulier ou au pluriel, comme dans 3 weeks. Ces modificateurs peuvent aussi Йtre: tomorrow, yesterday, today, now, last, this, next, ago.
+
+
+La date actuelle est calculИe selon les Иtapes suivantes. D'abord, toute date et/ou temps absolu est traitИe et convertie. Partant de cet instant comme base, les spИcifications du jour de la semaine sont ajoutИes. Ensuite, des spИcifications relatives sont utilisИes. Si une date ou un jour est spИcifiИ, et qu'aucune heure absolue ou relative n'est donnИe, minuit est utilisИ. Finalement, une correction est appliquИe ainsi l'heure du jour correcte est produite aprХs les rectifications pour l'heure d'ИtИ et la date correcte est donnИe au passage de la fin d'un mois long Ю un mois court.
+La correction d'heure d'ИtИ est appliquИe seulement quand l'heure relative est spИcifiИe dans les unitИs de jour ou plus, c.a.d., jours, semaines, quinzaines, mois ou annИes. Ceci signifie que quand on change d'heure, des rИsultats diffИrents seront donnИs pour clock scan "1 day" et clock scan "24 hours":
+% clock scan "1 day" -base [clock scan 1999-10-31]
+941443200
+% clock scan "24 hours" -base [clock scan 1999-10-31]
+941439600
+
+
clock seconds
- Retourne l'heure et la date courante comme valeur entiХre dИpendante du systХme . L'unitИ de valeur est la seconde, lui permettant d'Йtre utilisИe pour les calculs de temps relatif. La valeur est usuellement dИfinie comme le temps total ИcoulИ depuis un epoch. Vous ne pouvez prИsumer la valeur de l'epoch.
+
+
+
+
DerniХre rИvision: 8.3
+
+
+
+