reassign 507673 docbook-xsl
tags 507673 patch
retitle 507673 Shouldn't parse ' to \'
thanks

Em Qua, 2008-12-03 às 21:32 +0000, Colin Watson escreveu:
> reassign 507673 git-core
> thanks
> 
> On Wed, Dec 03, 2008 at 12:35:12PM -0200, Marco Túlio Gontijo e Silva wrote:
> > Some man pages, such as the one from git-filter-branch, uses \' trying to
> > express ', but it is shown like ´ , which is very confusing when it's
> > expressing a bash command.  I don't know if this is a bug in this package 
> > or in
> > git, but it seems for me that \' should be parsed to '.
> 
> Not according to groff(7), which says that \' produces:
> 
>   The acute accent ´; same as \(aa.
> 
> If you want an apostrophe or a single closing quote, use plain '; if you
> want a straight ' as one might use at a Unix shell prompt, use \(aq. You
> can use the standard facilities to define these to other names if you
> find that more convenient.
> 
> IIRC git's manual pages are autogenerated? If so, it should be
> relatively straightforward to fix the processor.

Yes, they are.  The problem is the xsl escaping all apostrophes.

-- 
marcot
http://marcot.iaaeee.org/

diff -ruN docbook-xsl-1.73.2.dfsg.1.orig/manpages/other.xsl docbook-xsl-1.73.2.dfsg.1/manpages/other.xsl
--- docbook-xsl-1.73.2.dfsg.1.orig/manpages/other.xsl	2007-06-23 06:07:45.000000000 -0300
+++ docbook-xsl-1.73.2.dfsg.1/manpages/other.xsl	2008-12-09 16:27:16.000000000 -0200
@@ -243,15 +243,6 @@
   </xsl:call-template>
 </xsl:template>
 
-<xsl:template name="escape.apostrophe">
-  <xsl:param name="content"/>
-  <xsl:call-template name="string.subst">
-    <xsl:with-param name="string" select="$content"/>
-    <xsl:with-param name="target">'</xsl:with-param>
-    <xsl:with-param name="replacement">\'</xsl:with-param>
-  </xsl:call-template>
-</xsl:template>
-
 <xsl:template name="convert.nobreak-space">
   <xsl:param name="content"/>
   <xsl:call-template name="string.subst">

Reply via email to