From owner-freebsd-questions@FreeBSD.ORG Thu May 28 09:17:54 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC7871065672 for ; Thu, 28 May 2009 09:17:54 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 9BC0E8FC16 for ; Thu, 28 May 2009 09:17:54 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-65-8.dynamic.qsc.de [92.195.65.8]) by mx01.qsc.de (Postfix) with ESMTP id AB7D93CC5F; Thu, 28 May 2009 11:17:42 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n4S9HbX8002257; Thu, 28 May 2009 11:17:38 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 28 May 2009 11:17:37 +0200 From: Polytropon To: Kelly Jones Message-Id: <20090528111737.57e59575.freebsd@edvax.de> In-Reply-To: <26face530905270841l9a28ec9n9d33ec9665cd01c0@mail.gmail.com> References: <26face530905270841l9a28ec9n9d33ec9665cd01c0@mail.gmail.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Formatted text conversion X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2009 09:17:55 -0000 On Wed, 27 May 2009 08:41:56 -0700, Kelly Jones wrote: > I have e-books in several formats (DOC, LIT, PDF, RTF, HTML, TXT, > etc). Is there a Unix command-line tool that converts between these > formats? As it has been mentioned before, there's not the "one tool" for everything, but you can easily use OpenOffice to process most of them, and finally turn them into plain text, either by using OO's export function (save as text), or ^A ^C, change to your favourite text editor, ^V ^S. There are of course command line tools that let you do this without interaction, which is great when you want to process a bunch of files. > If not, is there at least a tool that converts these formats to TXT? To ASCII text: DOC: catdoc RTF: unrtf, rtfx PDF: pdftotext HTML: lynx -dump > My goal is to read these books on my Kindle, even if it means losing > some formatting/bells/whistles. If the Kindle does support PDF (I don't know if it does), wouldn't that be a better alternative, because it lets you keep the format of the document? -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...