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 07-07-2010, 07:02 AM   #1
.mau.
Junior Member
.mau. began at the beginning.
 
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.
.mau. is offline   Reply With Quote
Old 07-07-2010, 07:33 AM   #2
GeoffC
Chocolate Grasshopper ...
GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.
 
GeoffC's Avatar
 
Posts: 26,938
Karma: 16968764
Join Date: Mar 2008
Location: Scotland
Device: 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....
GeoffC is offline   Reply With Quote
Old 07-07-2010, 07:45 AM   #3
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by .mau. View Post
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.
Sigil should automatically update those links on chapter splits. If it didn't, that's a bug report. Read this wiki page.
Valloric is offline   Reply With Quote
Old 07-07-2010, 11:09 AM   #4
.mau.
Junior Member
.mau. began at the beginning.
 
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.
.mau. is offline   Reply With Quote
Old 07-08-2010, 11:32 PM   #5
st_albert
Fanatic
st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.
 
Posts: 544
Karma: 64420
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.
st_albert is offline   Reply With Quote
Old 07-09-2010, 11:11 AM   #6
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 15,331
Karma: 13495770
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?
crutledge is offline   Reply With Quote
Old 07-09-2010, 12:34 PM   #7
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: 14,651
Karma: 5629001
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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
theducks is offline   Reply With Quote
Old 07-09-2010, 01:37 PM   #8
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 15,331
Karma: 13495770
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by theducks View Post
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
Here is a link from a PG HTML file:
Code:
<A href="http://www.gutenberg.org/files/24105/24105-h/24105-h.htm#chap07">Chapter 7</A>
Is Sigil supposed to adjust this after the file is broken into sections and the sections renamed (e.g. CHAPTER_07.xhtml or CHAPTER07.xhtml or Chapter_7.xhtml or Chapter 7.xhtml)?

I have made manual changes but never had it automatic.

Last edited by crutledge; 07-09-2010 at 01:40 PM.
crutledge is offline   Reply With Quote
Old 07-09-2010, 02:43 PM   #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: 14,651
Karma: 5629001
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by crutledge View Post
Here is a link from a PG HTML file:
Code:
<A href="http://www.gutenberg.org/files/24105/24105-h/24105-h.htm#chap07">Chapter 7</A>
Is Sigil supposed to adjust this after the file is broken into sections and the sections renamed (e.g. CHAPTER_07.xhtml or CHAPTER07.xhtml or Chapter_7.xhtml or Chapter 7.xhtml)?

I have made manual changes but never had it automatic.
Your example is an external link, not a relative link to the internal (local) epub. That may be your problem.
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>
in the text

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">
as you can see it is now in section 3 and it was originally part of 24105-h_split_002.htm
theducks is offline   Reply With Quote
Old 07-10-2010, 05:24 AM   #10
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 15,331
Karma: 13495770
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.
crutledge is offline   Reply With Quote
Old 07-10-2010, 07:53 AM   #11
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: 14,651
Karma: 5629001
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by crutledge View Post
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.
I am a little curious. How did you get the fie you were working on?

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.
theducks is offline   Reply With Quote
Old 07-10-2010, 08:21 AM   #12
GeoffC
Chocolate Grasshopper ...
GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.
 
GeoffC's Avatar
 
Posts: 26,938
Karma: 16968764
Join Date: Mar 2008
Location: Scotland
Device: Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
Quote:
Originally Posted by theducks View Post
I am a little curious. How did you get the fie you were working on?

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.

Not actually too sure why these are still experimental - one would have thought they could have moved on by now .....
GeoffC is offline   Reply With Quote
Old 07-10-2010, 08:42 AM   #13
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: 14,651
Karma: 5629001
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by GeoffC View Post
Not actually too sure why these are still experimental - one would have thought they could have moved on by now .....
Committee approval?
theducks is offline   Reply With Quote
Old 07-10-2010, 08:46 AM   #14
GeoffC
Chocolate Grasshopper ...
GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.
 
GeoffC's Avatar
 
Posts: 26,938
Karma: 16968764
Join Date: Mar 2008
Location: Scotland
Device: Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
Perhaps - and you're probably correct (and we know how long committees take !)
GeoffC is offline   Reply With Quote
Old 07-10-2010, 12:35 PM   #15
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 15,331
Karma: 13495770
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by theducks View Post
I am a little curious. How did you get the fie you were working on?

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.
I always "Save As" from the browser. The problem is that a lot of formating used in the PG files does not look good in Mobi and other formats. BD would strip all formating but, to my knowledge, Sigil will not, so I do some editing before loading Sigil. In fact, when I load to Sigil, all I have to do is press F6. I finally produce Epub, Mobi, LRF, and Imp for posting. It's a hobby.
crutledge 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
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


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


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