Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-10-17
13:10 • Closed ticket [1034954fff]: man2help: \w macro not supported plus 7 other ch... artifact: 13eb89978c user: wildcard_25
2004-10-07
21:32 • Ticket [1034954fff]: 4 changes artifact: 6973d9cc63 user: wildcard_25
15:14 • Ticket [1034954fff]: 4 changes artifact: b5c10a41ad user: dkf
05:24 • Ticket [1034954fff]: 5 changes artifact: 0407160a2c user: davygrvy
2004-09-26
18:25 • Ticket [1034954fff]: 4 changes artifact: 0b76976ff5 user: wildcard_25
18:25 • Add attachment w macro.patch to ticket [1034954fff] artifact: 37bc4a869c user: wildcard_25
11:25 • New ticket [1034954fff] man2help: \w macro not supported. artifact: c644521b91 user: wildcard_25

man2help: \w macro not supported

Closed / Duplicate1034954fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-09-26 11:25:21
Tk: v8.5a2
OS: WinXPsp2
Built with makefile.vc using VC7

\w macros aren't reconized by man2help. This patch 
adds the macro to man2help2.tcl and adds support for 
single quote "'" quoted text in man2tcl.c so that 
this will work.
wildcard_25plain2004-09-26 18:25:22
File Added - 102828: w macro.patch
davygrvyplain2004-10-07 05:24:59
Logged In: YES 
user_id=7549

I'll look these over.
dkfplain2004-10-07 15:14:03
Logged In: YES 
user_id=79902

\w'text' is an *roff escape sequence that is replaced by the
width of "text" in the current font.  With a bit of luck you
can ignore them...?
wildcard_25plain2004-10-07 21:32:59
Logged In: YES 
user_id=596509

The missing \w macro was originally reported in bug 
983146. This patch adds rudimentary support for this 
macro. It doesn't calculate the exact width, but uses 
a 'magic number' (average width of a character) that was 
already provided in the code. This macro is currently only 
used in Tk's bind.n, but by supporting it, it is possible 
to implement a working version of the .AS macro.
wildcard_25plain2004-10-17 13:10:24
Logged In: YES 
user_id=596509

Now duplicated in bug 1034983
Log in (anonymous is fine) to add a comment.

Attachments: