From: Junio C Hamano <junkio@cox.net>
To: Eric Blake <ebb9@byu.net>
Cc: Jari Aalto <jari.aalto@cante.net>, git@vger.kernel.org
Subject: Re: [PATCH] Makefile: use --unsafe option under Cygwin with asciidoc
Date: Sat, 05 May 2007 02:06:06 -0700 [thread overview]
Message-ID: <7v3b2bk5c1.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <7v7irnlmgo.fsf@assigned-by-dhcp.cox.net> (Junio C. Hamano's message of "Sat, 05 May 2007 01:10:47 -0700")
Junio C Hamano <junkio@cox.net> writes:
> I haven't dug into the list archive article I quoted yet (the
> pointer is also found in TODO file in 'todo' branch) and haven't
> tried the backward compatibility pragma, but you can clearly see
> that the above differences are simply unacceptable. They are
> not insignificant cosmetic differences -- the most important
> techinical details are being mangled, rendering the
> documentation useless. We _do_ need the backward compatiblity
> enabled in asciidoc.conf or somewhere.
For AsciiDoc 8, this is minimally necessary. I vaguely recalled
that this needs to be conditional on the actual version of
asciidoc as AsciiDoc 7 did not like it, but I haven't tried it
recently.
-- >8 snip >8 --
diff --git a/Documentation/Makefile b/Documentation/Makefile
index ad87736..28c33f0 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -32,7 +32,7 @@ man1dir=$(mandir)/man1
man7dir=$(mandir)/man7
# DESTDIR=
-ASCIIDOC=asciidoc
+ASCIIDOC = asciidoc -a asciidoc7compatible
ASCIIDOC_EXTRA =
INSTALL?=install
DOC_REF = origin/man
-- 8< snap 8< --
This seems to make the build-product from asciidoc 8.2.1 mostly
equivalent to asciidoc 7, but there still is one troubling
difference I spotted.
--- 7 2007-05-05 01:56:18.000000000 -0700
+++ 8 2007-05-05 01:56:29.000000000 -0700
@@ -2,6 +2,6 @@
A suffix \fI~<n>\fR to a revision parameter means the
commit object that is the <n>th generation grand\-parent
of the named commit object, following only the first parent.
-I.e. rev~3 is equivalent to rev^^^ which is equivalent to
-rev^1^1^1. See below for a illustration of the usage of this form.
+I.e. rev~3 is equivalent to rev^ which is equivalent to
+rev11^1. See below for a illustration of the usage of this form.
.TP 3n
Again, this is an unacceptable breakage that makes this part of the
documentation useless. However, this part of the documentation
uses our own "[attributes] caret=^" to work around the bug/misfeature
in AsciiDoc 7, so maybe this could be (and needs to be) worked
around by conditionally adjusting that macro to the version of
AsciiDoc.
I do not think we can say the current documentation set can be
formatted sanely with AsciiDoc 8. Although I can say with
reasonable comfort level that the output with AsciiDoc 7 has
been proofread by enough people already, I cannot say the same
for AsciiDoc 8.
Somebody needs to do some homework to devise a compatibility
study between two versions, as we would eventually need to
support both versions (iow, make our documentation set
formattable with either version) at the same time.
While "use --unsafe" (I did not trigger any unsafe_error(), so
it may not be an issue) and giving "-a asciidoc7compatible" at
the command line might be one part of that compatibility study,
I do not think that is the end of it. Proofreading the output
and making sure the technical details are not lost in formatting
errors is the most important part.
prev parent reply other threads:[~2007-05-05 9:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-02 11:49 [PATCH] Makefile: use --unsafe option under Cygwin with asciidoc Jari Aalto
2007-05-02 13:06 ` Eric Blake
2007-05-02 15:32 ` Jari Aalto
2007-05-02 16:56 ` Junio C Hamano
2007-05-05 8:10 ` Junio C Hamano
2007-05-05 9:06 ` Junio C Hamano [this message]
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=7v3b2bk5c1.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=ebb9@byu.net \
--cc=git@vger.kernel.org \
--cc=jari.aalto@cante.net \
/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).