Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 05-04-2016, 03:11 AM   #1
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
Question epub to azw conversion is adding line heights ?

epub to azw3 is adding line height declarations to CSS - is this a bug & can this be disabled ?
I do not recall seeing this in the past, so maybe it did not happen in older versions of calibre. My sideloaded azw books look awful after such conversion - lines are far too close together, and the device options do not expand them.
( I tried disable font scaling in conversion preferences - that had no effect )

I removed all line heights from each class of the epub css before converting it e.g.
.calibre {
adobe-hyphenate: none;
display: block;
font-size: 1.1em;

margin-bottom: 0;
margin-left: 5pt;
margin-right: 5pt;
margin-top: 0;
orphans: 1;
padding-left: 0;
padding-right: 0;
text-align: justify;
widows: 1
}
but in every class in the AZW css, there is now an added line-height delcaration ( I have marked it in bold below) e.g.

.calibre {
adobe-hyphenate: none;
display: block;
font-size: 1.1em;
line-height: 1.2;
margin-bottom: 0;
margin-left: 5pt;
margin-right: 5pt;
margin-top: 0;
orphans: 1;

PS a conversion from epub to mobi looks equally bad.

it is not an issue with the specific book, I converted another chosen at random eub with same outcome.

PPS I stumbled across another bug ? or install error? I went to preferences to inspect all the conversion options, but when I click on output options I get
ImportError: No module named output_config
- here is the detail:
calibre 2.56 [64bit] embedded-python: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM && K4PC, K4Mac, Kindle Mobi and Topaz DeDRM && Inept PDF DeDRM && Inept Epub DeDRM && Count Pages && Copy Cover To Device && Quality Check && Modify ePub && Open With && Overdrive Link && Resize Cover && View Manager && Open EPUB In Editor && Overdrive Link
Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\main.py", line 292, in show_plugin
File "site-packages\calibre\customize\__init__.py", line 663, in create_widget
File "importlib\__init__.py", line 37, in import_module
ImportError: No module named output_config

Last edited by stumped; 05-04-2016 at 03:42 AM.
stumped is offline   Reply With Quote
Old 05-04-2016, 03:47 AM   #2
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
In your conversion settings have look at Look&Feel - Fonts tab: Minimum line height. It may be set to the default of 1.2%. I have mine disabled, i.e. set to 0.0%. This is the explanatory ToolTip:
Quote:
The minimum line height, as a percentage of the element's calculated font size. calibre will ensure that every element has a line height of at least this setting, irrespective of what the input document specifies. Set to zero to disable. Default is 120%. Use this setting in preference to the direct line height specification, unless you know what you are doing. For example, you can achieve "double spaced" text by setting this to 240.
jackie_w is offline   Reply With Quote
Advert
Old 05-04-2016, 06:47 AM   #3
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
that was it, thanks
stumped is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing and scrambled text in azw to epub conversion maxbookworm Conversion 5 02-11-2014 10:11 PM
Conversion from azw (Kindle) to epub (Kobo) format with Calibre garbages symbols myildi Conversion 2 09-13-2013 03:19 AM
azw to epub conversion failure imageraw Conversion 5 09-01-2013 02:15 AM
Garbled azw -> epub conversion pouzzler Conversion 3 11-28-2012 09:17 AM
AZW to EPUB conversion - overlapping letters suecsi Calibre 4 10-16-2010 11:53 PM


All times are GMT -4. The time now is 06:16 PM.


MobileRead.com is a privately owned, operated and funded community.