# !/bin/sh # the next line restarts using tclsh \ exec tclsh "$0" "$@" package require Gnocl namespace eval text {} ## split text into enumerated list of paragraphs # @param txt block of text to split # @returns enumerated list of paragraphs. proc text::paras { txt } { set i 0 foreach line [split $txt \n] { if { [string is space $line] } { incr i } else { dict append res $i "$line " } } return $res } ## split text into blocks based upon puncutation marks # @param txt block of text to split # @param marks ...