View Single Post
Old 06-23-2016, 05:27 AM   #1
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
Split on Markers --- Breaks existing links

Using v 0.8.6 portable on Win8.1 (also tried with v 0.9.5 portable on Win7).

I have the split markers inserted, as I always do. I have a separate xhtml file as a List of Illustrations, with links to the divs holding the images. I have another separate Footnotes file, also with links.

When I use the command "Split at Markers" --- The Footnotes links update automatically, as they should, going from this:

Code:
<body>
  <div class="chaphead">
    <h2 class="botmspace" id="fnot">FOOTNOTES:<br />
    &nbsp;</h2>
  </div>

  <div class="fnote">
    <a href="../Text/TENT.xhtml#fnc-01" id="fnt-01">[1]&nbsp;&nbsp;—</a> The ordinary .....
  </div>

  <div class="fnote">
    <a href="../Text/TENT.xhtml#fnc-02" id="fnt-02">[2]&nbsp;&nbsp;—</a> When this ....  </div>
To this:
Code:
<body>
  <div class="chaphead">
    <h2 class="botmspace" id="fnot">FOOTNOTES:<br />
    &nbsp;</h2>
  </div>

  <div class="fnote">
    <a href="../Text/TENT_0004.xhtml#fnc-01" id="fnt-01">[1]&nbsp;&nbsp;—</a> The ordinary ....
  </div>

  <div class="fnote">
    <a href="../Text/TENT_0008.xhtml#fnc-02" id="fnt-02">[2]&nbsp;&nbsp;—</a> When this ....  </div>

The LOI, however, goes from this:
Code:
<body>
  <div class="chaphead">
    <h2 id="loi" title="List of Illustrations">ILLUSTRATIONS</h2>
  </div>

  <div class="fmattr">
    <div class="sgc-toc-level-p">
      <a href="../Text/TENT.xhtml#ttd-01">It was ...</a>
    </div>

    <div class="sgc-toc-level-p">
      <a href="../Text/TENT.xhtml#ttd-02">A marvel...</a>
    </div>

    <div class="sgc-toc-level-p">
      <a href="../Text/TENT.xhtml#ttd-03">We anointed ...</a>
    </div>
To this, completely deleting the file-name(s):
Code:
<body>
  <div class="chaphead">
    <h2 id="loi" title="List of Illustrations">ILLUSTRATIONS</h2>
  </div>

  <div class="fmattr">
    <div class="sgc-toc-level-p">
      <a href="../Text/#ttd-01">It was...</a>
    </div>

    <div class="sgc-toc-level-p">
      <a href="../Text/#ttd-02">A marvel...</a>
    </div>

    <div class="sgc-toc-level-p">
      <a href="../Text/#ttd-03">We anointed...</a>
    </div>
I did this same operation last week on a very similar book which has almost identical layout, formatting, css, etc --- EXCEPT that one had no Footnotes page/file. That book worked flawlessly. I did try deleting the Footnotes file in this problem book, just in case Sigil is having a problem simultaneously dealing with more than one file that contains multiple links, but that made no difference --- links continue to break.

I have not had this problem since v 0.7.4. (see here: https://www.mobileread.com/forums/sho...d.php?t=231360 ) Obviously, there must be something peculiar to the book I am currently editing, but I can't find the gremlin.

I am attaching the UN-SPLIT draft versions of both the books, in case better eyes than mine (meaning 99% of the planet's population) can find a reason for the different behaviors. (By the way, it made no difference whether or not the images were included in the epub, so I deleted those for the attached files.)

Here, I am only dealing with 19 broken links, and it would not be too painful to correct them manually, but I have an up-coming project with several hundred links, and I want to correct my bad behavior before I dig into that one.

Thanks very much for any advice!
Attached Files
File Type: epub TENT--SPLIT-WONT-WORK.epub (114.5 KB, 218 views)
File Type: epub ARCADY--SPLIT-WILL-WORK.epub (104.5 KB, 149 views)
GrannyGrump is offline   Reply With Quote