--- stx2any-1.56.orig/debian/docs
+++ stx2any-1.56/debian/docs
@@ -0,0 +1 @@
+TODO
--- stx2any-1.56.orig/debian/control
+++ stx2any-1.56/debian/control
@@ -0,0 +1,30 @@
+Source: stx2any
+Section: text
+Priority: extra
+Maintainer: Panu Kalliokoski <atehwa@sange.fi>
+Build-Depends-Indep: w3m, m4
+Build-Depends: debhelper (>= 4)
+Standards-Version: 3.7.2
+
+Package: stx2any
+Architecture: all
+Depends: m4
+Recommends: w3m, tidy, python (>= 2.1)
+Description: Converter from structured plain text to other formats
+ stx2any is a converter from structured text (Stx), which is plain text
+ written in a standardised way, into other formats.  Formats available
+ currently include (X)HTML, man, raw text, DocBook XML, PostScript and
+ LaTeX.
+ .
+ Stx is a markup language in the tradition of plain text like markups,
+ like wiki markup and ReST.  For a comparison between different plain
+ text markup languages, see stx2any's home page
+ (http://sange.fi/~atehwa/cgi-bin/piki.cgi/stx2any).
+ .
+ This package also has the following utilities:
+  * strip_stx -- a literate programming tool
+  * gather_stx_titles -- a script to automate cross-linking between
+    documents
+  * extract_usage_from_stx -- a script to produce "usage" messages from
+    man pages written in stx
+  * html2stx -- a utility to convert HTML into Stx.
--- stx2any-1.56.orig/debian/stx2any.emacsen-startup
+++ stx2any-1.56/debian/stx2any.emacsen-startup
@@ -0,0 +1,6 @@
+
+(autoload 'stx-mode "stx-mode")
+(autoload 'stx-print-buffer "stx-mode")
+(autoload 'stx-preview-buffer "stx-mode")
+(add-to-list 'auto-mode-alist '("\\.stx$" . stx-mode))
+
--- stx2any-1.56.orig/debian/rules
+++ stx2any-1.56/debian/rules
@@ -0,0 +1,53 @@
+#!/usr/bin/make -f
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	touch configure-stamp
+
+build-indep: build-stamp
+build-stamp: configure-stamp 
+	dh_testdir
+	$(MAKE)
+	touch build-stamp
+
+build-arch:
+	:
+
+build: build-indep build-arch
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	$(MAKE) clean
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/stx2any
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installemacsen
+	dh_link
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-arch:
+	:
+
+binary: binary-indep binary-arch
+
+.PHONY: build build-indep build-arch clean
+.PHONY: binary-indep binary-arch binary install configure
--- stx2any-1.56.orig/debian/changelog
+++ stx2any-1.56/debian/changelog
@@ -0,0 +1,487 @@
+stx2any (1.56-2) unstable; urgency=low
+
+  * Updated standards-version
+  * Added build-indep and build-arch targets recommended by policy
+  * removed some cruft from rules file
+
+ -- Panu Kalliokoski <atehwa@sange.fi>  Mon, 21 Aug 2006 20:58:12 +0300
+
+stx2any (1.56-1) unstable; urgency=low
+
+  * Added a w_man_desc macro and added documentation for writing proper man
+    pages.  (closes: #380574)
+  * Modified the man pages in the distribution to use w_man_desc.
+
+ -- Panu Kalliokoski <atehwa@sange.fi>  Thu, 17 Aug 2006 13:32:33 +0300
+
+stx2any (1.55-1) unstable; urgency=low
+
+  * updated major version number because the .orig.tar.gz contains changes
+    after 1.54 release.
+
+ -- Panu Kalliokoski <atehwa@sange.fi>  Wed, 21 Jun 2006 12:46:56 +0300
+
+stx2any (1.54-4) unstable; urgency=low
+
+  * Added missing build-depends on m4 (closes: #374641)
+
+ -- Panu Kalliokoski <atehwa@sange.fi>  Tue, 20 Jun 2006 19:28:52 +0300
+
+stx2any (1.54-3) unstable; urgency=low
+
+  * Moved python from Depends: to Recommends:.
+
+ -- Panu Kalliokoski <atehwa@sange.fi>  Fri, 12 May 2006 15:36:36 +0300
+
+stx2any (1.54-2) unstable; urgency=low
+
+  * Added w3m and tidy to Recommends:.
+
+ -- Panu Kalliokoski <atehwa@sange.fi>  Fri, 28 Apr 2006 18:00:44 +0300
+
+stx2any (1.54-1) unstable; urgency=low
+
+  * Changed command line option handling as suggested by Sven Mueller
+    <debian@incase.de>.
+  * More checks to --more-secure.
+  * Copyright declarations in source files
+
+ -- Panu Kalliokoski <atehwa@sange.fi>  Thu, 27 Apr 2006 14:14:58 +0300
+
+stx2any (1.53-2) unstable; urgency=low
+
+  * Put arch-independent building instructions into their proper place &
+    updated debian/control
+  * Added uploaders: field
+  * License declarations in source files
+
+ -- Panu Kalliokoski <atehwa@sange.fi>  Tue, 25 Apr 2006 19:28:19 +0300
+
+stx2any (1.53-1) unstable; urgency=low
+
+  * Changed into a non-native package
+  * updated standards-version
+  * opened an ITP as should (closes: #354803)
+
+ -- Panu Kalliokoski <atehwa@sange.fi>  Wed,  1 Mar 2006 10:14:57 +0200
+
+stx2any (1.53) unstable; urgency=low
+
+  * w_autolabel and w_autorefer
+  * fixes in table of contents generation
+  * fixed --link-abbrevs to work together with --table-of-contents on
+
+ -- Panu Kalliokoski <atehwa@sange.fi>  Wed,  1 Feb 2006 11:30:41 +0200
+
+stx2any (1.52) unstable; urgency=low
+
+  * table of contents generation for HTML and man
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Tue, 31 Jan 2006 11:55:05 +0200
+
+stx2any (1.51) unstable; urgency=low
+
+  * admonitions
+  * improved metadata quoting rules (makes it easier to insert e.g. an em dash
+    in the title).
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Tue, 31 Jan 2006 11:01:19 +0200
+
+stx2any (1.50) unstable; urgency=low
+
+  * Fixed LaTeX paper size annotations to be different in slides
+
+ -- Panu Kalliokoski <pkalliok@juiblex.it.helsinki.fi>  Mon, 30 Jan 2006 17:34:24 +0200
+
+stx2any (1.49) unstable; urgency=low
+
+  * --table-of-contents switch
+  * cleaning up old code
+  * fixed small things in slide support
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Tue, 24 Jan 2006 09:26:29 +0200
+
+stx2any (1.48) unstable; urgency=low
+
+  * Slide environment
+  * --make-title switch
+
+ -- Panu Kalliokoski <atehwa@sange.fi>  Mon, 23 Jan 2006 19:32:52 +0200
+
+stx2any (1.47) unstable; urgency=low
+
+  * LaTeX defnlist items won't break with brackets
+  * Layers: environments may invoke other environments.
+
+ -- Panu Kalliokoski <atehwa@sange.fi>  Mon, 10 Oct 2005 23:17:22 +0300
+
+stx2any (1.46) unstable; urgency=low
+
+  * neater results when label abbrevs in the same line
+  * automatic labels are better named (less spurious diffs)
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Thu, 30 Jun 2005 01:48:27 +0300
+
+stx2any (1.45) unstable; urgency=low
+
+  * Using alltt environment for LaTeX literal blocks. (instead of verbatim)
+
+ -- Panu A Kalliokoski <pkalliok@ling.helsinki.fi>  Wed, 29 Jun 2005 12:36:39 +0300
+
+stx2any (1.44) unstable; urgency=low
+
+  * table captions
+  * cleaned up and rearranged sed code (particularly for link abbrevs)
+  * emphasis code updates: allowing literal formatting within non-quoted
+    underscore emphases, broader rules for quotation marks
+
+ -- Panu A Kalliokoski <pkalliok@angarak.ling.helsinki.fi>  Thu,  7 Apr 2005 21:00:05 +0300
+
+stx2any (1.43) unstable; urgency=low
+
+  * --link-abbrevs interaction with footnotes fix.
+  * --sed-preprocessor command line switch
+
+ -- Panu A Kalliokoski <pkalliok@angarak.ling.helsinki.fi>  Tue,  5 Apr 2005 18:12:31 +0300
+
+stx2any (1.42) unstable; urgency=low
+
+  * w_documentclass macro
+  * build option to not use w3m
+
+ -- Panu A Kalliokoski <pkalliok@angarak.ling.helsinki.fi>  Mon,  4 Apr 2005 10:40:32 +0300
+
+stx2any (1.41) unstable; urgency=low
+
+  * fixed bug in link abbrevs that caused the last paragraph to be copied to
+    the beginning of the document if not followed by an empty line.  Yay.
+  * no usage, just a short help message on m4 errors in stx2any
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Wed, 30 Mar 2005 13:41:15 +0300
+
+stx2any (1.40) unstable; urgency=low
+
+  * w_title, w_author, w_date without arguments
+  * fixed a small link abbrev bug that affected tabs followed by sq.brackets
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Thu, 24 Feb 2005 09:52:45 +0200
+
+stx2any (1.39) unstable; urgency=low
+
+  * footnote markers at beginning and end of line
+  * header blocks
+
+ -- Panu Kalliokoski <atehwa@humma.sange.fi>  Fri, 19 Nov 2004 11:04:18 +0200
+
+stx2any (1.38) unstable; urgency=low
+
+  * hyphenation language in man
+  * eschewed emphases in literal blocks
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Fri,  8 Oct 2004 00:49:37 +0300
+
+stx2any (1.37) unstable; urgency=low
+
+  * Changes in quote-quote rules
+  * --quote-me-harder
+
+ -- Panu Kalliokoski <pkalliok@xandru.it.helsinki.fi>  Wed,  8 Sep 2004 16:53:28 +0300
+
+stx2any (1.36) unstable; urgency=low
+
+  * Fixed and added tests for em dash-in-indent and underscore-in-__line__
+  * Support for relative URL syntax in link abbreviations.
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Tue,  7 Sep 2004 08:35:25 +0300
+
+stx2any (1.35) unstable; urgency=low
+
+  * New system for underscore quoting
+  * Even more sophisticated emphasis rules
+  * trademark signs, left arrows, right arrows
+
+ -- Panu A Kalliokoski <pkalliok@nummi.ling.helsinki.fi>  Wed,  1 Sep 2004 12:18:19 +0300
+
+stx2any (1.34) unstable; urgency=low
+
+  * extract_usage_from_stx script
+  * --help and --version switches for almost all scripts
+
+ -- Panu Kalliokoski <pkalliok@xandru.it.helsinki.fi>  Fri, 23 Jul 2004 14:15:39 +0300
+
+stx2any (1.33) unstable; urgency=low
+
+  * numerous documentation improvements
+  * classes for DIV's in HTML wherever they're used
+  * proper white space handling in man literal blocks
+  * section breaker weight for LaTeX, HTML
+  * automatically label headings for --link-abbrevs
+  * ellipses and copyright signs
+  * w_push_env and w_pop_env
+  * more internal environments to override
+  * step argument to w_stepcounter
+  * greatly improved table code
+
+ -- Panu Kalliokoski <pkalliok@xandru.it.helsinki.fi>  Tue, 20 Jul 2004 15:10:21 +0300
+
+stx2any (1.32) unstable; urgency=low
+
+  * symmetric references
+  * floats
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Sun, 18 Jul 2004 22:44:45 +0300
+
+stx2any (1.31) unstable; urgency=low
+
+  * Link abbreviations
+
+ -- Panu Kalliokoski <pkalliok@xandru.it.helsinki.fi>  Sun, 18 Jul 2004 06:37:39 +0300
+
+stx2any (1.30) unstable; urgency=low
+
+  * support for ASCII character set
+  * a lot of improvements for html2stx
+  * a lot of sources commented
+  * small improvements to pending block handling
+  * improvements in error reporting
+  * separate markup for technical and semantic emphasis
+  * w_use macro
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Wed, 14 Jul 2004 09:54:04 +0300
+
+stx2any (1.29) unstable; urgency=low
+
+  * --html-params switch
+  * sensible exit codes for stx2any
+  * support for input codings (except for man)
+  * picture support
+  * html2stx
+
+ -- Panu A Kalliokoski <pkalliok@angarak.ling.helsinki.fi>  Tue,  6 Jul 2004 01:33:39 +0300
+
+stx2any (1.28) unstable; urgency=low
+
+  * em and en dashes
+  * improved formatting for many constructs
+  * citation environment
+  * w_derive_env macro
+
+ -- Panu A Kalliokoski <pkalliok@angarak.ling.helsinki.fi>  Mon,  5 Jul 2004 15:38:27 +0300
+
+stx2any (1.27) unstable; urgency=low
+
+  * Emacs mode improvements
+  * README file, documentation changes
+  * w_url macro
+
+ -- Panu Kalliokoski <atehwa@humma.sange.fi>  Thu, 24 Jun 2004 21:12:34 +0300
+
+stx2any (1.26) unstable; urgency=low
+
+  * suffix substitutions in gather_stx_titles
+  * improved error messages
+  * XHTML support via tidy
+
+ -- Panu Kalliokoski <atehwa@sange.fi>  Wed,  23 Jun 2004 01:23:49 +0300
+
+stx2any (1.25) unstable; urgency=low
+
+  * fixed finally the man formatting bugs
+  * gather_stx_titles
+  * DocBook improvements
+
+ -- Panu Kalliokoski <pkalliok@xandru.it.helsinki.fi>  Mon, 21 Jun 2004 18:00:38 +0300
+
+stx2any (1.24) unstable; urgency=low
+
+  * DocBook XML support
+  * modularity improvements
+  * new syntax for footnotes
+  * Emacs editing mode
+
+ -- Panu Kalliokoski <atehwa@sange.fi>  Sun,  20 Jun 2004 02:29:31 +0300
+
+stx2any (1.23) unstable; urgency=low
+
+  * strip_stx
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Tue,  1 Jun 2004 00:44:45 +0300
+
+stx2any (1.22) unstable; urgency=low
+
+  * --no-template option
+  * --latex-params option
+  * cross referencing
+  * text and PS output formats
+
+ -- Panu A Kalliokoski <pkalliok@angarak.ling.helsinki.fi>  Sun, 30 May 2004 09:51:49 +0300
+
+stx2any (1.21) unstable; urgency=low
+
+  * Implemented --numbering switches
+  * Implemented HTML column-spanning <hr>
+  * <dd>'s are neatly put (again for a while)
+  * text block support for tbl.
+  * --no-template option
+
+ -- Panu Kalliokoski <pkalliok@xandru.it.helsinki.fi>  Fri, 28 May 2004 17:04:36 +0300
+
+stx2any (1.20) unstable; urgency=low
+
+  * Changed debian package name
+
+ -- Panu A Kalliokoski <pkalliok@nummi.ling.helsinki.fi>  Fri, 23 Apr 2004 11:53:02 +0300
+
+stx (1.19) unstable; urgency=low
+
+  * double indent system
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Thu, 22 Apr 2004 23:18:51 +0300
+
+stx (1.18) unstable; urgency=low
+
+  * Still new list logic
+  * lists closed more easily
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Thu, 22 Apr 2004 18:03:19 +0300
+
+stx (1.17) unstable; urgency=low
+
+  * New list logic, "item" blocks
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Thu, 22 Apr 2004 15:04:30 +0300
+
+stx (1.16) unstable; urgency=low
+
+  * Fixed lists within definition lists
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Wed, 21 Apr 2004 00:30:15 +0300
+
+stx (1.15) unstable; urgency=low
+
+  * --more-secure option
+
+ -- Panu A Kalliokoski <pkalliok@nummi.ling.helsinki.fi>  Tue, 30 Mar 2004 13:08:21 +0300
+
+stx (1.14) unstable; urgency=low
+
+  * unclosed and multi-line emphasis handling
+  * white space handling in multi-line emphasis
+
+ -- Panu A Kalliokoski <pkalliok@venus.ling.helsinki.fi>  Wed, 24 Mar 2004 23:57:11 +0200
+
+stx (1.13) unstable; urgency=low
+
+  * ifeq environment and documentation
+  * documentation of defs diversion
+  * w_gettitle
+  * more verbose nesting error reporting
+  * man page diagnostics clarifications.
+  * more robust emphasis transformation rules
+  * specific latex macros for emphasis
+
+ -- Panu Kalliokoski <pkalliok@xandru.it.helsinki.fi>  Tue, 24 Feb 2004 13:13:08 +0200
+
+stx (1.12) unstable; urgency=low
+
+  * corrected latex backslashes
+  * put in proper centering for man
+  * man emphasis protection quotes
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Fri, 30 Jan 2004 00:37:02 +0200
+
+stx (1.11) unstable; urgency=low
+
+  * --quote-underscores and --quote separately
+  * different rules for underscore quoting
+  * neater LaTeX constructs here and there
+  * several cosmetic improvements to man markup
+  * redone diversion system
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Sat, 20 Dec 2003 08:50:26 +0200
+
+stx (1.10) unstable; urgency=low
+
+  * Output format quoting
+  * --quote-also-underscores
+
+ -- Panu A Kalliokoski <pkalliok@venus.ling.helsinki.fi>  Fri, 19 Dec 2003 15:46:20 +0200
+
+stx (1.9) unstable; urgency=low
+
+  * Quotation mark handling
+  * w_language, w_section and w_doctype_parms support
+  * ws_preamble ja ws_metas
+
+ -- Panu Kalliokoski <atehwa@humma.sange.fi>  Fri, 19 Dec 2003 09:37:32 +0200
+
+stx (1.8) unstable; urgency=low
+
+  * Fixed in-list markup for man
+  * @w_sect_level holds current section level
+
+ -- Panu A Kalliokoski <pkalliok@venus.ling.helsinki.fi>  Wed, 17 Dec 2003 10:57:00 +0200
+
+stx (1.7) unstable; urgency=low
+
+  * One heading level more for man
+
+ -- Panu A Kalliokoski <pkalliok@venus.ling.helsinki.fi>  Tue, 16 Dec 2003 11:49:05 +0200
+
+stx (1.6) unstable; urgency=low
+
+  * w_bq; documentation for quoting
+
+ -- Panu Kalliokoski <atehwa@humma.sange.fi>  Sun, 14 Dec 2003 18:55:49 +0200
+
+stx (1.5) unstable; urgency=low
+
+  * footnotes at the end of document
+  * got rid of automatic HTML title finding: it was too automagical.
+  * w_getdate
+  * no <h1> in HTML if no title set
+
+ -- Panu Kalliokoski <atehwa@humma.sange.fi>  Fri, 12 Dec 2003 19:54:59 +0200
+
+stx (1.4) unstable; urgency=low
+
+  * Got rid of rest of lintian errors
+  * compact lists
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Fri, 12 Dec 2003 12:16:34 +0200
+
+stx (1.3) unstable; urgency=low
+
+  * Grrm.  Fixed simple ''literal'' markup back working on lines with
+    backticks.
+
+ -- Panu Kalliokoski <pkalliok@xandru.it.helsinki.fi>  Wed, 10 Dec 2003 17:42:54 +0200
+
+stx (1.2) unstable; urgency=low
+
+  * Improved table support for man
+  * Apostrophe quoting
+  * Nestable counters
+  * fixed debian/rules to install into debian/tmp
+  * PREFIX rewriting on man page
+
+ -- Panu Kalliokoski <pkalliok@xandru.it.helsinki.fi>  Wed, 10 Dec 2003 17:22:15 +0200
+
+stx (1.1) unstable; urgency=low
+
+  * cleaned for lintian.  Problems with man page header.
+  * fixed stupid bug in stx2any.
+
+ -- Panu <atehwa@maim.it.helsinki.fi>  Tue,  9 Dec 2003 17:44:42 +0200
+
+stx (1.0) unstable; urgency=low
+
+  * Initial Release.
+  * debianised by dh_make.
+  * Wrote installation Makefile.
+
+ -- Panu <atehwa@sange.fi>  Tue,  9 Dec 2003 17:24:02 +0200
+
+Local variables:
+mode: debian-changelog
+End:
--- stx2any-1.56.orig/debian/compat
+++ stx2any-1.56/debian/compat
@@ -0,0 +1 @@
+4
--- stx2any-1.56.orig/debian/copyright
+++ stx2any-1.56/debian/copyright
@@ -0,0 +1,36 @@
+Upstream author: Panu Kalliokoski <atehwa@sange.fi>
+Debian maintainer: Panu Kalliokoski <atehwa@sange.fi>
+Downloaded from: http://sange.fi/~atehwa/
+Homepage URI: http://sange.fi/~atehwa/cgi-bin/piki.cgi/stx2any
+
+Copyright:
+ - (c) 2003, 2004, 2005, 2006 Panu Kalliokoski
+
+License:
+
+! stx2any - an implementation of conversion from Stx to multiple formats
+
+Authors::
+ - (c) 2003, 2004, 2005, 2006 Panu Kalliokoski
+
+This software is available free of charge for distribution,
+modification and use (by executing the program) as long as the
+following conditions are met:
+
+# Every work copied or derived from this software distributed in any
+  form must come with this license;
+
+# The only permitted change to this license is adding one's name
+  in the authors section when having modified the software.
+
+THE AUTHORS CANNOT BE HELD RESPONSIBLE FOR ANY DIRECT OR INDIRECT HARM
+THIS SOFTWARE MIGHT CAUSE.
+
+Copyright:
+
+(C) 2004 Aaron Swartz; 2004, 2005 Panu Kalliokoski. GNU GPL 2.
+
+License:
+
+The script html2stx is under the GNU GPL, version 2, which can be read at
+/usr/share/common-licenses/GPL-2.
