From: Steven Grimm <koreth@midwinter.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: "Ismail Dönmez" <ismail@pardus.org.tr>, git@vger.kernel.org
Subject: Re: [ANNOUNCE] GIT 1.5.3-rc4
Date: Sat, 04 Aug 2007 14:11:54 +0800 [thread overview]
Message-ID: <46B418AA.4070701@midwinter.com> (raw)
In-Reply-To: <7vfy2zj4nj.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
> If I read you correctly, what you are proposing to offer is a
> clone of asciidoc, perhaps AsciiDoc 7, with only xhtml11 and man
> backends. It is a subset in the sense that you will do only two
> backends, but otherwise is a clone in the sense that you are
> going to implement the input language we use (one thing I
> personally care about while probably other people do not is the
> conditional compilation "ifdef::stalenotes[]" in git.txt).
>
Yes and no. I am not offering to clone *all* of AsciiDoc, just whatever
subset is necessary to format the git documentation. (Of course, having
looked at this very little so far, perhaps that really is all of
AsciiDoc -- but it's certainly not all of xmlto.)
> * You would need to duplicate the AsciiDoc 7 manual and
> maintain it as well; otherwise, when later versions of
> AsciiDoc comes, people who update our documentation will
> refer to asciidoc website to learn the syntax, and find out
> that your dialect does not match what is described there.
>
Actually, I disagree with this. If we were to fork our own document
formatter (or rather "implement" -- "fork" implies starting with the
existing code base) we would explicitly say its input was expected to be
in the "git documentation human-readable text format" rather than "git's
implementation of the AsciiDoc format." Then we could freely tweak
whatever parts of AsciiDoc we're not happy with, and precise
compatibility would be a total non-issue.
> * How much can we really rely on your fork to be kept
> maintained? When we need newer mark-up that is not offered
> by AsciiDoc 7 clone, is it our plan to model that after
> AsciiDoc X (X > 7), or we just come up with an extension of
> our own?
>
My thought would be to come up with our own syntax; that's a logical
result of me not considering this anything but "a formatter whose input
looks suspiciously like AsciiDoc".
While I agree that that's extra work, it also seems to be the case that
(a) git hasn't actually needed new markup very often, and (b) we've
spent far more time dealing with AsciiDoc version-to-version
incompatibilities than it would likely take to implement whatever new
markup we needed.
> * What would happen when xhtml11 goes out of fashion and we
> would want to switch to newer formats?
>
If I do this I'll try to structure the code in such a way that new
formats could be added without huge pain. Will it be as flexible and
configurable as xmlto? Absolutely not, which is kind of the point of the
exercise. Adding a substantially different output format might require
logic changes to the formatter depending on the details, given that the
optimization here will be for speed rather than extreme flexibility.
On the other hand, I don't think that's a short-term enough concern to
be worth worrying too much about; it'll be a long, long time before
XHTML is completely replaced by anything else, just because of its
gargantuan installed base of existing documents. And it's not like we
can't decide to switch to another formatter down the road if we want to.
(Once we all have 64-core machines on our desktops, "make -j64" will
cause AsciiDoc/xmlto to be sufficiently fast!)
> * What to do with the user manual, which formats to docbook
> "book" output?
>
Ah, that's a sticking point, and an answer to my "are there other output
formats?" question. I never pay attention to that file when I'm doing
builds -- forgot it even existed. I'll ask one question first: is that
Docbook output actually necessary, or would people be happy enough just
having the user manual in XHTML?
Assuming we really need a Docbook manual, it's tempting to say, "keep
using AsciiDoc" but then my assertion that we aren't really using
AsciiDoc's input format kind of flies out the window. I wonder if it's
possible to go from one of my proposed script's *output* formats to
Docbook format -- is there software to take well-formed XHTML and turn
it into that format? (Possibly that software is called "xmlto"...) I
think the transformation from .txt to .html is likely to be pretty
lossless, so it should be theoretically possible, anyway.
> It might be more worthwhile to research what other "Text-ish
> lightweight mark-up" systems are availble, and if there is one
> that is more efficient and can go to at least html and man,
> one-time convert our documentation source to that format using
> your Perl magic. The minimum requirements are:
>
> * The source is readable without too much mark-up distraction;
>
> * Can go to roff -man;
>
> * Can go to html.
>
I will look around and see what I can find. You're quite right, better
to use already-existing code than reinvent the wheel.
-Steve
next prev parent reply other threads:[~2007-08-04 6:12 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-04 0:28 [ANNOUNCE] GIT 1.5.3-rc4 Junio C Hamano
2007-08-04 0:41 ` Ismail Dönmez
2007-08-04 1:30 ` Junio C Hamano
2007-08-04 1:48 ` Ismail Dönmez
2007-08-04 3:13 ` Junio C Hamano
2007-08-04 13:26 ` Ismail Dönmez
2007-08-04 3:49 ` Steven Grimm
2007-08-04 4:38 ` Junio C Hamano
2007-08-04 4:57 ` Daniel Barkalow
2007-08-04 5:23 ` Junio C Hamano
2007-08-04 5:52 ` Daniel Barkalow
2007-08-04 6:11 ` Steven Grimm [this message]
2007-08-04 6:17 ` Doug Maxey
2007-08-04 9:12 ` Sam Ravnborg
2007-08-04 10:55 ` Steven Grimm
2007-08-04 12:19 ` David Kastrup
2007-08-04 16:03 ` Steven Grimm
2007-08-04 16:08 ` Johannes Schindelin
2007-08-04 16:27 ` David Kastrup
2007-08-05 9:50 ` Jeff King
2007-08-04 16:59 ` Linus Torvalds
2007-08-04 17:49 ` David Kastrup
2007-08-04 19:03 ` Linus Torvalds
2007-08-04 19:55 ` David Kastrup
2007-08-04 21:27 ` J. Bruce Fields
2007-08-05 4:29 ` Linus Torvalds
2007-08-05 7:51 ` David Kastrup
2007-08-05 17:08 ` Linus Torvalds
2007-08-05 18:08 ` David Kastrup
2007-08-05 18:23 ` Linus Torvalds
2007-08-05 18:35 ` Johannes Schindelin
2007-08-05 19:11 ` David Kastrup
2007-08-05 19:06 ` David Kastrup
2007-08-05 20:32 ` David Kastrup
2007-08-05 19:29 ` Linus Torvalds
2007-08-05 21:43 ` Bruce Korb
2007-08-05 22:15 ` David Kastrup
2007-08-05 22:31 ` J. Bruce Fields
2007-08-08 8:11 ` Man-pages in user manual (was: [ANNOUNCE] GIT 1.5.3-rc4) David Kastrup
2007-08-05 23:38 ` [ANNOUNCE] GIT 1.5.3-rc4 Junio C Hamano
2007-08-06 0:13 ` Miles Bader
2007-08-06 5:44 ` David Kastrup
2007-08-05 9:42 ` Jeff King
2007-08-05 9:54 ` David Kastrup
2007-08-05 9:59 ` Jeff King
2007-08-05 10:20 ` David Kastrup
2007-08-05 10:22 ` Jeff King
2007-08-05 10:40 ` David Kastrup
2007-08-05 11:23 ` David Kastrup
2007-08-04 11:38 ` Johannes Schindelin
2007-08-04 14:29 ` J. Bruce Fields
2007-08-04 7:30 ` David Kastrup
2007-08-04 10:39 ` Timo Hirvonen
2007-08-04 11:46 ` Johannes Schindelin
2007-08-04 12:51 ` Timo Hirvonen
2007-08-04 15:19 ` Michael
2007-08-04 13:11 ` Robin Rosenberg
2007-08-04 13:42 ` Julian Phillips
2007-08-07 12:11 ` David Kågedal
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=46B418AA.4070701@midwinter.com \
--to=koreth@midwinter.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=ismail@pardus.org.tr \
/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).