View Single Post
Old 12-14-2016, 01:32 PM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,614
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Trane View Post
Q #1. If I insert anchors/hyperlinks PRIOR to splitting the book into chapter files (it will create 64 separate files), when I do the splitting, will the achors/hyperlinks update to reflect the new files?
Yes. However ... in versions of Sigil earlier than 0.9.7 it would be possible for urls that contained non-existent url-fragment ids to become quite butchered when splitting/merging. Starting with Sigil v0.9.7, Sigil will warn you if such situations are present and allow you to cancel the split/merge before any damage can be done.

It's a good idea to run the Reports Tool before doing such a split. It will be able to tell you if there are urls present that don't have existing targets.

Fragment identifiers (../Text/myfile.xhtml#mytarget) are the only real issue, here. Standard urls with non-existent files in the url will be left alone (../Text/this_file_is_not_in_my_epub.xhtml) when splitting/merging/renaming

Quote:
Originally Posted by Trane View Post
Q #2. If it WILL update, then what happens when I rename each of those 64 files to be meaningful (want to rename ea per the chapter heading).
All hyperlinks will be properly adjusted when renaming files (so long as you're using the rename feature that's part of Sigil).

As always ... make sure you have good backups before performing any drastic/large-scale operations and double-check the results before moving forward.

Last edited by DiapDealer; 12-14-2016 at 01:37 PM.
DiapDealer is offline   Reply With Quote