View Single Post
Old 06-23-2016, 12:10 PM   #18
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,920
Karma: 6240958
Join Date: Nov 2009
Device: many
Hi Diapdealer

Quote:
but it will still get a reader to the right file even if the target id doesn't exist.
;-)

Not all of the time. Think of starting with one big xhtml file with unique ids and then splitting it into many files. The one big file no longer exists and you end up having no idea of which of the smaller file to actually link to since the id does not actually exist!

So it looks like some sort of id/fragment check function needs to included right at the same point we do a well-formed check to make sure things are hunky-dory before splitting.

That should be doable as we already have routines to get all ids defined across the book (using multiple threads so it is done concurrently) so before splitting we could walk the urls with fragments and verify if an "id" exists in that particular file.

KevinH
KevinH is online now   Reply With Quote