[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#283949: marked as done (allow generation of plain text)



Your message dated Fri, 14 Oct 2005 23:24:14 +0200
with message-id <200510142324.14967.aragorn@tiscali.nl>
and subject line Closing two d-i-manual bug reports
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 2 Dec 2004 14:16:44 +0000
>From frank@lichtenheld.de Thu Dec 02 06:16:44 2004
Return-path: <frank@lichtenheld.de>
Received: from mail.lenk.info [217.160.169.191] (Debian-exim)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CZrlD-0001Xi-00; Thu, 02 Dec 2004 06:16:43 -0800
Received: from mail.sorgfalt.net ([217.160.134.107])
	by mail.lenk.info with esmtp 
	(Cipher TLS-1.0:RSA_ARCFOUR_SHA:16) (Exim 4.34 1)
	id 1CZrtL-0005TX-Qj; Thu, 02 Dec 2004 15:25:07 +0100
Received: from p54808411.dip.t-dialin.net ([84.128.132.17] helo=feynman.djpig.de)
	by mail.sorgfalt.net with asmtp 
	(Cipher TLS-1.0:RSA_ARCFOUR_SHA:16) (Exim 4.34 1)
	id 1CZroA-0006dw-Hx; Thu, 02 Dec 2004 15:19:49 +0100
Received: from djpig by feynman.djpig.de with local (Exim 4.34)
	id 1CZrkX-0001uR-Vn; Thu, 02 Dec 2004 15:16:02 +0100
Content-Type: multipart/mixed; boundary="===============1773008932=="
MIME-Version: 1.0
From: Frank Lichtenheld <djpig@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: allow generation of plain text
X-Mailer: reportbug 2.63
Date: Thu, 02 Dec 2004 15:16:01 +0100
Message-Id: <E1CZrkX-0001uR-Vn@feynman.djpig.de>
Sender: Frank Lichtenheld <frank@lichtenheld.de>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	RCVD_IN_DSBL autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

This is a multi-part MIME message sent by reportbug.

--===============1773008932==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: debian-installer-manual
Severity: normal
Tags: patch

While investigating how to incorporate the install manual into
the websites I saw there is no plain text output yet. I've prepared
a little patch to allow this (xml->single html->text).

The method of using w3m -dump still has some drawbacks. The most
important one is that most of the URLs are invisible. None of the
textmode browers I tested seems to have an option to change this
behaviour, though (sadly enough, the text export of Firefox does this
one good, but has its errors, too. Beside the fact we can't use it
in batch mode ;) Still working on this.

Gruesse,
	Frank Lichtenheld

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-k7-smp
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8

--===============1773008932==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="txt-build.patch"

Index: buildone.sh
===================================================================
--- buildone.sh	(revision 24138)
+++ buildone.sh	(working copy)
@@ -20,6 +20,7 @@
 stylesheet_dir="$build_path/stylesheets"
 stylesheet_profile="$stylesheet_dir/style-profile.xsl"
 stylesheet_html="$stylesheet_dir/style-html.xsl"
+stylesheet_html_single="$stylesheet_dir/style-html-single.xsl"
 stylesheet_fo="$stylesheet_dir/style-fo.xsl"
 stylesheet_dsssl="$stylesheet_dir/style-print.dsl"
 
@@ -101,6 +102,24 @@
     checkresult $?
 }
 
+create_text () {
+
+    create_profiled
+    
+    echo "Creating temporary .html file..."
+
+    /usr/bin/xsltproc \
+        --xinclude \
+	--output $tempdir/install.${language}.html \
+        $stylesheet_html_single \
+        $tempdir/install.${language}.profiled.xml
+    checkresult $?
+
+    echo "Creating .txt file..."
+    w3m -dump $tempdir/install.${language}.html \
+	>$destination/install.${language}.txt
+}
+
 create_dvi () {
     
     # Skip this step if the .dvi file already exists
@@ -179,6 +198,7 @@
         html)  create_html;;
         ps)    create_ps;;
         pdf)   create_pdf;;
+        txt)   create_text;;
         *) echo "Format $format unknown or not yet supported!";;
 
     esac
Index: build.sh
===================================================================
--- build.sh	(revision 24138)
+++ build.sh	(working copy)
@@ -16,6 +16,10 @@
 	destination="/tmp/manual"
 fi
 
+if [ -z "$format" ]; then
+        formats="html pdf ps txt"
+fi
+
 [ -e "$destination" ] || mkdir -p "$destination"
 
 if [ "$official_build" ]; then
@@ -32,9 +36,15 @@
 	else
 		destsuffix="${lang}.${arch}"
 	fi
-	./buildone.sh "$arch" "$lang" "html"
-	mkdir "$destination/$destsuffix"
-	mv build.out/html/*.html "$destination/$destsuffix"
+	./buildone.sh "$arch" "$lang" "$formats"
+	mkdir -p "$destination/$destsuffix"
+	for format in $formats; do
+	    if [ "$format" = html ]; then
+		mv build.out/html/*.html "$destination/$destsuffix"
+	    else
+		mv build.out/install.$lang.$format "$destination/$destsuffix"
+	    fi
+	done
 	./clear.sh
     done
 done

--===============1773008932==--

---------------------------------------
Received: (at 283949-done) by bugs.debian.org; 14 Oct 2005 21:24:06 +0000
>From aragorn@tiscali.nl Fri Oct 14 14:24:06 2005
Return-path: <aragorn@tiscali.nl>
Received: from smtp-out2.tiscali.nl [195.241.79.177] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EQX26-00010I-00; Fri, 14 Oct 2005 14:24:06 -0700
Received: from [195.240.184.66] (helo=strider.fjphome.nl)
	by smtp-out2.tiscali.nl with esmtp (Tiscali http://www.tiscali.nl)
	id 1EQX25-00015n-85; Fri, 14 Oct 2005 23:24:05 +0200
From: Frans Pop <aragorn@tiscali.nl>
To: 283949-done@bugs.debian.org,
 281173-done@bugs.debian.org
Subject: Closing two d-i-manual bug reports
Date: Fri, 14 Oct 2005 23:24:14 +0200
User-Agent: KMail/1.7.2
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200510142324.14967.aragorn@tiscali.nl>
Delivered-To: 283949-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 2

Closing as these issues have been resolved in the current version of the 
manual.

Cheers,
FJP



Reply to: