diff options
author | stanton <stanton> | 1998-09-24 23:58:14 (GMT) |
---|---|---|
committer | stanton <stanton> | 1998-09-24 23:58:14 (GMT) |
commit | 9995355714bc90faf7c2e345b3d6a1d041447097 (patch) | |
tree | 2ad97c5b1994495118cef4df947cf16b55e326f2 /tools/man2help2.tcl | |
parent | e13392595faf8e8d0d1c3c514ce160cfadc3d372 (diff) | |
download | tcl-9995355714bc90faf7c2e345b3d6a1d041447097.zip tcl-9995355714bc90faf7c2e345b3d6a1d041447097.tar.gz tcl-9995355714bc90faf7c2e345b3d6a1d041447097.tar.bz2 |
merging changes from 8.0.3 into 8.1a2
Diffstat (limited to 'tools/man2help2.tcl')
-rw-r--r-- | tools/man2help2.tcl | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tools/man2help2.tcl b/tools/man2help2.tcl index 6f16dd5..727f817 100644 --- a/tools/man2help2.tcl +++ b/tools/man2help2.tcl @@ -9,7 +9,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# SCCS: @(#) man2help2.tcl 1.7 98/01/22 16:51:45 +# RCS: @(#) $Id: man2help2.tcl,v 1.1.2.2 1998/09/24 23:59:41 stanton Exp $ # # Global variables used by these scripts: @@ -173,7 +173,7 @@ proc text {string} { SEE { global topics curPkg curSect foreach i [split $string] { - if ![regexp -nocase {^[a-z_]+} [string trim $i] i ] { + if ![regexp -nocase {^[a-z_0-9]+} [string trim $i] i ] { continue } if ![catch {set ref $topics($curPkg,$curSect,$i)} ] { @@ -439,6 +439,7 @@ proc font {type} { set state(textState) INSERT } } + C - B { beginFont Code if {$state(textState) == "INSERT"} { @@ -627,6 +628,10 @@ proc char {name} { \\o { set state(intl) 1 } + \\\ { + textSetup + puts -nonewline $file " " + } \\0 { textSetup puts -nonewline $file " \\emspace " @@ -642,6 +647,10 @@ proc char {name} { \\% - \\| { } + \\(bu { + textSetup + puts -nonewline $file "·" + } default { puts stderr "Unknown character: $name" } @@ -751,6 +760,7 @@ proc IPmacro {argList} { set count [lindex $argList 1] set tab [expr $count * 0.1]i newPara $tab -$tab + textSetup setTabs $tab formattedText [lindex $argList 0] tab @@ -816,6 +826,8 @@ proc THmacro {argList} { set vers [lindex $argList 2] ;# 7.4 set curPkg [lindex $argList 3] ;# Tcl set curSect [lindex $argList 4] ;# {Tcl Library Procedures} + + regsub -all {\\ } $curSect { } curSect ;# Clean up for [incr\ Tcl] puts $file "#{\\footnote $curID}" ;# Context string puts $file "\${\\footnote $name}" ;# Topic title |