![]() |
#1 |
Karmaniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
Multi page possible?
Hi,
I have a book that has following files: - index.htm (main page) - toc.htm (toc) - outro.htm (final word) Then I have folders like this: - ch01 - ch02 - ch03 - .... In each folder there are few (changing between 1 to 6 or 7) files like this: - 01-01.htm - 01-02.htm - 01-03.htm for chapter 2 it would look like: - 02-01.htm - 02-02.htm - 02-03.htm - 02-04.htm - 02-05.htm this is the folder structure of my book. I want to know if in Sigil, I can all import them into one epub, or if it is better to put all html files in one folder, or if Sigil is not able to combine or use external html files (and I need to combine all htmls manually in one chapter file)? |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Caution: Sigil does terrible (Nuke's) overlapping file names when it flattens nested folder structure (each older file with the same name,will be overwritten, regardless of original folder.). |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Karmaniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
A manual edit it will be then :-)
BTW: For others struggling with this same issue, just copy all htmls in one folder, then in command (old dos prompt) go into the directory and type something like this: copy *.html combined.html DOS prompt will just copy and add multiple files into one. Then it's upto an HTML editor to do some cleanup work. Last edited by ProDigit; 11-20-2011 at 03:23 PM. |
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() ![]() |
|
![]() |
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Just to add, appending (stacking) multiple Html files will probably confuse things with multiple Head, Body
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
|
![]() |
![]() |
![]() |
#7 |
Karmaniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
Nothing really.
With Notepad++ it's only a small effort to remove each header/footer, and the search and replace makes it not matter how many chapters or blocks you'll need to edit, wether it be 10 chapters, or 1000, they all get done in a jiffy! Aside from that there's some cleanup work to do (eg: getting rid of 10 different headings, and getting rid of tables, linespacing, hrefs etc... too.) |
![]() |
![]() |
![]() |
#8 | |
Karmaniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
Quote:
If you call the introduction page and TOC names like 0.html, and 00.html; perhaps foreword 000.html, then the rest of the chapters in their chapter number (eg: 01.html, 02.html .... 99.html), and then make sure the ending (like sources, dictionary, or any other closing text) gets a chapter number higher than the last chapter, assures you the copy command will copy the chapters in their proper order! |
|
![]() |
![]() |
![]() |
#9 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Concatenating HTML files will now have Multiple <HTML> <HEAD><BODY> tags in a single file in violation of the basic HTML rules. Only ONE pair per file. |
|
![]() |
![]() |
![]() |
#10 |
Karmaniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
Like I said, removing them is very easy with Notepad ++. Just one or two 'search and replace' line, and you've removed all those lines, then add the body and HTML to the top and /body and /html to the bottom!
|
![]() |
![]() |
![]() |
#11 | |
W2E & ePub freak
![]() Posts: 38
Karma: 10
Join Date: May 2009
Device: cybook gen3 + boox60
|
Quote:
Sigil does not support nested folders in the "Text" folder, so maybe your book will have some internal link broken. I think you can easily fix them with some simple find-replace. Nested folders would be a nice feature though, I hope they implement it in the future. |
|
![]() |
![]() |
![]() |
#12 |
Karmaniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
you could also copy-paste the HTML content into a new HTML, using a WYSYWYG editor.
that way formatting errors will disappear. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
help! how to handle multi page topic | zhixiangpan | Recipes | 4 | 08-31-2011 09:46 PM |
Multi-HTML to anything | sidd.artha | Calibre | 4 | 10-05-2010 04:34 PM |
Multi-HTML Help! | tarifelagund | Other formats | 4 | 09-07-2009 03:49 PM |
multi-page HTML with images to ePub or LRF | Nvidiot | Workshop | 19 | 07-13-2009 07:20 PM |
converting multi-page HTML to Mobipocket | shinew | Calibre | 13 | 02-21-2009 01:33 PM |