View Single Post
Old 03-03-2010, 06:48 PM   #47
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,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by ghostyjack View Post
A few things I've noticed:
1. When importing a HTML file that includes the CSS code in it (and not in a separate CSS file) and then inserting a chapter break, all the css code now appears in the new xhtml file. I take it Sigil can't at present extract the CSS code and place it in a CSS file so that when splitting the file, I don't have to modify the CSS code in every split.
The intent is always to preserve original content the way it was. If your HTML file has CSS style tags, it will have them when you open it in Sigil.

If you want those style rules in a separate CSS file:
  1. Open Code View;
  2. Cut the CSS code;
  3. Right-click "Styles" folder in the Book Browser and create a new CSS file;
  4. Paste in the CSS.
  5. Add a new link element to you chapter.
Takes about 10 seconds.

Quote:
Originally Posted by ghostyjack View Post
2. When splitting a file all the new files are xhtml files, but the first file is showing as a html file (a html file was opened in Sigil to create the book) and I can't rename it. Is this typical behaviour?
Already on the tracker. Although I still wonder why you people care whether the extension is htm, html, xhtml or whatever. Your Reading System doesn't care, and no one will be able to even see those files when you make an epub.
Valloric is offline   Reply With Quote