[BACK]Return to TODO CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Annotation of mandoc/TODO, Revision 1.38

1.1       kristaps    1: ************************************************************************
1.37      kristaps    2: * Official mandoc TODO.
1.38    ! schwarze    3: * $Id: TODO,v 1.37 2010/08/14 09:48:56 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.1       kristaps   39: - look at bsd.lv tbl(1)
                     40:   from kristaps@  Fri, 11 Sep 2009 17:10:53 +0200
1.17      schwarze   41:   also look at the mail from Thomas Klausner wiz at NetBSD
                     42:     on Wed, 2 Jun 2010 11:01:29 +0200
1.35      kristaps   43:   joerg@ has patches for this somewhere...
1.1       kristaps   44:
                     45: - look at pages generated from reStructeredText, e.g. devel/mercurial hg(1)
                     46:   These are a weird mixture of man(7) and custom autogenerated low-level
                     47:   roff stuff.  Figure out to what extent we can cope.
                     48:   noted by stsp@  Sat, 24 Apr 2010 09:17:55 +0200
                     49:   reminded by nicm@  Mon, 3 May 2010 09:52:41 +0100
                     50:
1.10      kristaps   51: - implement blank `Bl -column', such as
                     52:   .Bl -column
                     53:   .It foo Ta bar
                     54:   .El
1.11      kristaps   55:
                     56: - explicitly disallow nested `Bl -column', which would clobber internal
                     57:   flags defined for struct mdoc_macro
1.12      kristaps   58:
                     59: - set a meaningful default if no `Bl' list type is assigned
1.13      kristaps   60:
                     61: - have a blank `It' head for `Bl -tag' not puke
1.20      kristaps   62:
                     63: - prohibit `Nm' from having non-text HEAD children
                     64:   (e.g., NetBSD mDNSShared/dns-sd.1)
                     65:   (mdoc_html.c and mdoc_term.c `Nm' handlers can be slightly simplified)
1.36      kristaps   66:
                     67: - allow `Qq', `Dq', `Sq', `Aq', `Bq' to have 0 arguments
                     68:   noted by Alex Kozlov 08/06/10 23:05
1.10      kristaps   69:
1.1       kristaps   70: ************************************************************************
                     71: * formatting issues: ugly output
                     72: ************************************************************************
1.33      schwarze   73:
1.28      schwarze   74: - perl(1) SYNOPSIS looks bad; reported by deraadt@
1.29      kristaps   75:   1) man(7) seems to need SYNOPSIS .Nm blocks, too
1.1       kristaps   76:
                     77: - empty phrases in .Bl column produce too few blanks
                     78:   try e.g. .Bl -column It Ta Ta
                     79:   reported by millert Fri, 02 Apr 2010 16:13:46 -0400
1.35      kristaps   80:
                     81: - %A doesn't put an "and" before the final author name.
1.1       kristaps   82:
                     83: ************************************************************************
                     84: * formatting issues: gratuitious differences
                     85: ************************************************************************
                     86:
1.38    ! schwarze   87: - .%T should be quoted, not underlined, when .%J is also present,
        !            88:   to better distinguish the contents of .%T and .%J,
        !            89:   see for example OpenBSD cat(1)
        !            90:
        !            91: - .It ${name Ns [ selector ] Ns }
        !            92:   should be "${name[selector]}" not "${name [selector]}"
        !            93:   This is parsed as
        !            94:   text("${name") text("[") Ns() text(selector)...
        !            95:   Opening punctuation should not fall out of .Ns.
        !            96:   see for example OpenBSD csh(1)
        !            97:
        !            98: - .%A should append the last author with " and " (if there are two)
        !            99:   or ", and " (if there are more), not ", "
        !           100:   see for example OpenBSD csh(1)
        !           101:
        !           102: - In .Bl -bullet, the groff bullet is "+\b+\bo\bo", the mandoc bullet
        !           103:   is just "o\bo".
        !           104:   see for example OpenBSD ksh(1)
        !           105:
        !           106: - .No text No ) is "text )", not "text)"
        !           107:   see the terrible example
        !           108:     case word in [[(]  pattern [| pattern] ... ) list ;; ] ... esac
        !           109:   in OpenBSD ksh(1)
        !           110:
        !           111: - .Sm should *not* produce as a blank line in .Bd -literal
        !           112:   see for example "Brace expansion" in OpenBSD ksh(1)
        !           113:
        !           114: - The characters "|" and "\*(Ba" should never be bold,
        !           115:   not even in the middle of a word, e.g. ".Cm b\*(Bac" in
        !           116:   "mknod [-m mode] name b|c major minor"
        !           117:   in OpenBSD ksh(1)
        !           118:
        !           119: - A bogus .Pp between two .It must not produce a double blank line,
        !           120:   see between -R and -r in OpenBSD rm(1).
1.1       kristaps  121:
1.9       kristaps  122: ************************************************************************
                    123: * performance issues
                    124: ************************************************************************
                    125:
                    126: Several areas can be cleaned up to make mandoc even faster.  These are
                    127:
                    128: - improve hashing mechanism for macros (quite important: performance)
                    129:
                    130: - improve hashing mechanism for characters (not as important)
1.23      kristaps  131:
1.37      kristaps  132: - the PDF file is HUGE: this can be reduced by using relative offsets
                    133:
1.23      kristaps  134: ************************************************************************
                    135: * structural issues
                    136: ************************************************************************
1.33      schwarze  137:
                    138: - rendering frontend code can calculate widths only for plain strings,
                    139:   not for strings containing escape sequences.  For example, this
                    140:   hinders calculation of the indent required for .Nm \&[ in text(1).
                    141:   comments from kristaps@  Wed, 21 Jul 2010 23:26:08 +0200
1.38    ! schwarze  142:
        !           143: - another example of the same problem:
        !           144:   .Bl -tag -width "\eD{format}XX" -compact
        !           145:   in OpenBSD ksh(1) gives the wrong width
        !           146:   because "\e" is one character in groff, two in mandoc
        !           147:

CVSweb