public inbox for docbook-tools-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Bill Campbell <bill@celestial.com>
To: docbook-tools-discuss@sourceware.cygnus.com
Subject: Re: docbook-tools-discuss: Re: I'm trying to set up docbook-tools...
Date: Wed, 27 Dec 2000 06:36:00 -0000	[thread overview]
Message-ID: <20000707103717.A10748@kstarr.celestial.com> (raw)
In-Reply-To: <87puoqniw7.fsf@nwalsh.com>

On Fri, Jul 07, 2000 at 09:56:40AM -0400, Norman Walsh wrote:
>/ Bill Campbell <bill@celestial.com> was heard to say:
....
>| Another thing I would really like to see are more tools that convert
>| existing input from ?roff, TeX, and similar markup languages into DocBook
>| SGML, because this would make it much easier for those of us who are fluent
>
>A little more discussion about how to convert from procedural markup
>to structural markup is probably in order, but tools to do this are
>very, very hard to write. This is the problem I call "dragging markup
>up hill".  Look at the troff source for an (old) O'Reilly book (I have :-),
>and you'll find that the same troff markup for "italic" is used for
>all the things that are italic in print. (Quelle surprise). But if you
>want to mark those things up semantically, you have to distinguish
>between at least three or four different kinds of italic things which
>is nearly impossible to do accurately.

I understand the difficulties of conversion programs like this, and the
best one can hope for is to convert what exists (i.e. italic, bold, and
other formatting codes) to their lowest common denominator in DocBook.

On the other hand, I have thousands of pages of documentation that I've
written using the -mm, -ms, and -man macros that I would like to convert
with minimal effort.  If someone else had written mm2db, ms2db, man2db,
then I could learn a lot about DocBook by looking at the output of these
commands.  Furthermore, I find it a lot easier to write documentation
initially using a format suitable for the -mm macros than I do going
straight to DB, primarily because this is what I've been doing for the
better part of twenty years (it's also a lot easier to do simple tables in
tbl format than CAL tables :-).

I'm well on my way to having a working program that handles the ?roff input
that I've been writing for years.  It's based on a program I wrote years
ago that takes ?roff input, parses it for preprocessor directives,
(.TS/.TE, .PS, .PE, etc.), assembles a command line that then invokes the
appropriate preprocessors in the correct order, and passes it off to ?roff.
Currently it handles -mm macros fairly well, and by dbtbl preprocessor at
least gets my fairly simple tables into reasonable shape.  I haven't
tackled the pic, eqn, or grap, preprocessors because I rarely use them
myself.  If there are others out there who would like to work on this
project, I welcome input, help -- even Andrew Tridgell's favorite pizza
(with anchovies).

Bill
--
INTERNET:   bill@Celestial.COM  Bill Campbell; Celestial Systems, Inc.
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``The best we can hope for concerning the people at large is that they be
properly armed.''
        -- Alexander Hamilton, The Federalist Papers at 184-188

  parent reply	other threads:[~2000-12-27  6:36 UTC|newest]

Thread overview: 94+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-27  6:36 Eric S. Raymond
2000-07-04  8:02 ` Eric S. Raymond
2000-12-27  6:36 ` Mark Galassi
2000-07-04  8:05   ` Mark Galassi
2000-12-27  6:36   ` Eric S. Raymond
2000-07-04  8:22     ` Eric S. Raymond
2000-12-27  6:36     ` Norman Walsh
2000-07-07  7:49       ` Norman Walsh
2000-12-27  6:36     ` Mark Galassi
2000-07-04  8:27       ` Mark Galassi
2000-12-27  6:36       ` Eric S. Raymond
2000-07-04  8:45         ` Eric S. Raymond
2000-12-27  6:36     ` Chuck Mead
2000-07-04  8:45       ` Chuck Mead
2000-12-27  6:36 ` Eric Lee Green
2000-07-04 10:25   ` Eric Lee Green
2000-12-27  6:36   ` David C. Mason
2000-07-05  7:41     ` David C. Mason
2000-12-27  6:36   ` Norman Walsh
2000-07-06  9:21     ` Norman Walsh
2000-12-27  6:36     ` Eric S. Raymond
2000-12-27  6:36       ` Mark Galassi
2000-07-06 10:25         ` Mark Galassi
2000-12-27  6:36         ` Eric S. Raymond
2000-07-06 10:37           ` Eric S. Raymond
2000-12-27  6:36           ` Kendall Clark
2000-07-06 10:48             ` Kendall Clark
2000-12-27  6:36             ` Mark Galassi
2000-07-06 10:53               ` Mark Galassi
2000-12-27  6:36               ` Eric Lee Green
2000-07-06 13:38                 ` Eric Lee Green
2000-12-27  6:36                 ` Norman Walsh
2000-12-27  6:36       ` David C. Mason
2000-12-27  6:36         ` Eric Lee Green
2000-07-06 14:22           ` Eric Lee Green
2000-12-27  6:36         ` Eric S. Raymond
2000-07-06 11:59           ` Eric S. Raymond
2000-12-27  6:36           ` David C. Mason
2000-07-06 13:55             ` David C. Mason
2000-12-27  6:36             ` Eric Lee Green
2000-07-06 14:32               ` Eric Lee Green
2000-12-27  6:36             ` Eric S. Raymond
2000-07-06 14:52               ` Eric S. Raymond
2000-12-27  6:36               ` David C. Mason
2000-07-06 15:23                 ` David C. Mason
2000-12-27  6:36                 ` Eric S. Raymond
2000-07-06 15:52                   ` Eric S. Raymond
2000-12-27  6:36                 ` Eric Lee Green
2000-07-06 15:57                   ` Eric Lee Green
2000-12-27  6:36               ` Edward C. Bailey
2000-07-06 16:05                 ` Edward C. Bailey
2000-12-27  6:36                 ` Eric S. Raymond
2000-07-06 16:46                   ` Eric S. Raymond
2000-12-27  6:36                   ` Norman Walsh
2000-07-07  7:49                     ` Norman Walsh
2000-12-27  6:36                     ` Eric S. Raymond
2000-12-27  6:36                       ` Norman Walsh
2000-07-07 14:42                         ` Norman Walsh
2000-12-27  6:36                     ` Mark Galassi
2000-12-27  6:36                     ` Derek Simkowiak
2000-12-27  6:36       ` Crash-course to DocBook Eric Bischoff
2000-12-27  6:36         ` Mark Johnson
2000-12-27  6:36           ` Eric Bischoff
2000-12-27  6:36         ` Peter Toft
2000-12-27  6:36       ` I'm trying to set up docbook-tools Norman Walsh
2000-07-07  7:49         ` Norman Walsh
2000-12-27  6:36     ` docbook-tools-discuss: " Bill Campbell
2000-12-27  6:36       ` Norman Walsh
2000-12-27  6:36         ` Eric S. Raymond
2000-12-27  6:36         ` Edward C. Bailey
2000-12-27  6:36         ` Bill Campbell [this message]
     [not found]     ` <ndw@nwalsh.com>
2000-12-27  6:36       ` richard offer
2000-12-27  6:36         ` Eric Bischoff
2000-12-27  6:36           ` Norman Walsh
2000-07-28 10:44             ` Norman Walsh
2000-12-27  6:36         ` Norman Walsh
2000-07-07  7:49           ` Norman Walsh
2000-12-27  6:36     ` Chuck Dale
2000-12-27  6:36   ` madhu
2000-07-04 22:01     ` madhu
2000-12-27  6:36     ` Sam Roberts
2000-07-05  7:32       ` Sam Roberts
2000-12-27  6:36     ` Eric Lee Green
2000-12-27  6:36       ` Norman Walsh
2000-12-27  6:36       ` Sam Roberts
2000-07-05  7:40         ` Sam Roberts
2000-12-27  6:36         ` Ismael Olea
2000-07-05  9:57           ` Ismael Olea
2000-12-27  6:36           ` Mark Galassi
2000-07-05  9:59             ` Mark Galassi
2000-12-27  6:36   ` Mark Galassi
2000-07-04 11:21     ` Mark Galassi
2000-12-27  6:36     ` Norman Walsh
2000-07-07  7:49       ` Norman Walsh

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=20000707103717.A10748@kstarr.celestial.com \
    --to=bill@celestial.com \
    --cc=docbook-tools-discuss@sourceware.cygnus.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).