{"thread":{"id":"3989","subject":"[PATCH] Properly render asciidoc \"callouts\" in git man pages.","startedAt":"2006-04-28T13:15:06Z","lastAt":"2006-04-28T13:15:06Z","messageCount":1,"participants":["Sean Estabrooks"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"19227","messageId":"BAYC1-PASMTP030E0E35B1984789C397EEAEB20@CEZ.ICE","threadId":"3989","inReplyTo":"1146230106696-git-send-email-seanlkml@sympatico.ca","subject":"[PATCH] Properly render asciidoc \"callouts\" in git man pages.","fromName":"Sean Estabrooks","fromEmail":"seanlkml@sympatico.ca","sentAt":"2006-04-28T13:15:06Z","receivedAt":"2006-04-28T13:15:06Z","isPatch":true,"sender":{"key":"seanlkml@sympatico.ca","avatar":"https://gravatar.com/avatar/f92923f54fc08c401fc59b71829d4b89e9b8087fbba45ff87c82e6a83aee02ae?d=mp&s=160"},"body":"Adds an xsl fragment to render docbook callouts when\nconverting to man page format.  Update the Makefile\nto have \"xmlto\" use it when generating man pages.\n\nSigned-off-by: Sean Estabrooks <seanlkml@sympatico.ca>\n\n\n---\n\n Documentation/Makefile     |    2 +-\n Documentation/callouts.xsl |   16 ++++++++++++++++\n 2 files changed, 17 insertions(+), 1 deletions(-)\n create mode 100644 Documentation/callouts.xsl\n\n82ee912fb2a58194cac3d65b15abc98190a3359a\ndiff --git a/Documentation/Makefile b/Documentation/Makefile\nindex f4cbf7e..c1af22c 100644\n--- a/Documentation/Makefile\n+++ b/Documentation/Makefile\n@@ -79,7 +79,7 @@ clean:\n \tasciidoc -b xhtml11 -d manpage -f asciidoc.conf $<\n \n %.1 %.7 : %.xml\n-\txmlto man $<\n+\txmlto -m callouts.xsl man $<\n \n %.xml : %.txt\n \tasciidoc -b docbook -d manpage -f asciidoc.conf $<\ndiff --git a/Documentation/callouts.xsl b/Documentation/callouts.xsl\nnew file mode 100644\nindex 0000000..ad03755\n--- /dev/null\n+++ b/Documentation/callouts.xsl\n@@ -0,0 +1,16 @@\n+<!-- callout.xsl: converts asciidoc callouts to man page format -->\n+<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">\n+<xsl:template match=\"co\">\n+\t<xsl:value-of select=\"concat('\\fB(',substring-after(@id,'-'),')\\fR')\"/>\n+</xsl:template>\n+<xsl:template match=\"calloutlist\">\n+\t<xsl:text>.sp&#10;</xsl:text>\n+\t<xsl:apply-templates/>\n+\t<xsl:text>&#10;</xsl:text>\n+</xsl:template>\n+<xsl:template match=\"callout\">\n+\t<xsl:value-of select=\"concat('\\fB',substring-after(@arearefs,'-'),'. \\fR')\"/>\n+\t<xsl:apply-templates/>\n+\t<xsl:text>.br&#10;</xsl:text>\n+</xsl:template>\n+</xsl:stylesheet>\n-- \n1.3.1.gc672\n"}]}