Quote:
Originally Posted by theducks
Nope!
The first thing to do id Validate (W3c validate) the starting code
Bad code = bad conversion
Then consider that everything (valid) you can do in HTML does not have a translation to EPUB
Then consider that not all devices accept every Valid (in EPUB) command
Makes it fun 
|
I try to convert pages of eldiario.es
I have used the rss conversion of calibre and it performs quite well.
But I want to convert any page, once I have removed some comments from the readers that I don't find interesting.
I use Mozilla Seamonkey. Before I save a page in my computer I use DOM Inspector to remove any script, Form or Iframe. in the tree.
Then I use OpenOffice writer to format the text and to remove further fragments that I don't want.
Then I import In calibre.
I further try to clean some errors detected in Sigil ( most name and border attributes in <img> tags )
The result is that the last page is truncated. But it depends on the font-size that I select in the reader. The bigger fontsize, more is truncated.
Note that if I change the fontsize in the epub ( eg 0.85 em instead of 1em ) using Sigil, sometimes my reader performs better.
I include a sample of the css :
".calibre {
margin-bottom: 0;
margin-left: 5pt;
margin-right: 5pt;
margin-top: 0;
padding-left: 0;
padding-right: 0
}
.calibre1 {
background: transparent;
display: block
}
.calibre1-western {
font-size: 1.66667em;
font-weight: bold;
line-height: 1.2;
margin-bottom: 0.67em;
margin-left: 0.18cm;
margin-right: 0.18cm;
margin-top: 0.67em;
page-break-before: auto
}
.calibre10 {
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em
}
.calibre11 {
height: 199px;
width: 356px
}
.calibre12 {
height: 187px;
width: 333px
}
.calibre13 {
height: 237px;
width: 357px
}
.calibre14 {
height: 236px;
width: 357px
}
.calibre15 {
margin-left: 0.18cm;
margin-right: 0.18cm;
margin-top: 1em;
page-break-after: always;
page-break-before: auto;
page-break-inside: auto
}
.calibre2 {
color: #000080
}
.calibre3 {
height: 92px;
width: 369px
}
.calibre4 {
}
.calibre5 {
height: 54px;
width: 406px
}
.calibre6 {
margin-bottom: 1em;
margin-left: 0.18cm;
margin-right: 0.18cm;
margin-top: 1em;
page-break-before: auto;
page-break-inside: avoid
}
.calibre7 {
font-weight: bold
}
.calibre8 {
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
page-break-before: auto;
page-break-inside: avoid
}
.calibre9 {
height: 240px;
width: 362px
}
.cuerpo-de-texto-con-sangria {
margin-bottom: 1em;
margin-left: 0.5cm;
margin-right: 0;
margin-top: 1em
}
.western {
font-size: 1.66667em;
font-weight: bold;
line-height: 1.2;
margin-bottom: 0.83em;
margin-left: 0.18cm;
margin-right: 0.18cm;
margin-top: 0.83em
}
"
Any error in the file ?