Index: embedded/man/files/modules/debug/debug.n
==================================================================
--- embedded/man/files/modules/debug/debug.n
+++ embedded/man/files/modules/debug/debug.n
@@ -313,11 +313,11 @@
independently settable levels of interest (an integer, higher is more
detailed)\&.
.SH API
.TP
\fBdebug\&.\fBtag\fR\fR \fImessage\fR ?\fIlevel\fR?
-For each known tag the package creates a command with this signatur
+For each known tag the package creates a command with this signature
the user can then use to provide the debug narrative of the tag\&.
The narrative \fImessage\fR is provided as a Tcl script whose value is
\fBsubst\fRed in the caller's scope if and only if the current level of
interest for the \fItag\fR matches or exceeds the call's \fIlevel\fR
of detail\&. This is useful, as one can place arbitrarily complex
Index: embedded/man/files/modules/dns/tcllib_ip.n
==================================================================
--- embedded/man/files/modules/dns/tcllib_ip.n
+++ embedded/man/files/modules/dns/tcllib_ip.n
@@ -1,11 +1,11 @@
'\"
'\" Generated from file 'tcllib_ip\&.man' by tcllib/doctools with format 'nroff'
'\" Copyright (c) 2004, Pat Thoyts
'\" Copyright (c) 2005 Aamer Akhter
'\"
-.TH "tcllib_ip" n 1\&.2\&.1 tcllib "Domain Name Service"
+.TH "tcllib_ip" n 1\&.2\&.2 tcllib "Domain Name Service"
.\" The -*- nroff -*- definitions below are for supplemental macros used
.\" in Tcl/Tk manual entries.
.\"
.\" .AP type name in/out ?indent?
.\" Start paragraph describing an argument to a library procedure.
@@ -275,11 +275,11 @@
.SH NAME
tcllib_ip \- IPv4 and IPv6 address manipulation
.SH SYNOPSIS
package require \fBTcl 8\&.2\fR
.sp
-package require \fBip ?1\&.2\&.1?\fR
+package require \fBip ?1\&.2\&.2?\fR
.sp
\fB::ip::version\fR \fIaddress\fR
.sp
\fB::ip::is\fR \fIclass\fR \fIaddress\fR
.sp
Index: embedded/man/files/modules/math/math_geometry.n
==================================================================
--- embedded/man/files/modules/math/math_geometry.n
+++ embedded/man/files/modules/math/math_geometry.n
@@ -3,11 +3,11 @@
'\" Copyright (c) 2001 by Ideogramic ApS and other parties
'\" Copyright (c) 2004 by Arjen Markus
'\" Copyright (c) 2010 by Andreas Kupries
'\" Copyright (c) 2010 by Kevin Kenny
'\"
-.TH "math::geometry" n 1\&.1\&.2 tcllib "Tcl Math Library"
+.TH "math::geometry" n 1\&.1\&.3 tcllib "Tcl Math Library"
.\" The -*- nroff -*- definitions below are for supplemental macros used
.\" in Tcl/Tk manual entries.
.\"
.\" .AP type name in/out ?indent?
.\" Start paragraph describing an argument to a library procedure.
@@ -277,11 +277,11 @@
.SH NAME
math::geometry \- Geometrical computations
.SH SYNOPSIS
package require \fBTcl ?8\&.3?\fR
.sp
-package require \fBmath::geometry ?1\&.1\&.2?\fR
+package require \fBmath::geometry ?1\&.1\&.3?\fR
.sp
\fB::math::geometry::+\fR \fIpoint1\fR \fIpoint2\fR
.sp
\fB::math::geometry::-\fR \fIpoint1\fR \fIpoint2\fR
.sp
@@ -312,10 +312,12 @@
\fB::math::geometry::calculateDistanceToLine\fR \fIP\fR \fIline\fR
.sp
\fB::math::geometry::calculateDistanceToLineSegment\fR \fIP\fR \fIlinesegment\fR
.sp
\fB::math::geometry::calculateDistanceToPolyline\fR \fIP\fR \fIpolyline\fR
+.sp
+\fB::math::geometry::calculateDistanceToPolygon\fR \fIP\fR \fIpolygon\fR
.sp
\fB::math::geometry::findClosestPointOnLine\fR \fIP\fR \fIline\fR
.sp
\fB::math::geometry::findClosestPointOnLineSegment\fR \fIP\fR \fIlinesegment\fR
.sp
@@ -511,20 +513,35 @@
.sp
.sp
.TP
\fB::math::geometry::calculateDistanceToPolyline\fR \fIP\fR \fIpolyline\fR
Calculate the distance of point P to the polyline and
-return the result\&.
+return the result\&. Note that a polyline needs not to be closed\&.
.RS
.TP
list \fIP\fR
List of two numbers, the coordinates of the point
.TP
list \fIpolyline\fR
List of numbers, the coordinates of the
vertices of the polyline
.RE
+.sp
+.TP
+\fB::math::geometry::calculateDistanceToPolygon\fR \fIP\fR \fIpolygon\fR
+Calculate the distance of point P to the polygon and
+return the result\&. If the list of coordinates is not closed (first and last
+points differ), it is automatically closed\&.
+.RS
+.TP
+list \fIP\fR
+List of two numbers, the coordinates of the point
+.TP
+list \fIpolygon\fR
+List of numbers, the coordinates of the
+vertices of the polygon
+.RE
.sp
.TP
\fB::math::geometry::findClosestPointOnLine\fR \fIP\fR \fIline\fR
Return the point on a line which is closest to a given point\&.
.RS
@@ -592,11 +609,12 @@
.RE
.sp
.TP
\fB::math::geometry::lineSegmentsIntersect\fR \fIlinesegment1\fR \fIlinesegment2\fR
Check if two line segments intersect or coincide\&. Returns 1 if that is
-the case, 0 otherwise (in two dimensions only)\&.
+the case, 0 otherwise (in two dimensions only)\&. If an endpoint of one segment lies on
+the other segment (or is very close to the segment), they are considered to intersect
.RS
.TP
list \fIlinesegment1\fR
First line segment
.TP
Index: embedded/man/files/modules/pt/pt_peg_from_peg.n
==================================================================
--- embedded/man/files/modules/pt/pt_peg_from_peg.n
+++ embedded/man/files/modules/pt/pt_peg_from_peg.n
@@ -1,10 +1,10 @@
'\"
'\" Generated from file 'from\&.inc' by tcllib/doctools with format 'nroff'
'\" Copyright (c) 2009 Andreas Kupries
'\"
-.TH "pt::peg::from::peg" n 1 tcllib "Parser Tools"
+.TH "pt::peg::from::peg" n 1\&.0\&.2 tcllib "Parser Tools"
.\" The -*- nroff -*- definitions below are for supplemental macros used
.\" in Tcl/Tk manual entries.
.\"
.\" .AP type name in/out ?indent?
.\" Start paragraph describing an argument to a library procedure.
@@ -274,11 +274,11 @@
.SH NAME
pt::peg::from::peg \- PEG Conversion\&. Read PEG format
.SH SYNOPSIS
package require \fBTcl 8\&.5\fR
.sp
-package require \fBpt::peg::from::peg ?1?\fR
+package require \fBpt::peg::from::peg ?1\&.0\&.2?\fR
.sp
\fBpt::peg::from::peg\fR \fBconvert\fR \fItext\fR
.sp
.BE
.SH DESCRIPTION
Index: embedded/man/files/modules/pt/pt_peg_op.n
==================================================================
--- embedded/man/files/modules/pt/pt_peg_op.n
+++ embedded/man/files/modules/pt/pt_peg_op.n
@@ -1,10 +1,10 @@
'\"
'\" Generated from file 'pt_peg_op\&.man' by tcllib/doctools with format 'nroff'
'\" Copyright (c) 2009 Andreas Kupries
'\"
-.TH "pt_peg_op" i 1 tcllib "Parser Tools"
+.TH "pt_peg_op" i 1\&.0\&.1 tcllib "Parser Tools"
.\" The -*- nroff -*- definitions below are for supplemental macros used
.\" in Tcl/Tk manual entries.
.\"
.\" .AP type name in/out ?indent?
.\" Start paragraph describing an argument to a library procedure.
@@ -274,11 +274,11 @@
.SH NAME
pt_peg_op \- Parser Tools PE Grammar Utility Operations
.SH SYNOPSIS
package require \fBTcl 8\&.5\fR
.sp
-package require \fBpt::peg::op 1\fR
+package require \fBpt::peg::op 1\&.0\&.1\fR
.sp
\fB::peg::peg::op\fR \fBcalled\fR \fIcontainer\fR
.sp
\fB::peg::peg::op\fR \fBdechain\fR \fIcontainer\fR
.sp
Index: embedded/man/files/modules/pt/pt_peg_to_peg.n
==================================================================
--- embedded/man/files/modules/pt/pt_peg_to_peg.n
+++ embedded/man/files/modules/pt/pt_peg_to_peg.n
@@ -1,10 +1,10 @@
'\"
'\" Generated from file 'to\&.inc' by tcllib/doctools with format 'nroff'
'\" Copyright (c) 2009 Andreas Kupries
'\"
-.TH "pt::peg::to::peg" n 1 tcllib "Parser Tools"
+.TH "pt::peg::to::peg" n 1\&.0\&.1 tcllib "Parser Tools"
.\" The -*- nroff -*- definitions below are for supplemental macros used
.\" in Tcl/Tk manual entries.
.\"
.\" .AP type name in/out ?indent?
.\" Start paragraph describing an argument to a library procedure.
@@ -274,11 +274,11 @@
.SH NAME
pt::peg::to::peg \- PEG Conversion\&. Write PEG format
.SH SYNOPSIS
package require \fBTcl 8\&.5\fR
.sp
-package require \fBpt::peg::to::peg ?1?\fR
+package require \fBpt::peg::to::peg ?1\&.0\&.1?\fR
.sp
package require \fBpt::peg \fR
.sp
package require \fBpt::pe \fR
.sp
Index: embedded/man/files/modules/pt/pt_pgen.n
==================================================================
--- embedded/man/files/modules/pt/pt_pgen.n
+++ embedded/man/files/modules/pt/pt_pgen.n
@@ -1,10 +1,10 @@
'\"
'\" Generated from file 'pt_pgen\&.man' by tcllib/doctools with format 'nroff'
'\" Copyright (c) 2009 Andreas Kupries
'\"
-.TH "pt::pgen" n 1\&.0\&.1 tcllib "Parser Tools"
+.TH "pt::pgen" n 1\&.0\&.2 tcllib "Parser Tools"
.\" The -*- nroff -*- definitions below are for supplemental macros used
.\" in Tcl/Tk manual entries.
.\"
.\" .AP type name in/out ?indent?
.\" Start paragraph describing an argument to a library procedure.
@@ -274,11 +274,11 @@
.SH NAME
pt::pgen \- Parser Generator
.SH SYNOPSIS
package require \fBTcl 8\&.5\fR
.sp
-package require \fBpt::pgen ?1\&.0\&.1?\fR
+package require \fBpt::pgen ?1\&.0\&.2?\fR
.sp
\fB::pt::pgen\fR \fIinputformat\fR \fItext\fR \fIresultformat\fR ?\fIoptions\&.\&.\&.\fR?
.sp
.BE
.SH DESCRIPTION
Index: embedded/man/files/modules/rest/rest.n
==================================================================
--- embedded/man/files/modules/rest/rest.n
+++ embedded/man/files/modules/rest/rest.n
@@ -1,9 +1,9 @@
'\"
'\" Generated from file 'rest\&.man' by tcllib/doctools with format 'nroff'
'\"
-.TH "rest" n 1\&.0 tcllib "A framework for RESTful web services"
+.TH "rest" n 1\&.0\&.1 tcllib "A framework for RESTful web services"
.\" The -*- nroff -*- definitions below are for supplemental macros used
.\" in Tcl/Tk manual entries.
.\"
.\" .AP type name in/out ?indent?
.\" Start paragraph describing an argument to a library procedure.
@@ -273,11 +273,11 @@
.SH NAME
rest \- define REST web APIs and call them inline or asychronously
.SH SYNOPSIS
package require \fBTcl 8\&.5\fR
.sp
-package require \fBrest ?1\&.0?\fR
+package require \fBrest ?1\&.0\&.1?\fR
.sp
\fB::rest::simple\fR \fIurl\fR \fIquery\fR ?config? ?body?
.sp
\fB::rest::get\fR \fIurl\fR \fIquery\fR ?config? ?body?
.sp
Index: embedded/man/files/modules/struct/struct_list.n
==================================================================
--- embedded/man/files/modules/struct/struct_list.n
+++ embedded/man/files/modules/struct/struct_list.n
@@ -1,11 +1,11 @@
'\"
'\" Generated from file 'struct_list\&.man' by tcllib/doctools with format 'nroff'
'\" Copyright (c) 2003-2005 by Kevin B\&. Kenny\&. All rights reserved
'\" Copyright (c) 2003-2012 Andreas Kupries
'\"
-.TH "struct::list" n 1\&.8\&.2 tcllib "Tcl Data Structures"
+.TH "struct::list" n 1\&.8\&.3 tcllib "Tcl Data Structures"
.\" The -*- nroff -*- definitions below are for supplemental macros used
.\" in Tcl/Tk manual entries.
.\"
.\" .AP type name in/out ?indent?
.\" Start paragraph describing an argument to a library procedure.
@@ -275,11 +275,11 @@
.SH NAME
struct::list \- Procedures for manipulating lists
.SH SYNOPSIS
package require \fBTcl 8\&.4\fR
.sp
-package require \fBstruct::list ?1\&.8\&.2?\fR
+package require \fBstruct::list ?1\&.8\&.3?\fR
.sp
\fB::struct::list\fR \fBlongestCommonSubsequence\fR \fIsequence1\fR \fIsequence2\fR ?\fImaxOccurs\fR?
.sp
\fB::struct::list\fR \fBlongestCommonSubsequence2\fR \fIsequence1 sequence2\fR ?\fImaxOccurs\fR?
.sp
Index: embedded/man/files/modules/term/ansi_cctrl.n
==================================================================
--- embedded/man/files/modules/term/ansi_cctrl.n
+++ embedded/man/files/modules/term/ansi_cctrl.n
@@ -1,10 +1,10 @@
'\"
'\" Generated from file 'ansi_cctrl\&.man' by tcllib/doctools with format 'nroff'
'\" Copyright (c) 2006-2008 Andreas Kupries
'\"
-.TH "term::ansi::code::ctrl" n 0\&.1 tcllib "Terminal control"
+.TH "term::ansi::code::ctrl" n 0\&.2 tcllib "Terminal control"
.\" The -*- nroff -*- definitions below are for supplemental macros used
.\" in Tcl/Tk manual entries.
.\"
.\" .AP type name in/out ?indent?
.\" Start paragraph describing an argument to a library procedure.
@@ -274,13 +274,13 @@
.SH NAME
term::ansi::code::ctrl \- ANSI control sequences
.SH SYNOPSIS
package require \fBTcl 8\&.4\fR
.sp
-package require \fBterm::ansi::code ?0\&.1?\fR
+package require \fBterm::ansi::code ?0\&.2?\fR
.sp
-package require \fBterm::ansi::code::ctrl ?0\&.1\&.1?\fR
+package require \fBterm::ansi::code::ctrl ?0\&.2?\fR
.sp
\fB::term::ansi::code::ctrl::names\fR
.sp
\fB::term::ansi::code::ctrl::import\fR ?\fIns\fR? ?\fIarg\fR\&.\&.\&.?
.sp
Index: embedded/man/files/modules/term/ansi_code.n
==================================================================
--- embedded/man/files/modules/term/ansi_code.n
+++ embedded/man/files/modules/term/ansi_code.n
@@ -1,10 +1,10 @@
'\"
'\" Generated from file 'ansi_code\&.man' by tcllib/doctools with format 'nroff'
'\" Copyright (c) 2006 Andreas Kupries
'\"
-.TH "term::ansi::code" n 0\&.1 tcllib "Terminal control"
+.TH "term::ansi::code" n 0\&.2 tcllib "Terminal control"
.\" The -*- nroff -*- definitions below are for supplemental macros used
.\" in Tcl/Tk manual entries.
.\"
.\" .AP type name in/out ?indent?
.\" Start paragraph describing an argument to a library procedure.
@@ -274,11 +274,11 @@
.SH NAME
term::ansi::code \- Helper for control sequences
.SH SYNOPSIS
package require \fBTcl 8\&.4\fR
.sp
-package require \fBterm::ansi::code ?0\&.1?\fR
+package require \fBterm::ansi::code ?0\&.2?\fR
.sp
\fB::term::ansi::code::esc\fR \fIstr\fR
.sp
\fB::term::ansi::code::escb\fR \fIstr\fR
.sp
Index: embedded/man/files/modules/term/ansi_send.n
==================================================================
--- embedded/man/files/modules/term/ansi_send.n
+++ embedded/man/files/modules/term/ansi_send.n
@@ -1,10 +1,10 @@
'\"
'\" Generated from file 'ansi_send\&.man' by tcllib/doctools with format 'nroff'
'\" Copyright (c) 2006 Andreas Kupries
'\"
-.TH "term::ansi::send" n 0\&.1 tcllib "Terminal control"
+.TH "term::ansi::send" n 0\&.2 tcllib "Terminal control"
.\" The -*- nroff -*- definitions below are for supplemental macros used
.\" in Tcl/Tk manual entries.
.\"
.\" .AP type name in/out ?indent?
.\" Start paragraph describing an argument to a library procedure.
@@ -274,11 +274,11 @@
.SH NAME
term::ansi::send \- Output of ANSI control sequences to terminals
.SH SYNOPSIS
package require \fBTcl 8\&.4\fR
.sp
-package require \fBterm::ansi::send ?0\&.1?\fR
+package require \fBterm::ansi::send ?0\&.2?\fR
.sp
\fB::term::ansi::send::import\fR ?\fIns\fR? \fI\&.\&.\&.\fR
.sp
\fB::term::ansi::send::eeol\fR
.sp
Index: embedded/man/files/modules/textutil/textutil.n
==================================================================
--- embedded/man/files/modules/textutil/textutil.n
+++ embedded/man/files/modules/textutil/textutil.n
@@ -1,9 +1,9 @@
'\"
'\" Generated from file 'textutil\&.man' by tcllib/doctools with format 'nroff'
'\"
-.TH "textutil" n 0\&.7\&.1 tcllib "Text and string utilities, macro processing"
+.TH "textutil" n 0\&.8 tcllib "Text and string utilities, macro processing"
.\" The -*- nroff -*- definitions below are for supplemental macros used
.\" in Tcl/Tk manual entries.
.\"
.\" .AP type name in/out ?indent?
.\" Start paragraph describing an argument to a library procedure.
@@ -273,11 +273,11 @@
.SH NAME
textutil \- Procedures to manipulate texts and strings\&.
.SH SYNOPSIS
package require \fBTcl 8\&.2\fR
.sp
-package require \fBtextutil ?0\&.7\&.1?\fR
+package require \fBtextutil ?0\&.8?\fR
.sp
\fB::textutil::adjust\fR \fIstring args\fR
.sp
\fB::textutil::adjust::readPatterns\fR \fIfilename\fR
.sp
Index: embedded/man/files/modules/textutil/textutil_string.n
==================================================================
--- embedded/man/files/modules/textutil/textutil_string.n
+++ embedded/man/files/modules/textutil/textutil_string.n
@@ -1,9 +1,9 @@
'\"
'\" Generated from file 'textutil_string\&.man' by tcllib/doctools with format 'nroff'
'\"
-.TH "textutil::string" n 0\&.7 tcllib "Text and string utilities, macro processing"
+.TH "textutil::string" n 0\&.8 tcllib "Text and string utilities, macro processing"
.\" The -*- nroff -*- definitions below are for supplemental macros used
.\" in Tcl/Tk manual entries.
.\"
.\" .AP type name in/out ?indent?
.\" Start paragraph describing an argument to a library procedure.
@@ -273,17 +273,19 @@
.SH NAME
textutil::string \- Procedures to manipulate texts and strings\&.
.SH SYNOPSIS
package require \fBTcl 8\&.2\fR
.sp
-package require \fBtextutil::string ?0\&.7?\fR
+package require \fBtextutil::string ?0\&.8?\fR
.sp
\fB::textutil::string::chop\fR \fIstring\fR
.sp
\fB::textutil::string::tail\fR \fIstring\fR
.sp
\fB::textutil::string::cap\fR \fIstring\fR
+.sp
+\fB::textutil::string::capEachWord\fR \fIstring\fR
.sp
\fB::textutil::string::uncap\fR \fIstring\fR
.sp
\fB::textutil::string::longestCommonPrefixList\fR \fIlist\fR
.sp
@@ -305,10 +307,15 @@
returns the shortened string\&.
.TP
\fB::textutil::string::cap\fR \fIstring\fR
Capitalizes the first character of \fIstring\fR and returns the
modified string\&.
+.TP
+\fB::textutil::string::capEachWord\fR \fIstring\fR
+Capitalizes the first character of word of the \fIstring\fR and
+returns the modified string\&. Words quoted with either backslash or
+dollar-sign are left untouched\&.
.TP
\fB::textutil::string::uncap\fR \fIstring\fR
The complementary operation to \fB::textutil::string::cap\fR\&. Forces
the first character of \fIstring\fR to lower case and returns the
modified string\&.
Index: embedded/www/tcllib/files/modules/debug/debug.html
==================================================================
--- embedded/www/tcllib/files/modules/debug/debug.html
+++ embedded/www/tcllib/files/modules/debug/debug.html
@@ -154,11 +154,11 @@
detailed).
- debug.tag message ?level?
-For each known tag the package creates a command with this signatur
+
For each known tag the package creates a command with this signature
the user can then use to provide the debug narrative of the tag.
The narrative message is provided as a Tcl script whose value is
substed in the caller's scope if and only if the current level of
interest for the tag matches or exceeds the call's level
of detail. This is useful, as one can place arbitrarily complex
Index: embedded/www/tcllib/files/modules/dns/tcllib_ip.html
==================================================================
--- embedded/www/tcllib/files/modules/dns/tcllib_ip.html
+++ embedded/www/tcllib/files/modules/dns/tcllib_ip.html
@@ -1,5 +1,6 @@
+
tcllib_ip - Domain Name Service