View Single Post
Old 03-09-2011, 07:31 AM   #13
mufc
Connoisseur
mufc doesn't littermufc doesn't litter
 
Posts: 99
Karma: 170
Join Date: Nov 2010
Location: Airdrie Alberta
Device: Sony 650
When you say clean up, you mean by stripping the references to css and page-template.xpgt in the opf file and xml/html files correct ?
Why would that not validate afterwards ?

I just exploded a book I had previously done and a css file is back. Looks like Calibre inserted one but if I remove the links to it now what will happen.
CSS
Spoiler:
@namespace h "http://www.w3.org/1999/xhtml";
.calibre {
display: block;
font-family: "MyFonts", serif;
font-size: 1.08333em;
line-height: 1.2;
margin-bottom: 0;
margin-left: 2pt;
margin-right: 2pt;
margin-top: 0;
padding-left: 0;
padding-right: 0;
text-align: left
}
.calibre1 {
border-bottom: 0;
border-top: 0;
display: block;
margin-bottom: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
text-indent: 1.5em
}
.calibre2 {
border-bottom: 0;
border-top: 0;
display: block;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
text-indent: 1.5em
}
.calibre3 {
display: block
}
.calibre4 {
border: 0;
border-bottom: 0;
border-top: 0;
display: block;
height: 1em;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
text-indent: 1.5em
}
.calibre5 {
display: block;
margin-bottom: 1em;
margin-left: 1em;
margin-right: 1em;
margin-top: 1em
}


What does .calibre2 thru calibre5 stand for ?
.calibre is my font settings etc
.calibre1 is no space between paragraphs I THINK
What are the rest ?

I want to get my books looking the way I like but I do not want to screw it up for anyone else.


Is it not better to replace the css file with my own (the one calibre made for me in this instance) and just get rid of page-template.xpgt and any references to that ?



OK now I really am confused. On checking opf/html files of a book I previously exploded, and deleted the page-template.xpgt and css files, I now find another css file (calibres) but all references in the html files and opf files to page-template.xpgt are gone. Also each html file even though having still a link to stylesheet1.css, my styles created in calibre are in the head of each page.

Has Calibre become even more sophisticated lately ?

Kudos if so.

Last edited by mufc; 03-09-2011 at 07:46 AM.
mufc is offline   Reply With Quote