View Single Post
Old 08-12-2018, 10:17 PM   #1
yaakwilson
Junior Member
yaakwilson began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2018
Device: iPad
Hello with Conversion Problem

very happy using Calibre as my editor - but a novice who doesn't use any of the coding features. Anhow:

converting .epub (default input page setup) to .epub (iPad output page setup) does a great job rescaling images (there are lots in this 40MB book) but the CSS parse routine seems to ignore and remove many rules that are used to vary the text indent. e.g.

.ltr8indent {
border-bottom: 0;
border-bottom-color: currentColor;
border-bottom-style: none;
border-bottom-width: 0;
border-top: 0;
border-top-color: currentColor;
border-top-style: none;
border-top-width: 0;
display: block;
font-family: serif;
font-size: 1em;
font-style: italic;
font-weight: normal;
line-height: 1.2;
margin-bottom: 0;
margin-left: 24px;
margin-right: 0;
margin-top: 0;
orphans: 2;
padding-bottom: 0;
padding-top: 0;
text-align: justify;
text-indent: 1.5em;
widows: 2
}

has a value text-indent: 8em; in the original - and there are other rules .ltr5indent, .ltr10indent, etc. that were just dropped and replaced with the above after CSS parsing. I wanted to provide "custom" .epub versions based on the device but it's frustrating to think I have to edit every conversion to restore the CSS rules and their effect.

The conversion log shows no errors.

Didn't attempt to attach the two files - original is 40MB - the iPad output file is 10MB .

Any suggestions appreciated. Thx although you may regret allowing me to join
yaakwilson is offline   Reply With Quote