discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Thomas Klausner <wiz@NetBSD.org>
To: discuss@mdocml.bsd.lv
Cc: David Holland <dholland@NetBSD.org>
Subject: [dholland@netbsd.org: Re: Extension for more general documents]
Date: Sun, 20 Jul 2014 08:37:53 +0200	[thread overview]
Message-ID: <20140720063753.GC17311@danbala.tuwien.ac.at> (raw)

Some comments from David (who's not subscribed, so I've forwarded his
mail; please cc him on replies).

----- Forwarded message from David Holland <dholland@netbsd.org> -----

let's see if I can post on this list...

On Sat, Jun 14, 2014 at 02:16:00PM +0200, Ingo Schwarze wrote:
 > Thomas Klausner wrote on Fri, Jun 13, 2014 at 10:35:36AM +0200:
 > 
 > > We'd really like to move away the documents in NetBSD's base system
 > > from the groff -ms and -me macro sets to anything else that can be
 > > easily converted to txt, html, and pdf.
 > > 
 > > We already have mandoc in the base system and it supports these output
 > > formats. So it seems to be a good candidate, and mdoc already provides
 > > the formatting options we need (AFAIK).
 > > 
 > > We probably would just need to add a mode to mandoc where it doesn't
 > > insist on a man page header and instead supports some article
 > > information like a title.
 > 
 > Uh, oh.  Indeed i misunderstood this request completely.
 > 
 > So let's look at how the csh document currently looks like,
 > as an example:
 > [snip]
 >
 > I would consider the repeated page headers (USD:4-2  An Introduction
 > to the C shell) useless, we deliberately didn't implement these in
 > mandoc(1).  For ABSTRACT (and other headers), .Sh and .Ss could be
 > used; losing the centering doesn't seem like a grave problem.
 > So what remains is the title and author.  The title could just be
 > provided by Nd, and the author information moved to the end into
 > the AUTHORS section, and no changes to the mdoc(7) language would be
 > required at all.

While I think that would work adequately for some of the documents, it
will not work with others. There are some papers among the documents
that really need to be typeset as papers with proper title and author
headings.

 > In case you don't consider this good enough, what exactly do you
 > think is required, so which changes/options/features would you
 > consider the minimum that would need to be changed in mandoc
 > or added to mandoc?

A way to produce an article title and author block that looks like a
title and author block. I think that's all.

It is not clear at the moment what other typesetting features these
articles might need - many use tbl (but that's not a problem, right?),
and at least one each uses eqn and pic. Some have bibliography and/or
references, and also bottom-of-page footnotes. Also, at least one
contains a context-free grammar that currently comes out pretty
ratty-looking. One also uses little marker tags in the left margin,
but that can probably be edited out.

At least one article contains floating figures; does mandoc handle
those? I'm guessing not. There's also one that wants to have block
headers on subsections, which I think is difficult in -mdoc.

Several documents also have indexes, most of which currently appear to
be broken. It would be nice to repair/extend these but it isn't really
a top priority.

-- 
David A. Holland
dholland@netbsd.org

----- End forwarded message -----
--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

                 reply	other threads:[~2014-07-20  6:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140720063753.GC17311@danbala.tuwien.ac.at \
    --to=wiz@netbsd.org \
    --cc=dholland@NetBSD.org \
    --cc=discuss@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).