[79attendees] RFCs in two ebook formats (mobi, epub)

Tero Kivinen <kivinen@iki.fi> Sun, 07 November 2010 15:44 UTC

Return-Path: <kivinen@iki.fi>
X-Original-To: 79attendees@core3.amsl.com
Delivered-To: 79attendees@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id EA6493A67B1 for <79attendees@core3.amsl.com>; Sun, 7 Nov 2010 07:44:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.999
X-Spam-Level:
X-Spam-Status: No, score=-101.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_45=0.6, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VrjLP+hCnKB0 for <79attendees@core3.amsl.com>; Sun, 7 Nov 2010 07:44:51 -0800 (PST)
Received: from mail.kivinen.iki.fi (fireball.acr.fi [83.145.195.1]) by core3.amsl.com (Postfix) with ESMTP id 4BA643A679C for <79attendees@ietf.org>; Sun, 7 Nov 2010 07:44:51 -0800 (PST)
Received: from fireball.kivinen.iki.fi (localhost [127.0.0.1]) by mail.kivinen.iki.fi (8.14.3/8.14.3) with ESMTP id oA7Fj3o3009003 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <79attendees@ietf.org>; Sun, 7 Nov 2010 17:45:03 +0200 (EET)
Received: (from kivinen@localhost) by fireball.kivinen.iki.fi (8.14.3/8.12.11) id oA7Fj31b015468; Sun, 7 Nov 2010 17:45:03 +0200 (EET)
X-Authentication-Warning: fireball.kivinen.iki.fi: kivinen set sender to kivinen@iki.fi using -f
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <19670.51583.480134.384304@fireball.kivinen.iki.fi>
Date: Sun, 07 Nov 2010 17:45:03 +0200
From: Tero Kivinen <kivinen@iki.fi>
To: 79attendees@ietf.org
X-Mailer: VM 7.19 under Emacs 21.4.1
X-Edit-Time: 23 min
X-Total-Time: 24 min
Subject: [79attendees] RFCs in two ebook formats (mobi, epub)
X-BeenThere: 79attendees@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IETF 79 attendees list <79attendees.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/79attendees>, <mailto:79attendees-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/79attendees>
List-Post: <mailto:79attendees@ietf.org>
List-Help: <mailto:79attendees-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/79attendees>, <mailto:79attendees-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 07 Nov 2010 15:44:53 -0000

I have made the tool to convert all rfcs to format suitable for kindle
3 (Mobipocket, mobi) and as side effect I also have RFCs in epub
format too (as that is used as a source format for kindlegen
conversion program).

My process does not try to keep the original format of the RFCss, but
rather try to make them ebook reader compatible. This means I do
remove all page breaks, page numbers, convert table of contents to be
links to actual section headers, remove hard linebreaks and make
normal text flowable (meaning you can change font size etc). I try to
detect pictures, list items, references etc and format those
accordingly.

There are limitations depending on the platform, for example in the
Kindle 3 the smallest fixed width font is just small enough to allow
65 characters on the line (when screen is rotated), and that is just
exactly what is needed for our loved 32 bit word pictures:

                        1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       IKE SA Initiator's SPI                  |
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
...

I do not want to convert them to gif/jpeg images as then you would
loose ability to search, cut & paste etc.

Also in kindle there seems to be no way to access extra indexes I have
(Lookup Keywords, Lookup Titles) even when they do work if you load
same mobipocket file to mobipocket reader on some other platforms
(SymbianOs, blackberry, PalmOs, Windows Mobile etc), fortunately you
can get to the rfc index by through menu / index.

The epub format works for some other platforms (at least stanza in
iPhony altought it didn't support fixed width font so pictures were
not pretty), but I have not really tested it as I do not have those
platforms.

Anyways this is still work in progress, so feel free to send comments,
bug reports, feature requests etc to me.

Bill Fenner is now hosting those files in fast enough connection that
should allow loading them fast enough.

The urls are:

	http://www.fenron.net/~fenner/ietf/rfc.mobi

and

	http://www.fenron.net/~fenner/ietf/rfc.epub

The mobi format (http://en.wikipedia.org/wiki/Mobipocket) works in
Kindle 3, and any mobipocket reader software, along with lots of other
readers). ePub (http://en.wikipedia.org/wiki/EPUB) should then work in
rest of the devices...

You might need to download them to your PC first and then transfer
them to your device separately. Kindle should be able to download them
directly from that url, but the mime.types file in www.fenron.net does
not announce the proper mime type for those files, so it tries to show
it as text... (I assume this will get fixed). 
-- 
kivinen@iki.fi