04-23-2011, 05:06 PM | #1 |
Colonel Mustard
Posts: 90
Karma: 1426
Join Date: Feb 2010
Location: Montreal
Device: iPhone 6, Kindle Paperwhite 2, iPad 2
|
File splitting and endnotes links
I'm still working on the same ePub I was talking about a couple days ago—and thus still trying to learn a thing or two about the ideal workflow I should stick to for the next books I format.
This book was split in 17 files when I first opened it. After reformating a lot of things, I created an 18th file to put the original endnotes (that weren't in the original ePub file—I'm doing this by hand). I managed to correctly create over a hundred of those endnotes, thanks to the information I found on this forum. The original edition of this book (end of 18th century) was in six volumes, so I now want to mark the change of volume in the ePub version I'm doing. So I added a "h2.sectiontitle" class in the stylesheet, where I specified "page-break-before: always;" so that when a new volume starts, it starts on a new page. But then I read around here that the only way to make a page-break on certain reader, like iPad, is to actually split the files at the correct place... Is that true? So the CSS I did will have no effect (the "page-break-before: always;" I mean)? If that is true, it means I have to resplit the files in order to have the beginning of a section to start on a new page. Unfortunately, after linking all those endnotes, I don't think I will split the files differently, as I guess I will have to re-do all the linking correctly after? Am I mistaken? Or does Sigil re-adjust all the endnotes correctly when files are re-split? I would guess not. Would be too good to be true. So, is there an easy way to split the files differently without breaking all the endnotes? I guess the next time I will see that the file splitting/chaptering is correctly done before going to the endnotes step. Thanks in advance for your help. |
04-24-2011, 04:25 AM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Any good reader should honor the page-break-before. So, I would not be suprised if the iBooks would not.
The other way is to split the files more. Every new file will function as a new-chapter and thus a page break. |
Advert | |
|
04-24-2011, 10:40 AM | #3 |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
My experience has been that Sigil modifies the endnote links appropriately when files are split (ver 0.3.4 and below).
|
04-24-2011, 11:03 AM | #4 |
Colonel Mustard
Posts: 90
Karma: 1426
Join Date: Feb 2010
Location: Montreal
Device: iPhone 6, Kindle Paperwhite 2, iPad 2
|
Thanks again for the info. I guess I'll leave my book as it is now (too afraid to break the endnotes at this point), but I'll give it a try on another book sometime to see how exactly file splitting affect endnotes links in Sigil.
|
04-24-2011, 11:35 AM | #5 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
As long as the notes are defined correctly, splitting in Sigil will work.
|
Advert | |
|
04-24-2011, 08:54 PM | #6 |
Colonel Mustard
Posts: 90
Karma: 1426
Join Date: Feb 2010
Location: Montreal
Device: iPhone 6, Kindle Paperwhite 2, iPad 2
|
Seems I haven't done my endnotes correctly... I thought I was done with the books, and passing it into FlightCrew gave me one error like this for every endnote: "value 'x' is invalid NCName".
I don't exactly understand what that means or what I didn't do correctly. I will explain what I did to create the endnotes and if anyone can show me the wrong part I would be grateful. First, in the text I put this: <a href="../Text/index_split_18.html#1" id="1"><sup>1</sup></a> And in the index_split_18.html files where the notes are located I put this:<p class="footnote"><a href="../Text/index_split_0.html#1" id="1">1</a>. NOTE TEXT</p> with index_split_0.html being the file where I put the first part. I did the 130 notes like this, changing the number every time of course. Any idea what I did wrong? It's my last question for this ePub I swear. |
04-24-2011, 10:49 PM | #7 | |
Booklegger
Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
|
It took some searching to verify my memory, but here it is:
Quote:
Last edited by Jellby; 04-25-2011 at 04:07 AM. Reason: Fixed smiley |
|
04-24-2011, 11:19 PM | #8 |
Colonel Mustard
Posts: 90
Karma: 1426
Join Date: Feb 2010
Location: Montreal
Device: iPhone 6, Kindle Paperwhite 2, iPad 2
|
Ah, I see!
Thanks a lot, I appreciate it. |
04-26-2011, 02:52 PM | #9 |
Connoisseur
Posts: 68
Karma: 526028
Join Date: Nov 2009
Location: New York, NY
Device: iphone
|
The question of whether the page break bug has been fixed in ibooks was still up in the air as of February 2011. See Pigs, Gourds & Wikis. Someone comments that it doesn't appear to have been fixed.
|
05-01-2011, 12:50 PM | #10 | |
Colonel Mustard
Posts: 90
Karma: 1426
Join Date: Feb 2010
Location: Montreal
Device: iPhone 6, Kindle Paperwhite 2, iPad 2
|
Quote:
My endnotes are done like this: in the text I put <a href="../Text/index_split_18.html#en-1" id="en-1"><sup>1</sup></a> And in the index_split_18.html files where the notes are located I put this:<p class="footnote"><a href="../Text/index_split_0.html#en-1" id="en-1">1</a>. NOTE TEXT</p> with index_split_0.html being the file where I put the first part. Thanks again for the help. |
|
05-01-2011, 03:39 PM | #11 | |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
I advise using, say Code:
<a href="../Text/index_split_18.html#en-1" id="txt-1"><sup>1</sup></a>
Code:
<p class="footnote"><a href="../Text/index_split_0.html#txt-1" id="en-1">1</a>. NOTE TEXT</p>
|
|
05-01-2011, 04:07 PM | #12 |
Colonel Mustard
Posts: 90
Karma: 1426
Join Date: Feb 2010
Location: Montreal
Device: iPhone 6, Kindle Paperwhite 2, iPad 2
|
st_albert, thanks a lot—you just made me understand clearly a simple thing about anchors (I'm such a noob hehe). I was doing them a bit blindly by keeping the same id for everything because I wasn't too sure how it worked...
Will update my book and re-try file splitting and see how my endnotes links react. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre to EndNotes X3 is it possible? | fms95032 | Calibre | 6 | 10-19-2016 11:09 AM |
Links to URLs work, internal links don't? | NewDay | ePub | 36 | 10-27-2010 04:09 AM |
Quick and dirty conversion of html to epub WITH intra-file links | Birdonawire | ePub | 2 | 06-18-2010 02:18 AM |
Splitting large file sizes ... | Hangman | Calibre | 1 | 04-05-2010 10:01 PM |
Text File with web links? | schulzmc | Amazon Kindle | 3 | 05-23-2008 03:06 PM |