Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-07-07
17:57 • Closed ticket [983146ffff]: man2help2.tcl cannot fully handle bind.n plus 6 ... artifact: 8d6a02f1cc user: dkf
2004-07-06
16:44 • Add attachment bug983146.diff to ticket [983146ffff] artifact: 7cda38ffdb user: mistachkin
16:44 • Ticket [983146ffff] man2help2.tcl cannot fully handle bind.n status still Op... artifact: a8c57c278c user: mistachkin
16:43 • Ticket [983146ffff]: 4 changes artifact: f2357d331d user: mistachkin
16:02 • Ticket [983146ffff]: 4 changes artifact: 49915898c9 user: mistachkin
15:39 • Ticket [983146ffff]: 4 changes artifact: 53508e15a4 user: mistachkin
15:36 • Ticket [983146ffff]: 4 changes artifact: b96fc3f139 user: mistachkin
13:02 • Ticket [983146ffff]: 4 changes artifact: dc11997eff user: mistachkin
2004-07-01
16:01 • Ticket [983146ffff]: 1 change artifact: 3b2f71cfb5 user: dkf
15:43 • Ticket [983146ffff]: 4 changes artifact: f685e8f922 user: mistachkin
15:38 • Open ticket [983146ffff]. artifact: 7d5a571233 user: mistachkin
15:23 • Ticket [983146ffff]: 4 changes artifact: 4c4f06e7f0 user: mistachkin
15:10 • Closed ticket [983146ffff]. artifact: 8850dbfbc8 user: dkf
02:17 • New ticket [983146ffff]. artifact: 75db715e42 user: mistachkin

man2help2.tcl cannot fully handle bind.n

Closed / Fixed983146ffffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-07-01 02:17:01
-------

tcl/doc/CrtObjCmd.3
tcl/doc/Namespace.3

There are duplicate topics:

Tcl_GetCommandFullName, Tcl_GetCommandFromObj

Not sure how to fix this.

-------

tcl/doc/Limit.3, line 143:

been exceeded) on an interpreter, call 
\fTcl_LimitTypeEnabled\fR with

should be (missing the B after the first \f):

been exceeded) on an interpreter, call 
\fBTcl_LimitTypeEnabled\fR with

-------

tcl/doc/load.n, line 141:

    printf("called with %d arguments\n", objc);

The error "Unknown character: \n" is reported.

-------

tk/doc/bind.n, lines 53, 56, 59, and 62:

.IP \(bu 3

The error "Unknown sequence: \(" is reported.

tk/doc/bind.n, line 162:

bad distance "\w'ButtonPress,"
bad distance "Button\0\0\0'u"
bad distance "+\w'KeyPress,"
bad distance "Key\0\0\0'u"

-------

tk/doc/pack.n, lines 266 and 267:

label .l \-text "Left\nHand\nSide"
label .r \-text "Right\nHand\nSide"

The error "Unknown character: \n" is reported 4 times.

-------

tk/doc/place.n, line 243:

label .l \-text "In the\nMiddle!" \-bg black \-fg white

The error "Unknown character: \n" is reported.

-------
dkfplain2004-07-01 15:10:48
Logged In: YES 
user_id=79902

Thanks for reporting these.  Fixed in HEAD.

BTW, the faults you reported for the bind manpage are not
faults in the manpage formatting.  They're faults in the
software that you are using to analyse the manpage.  In all
*roff versions I can find documented, \(bu is expanded to
the current system bullet character (which in turn depends
on all sorts of factors) and \w'...'u is a sequence for
measuring some text instead of hard-coding a (probably
wrong) width.  :^)
mistachkinplain2004-07-01 15:23:28
Logged In: YES 
user_id=113501

bind.n

The "Unknown sequence: \(" error and "bad distance" errors 
come from the formattedText and getTwips procs 
in "tools/man2help2.tcl".
mistachkin Open ticket [983146ffff]. [History diff]2004-07-01 15:38:44
mistachkinplain2004-07-01 15:43:42
Logged In: YES 
user_id=113501

It appears that the "\(bu" construct is handled, but not when 
it appears after an ".IP" ?

The "bad distance" stems from the fact that getTwips has no 
capability to dynamically calculate the width of a string (it 
currently knows nothing about "\w").
dkf Ticket [983146ffff]: 1 change [History diff]2004-07-01 16:01:23
mistachkinplain2004-07-06 13:02:37
Logged In: YES 
user_id=113501


Unless I'm reading it wrong, the man2html tools don't support 
the dynamic width calculation either (see setTabs 
in "tools/man2html2.tcl").
mistachkinplain2004-07-06 15:36:23
File Added - 93006: bug983146.diff
mistachkinplain2004-07-06 15:39:11
File Deleted - 93006:
mistachkinplain2004-07-06 16:02:02
File Added - 93007: bug983146.diff
mistachkinplain2004-07-06 16:43:19
File Deleted - 93007:
mistachkinplain2004-07-06 16:44:20
File Added - 93009: bug983146.diff

Logged In: YES 
user_id=113501

Ok, this patch fixes both remaining problems to the best of 
my ability and knowledge.

Please review and commit to HEAD (and maybe 8.4?) when 
satisfied.
dkfplain2004-07-07 17:57:13
Logged In: YES 
user_id=79902

OK, should be fixed now.

(Wow, this code is crufty...)
Log in (anonymous is fine) to add a comment.

Attachments: