From f50ae72ec3417cae55dd4e085991c01af9fdc5f1 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Wed, 11 Feb 2009 20:37:59 +0100 Subject: Initial commit --- docutil/HTML_COPYRIGHT | 16 ++++++ docutil/MAN_COPYRIGHT | 16 ++++++ docutil/patch-db2latex-duplicate-template-bug | 77 +++++++++++++++++++++++++++ docutil/patch-db2latex-nested-param-bug | 18 +++++++ docutil/patch-db2latex-xsltproc-title-bug | 29 ++++++++++ 5 files changed, 156 insertions(+) create mode 100644 docutil/HTML_COPYRIGHT create mode 100644 docutil/MAN_COPYRIGHT create mode 100644 docutil/patch-db2latex-duplicate-template-bug create mode 100644 docutil/patch-db2latex-nested-param-bug create mode 100644 docutil/patch-db2latex-xsltproc-title-bug (limited to 'docutil') diff --git a/docutil/HTML_COPYRIGHT b/docutil/HTML_COPYRIGHT new file mode 100644 index 0000000..61ae4b3 --- /dev/null +++ b/docutil/HTML_COPYRIGHT @@ -0,0 +1,16 @@ + diff --git a/docutil/MAN_COPYRIGHT b/docutil/MAN_COPYRIGHT new file mode 100644 index 0000000..fe5f81b --- /dev/null +++ b/docutil/MAN_COPYRIGHT @@ -0,0 +1,16 @@ +.\" +.\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") +.\" Copyright (C) 2000, 2001 Internet Software Consortium. +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose with or without fee is hereby granted, provided that the above +.\" copyright notice and this permission notice appear in all copies. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH +.\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +.\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, +.\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +.\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +.\" PERFORMANCE OF THIS SOFTWARE. +.\" diff --git a/docutil/patch-db2latex-duplicate-template-bug b/docutil/patch-db2latex-duplicate-template-bug new file mode 100644 index 0000000..75100e1 --- /dev/null +++ b/docutil/patch-db2latex-duplicate-template-bug @@ -0,0 +1,77 @@ +;; $Id: patch-db2latex-duplicate-template-bug,v 1.2 2007/01/12 22:24:20 sra Exp $ +;; +;; This is a patch to work around a known bug in db2latex. Apparently +;; xsltproc's error checking got a lot better since the authors of +;; db2latex last tested this, so a clear language violation that +;; xsltproc used to ignore now prevents xsltproc from working with +;; db2latex. +;; +;; On FreeBSD you can simply drop this patch into the directory +;; /usr/ports/textproc/db2latex/files/ and the ports system should +;; take it from there. I've sent this patch off to the port +;; maintainer but have not yet heard anything back. +;; +;; I don't really know whther this is the "right" fix, but it seems to +;; work, and I'm pretty sure that the code this patch deletes does not +;; work as it stands, so at worst the result after applying this patch +;; should be no worse than the result without this patch. +;; +;; YMMV. If this patch breaks, you get to keep both pieces. + +Index: xsl/qandaset.mod.xsl +--- xsl/qandaset.mod.xsl.~1~ Sun Jan 4 08:22:27 2004 ++++ xsl/qandaset.mod.xsl Fri Apr 1 22:30:20 2005 +@@ -363,53 +363,4 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- question +- answer +- qandadiv +- qandaset +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + diff --git a/docutil/patch-db2latex-nested-param-bug b/docutil/patch-db2latex-nested-param-bug new file mode 100644 index 0000000..d73f19b --- /dev/null +++ b/docutil/patch-db2latex-nested-param-bug @@ -0,0 +1,18 @@ +;; $Id: patch-db2latex-nested-param-bug,v 1.1 2007/02/06 20:58:13 sra Exp $ +;; +;; Latest version of xsltproc doesn't like . + +--- xsl/lists.mod.xsl.~1~ Sat Jan 31 06:53:50 2004 ++++ xsl/lists.mod.xsl Tue Feb 6 15:41:12 2007 +@@ -269,10 +269,8 @@ + + + +- + +- +- ++ + + + diff --git a/docutil/patch-db2latex-xsltproc-title-bug b/docutil/patch-db2latex-xsltproc-title-bug new file mode 100644 index 0000000..88d6c24 --- /dev/null +++ b/docutil/patch-db2latex-xsltproc-title-bug @@ -0,0 +1,29 @@ +;; $Id: patch-db2latex-xsltproc-title-bug,v 1.2 2007/01/12 22:24:20 sra Exp $ +;; +;; This patches around a problem that I don't completely understand, +;; and which may in fact be an xsltproc bug rather than a db2latex +;; bug. Symptom is that the generated \title{} contains not only the +;; book title but also the concatenation of all the chapter titles. +;; This makes no sense, it doesn't happen with saxon, it doesn't +;; happen with all versions of xsltproc, and attempts to trace this +;; with --verbose and leave me more wondering whether +;; it's me or xsltproc that doesn't understand the XSLT pattern +;; matching rules. +;; +;; All that said, the change below prevents the bad behavior and +;; should be completely harmless, so it will do as a workaround. + +Index: xsl/book-article.mod.xsl +--- xsl/book-article.mod.xsl.~1~ Tue May 3 21:51:18 2005 ++++ xsl/book-article.mod.xsl Sat May 7 09:00:26 2005 +@@ -87,8 +87,8 @@ + + + \title{ +- +- ++ ++ + } + + \author{ -- cgit