View Single Post
Old 03-30-2025, 11:01 AM   #913
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,191
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
I have found that KFX will put "text-align" and text-indent" in the body css. Calibre conversion will not recognize text-align: center" if it is in the body css.

From kfx:

Code:
<body class="class-1">

.class-1 {text-align: center}
from calibre converted epub:
Code:
 <body class="calibre">

.calibre {
  display: block;
  font-size: 1em;
  line-height: 1.2;
  margin-bottom: 0;
  margin-left: 4pt;
  margin-right: 4pt;
  margin-top: 0;
  orphans: 1;
  padding-left: 0;
  padding-right: 0;
  text-align: justify;
  widows: 1;
}
bernie
Quote:
Originally Posted by jhowell View Post
The conversion log shows some unexpected formatting that I had not encountered previously. The next release of the plugin will ignore that extra data.

If you do not want to wait you should be able to convert that book by using From KFX or by selecting the conversion option "Allow conversion to proceed even if errors are detected" in the KFX Input tab of the conversion dialog.



Likely due to the unusual formatting contained in that book. The metadata in the conversion log shows that Amazon converted that book to KFX format in the early days of KFX, 2015. They have improved their conversion process a lot since then.
gbm is offline   Reply With Quote