Another "oddity" I see with 0.4.0 - and I'm not entirely sure how to explain it to make sense...
my simple "template.html" and the associated style.css and template.jpg files work as expected - and as I believe all the files did in the older version I was using. My "all in one" files that contain full book text (and which contain spaces in the names) - behave differently. First I will explain the expected, then the oddness I'm seeing...
Drag "template.html" to the Sigil icon - thus opening Sigil with the template html file, the template jpg image and the style css files that were linked - all three files appear in the file tree/browser. Open the "content.opf" file.
Within the manifest section - the following is present:
Code:
<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" />
<item href="Styles/style.css" id="style.css" media-type="text/css" />
<item href="Images/template.jpg" id="template.jpg" media-type="image/jpeg" />
<item href="Text/template.html" id="template.html" media-type="application/xhtml+xml" />
</manifest>
Rename "template.html" to "book.xhtml" and "template.jpg" to "cover.jpg" and the two relevant lines in the manifest section change to:
Code:
<item href="Images/cover.jpg" id="cover.jpg" media-type="image/jpeg"/>
<item href="Text/book.xhtml" id="book.xhtml" media-type="application/xhtml+xml"/>
Notice specifically that the filename as listed as "id" changed in addition to the href's. This stays as expected/renamed through the chapter marker auto-split process - as I'd expect (and not particularly relevant yet)...
Now, I try the same process but instead of the file named "template.html" and "template.jpg" those files are instead named something with spaces prior to them being placed into Sigil for conversion/epub creation from html file (as this is my general process, my original files almost always contain spaces and until now I've not seen this behaviour)...I used:
import template test file.html and the same name for the jpg (style.css remained the same) and the manifest in content.opf starts off like:
Code:
<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" />
<item href="Styles/style.css" id="style.css" media-type="text/css" />
<item href="Images/import%20template%20test%20file.jpg" id="importtemplatetestfile.jpg" media-type="image/jpeg" />
<item href="Text/import%20template%20test%20file.html" id="importtemplatetestfile.html" media-type="application/xhtml+xml" />
</manifest>
I rename both the cover (to cover.jpg) and the template file (to book.xhtml again) and the manifest looks like this:
Code:
<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml"/>
<item href="Styles/style.css" id="style.css" media-type="text/css"/>
<item href="Images/cover.jpg" id="importtemplatetestfile.jpg" media-type="image/jpeg"/>
<item href="Text/book.xhtml" id="importtemplatetestfile.html" media-type="application/xhtml+xml"/>
</manifest>
Notice that this time the only change to the "id" is the original filename minus all spaces - not the expected renaming to the new filename of book.xhtml and cover.jpg - though you can see the href's are correct with the new filenames. Even post-file split, this id attribute never gets "fixed" to the proper filename (not critical as it is an internal file thing, but aesthetically not my preference personally - I would expect that to update at some point to reflect the id as the same filename if possible).
The March 24th release (importing the template filename with spaces) initially (prior to rename) shows:
Code:
<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" />
<item href="Styles/style.css" id="style.css" media-type="text/css" />
<item href="Images/import template test file.jpg" id="importtemplatetestfile.jpg" media-type="image/jpeg" />
<item href="Text/import template test file.html" id="importtemplatetestfile.html" media-type="application/xhtml+xml" />
</manifest>
and post-renames to non-spaced filename:
Code:
<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml"/>
<item href="Styles/style.css" id="style.css" media-type="text/css"/>
<item href="Images/cover.jpg" id="cover.jpg" media-type="image/jpeg"/>
<item href="Text/book.xhtml" id="book.xhtml" media-type="application/xhtml+xml"/>
</manifest>
As expected and the reason why I'm reporting this as a possible "thing to fix" as it used to work the way I "expect" it to...
If you want, I'll transfer this post over to the issues portion of the Sigil project page - but I figured I'd mention it here where I'm a little more comfortable with the tools available for creating/editing posts.