Re: [ANNOUNCE] GIT 1.5.3-rc4

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: <ismail@...>, <git@...>
Date: Saturday, August 4, 2007 - 2:11 am

Junio C Hamano wrote:

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.)


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.


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.


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!)


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.


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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ANNOUNCE] GIT 1.5.3-rc4, Junio C Hamano, (Fri Aug 3, 8:28 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Robin Rosenberg, (Sat Aug 4, 9:11 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Julian Phillips, (Sat Aug 4, 9:42 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Ismail , (Fri Aug 3, 8:41 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Junio C Hamano, (Fri Aug 3, 9:30 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Steven Grimm, (Fri Aug 3, 11:49 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Junio C Hamano, (Sat Aug 4, 12:38 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Michael, (Sat Aug 4, 11:19 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Timo Hirvonen, (Sat Aug 4, 6:39 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Johannes Schindelin, (Sat Aug 4, 7:46 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Timo Hirvonen, (Sat Aug 4, 8:51 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sat Aug 4, 3:30 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Steven Grimm, (Sat Aug 4, 2:11 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Johannes Schindelin, (Sat Aug 4, 7:38 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, J. Bruce Fields, (Sat Aug 4, 10:29 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Sam Ravnborg, (Sat Aug 4, 5:12 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Steven Grimm, (Sat Aug 4, 6:55 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sat Aug 4, 8:19 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Linus Torvalds, (Sat Aug 4, 12:59 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sat Aug 4, 1:49 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Jeff King, (Sun Aug 5, 5:42 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sun Aug 5, 5:54 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Jeff King, (Sun Aug 5, 5:59 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sun Aug 5, 6:20 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Jeff King, (Sun Aug 5, 6:22 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sun Aug 5, 6:40 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sun Aug 5, 7:23 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Linus Torvalds, (Sat Aug 4, 3:03 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sat Aug 4, 3:55 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Linus Torvalds, (Sun Aug 5, 12:29 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sun Aug 5, 3:51 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Linus Torvalds, (Sun Aug 5, 1:08 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sun Aug 5, 2:08 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Junio C Hamano, (Sun Aug 5, 7:38 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Mon Aug 6, 1:44 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Miles Bader, (Sun Aug 5, 8:13 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Linus Torvalds, (Sun Aug 5, 3:29 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Bruce Korb, (Sun Aug 5, 5:43 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sun Aug 5, 6:15 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, J. Bruce Fields, (Sun Aug 5, 6:31 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Linus Torvalds, (Sun Aug 5, 2:23 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sun Aug 5, 3:06 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sun Aug 5, 4:32 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Johannes Schindelin, (Sun Aug 5, 2:35 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sun Aug 5, 3:11 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, J. Bruce Fields, (Sat Aug 4, 5:27 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Steven Grimm, (Sat Aug 4, 12:03 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Jeff King, (Sun Aug 5, 5:50 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, David Kastrup, (Sat Aug 4, 12:27 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Johannes Schindelin, (Sat Aug 4, 12:08 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4 , Doug Maxey, (Sat Aug 4, 2:17 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Daniel Barkalow, (Sat Aug 4, 12:57 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Junio C Hamano, (Sat Aug 4, 1:23 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Daniel Barkalow, (Sat Aug 4, 1:52 am)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Ismail , (Fri Aug 3, 9:48 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Junio C Hamano, (Fri Aug 3, 11:13 pm)
Re: [ANNOUNCE] GIT 1.5.3-rc4, Ismail , (Sat Aug 4, 9:26 am)