All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Keeping <john@keeping.me.uk>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Prebuilt man pages on Google code
Date: Sun, 16 Dec 2012 16:28:27 +0000	[thread overview]
Message-ID: <20121216162827.GA22351@river.lan> (raw)

While investigating Asciidoc's quoting in this thread [1], I noticed
that my system man pages don't display Asciidoc double quoted text
correctly.

[1] http://article.gmane.org/gmane.comp.version-control.git/211533

For example in git-fast-import(1):

   Here <name> is the person’s display name (for example `Com M Itter'')
   and `<email> is the person’s email address (`cm@example.com''). `LT
   and GT are the literal less-than (\x3c) and greater-than (\x3e)
   symbols.

It turns out that Gentoo installs the man pages from git-core on Google
code, and the error can be seen in the "source" there [2].

[2] http://code.google.com/p/git-manpages/source/browse/man1/git-fast-import.1#379

When I generate man pages here, I get paired quotes (\u201C and \u201D):

   Here <name> is the person’s display name (for example “Com M Itter”)
   and <email> is the person’s email address (“cm@example.com”). LT and
   GT are the literal less-than (\x3c) and greater-than (\x3e) symbol

I can't see any configuration option that could cause this difference,
so I assume it must be caused by some particular tool version on the
machine used to generate these man pages.

If the output is a side-effect of avoiding non-ASCII characters, is is
useful to do something like this (with appropriate Makefile support)?

diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf
index 1273a85..6655ec7 100644
--- a/Documentation/asciidoc.conf
+++ b/Documentation/asciidoc.conf
@@ -89,6 +89,16 @@ template::[header-declarations]
 endif::backend-docbook[]
 endif::doctype-manpage[]
 
+ifdef::doctype-manpage[]
+ifdef::git-asciidoc-man-ascii[]
+[attributes]
+lsquo=&#39;
+rsquo=&#39;
+ldquo=&#34;
+rdquo=&#34;
+endif::git-asciidoc-man-ascii[]
+endif::doctype-manpage[]
+
 ifdef::backend-xhtml11[]
 [attributes]
 git-relative-html-prefix=

             reply	other threads:[~2012-12-16 16:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-16 16:28 John Keeping [this message]
2012-12-18 23:03 ` Prebuilt man pages on Google code Junio C Hamano

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=20121216162827.GA22351@river.lan \
    --to=john@keeping.me.uk \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.