Annotation of mandoc/TODO, Revision 1.60
1.1 kristaps 1: ************************************************************************
1.37 kristaps 2: * Official mandoc TODO.
1.60 ! schwarze 3: * $Id: TODO,v 1.59 2010/10/10 09:59:48 kristaps Exp $
1.27 kristaps 4: ************************************************************************
5:
6: ************************************************************************
1.1 kristaps 7: * missing features
8: ************************************************************************
9:
10: - explicit blocks with missing end macro should be implicitely closed
11: at the end of the enclosing block, e.g. .Bl It (El) Sh
12: reminded by stsp@ in net/pptp pptp.8 Fri, 23 Apr 2010 20:32:39 +0200
13:
1.18 schwarze 14: - fix bad block nesting involving multiple identical explicit blocks
15: see the OpenBSD mdoc_macro.c 1.47 commit message
16:
1.1 kristaps 17: - .Bl -column .Xo support is missing
18: ultimate goal:
19: restore .Xr and .Dv to
20: lib/libc/compat-43/sigvec.3
21: lib/libc/gen/signal.3
22: lib/libc/sys/sigaction.2
23:
1.28 schwarze 24: - edge case: decide how to deal with blk_full bad nesting, e.g.
25: .Sh .Nm .Bk .Nm .Ek .Sh found by jmc@ in ssh-keygen(1)
26: from jmc@ Wed, 14 Jul 2010 18:10:32 +0100
27:
28: - auto-Bk in the SYNOPSIS
29: patch from kristaps@ Fri, 16 Jul 2010 14:51:24 +0200
30: to be revisited after OpenBSD 4.8 tree unlock
31:
1.1 kristaps 32: - implement \\
33: in plain text, identical to \e
34: as a macro argument, identical to \ i.e. escaping the next character
35: We do not have macro definitions yet; if we implement them,
36: \\ must behave in a macro def like in a macro argument,
37: and when using the macro, it must expand yet again.
1.22 schwarze 38:
1.60 ! schwarze 39: - implement basic non-parametric .de to support e.g. sox(1)
! 40: .de SP
! 41: .if t .sp .5
! 42: .if n .sp
! 43: ..
! 44: .de EX
! 45: .SP
! 46: .nf
! 47: .ft CW
! 48: ..
! 49: .de EE
! 50: .ft R
! 51: .SP
! 52: .fi
! 53: ..
! 54: reported by naddy@ Sat, 16 Oct 2010 23:51:57 +0200
! 55:
! 56: - port OpenBSD tbl integration bsd.lv, probably cleaning it up
1.1 kristaps 57:
58: - look at pages generated from reStructeredText, e.g. devel/mercurial hg(1)
59: These are a weird mixture of man(7) and custom autogenerated low-level
60: roff stuff. Figure out to what extent we can cope.
61: noted by stsp@ Sat, 24 Apr 2010 09:17:55 +0200
62: reminded by nicm@ Mon, 3 May 2010 09:52:41 +0100
63:
1.10 kristaps 64: - implement blank `Bl -column', such as
65: .Bl -column
66: .It foo Ta bar
67: .El
1.11 kristaps 68:
69: - explicitly disallow nested `Bl -column', which would clobber internal
70: flags defined for struct mdoc_macro
1.42 schwarze 71:
72: - inside `.Bl -column' phrases, punctuation is handled like normal
73: text, e.g. `.Bl -column .It Fl x . Ta ...' should give "-x -."
74:
75: - inside `.Bl -column' phrases, TERMP_IGNDELIM handling by `Pf'
76: is not safe, e.g. `.Bl -column .It Pf a b .' gives "ab."
77: but should give "ab ."
1.12 kristaps 78:
79: - set a meaningful default if no `Bl' list type is assigned
1.13 kristaps 80:
81: - have a blank `It' head for `Bl -tag' not puke
1.20 kristaps 82:
83: - prohibit `Nm' from having non-text HEAD children
84: (e.g., NetBSD mDNSShared/dns-sd.1)
85: (mdoc_html.c and mdoc_term.c `Nm' handlers can be slightly simplified)
1.36 kristaps 86:
87: - allow `Qq', `Dq', `Sq', `Aq', `Bq' to have 0 arguments
88: noted by Alex Kozlov 08/06/10 23:05
1.57 kristaps 89:
90: - Have `Sh', `It', `Ss' and others complain if `Pp' is invoked prior to
91: close (in the post validation) or prior to open (pre). This noted by
92: jmc@ a thousand years ago.
1.41 kristaps 93:
1.1 kristaps 94: ************************************************************************
95: * formatting issues: ugly output
96: ************************************************************************
1.33 schwarze 97:
1.28 schwarze 98: - perl(1) SYNOPSIS looks bad; reported by deraadt@
1.29 kristaps 99: 1) man(7) seems to need SYNOPSIS .Nm blocks, too
1.1 kristaps 100:
1.39 schwarze 101: - In .Bl -column,
102: .It Em Authentication<tab>Key Length
103: ought to render "Key Length" with emphasis, too,
104: see OpenBSD iked.conf(5).
105:
1.1 kristaps 106: - empty phrases in .Bl column produce too few blanks
107: try e.g. .Bl -column It Ta Ta
108: reported by millert Fri, 02 Apr 2010 16:13:46 -0400
1.48 schwarze 109:
110: - in enclosures, mandoc sometimes fancies a bogus end of sentence
111: reminded by jmc@ Thu, 23 Sep 2010 18:13:39 +0059
1.35 kristaps 112:
1.1 kristaps 113: ************************************************************************
114: * formatting issues: gratuitious differences
115: ************************************************************************
116:
1.38 schwarze 117: - .%T should be quoted, not underlined, when .%J is also present,
118: to better distinguish the contents of .%T and .%J,
119: see for example OpenBSD cat(1)
120:
121: - In .Bl -bullet, the groff bullet is "+\b+\bo\bo", the mandoc bullet
122: is just "o\bo".
123: see for example OpenBSD ksh(1)
124:
125: - The characters "|" and "\*(Ba" should never be bold,
126: not even in the middle of a word, e.g. ".Cm b\*(Bac" in
127: "mknod [-m mode] name b|c major minor"
128: in OpenBSD ksh(1)
129:
130: - A bogus .Pp between two .It must not produce a double blank line,
1.39 schwarze 131: see between -R and -r in OpenBSD rm(1), before "update" in mount(8),
132: or in DIAGNOSTICS in init(8).
133:
134: - .Bd -literal and .Bd -unfilled are *not* identical.
135: In -literal, tabs are 8 spaces.
136: In -unfilled, tabs are 5 spaces, just like in -filled and -ragged.
137: See the CCDF_* display in OpenBSD ccdconfig(8).
138:
139: - .Nx 1.0a
140: should be "NetBSD 1.0A", not "NetBSD 1.0a",
141: see OpenBSD ccdconfig(8).
142:
143: - In .Bl -tag, if a tag exceeds the right margin and must be continued
144: on the next line, it must be indented by -width, not width+1;
145: see "rule block|pass" in OpenBSD ifconfig(8).
1.56 schwarze 146:
147: - The \& zero-width character counts as output.
148: That is, when it is alone on a line between two .Pp,
149: we want three blank lines, not two as in mandoc.
1.1 kristaps 150:
1.9 kristaps 151: ************************************************************************
152: * performance issues
153: ************************************************************************
154:
155: Several areas can be cleaned up to make mandoc even faster. These are
156:
157: - improve hashing mechanism for macros (quite important: performance)
158:
159: - improve hashing mechanism for characters (not as important)
1.23 kristaps 160:
1.37 kristaps 161: - the PDF file is HUGE: this can be reduced by using relative offsets
162:
1.23 kristaps 163: ************************************************************************
164: * structural issues
165: ************************************************************************
CVSweb