07-07-2010, 07:02 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2010
Location: Milano, Italy
Device: none
|
internal links and chapter division
I am trying to build an ebook with a lot of internal links (for example, there is an index at the end of the file which links to the chapters where the keywords appear). Since the text is rather long, from within Sigil I divided it in chapters; unfortunately the name of the links were not changed, so they are useless.
I would rather not modify my xhtml source file, since the ebook will be left in that format too and a single long file should be easier to maintain. Does somebody have an idea which is the best way to cope with this? (An external program which automatically corrects links would be fine, but keep in mind that I am using windows) TIA, .mau. |
07-07-2010, 07:33 AM | #2 |
Chocolate Grasshopper ...
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
Welcome to mobileread - I'm sure an expert will be along shortly to answer your query.... |
Advert | |
|
07-07-2010, 07:45 AM | #3 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
|
|
07-07-2010, 11:09 AM | #4 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2010
Location: Milano, Italy
Device: none
|
funny
Hello Valloric,
I was trying to create a smaller example (the original file has 30 chapters...), but it works: I browsed the .epub output and all internal links are translated correctly. I will investigate further (my document is still not finished), and if the misbehaviour persists I'll submit a bug report. Thanks! .mau. |
07-08-2010, 11:32 PM | #5 |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
For what it's worth, I have found that for implementation of footnotes (initially internal links within a single .xhtml file) that after I load this file into sigil, and break it into chapters, sigil accurately preserves the links (i.e. adds the proper .xhtml filename to the footnote target) such that the footnote links still function, forward and backward, without my manual intervention.
You cannot imagine how impressed I was to see that happen! I'm dealing with fictional novels, but written by academics. And they HAVE to have their footnotes! Kudos to Valoric for being able to handle this. |
Advert | |
|
07-09-2010, 11:11 AM | #6 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
HTML links in sigil
I don't understand all I've read in this thread.
If the TOC is left in the book, Sigil does not rename the links. Am I missing something? |
07-09-2010, 12:34 PM | #7 |
Well trained by Cats
Posts: 30,370
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I rearrange (Sigil split) books all the time with Sigil.
The links are adjusted properly If you "Cut and Paste" parts that contain "Anchors", then Sigil does nothing. If you move the position of a split in the Booklist, Sigil adjusts the reading order. Easier to maintain Rename the splits to something meaningful (and terse, so it does not scroll off the viewer). p01C04.xhtml |
07-09-2010, 01:37 PM | #8 | |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
Code:
<A href="http://www.gutenberg.org/files/24105/24105-h/24105-h.htm#chap07">Chapter 7</A> I have made manual changes but never had it automatic. Last edited by crutledge; 07-09-2010 at 01:40 PM. |
|
07-09-2010, 02:43 PM | #9 | |
Well trained by Cats
Posts: 30,370
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
If you download the ziped file and work on that you will see Code:
<div class="bodytext"> <a name="chap07"></a> <h3>Chapter Seven.</h3> <h4>Sad Tidings.</h4> I ran the zip through Calibre, then edited the EPUB with Sigil (split) Code:
<div class="navigation">
| <a class="calibre13" href="../Text/24105-h_split_002.htm#chappre">Preface</a> | | <a class="calibre13" href="../Text/Section0003.xhtml#chap01">Chapter 1</a> | | <a class="calibre13" href="../Text/Section0003.xhtml#chap02">Chapter 2</a> | | <a class="calibre13" href="../Text/Section0003.xhtml#chap03">Chapter 3</a> | | <a class="calibre13" href="../Text/Section0003.xhtml#chap04">Chapter 4</a> | | <a class="calibre13" href="../Text/Section0003.xhtml#chap05">Chapter 5</a> | | <a class="calibre13" href="../Text/Section0003.xhtml#chap06">Chapter 6</a> |
| <a class="calibre13" href="../Text/Section0003.xhtml#chap07">Chapter 7</a> |
| <a class="calibre13" href="../Text/Section0001.xhtml#chap08">Chapter 8</a> |
<hr class="calibre4" />
</div>
<pre class="calibre3">
|
|
07-10-2010, 05:24 AM | #10 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
It's wonderous what can be learned while following these threads. I took a PG HTML file, removed the external references from the links and tested that all links still worked. Loaded to Sigil and tested the links before splitting. I then split the file and tested and renamed the sections and tested.
Sigil followed all changes just like you said. Amazing. I never envisioned such a capability. Thanks a lot, guys. |
07-10-2010, 07:53 AM | #11 | |
Well trained by Cats
Posts: 30,370
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Download or did you "Save As" from a browser? Somehow it looks like you opened the URL directly from within Sigil. Not good :^) The URL base does not get adjusted like it does when you "Save a Web page As..." Many books in PG already are available as EPUB (very simple), but that is a starting point just a little further along your path. |
|
07-10-2010, 08:21 AM | #12 | |
Chocolate Grasshopper ...
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
Quote:
Not actually too sure why these are still experimental - one would have thought they could have moved on by now ..... |
|
07-10-2010, 08:42 AM | #13 |
Well trained by Cats
Posts: 30,370
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
07-10-2010, 08:46 AM | #14 |
Chocolate Grasshopper ...
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
Perhaps - and you're probably correct (and we know how long committees take !)
|
07-10-2010, 12:35 PM | #15 | |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-650 Internal TOC Links in Sony readers | AlexBell | Sony Reader | 3 | 09-24-2010 06:03 AM |
Internal Links??? | Guns4Hire | PocketBook | 11 | 04-18-2010 02:25 AM |
PDF bookmarks and internal links on iPhone | frabjous | Apple Devices | 4 | 09-04-2009 08:51 AM |
Internal links in ePub-files broken? | Portnull | Calibre | 2 | 08-17-2009 11:00 AM |
Sony Reader division not going anywhere. | boylec | News | 18 | 07-26-2009 09:44 AM |