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
| David Newall | Re: Slow DOWN, please!!! |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Fernando Luis | [PATCH] affinity is not defined in non-smp kernels - x86_64 |
git: | |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 28/37] dccp: Integration of dynamic feature activation - part 3 (client side) |
| Jean-Louis Dupond | tg3 driver not advertising 1000mbit |
