debian/0000755000000000000000000000000012057172601007167 5ustar debian/postrm0000644000000000000000000000012612057164167010445 0ustar #!/bin/sh set -e if [ -x /usr/sbin/update-mime ]; then update-mime fi #DEBHELPER# debian/control0000644000000000000000000000220212057164167010576 0ustar Source: catdoc Section: text Priority: optional Maintainer: Nick Bane Build-Depends: debhelper (>> 7.0.0), tk Standards-Version: 3.9.3 Package: catdoc Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: tk | wish Homepage: http://freshmeat.net/projects/catdoc Description: MS-Word to TeX or plain text converter This program extracts text from MS-Word files, trying to preserve as many special printable characters as possible. catdoc supports everything up to Word-97. Also supported are MS Write documents and RTF files. . It doesn't even try to preserve fancy Word formatting, because Word users usually don't care about document structure, and it is this very thing which is important to LaTeX users. . Also provided is xls2csv, which extracts data from Excel spreadsheets and outputs it in comma-separated-value format and catppt, which extracts data from PowerPoint presentations. . This package suggests tk because it also includes wordview, an optional Tk-based GUI for catdoc. The MIME config provided in this package will use wordview if X is running, or catdoc directly if it is not. debian/catdocrc0000644000000000000000000000016712057164167010710 0ustar charset_path=/usr/share/catdoc map_path=/usr/share/catdoc source_charset=cp1252 target_charset=8859-1 unknown_char='?' debian/xlsview.10000644000000000000000000000071312057164167010763 0ustar .TH xlsview 1 .SH NAME xlsview \- graphical front-end for xls2csv(1) .SH SYNOPSIS .BR xlsview .I files .SH DESCRIPTION .B xlsview is a front-end for the .BR xls2csv (1) program. It tries to create an HTML page from the spreadsheet provided as a command line argument, and open a browser to view it. See the manpage for .BR xls2csv (1) for more information. .SH AUTHOR This incredibly lame man page was written by Bdale Garbee for Debian GNU/Linux. debian/postinst0000644000000000000000000000012612057164167011004 0ustar #!/bin/sh set -e if [ -x /usr/sbin/update-mime ]; then update-mime fi #DEBHELPER# debian/source/0000755000000000000000000000000012057164167010477 5ustar debian/source/format0000644000000000000000000000001312057164167011704 0ustar 3.0 (quilt)debian/dirs0000644000000000000000000000010412057164167010056 0ustar etc usr/bin usr/lib/catdoc usr/lib/mime/packages usr/share/man/man1 debian/rules0000755000000000000000000000413712057164167010264 0ustar #!/usr/bin/make -f # MAde with the aid of dh_make, by Craig Small # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. # Some lines taken from debmake, by Cristoph Lameter. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: dh_testdir ./configure --prefix=/usr # Add here commands to compile the package. $(MAKE) SYSTEMRC=/etc/catdocrc touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp install-stamp # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean $(RM) doc/catdoc.ps doc/catppt.ps doc/xls2csv.ps $(RM) doc/catdoc.txt doc/catppt.txt doc/xls2csv.txt $(RM) config.status config.log config.cache dh_clean install: install-stamp install-stamp: build-stamp dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/catdoc. $(MAKE) install prefix=`pwd`/debian/catdoc/usr install src/msxlsview.sh `pwd`/debian/catdoc/usr/bin/xlsview cp doc/*.1 `pwd`/debian/catdoc/usr/share/man/man1 cp debian/*.1 `pwd`/debian/catdoc/usr/share/man/man1 cp debian/mime `pwd`/debian/catdoc/usr/lib/mime/packages/catdoc cp debian/catdocrc `pwd`/debian/catdoc/etc touch install-stamp # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install # dh_testversion dh_testdir dh_testroot dh_installdocs dh_installexamples dh_installmenu # dh_installemacsen # dh_installinit dh_installcron dh_installman # dh_undocumented dh_installchangelogs dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol # dh_makeshlibs dh_md5sums dh_builddeb source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary debian/patches/0000755000000000000000000000000012057164167010626 5ustar debian/patches/series0000644000000000000000000000000012057164167012031 0ustar debian/changelog0000644000000000000000000002451012057172202011040 0ustar catdoc (0.94.4-1.1) unstable; urgency=low * Non-maintainer upload. * New upstream release to remove .pc subdirectory from the orig tarball (Closes: #692073). Includes updating version strings in generated manpages. * Remove extra ';' in src/xlsparse.c which turned for loop in xlsparse into a buffer overflow (Closes: #692076), applies patch by Olly Betts . -- Neil Williams Mon, 03 Dec 2012 18:22:47 +0000 catdoc (0.94.3-1) unstable; urgency=low * Declare new upstream release * Fix codepage bugs (Closes: #648921) * Fix charset bug (Closes: #648726) * Handle negative numbers on 64bit architectures (Closes: #555622) * Fix Macintosh MS1904 date bug in xlsparse reported ubuntu #349016 -- Nick Bane Sun, 10 Jun 2012 11:04:47 +0100 catdoc (0.94.2-2) unstable; urgency=low * New maintainer (Closes: #631798) * Add font table support to rtf parser * Handle invalid unicode character return of -1 correctly in rtf parser * Trap zero length docs * Add cross building support * Increase DBCS support for cp932 in rtf parser * Add check for reloading current charset in rtf parser * Implement rtf deflang/plain control word interaction * Add rtf support for font charsets suggesting codepages and mbcs support * Add lang+codepage support in rtf parser * Add removal of escaped chars after unicode char * And default to single char removal and implement sanely * Skip index entries in rtf parser * Cleaup some whitespace/static defs in rtf parser * Add gnome desktop entry under Office * Updated copright file to DEP-5 format -- Nick Bane Sat, 30 Jul 2011 14:44:15 +0100 catdoc (0.94.2-1.1) unstable; urgency=low * Non-maintainer upload. Applied patch by Sergei Golovan: * Replaced obsolete tk8.3 build-dependency by default tk package. -- Bastian Venthur Fri, 13 Aug 2010 23:24:59 +0200 catdoc (0.94.2-1) unstable; urgency=low * New upstream version, fixes a few OLE-parsing bugs (closes: #358707) * Fixed mailcap (closes: #313616, #316122) * Fixed some typos (closes: #327905, #327907) * Updated copyright file (closes: #353819) * Updated standards-version in debian/control -- Pawel Wiecek Wed, 29 Mar 2006 22:48:50 +0200 catdoc (0.94.0-1) unstable; urgency=low * New upstream version - fixes field type problems in xls2csv (closes: #292555) - adds new utility: catppt * Applied numerous patches from A Costa to fix typos in manpages (closes: #304318, #305965, #305966, #305967) * Added some asian charsets (closes: #278004) * Re-added xlsview that disappeared from package some time -- Pawel Wiecek Mon, 16 May 2005 22:22:49 +0200 catdoc (0.93.4-2) unstable; urgency=low * Fixed TeX charset conversion table for backslash and hash (closes: #278257) * Moved wordview from /usr/X11R6 to /usr (policy) -- Pawel Wiecek Sat, 8 Jan 2005 19:21:40 +0100 catdoc (0.93.4-1) unstable; urgency=low * New upstream version (closes: #255625) -- Pawel Wiecek Thu, 30 Sep 2004 23:01:49 +0200 catdoc (0.93.3-3) unstable; urgency=low * Fixed charset files location in catdoc.1 (closes: #238461) * Fixed a typo in catdoc.1 * Added information about current and previous Debian maintainers to copyright file (closes: #239126) * Enhanced long description with info about supported file formats other than .doc (closes: #239127) -- Pawel Wiecek Wed, 24 Mar 2004 21:08:41 +0100 catdoc (0.93.3-2) unstable; urgency=low * Changed build dependency from wish to tk8.3 (which provides wish anyway) because autobuilders barfed (closes: #228739) -- Pawel Wiecek Wed, 21 Jan 2004 20:50:59 +0100 catdoc (0.93.3-1) unstable; urgency=low * New upstream version (closes: #197426, #105255, #228190) * Dropped our version of manpage for wordview, as there's now upstream manual available -- Pawel Wiecek Tue, 20 Jan 2004 15:08:11 +0100 catdoc (0.93.1-1) unstable; urgency=low * New upstream version (closes: #198637, #22861) * Updated standards version (no changes required) -- Pawel Wiecek Mon, 13 Oct 2003 16:24:00 +0200 catdoc (0.91.6-1) unstable; urgency=low * New upstream version (closes: #182404, #169428, #188786) * Updated standards version -- Pawel Wiecek Wed, 28 May 2003 13:12:19 +0200 catdoc (0.91.5-3) unstable; urgency=low * Fixed manpages (closes: #175643, #185834) * Updated standards version * Fixed a couple of lintian errors -- Pawel Wiecek Thu, 24 Apr 2003 22:13:59 +0200 catdoc (0.91.5-2) unstable; urgency=high * Fixed insecure /tmp use (closes: #183525) -- Pawel Wiecek Wed, 23 Apr 2003 15:46:19 +0200 catdoc (0.91.5-1) unstable; urgency=low * New upstream version (closes: #136222) * GPL version now specified in copyright (closes: #133488) -- Pawel Wiecek Fri, 1 Mar 2002 13:59:13 +0100 catdoc (0.91.4-9) unstable; urgency=low * This time really changed maintainer address in debian/control (closes: #135056, #131812) -- Pawel Wiecek Fri, 22 Feb 2002 14:42:35 +0100 catdoc (0.91.4-8) unstable; urgency=low * New maintainer (closes: #135056) * Fixed problem with opening files with spaces in filenames (closes: #131812) * Converted to debhelper 3 -- Pawel Wiecek Fri, 22 Feb 2002 13:13:26 +0100 catdoc (0.91.4-7) unstable; urgency=low * Fixed problem on powerpc (Closes: #104103) * Fixed package desctiption (Closes: #124050) -- Peter Novodvorsky Sat, 29 Dec 2001 18:59:41 +0300 catdoc (0.91.4-6) unstable; urgency=low * Got rid of ^M in the end of lines in xlsview. Closes: #109508, #113883, #117882, #116950 -- Peter Novodvorsky Fri, 9 Nov 2001 17:34:15 +0300 catdoc (0.91.4-5) unstable; urgency=low * Changed menu section to 'Apps/Viewers'. (Closes: Bug#85881) -- Peter Novodvorsky Fri, 15 Jun 2001 00:40:39 +0300 catdoc (0.91.4-4) unstable; urgency=low * Finally end transition to /usr/share. Fixed bug in wordview.tcl (thanks to Sacha) -- Peter Novodvorsky Tue, 23 Jan 2001 23:40:39 +0300 catdoc (0.91.4-3) unstable; urgency=low * Finally fixed '-d' option with xls2csv (Closes: Bug#78020). * Changed path /usr/lib to /usr/share/. (thanks to Robert) -- Peter Novodvorsky Tue, 23 Jan 2001 23:40:08 +0300 catdoc (0.91.4-2) unstable; urgency=low * Maintainer changed. (Closes: Bug#80128) * Fixed various bugs in msxlsview.sh (Closes: Bug#76460) * Fixed various bugs in xls2csv (Closes: Bug#78020) * catdoc.1 isn't installed int /usr/man now. -- Peter Novodvorsky Fri, 22 Dec 2000 23:58:11 +0300 catdoc (0.91.4-1) frozen unstable; urgency=medium * target frozen since this closes a release-critical bug * new upstream version, has fixes for seg faults in xls2csv, seems to fix the TCL problem during 'save as' in wordview (at least, I can't reproduce the problem in this version), and fixes at least one man page problem. Closes: #60623, #54869, #56988, #54870 * catdoc already suggests wish, I don't want to make it a depends because the catdoc executable is completely useful without X. I suppose I could split catdoc into two packages, but I really don't see the need. Closes: #59874 -- Bdale Garbee Sat, 18 Mar 2000 22:51:53 -0700 catdoc (0.91.2-6) unstable; urgency=low * change unicode(4) references to unicode(7) in man pages, closes: #54318 -- Bdale Garbee Fri, 7 Jan 2000 20:08:26 -0700 catdoc (0.91.2-5) unstable; urgency=low * add wish to the Build-Depends so configure can find it, closes: #51839 -- Bdale Garbee Fri, 7 Jan 2000 01:08:55 -0700 catdoc (0.91.2-4) unstable; urgency=low * update control to include Build-Depends, closes: #51276 -- Bdale Garbee Wed, 1 Dec 1999 23:22:16 -0700 catdoc (0.91.2-3) unstable; urgency=low * update mailcap entry for catdoc to include copiousoutput, closes: #51190 -- Bdale Garbee Sat, 27 Nov 1999 16:52:03 -0700 catdoc (0.91.2-2) unstable; urgency=low * misc updates to package scripts and documentation closes: #43897, #33327, #44380, #38878 -- Bdale Garbee Sat, 20 Nov 1999 18:41:31 -0700 catdoc (0.91.2-1) unstable; urgency=low * new upstream (development) version, closes: #43897, #33327, #44380 * switch to maintainer version numbers instead of NMU's * fix typos in README, closes: #38878 -- Bdale Garbee Fri, 19 Nov 1999 11:29:42 -0700 catdoc (0.90r-0.2) frozen unstable; urgency=low * incorporate some packaging details from Artem Chuprina, including the addition of a default configuration file instead of relying on compile-time defaults (more obvious to users how to change things if they need to), and tweaks to the man page for catdoc. -- Bdale Garbee Tue, 3 Nov 1998 08:26:24 -0700 catdoc (0.90r-0.1) frozen unstable; urgency=low * new upstream release, replaces pre-released with released 0.90 version -- Bdale Garbee Mon, 2 Nov 1998 23:20:29 -0700 catdoc (0.90a2-0.1) unstable; urgency=low * non-maintainer package of new upstream release * reconfigure rules file to use debhelper * add support to handle application/msword MIME type in /etc/mailcap * create a manpage (lame though it may be) for wordview * mark bugs 27485, 26033 as fixed, other two untested but may be fixed -- Bdale Garbee Tue, 6 Oct 1998 00:02:57 -0600 catdoc (0.33-3) frozen unstable; urgency=low * Doesn't call update-menu twice (bug #21604) * Wordview uses wish instead of wish4.2 * Suggests wish, to make use of wordview -- Bjorn Brenander Sat, 2 May 1998 09:36:30 +0200 catdoc (0.33-2) frozen; urgency=low * Changed modes for catdoc.c to 0644 * Fixed problem with executing catdoc from wordview * Corrected some typos in manpage and README file * Added Debian menu support -- Bjorn Brenander Sat, 11 Apr 1998 01:58:27 +0200 catdoc (0.33-1) unstable; urgency=low * Initial Release. -- Christoph Lameter Fri, 27 Feb 1998 18:28:33 -0800 debian/compat0000644000000000000000000000000212057164167010375 0ustar 7 debian/docs0000644000000000000000000000003212057164167010045 0ustar CREDITS NEWS README TODO debian/mime0000644000000000000000000000075412057164167010057 0ustar application/msword; wordview %s; description="MS Word Text"; test=test "$DISPLAY" ; priority=0 application/msword; catdoc %s; copiousoutput; description="MS Word Text"; ; priority=0 application/vnd.ms-excel; xlsview %s; description="MS Excel sheet"; test=test "$DISPLAY" ; priority=0 application/vnd.ms-excel; xls2csv %s; copiousoutput; description="MS Excel sheet"; ; priority=0 application/vnd.ms-powerpoint; catppt %s; copiousoutput; description="MS PowerPoint presentation"; ; priority=0 debian/menu0000644000000000000000000000015112057164167010063 0ustar ?package(catdoc):needs="x11" section="Applications/Viewers" title="Wordview" command="/usr/bin/wordview" debian/copyright0000644000000000000000000000412612057164167011135 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?view=markup&pathrev=174 Upstream-Name: Catdoc Source: ftp://ftp.45.free.net/pub/catdoc/ Files: * Copyright: Copyright (c) by Victor B. Wagner 1997-98 License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 of the License. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: 1998, Copyright Christoph Lameter 1998, Bjorn Brenander 1998-2000, Bdale Garbee 2000-2001, Peter Novodvorsky 2001-2006, Pawel Wiecek 2010, Basian Venthur 2011, Nick Bane License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 of the License. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.