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 09-25-2010, 06:22 PM   #1
DTM
Intentionally Left Blank
DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.
 
DTM's Avatar
 
Posts: 171
Karma: 300106
Join Date: Feb 2006
Location: Royal Oak, MI, USA
Device: Nook STR
Sigil, HTML Tidy or PEBCAK?

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)
DTM is offline   Reply With Quote
Old 09-25-2010, 06:29 PM   #2
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: 15,258
Karma: 6020309
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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 online now   Reply With Quote
Old 09-25-2010, 08:18 PM   #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
This sounds like a bug. Try to make a repeatable test case and then head over to the issue tracker.
Valloric is offline   Reply With Quote
Old 09-25-2010, 09:24 PM   #4
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,882
Karma: 13575467
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by theducks View Post
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.
I use the following with no problems:

Code:
1-CHAPTER_IX.xhtml
indicating Part/Book 1 Chapter IX.

It's been workong fine so far.
crutledge is online now   Reply With Quote
Old 09-25-2010, 09:41 PM   #5
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: 15,258
Karma: 6020309
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
I use the following with no problems:

Code:
1-CHAPTER_IX.xhtml
indicating Part/Book 1 Chapter IX.

It's been workong fine so far.
Moral: Don't believe everything reported at MR
theducks is online now   Reply With Quote
Old 09-25-2010, 11:45 PM   #6
DTM
Intentionally Left Blank
DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.
 
DTM's Avatar
 
Posts: 171
Karma: 300106
Join Date: Feb 2006
Location: Royal Oak, MI, USA
Device: Nook STR
Quote:
Originally Posted by Valloric View Post
This sounds like a bug. Try to make a repeatable test case and then head over to the issue tracker.
OK, I'll take care of that shortly.
DTM is offline   Reply With Quote
Old 09-26-2010, 09:49 PM   #7
DTM
Intentionally Left Blank
DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.
 
DTM's Avatar
 
Posts: 171
Karma: 300106
Join Date: Feb 2006
Location: Royal Oak, MI, USA
Device: Nook STR
This has been submitted, with a sample file, as issue #598.
DTM 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
Question about using Sigil to convert HTML ficbot Sigil 9 03-06-2011 09:12 AM
HTML Loads To Sigil w/ Errors FlooseMan Dave Sigil 1 08-21-2010 10:15 PM
Sigil freezes when I + HTML ebook. Anarel Sigil 4 08-16-2010 12:13 PM
HTML Tidy problems pdurrant Sigil 2 04-08-2010 08:38 AM
Importing Open Office HTML in Sigil paulpeer Sigil 17 03-18-2010 05:23 AM


All times are GMT -4. The time now is 07:25 PM.


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