|03-27-2010, 09:35 PM||#1|
Join Date: Nov 2009
Device: Kindle 3 WiFi, Formerly had Jetbook Lite
Splitting the Bible into Multiple Files
I found a way to split the Bible into different files. It does take some time, but a lot less than doing everything manually. It took me about 1 1/2 hrs. However, my directions apply to linux, but there may be a way to apply the basic idea to Windows/Mac.
What you need:
Each chapter in its own file, in numerical order. (I used an epub, renamed the extension to .zip and extracted it. All of the files had some name and ended with a number ranging from to 0 to 1189 like name1, name2 etc. Note: The first file of Psalms was an extra one I had to delete.)
The program GPRename
Create a master folder to hold all the books (like "Bible") and if you want make two folders inside it called "Old Testament" and "New Testament"
If you're using linux, then in the terminal type:
cd /home/<insert username>/Bible/Old\ Testament (substitute whatever filepath you have)
mkdir Genesis Exodus Leviticus Numbers Deuteronomy Joshua Judges Ruth 1\ Samuel 2\ Samuel 1\ Kings 2\ Kings 1\ Chronicles 2\ Chronicles Ezra Nehemiah Esther Job Psalms Proverbs Ecclesiastes Song\ of\ Songs Isaiah Jeremiah Lamentations Ezekiel Daniel Hosea Joel Amos Obadiah Jonah Micah Nahum Habakkuk Zephaniah Haggai Zechariah Malachi
cd New\ Testament
mkdir Matthew Mark Luke John Acts Romans 1\ Corinthians 2\ Corinthians Galatians Ephesians Philippians Colossians Thessalonians Thessalonians Timothy Timothy Titus Philemon Hebrews James 1\ Peter 2\ Peter 1\ John 2\ John 3\ John Jude Revelation
Then using the # of chapter list below, take the first 50 files and put them in the Genesis folder, then once they are moved, the next 40 into Exodus etc.
# of Chapters per Book
1 Samuel 31
2 Samuel 24
1 Kings 22
2 Kings 25
1 Chronicles 29
2 Chronicles 36
Song of Songs 8
OT Total 929
1 Corinthians 16
2 Corinthians 13
1 Thessalonians 5
2 Thessalonians 3
1 Timothy 6
2 Timothy 4
1 Peter 5
2 Peter 3
1 John 5
2 John 1
3 John 1
NT Total 260
Entire Bible 1189
Once that is done, open GPRename navigate to the Genesis folder, then click the "Numerical" tab.
In the text box for "Insert before numerical number" type "Genesis" and in the "and after" text box, type in ".html" if the files are htm or html or ".txt" if they are txt.
Then press preview, and make sure the number of files corresponds to the number of chapters, then press rename. Continue process for each book changing the name of the book in the first text box.
Note: the files with 0 to 9, had to be renamed 01, 02 etc same thing with 98 and 99 I think. Those are the only problem numbers.
Then transfer the files to the jetbook, JBL, or whatever. Note that the books will appear in alphabetical order, so if that bothers you, instead of typing in "Genesis" type in "1 Genesis" "2 Exodus" etc. It will look goofy, but it should put them in the right order.
Also, it is a little annoying to have change books for each chapter, but since the files are so small, it shouldn't take much longer. The upside is, you can navigate straight to any chapter you want. Also, the Bible no longer takes forever to open
Last edited by SciFiGal777; 03-27-2010 at 09:38 PM.
|03-27-2010, 10:10 PM||#2|
Join Date: Jul 2009
Device: Rooted NST
If you have KJV (public domain), perhaps you should post your work here for others to use. Personally I use NASB in PDF format. It's formatted the same as the regular printed text and has PDF Table of Contents for each chapter. Books are in one folder and numbered like 01: Genesis, 02: Exodus... 66: Revelation. The downside I see with your method is that you would have to go back to the book listing when advancing from chapter to chapter.
|03-27-2010, 10:35 PM||#4|
Join Date: Jul 2009
Device: Rooted NST
I spent a loooooong time working on the PDF's myself... copy and pasted the text, formatted the headings, the margins, the page size, page breaks, adding bookmarks for TOC... more than 1.5 hours I suppose, but at least I was able to put my programming skills to use and automate a bunch of stuff. Made in OpenOffice with help from AutoHotKey and then exported to PDF.
Last edited by Kralik; 03-27-2010 at 10:40 PM.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Cropping Multiple Files||SpyKiIIer||16||12-07-2012 01:09 AM|
|Does splitting EPUB among more HTML files improve Performance?||purcelljf||ePub||2||10-01-2010 02:15 AM|
|Txt files - Convert to Epub - Multiple files into one book - noob help||Cernan||Calibre||6||05-18-2010 11:12 AM|
|Multiple Calibre Files?||Sydney's Mom||Calibre||21||05-02-2010 11:42 AM|
|Splitting files... or something?||*Angie*||Calibre||4||09-14-2009 08:42 PM|