View Single Post
Old 09-25-2010, 05:29 PM   #2
theducks
Well trained by Cats
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: 29,659
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by DTM View Post
I don't know if this is an issue with Sigil, HTML Tidy or (ahem) the user.

I created a book using Sigil, containing several chapters with xhtml filenames "1stDay.xhtml", "2ndDay.xhtml", ... , "30thDay.xhtml". I then created an "Index" chapter, containing numerous links to places within the other chapters. These included references such as: <a href="../Text/23rdDay.xhtml#PSM23">.

When I was done editing, I found that several links were broken. When I opened the book in Sigil to check on the code, I discovered that, randomly, the chapter references in the links were changed. For example, the above was changed to: <a href="../Text/3rdDay.xhtml#PSM23">. This didn't happen on all of the links, but when it did, in every case, the alteration was that the first digit in the chapter name was dropped. There are more details, but I'll save those for the issue report, if there is one.

I was able to fix it by inserting a letter at the beginning of each file name. Apparently, there is a problem with files that begin with numerals.

So here is the question: Does this look like a bug in Sigil for which I should open an issue, a problem with HTML Tidy that the Sigil folks can't do anything about, or is it simply forbidden to start an xhtml file name with a numeral (a rule I'm not aware of)?


(*PEBCAK: Problem Exists Between Chair And Keyboard)
I believe there is a requirement that filenames begin with a letter in epubs. Over in the ePub group, someone mentioned that Calibre also balks on beginning digits.
It seems that both Sigil and Calibre try and fix the problem.
theducks is offline   Reply With Quote