View Single Post
Old 02-08-2007   #1 (permalink)
nightgolfer
 
Posts: n/a
GUIDE: Converting Gutenberg eBooks for MiniPlayer use

Hi all,

been fooling around with my new MiniPlayer today, extremely happy with it so far. =D

As someone else in here mentioned, you can get free (public domain) .txt format eBooks over at Project Gutenberg (www.gutenberg.org), but after snatching a few of them I noticed that they don't really work all that well on the M6 screen. The problem is that PG have added line breaks that don't really fit the width of the M6 screen, which means you get really bad text layout. The following is a suggestion on how to get around this:

Get a good text editor. I personally use EditPlus, but any slightly advanced text editor should do, as long as it supports Regular Expressions and the ability to Join Lines.

1) Open up youe .txt eBook and select all the text (CTRL-A).

2) Next, you need to find the Join Lines function. In EditPlus it's (CTRL-SHIFT-J). This removes most of the line breaks in the document, but leaves a single break between each paragraph of text.

3) A book can be kinda hard to read if all the text is scrunched together like this, so we want to get some more space in there. Find your editor's Replace function, and make sure it supports Regular Expressions. You basically want to replace all single line breaks (they're all single right now) with *two* line breaks. In the replace function, type "\n" (without the " ") in the Find field, and type "\n\n" (again without " ") in the Replace With field. This will replace all line breaks with two line breaks, giving you the same text layout as the file originally had, but without all the extra line breaks that don't work on the MiniPlayer screen.

Happy reading! =)

Cheers,
NightGolfer

Ps.: If you don't know which books to download, check out the following link which has the top 100 books downloaded from gutenberg.org the past 30 days:
http://www.gutenberg.org/browse/scores/top#books-last30

Last edited by nightgolfer : 02-08-2007 at 12:58 AM. Reason: wrong url
  Reply With Quote