Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-20-2011, 01:27 AM   #1
ProDigit
Karmaniac
ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.
 
ProDigit's Avatar
 
Posts: 2,157
Karma: 9023682
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, Jetbook Mini, Jetbook Color, Astak Ez Reader Pro
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)?
ProDigit is offline   Reply With Quote
Old 11-20-2011, 10:15 AM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,093
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by ProDigit View Post
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)?
IMHO import the functional Index.html into Calibre and have IT create the starting-point EPUB, then fine tune with Sigil.


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.).
theducks is offline   Reply With Quote
Old 11-20-2011, 04:09 PM   #3
ProDigit
Karmaniac
ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.
 
ProDigit's Avatar
 
Posts: 2,157
Karma: 9023682
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, Jetbook Mini, Jetbook Color, Astak Ez Reader Pro
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 04:23 PM.
ProDigit is offline   Reply With Quote
Old 11-20-2011, 05:01 PM   #4
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,093
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by ProDigit View Post
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.
That assumes that 'Copy' even attempts to place the files in order There is Oh so much that can go wrong with this method (Total section scramble).

What is wrong with the (simple) Index.Html and Calibre approach?
theducks is offline   Reply With Quote
Old 11-20-2011, 05:15 PM   #5
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,093
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Just to add, appending (stacking) multiple Html files will probably confuse things with multiple Head, Body
theducks is offline   Reply With Quote
Old 11-20-2011, 09:41 PM   #6
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,465
Karma: 986493
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by theducks View Post
Just to add, appending (stacking) multiple Html files will probably confuse things with multiple Head, Body
This is going to be a major issue at some point. Since this is very out of line with the spec strange things will happen with some reading systems.
user_none is offline   Reply With Quote
Old 11-21-2011, 05:26 AM   #7
ProDigit
Karmaniac
ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.
 
ProDigit's Avatar
 
Posts: 2,157
Karma: 9023682
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, Jetbook Mini, Jetbook Color, Astak Ez Reader Pro
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.)
ProDigit is offline   Reply With Quote
Old 12-10-2011, 08:06 AM   #8
ProDigit
Karmaniac
ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.
 
ProDigit's Avatar
 
Posts: 2,157
Karma: 9023682
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, Jetbook Mini, Jetbook Color, Astak Ez Reader Pro
Quote:
Originally Posted by theducks View Post
Just to add, appending (stacking) multiple Html files will probably confuse things with multiple Head, Body
The order of merging files goes in file name order.
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!
ProDigit is offline   Reply With Quote
Old 12-10-2011, 10:00 AM   #9
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,093
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by ProDigit View Post
The order of merging files goes in file name order.
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!
You missed my point entirely. It has nothing to do with the order.

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.
theducks is offline   Reply With Quote
Old 12-11-2011, 01:33 AM   #10
ProDigit
Karmaniac
ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.
 
ProDigit's Avatar
 
Posts: 2,157
Karma: 9023682
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, Jetbook Mini, Jetbook Color, Astak Ez Reader Pro
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!
ProDigit is offline   Reply With Quote
Old 12-19-2011, 05:08 AM   #11
superanima
W2E & ePub freak
superanima began at the beginning.
 
Posts: 38
Karma: 10
Join Date: May 2009
Device: cybook gen3 + boox60
Quote:
Originally Posted by ProDigit View Post
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)?
Since there are not names overlapping you can put all the files in one folder and import them.
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.
superanima is offline   Reply With Quote
Old 12-30-2011, 01:13 AM   #12
ProDigit
Karmaniac
ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.
 
ProDigit's Avatar
 
Posts: 2,157
Karma: 9023682
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, Jetbook Mini, Jetbook Color, Astak Ez Reader Pro
you could also copy-paste the HTML content into a new HTML, using a WYSYWYG editor.
that way formatting errors will disappear.
ProDigit is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help! how to handle multi page topic zhixiangpan Recipes 4 08-31-2011 10:46 PM
Multi-HTML to anything sidd.artha Calibre 4 10-05-2010 05:34 PM
Multi-HTML Help! tarifelagund Other formats 4 09-07-2009 04:49 PM
multi-page HTML with images to ePub or LRF Nvidiot Workshop 19 07-13-2009 08:20 PM
converting multi-page HTML to Mobipocket shinew Calibre 13 02-21-2009 02:33 PM


All times are GMT -4. The time now is 10:59 PM.


MobileRead.com is a privately owned, operated and funded community.