debian/0000755000000000000000000000000011723533502007167 5ustar debian/patches/0000755000000000000000000000000011723533502010616 5ustar debian/patches/series0000644000000000000000000000005411723533502012032 0ustar set_stdout_to_utf8 add_super_and_subscripts debian/patches/add_super_and_subscripts0000644000000000000000000000250211723533502015611 0ustar Index: gnuhtml2latex/gnuhtml2latex =================================================================== --- gnuhtml2latex.orig/gnuhtml2latex 2012-02-29 17:36:38.000000000 -0600 +++ gnuhtml2latex/gnuhtml2latex 2012-02-29 17:38:21.000000000 -0600 @@ -16,9 +16,8 @@ use strict; use Getopt::Std; -binmode STDOUT, ":utf8"; -getopts('a:bcf:gh:i:no:pst:HPS:',\%main::opts); +getopts('a:bcf:gh:i:mno:pst:HPS:',\%main::opts); unless (defined $main::opts{o}) { $main::opts{o} = '{article}' } unless (defined $main::opts{h}) { $main::opts{h} = '' } unless (defined $main::opts{f}) { $main::opts{f} = '' } @@ -84,6 +83,13 @@ 'blockquote' => '\\end{quotation}' ); +if ($main::opts{m}) { + $tagstable_start{'sub'} = '$_{\textrm{'; + $tagstable_end{'sub'} = '}}$'; + $tagstable_start{'sup'} = '$^{\textrm{'; + $tagstable_end{'sup'} = '}}$'; +} + my $mode = 0; my $firstfile = 1; my $lastfile = 1; @@ -391,6 +397,15 @@ Get the list of files to be converted from the specified filename +=item -m + +Allow the use of some tags that require entering and exiting math mode. + +Currently, the superscript and subscript tags are achieved by using +the math mode. Now, using the math mode can break some +formatting. Math mode will only be entered in the output document if +you specify this switch. + =item -n Use numbered sections debian/patches/set_stdout_to_utf80000644000000000000000000000066611723533502014416 0ustar Index: gnuhtml2latex/gnuhtml2latex =================================================================== --- gnuhtml2latex.orig/gnuhtml2latex 2012-02-29 16:53:42.000000000 -0600 +++ gnuhtml2latex/gnuhtml2latex 2012-02-29 16:56:54.000000000 -0600 @@ -16,6 +16,7 @@ use strict; use Getopt::Std; +binmode STDOUT, ":utf8"; getopts('a:bcf:gh:i:no:pst:HPS:',\%main::opts); unless (defined $main::opts{o}) { $main::opts{o} = '{article}' } debian/source/0000755000000000000000000000000011723533502010467 5ustar debian/source/format0000644000000000000000000000001411723533502011675 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211723533502010365 0ustar 7 debian/copyright0000644000000000000000000000113311723533502011120 0ustar gnuhtml2latex html to latex converter Copyright (c) 1999 Tomasz Wêgrzanowski Maintenance taken over by Gunnar Wolf, 2005. Copyright (c) 2005-2010 Gunnar Wolf Includes code by Dieter Schuster. gnuhtml2latex is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. debian/dirs0000644000000000000000000000003011723533502010044 0ustar /usr/bin /usr/share/man debian/changelog0000644000000000000000000000535511723533502011051 0ustar gnuhtml2latex (0.4-2) unstable; urgency=low * Avoid the "Wide character in print" warning when outputting UTF8 (Closes: #652129) * Make Lintian happy: Fix description starting with an article, update standards-version 3.8.4→3.9.3 (no changes needed) * Add support for super- and sub-scripts in math mode (Closes: #652133) -- Gunnar Wolf Wed, 29 Feb 2012 17:35:38 -0600 gnuhtml2latex (0.4-1) unstable; urgency=low * New upstream release * Added wget as a recommendation * Standards version 3.7.3→3.8.4 (No changes needed) * Debhelper compat level upgraded to 7 * Switched to DH7 tiny makefile * Switched to quilt (3.0) source format * Added Vcs-Git, Vcs-Browser fields to control information -- Gunnar Wolf Thu, 20 May 2010 17:11:35 -0500 gnuhtml2latex (0.3-4) unstable; urgency=low * Updated debhelper compat version to 6 * Updated standards-version to 3.7.3 * Cleared the binary-indep target of debian/rules * debian/copyright recoded as UTF8 * All in all: a keep-lintian-happy release ;-) -- Gunnar Wolf Fri, 14 Mar 2008 11:02:57 -0600 gnuhtml2latex (0.3-3) unstable; urgency=low * Included patch by bremner@unb.ca which properly converts anchors into LaTeX hyperlinks - Thanks! -- Gunnar Wolf Wed, 21 Mar 2007 17:53:30 -0600 gnuhtml2latex (0.3-2) unstable; urgency=low * Demoted all headings one level, as the document class we are using is "article", which does not support "chapter", what we were using for H1. (Closes: #365343) -- Gunnar Wolf Sat, 15 Jul 2006 20:04:15 -0500 gnuhtml2latex (0.3-1) unstable; urgency=low * Incorporated Dieter Schuster's patch providing -b and -i - Thanks! * Reworked the build process to use debhelper (and not a completely manual process) * Added build-dependency on debhelper -- Gunnar Wolf Mon, 19 Sep 2005 10:03:46 -0500 gnuhtml2latex (0.2-2) unstable; urgency=low * New maintainer (Closes: #188174) * Updated standards-version -- Gunnar Wolf Fri, 6 Jun 2003 11:32:19 -0500 gnuhtml2latex (0.2-1) unstable; urgency=low * Changed Architecture line in debian/control to all. Closes: #144692 -- Muhammad Hussain Yusuf Sat, 27 Apr 2002 08:38:40 +0100 gnuhtml2latex (0.2) unstable; urgency=low * New Maintainer. Closes: #143681 * Patch from Peter Moulder for character translation, backslash handling. -- Muhammad Hussain Yusuf Fri, 26 Apr 2002 08:41:33 +0100 gnuhtml2latex (0.1) unstable; urgency=low * Initial Release -- Tomasz Wegrzanowski Wed, 22 Dec 1999 23:58:00 +0100 Local variables: mode: debian-changelog End: debian/rules0000755000000000000000000000022211723533502010243 0ustar #!/usr/bin/make -f %: dh $@ override_dh_installman: pod2man gnuhtml2latex > gnuhtml2latex.1 dh_installman gnuhtml2latex.1 rm gnuhtml2latex.1 debian/gnuhtml2latex.install0000644000000000000000000000002611723533502013353 0ustar gnuhtml2latex usr/bin debian/control0000644000000000000000000000116411723533502010574 0ustar Source: gnuhtml2latex Section: text Priority: optional Maintainer: Gunnar Wolf Standards-Version: 3.9.3 Build-depends: debhelper (>>7.0.50) Vcs-Git: git://git.debian.org/git/collab-maint/gnuhtml2latex.git Vcs-Browser: http://git.debian.org/git/collab-maint/gnuhtml2latex.git Package: gnuhtml2latex Architecture: all Recommends: wget Depends: ${misc:Depends}, perl, libhtml-parser-perl Description: Convert HTML files to LaTeX gnuhtml2latex is a Perl script that converts HTML files to LaTeX files. It takes list of .html files as arguments and make .tex ones. Can also convert html stdin to latex stdout.