Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-28-2018, 12:45 PM   #1
hengyu
Enthusiast
hengyu began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Aug 2016
Device: Kindle Paperwhite 2016
ePub to AZW3, table loses vertical align

Hi,

When I convert my books from ePub to AZW3, the following happens:

(Original epub on the left)
Moderator Notice
Removed oversized inline image. Please read the posting guidelines


The only settings I've changed from default as far as I remember is to check "Fonts" under "Filter Style Information" to remove font-family, and changed "Output profile" to "Kindle PaperWhite 3".

Here is the conversion log:

Code:
Convert book 1 of 1 (Overcoming Social Anxiety and Shyness)
Conversion options changed from defaults:
  expand_css: True
  output_profile: 'kindle_pw3'
  cover: u'C:\\Users\\Hengyu\\AppData\\Local\\Temp\\calibre_ovqb4n\\ponbo2.jpeg'
  verbose: 2
  read_metadata_from_opf: u'C:\\Users\\Hengyu\\AppData\\Local\\Temp\\calibre_ovqb4n\\k5kjf8.opf'
  filter_css: u',font-family'
Resolved conversion options
calibre version: 3.16.0
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'change_justification': u'original',
 'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': u'C:\\Users\\Hengyu\\AppData\\Local\\Temp\\calibre_ovqb4n\\ponbo2.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'dont_compress': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'expand_css': True,
 'extra_css': None,
 'extract_to': None,
 'filter_css': u',font-family',
 'fix_indents': True,
 'font_size_mapping': None,
 'format_scene_breaks': True,
 'html_unwrap_factor': 0.4,
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x000001C1F611EA90>,
 'insert_blank_line': False,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_ligatures': False,
 'language': None,
 'level1_toc': None,
 'level2_toc': None,
 'level3_toc': None,
 'line_height': 0.0,
 'linearize_tables': False,
 'margin_bottom': 5.0,
 'margin_left': 5.0,
 'margin_right': 5.0,
 'margin_top': 5.0,
 'markup_chapter_headings': True,
 'max_toc_links': 50,
 'minimum_line_height': 120.0,
 'mobi_toc_at_start': False,
 'no_chapters_in_toc': False,
 'no_inline_navbars': False,
 'no_inline_toc': False,
 'output_profile': <calibre.customize.profiles.KindlePaperWhite3Output object at 0x000001C1F612D198>,
 'page_breaks_before': u'/',
 'prefer_author_sort': False,
 'prefer_metadata_cover': False,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'C:\\Users\\Hengyu\\AppData\\Local\\Temp\\calibre_ovqb4n\\k5kjf8.opf',
 'remove_fake_margins': True,
 'remove_first_image': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'renumber_headings': True,
 'replace_scene_breaks': u'',
 'search_replace': '[]',
 'series': None,
 'series_index': None,
 'share_not_sync': False,
 'smarten_punctuation': False,
 'sr1_replace': None,
 'sr1_search': None,
 'sr2_replace': None,
 'sr2_search': None,
 'sr3_replace': None,
 'sr3_search': None,
 'start_reading_at': None,
 'subset_embedded_fonts': False,
 'tags': None,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'toc_title': None,
 'transform_css_rules': '[]',
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\Hengyu\AppData\Local\Temp\calibre_ovqb4n\6i5l7k.epub
Found HTML cover OEBPS/html/01_cover.html
Parsing all content...
Parsing OEBPS/html/02_prelims.html ...
Parsing OEBPS/html/05_body3.html ...
Parsing OEBPS/html/03_body1.html ...
Parsing OEBPS/html/01_cover.html ...
Parsing OEBPS/html/04_body2.html ...
Parsing OEBPS/html/overcomingSAS.css ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Filtering CSS properties: , font-family
Source base font size is 12.00000pt
Removing fake margins...
Found 7 items of level: div_4
Found 5 items of level: div_5
Found 140 items of level: div_1
Found 116 items of level: div_2
Found 70 items of level: div_3
Found 5 items of level: p_7
Found 361 items of level: p_5
Found 335 items of level: p_4
Found 133 items of level: p_3
Found 134 items of level: p_2
Found 862 items of level: p_1
Found 14 items of level: p_8
Ignoring level div_4
Ignoring level div_5
Ignoring level p_7
Ignoring level p_8
div_1  left margin stats: Counter({u'1em': 57, u'': 1})
div_1  right margin stats: Counter({u'1em': 57, u'': 1})
Removing level div_1 left margin of: 1em
Removing level div_1 right margin of: 1em
div_2  left margin stats: Counter({u'': 59})
div_2  right margin stats: Counter({u'': 59})
div_3  left margin stats: Counter({u'': 70})
div_3  right margin stats: Counter({u'': 70})
p_5  left margin stats: Counter({u'0': 361})
p_5  right margin stats: Counter({u'0': 361})
Negative text indent detected at level  p_4, ignoring this level
Negative text indent detected at level  p_3, ignoring this level
Negative text indent detected at level  p_2, ignoring this level
Negative text indent detected at level  p_1, ignoring this level
Removing page margins specified in the Adobe page template
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OEBPS/html/docimages/cover_thumb.jpg' from manifest
Trimming u'OEBPS/html/docimages/image1.jpg' from manifest
Trimming u'OEBPS/html/docimages/cover.jpg' from manifest
Trimming u'OEBPS/html/01_cover.html' from manifest
Creating AZW3 Output...
Serializing resources...
Splitting markup on page breaks and flow limits, if any...
		Splitting on page-break at id=calibre_pb_0
		Splitting on page-break at id=calibre_pb_1
		Splitting on page-break at id=calibre_pb_2
		Splitting on page-break at id=calibre_pb_3
		Splitting on page-break at id=calibre_pb_4
		Splitting on page-break at id=calibre_pb_5
		Splitting on page-break at id=calibre_pb_6
		Splitting on page-break at id=calibre_pb_7
	Split into 8 parts
		Splitting on page-break at id=calibre_pb_0
		Splitting on page-break at id=calibre_pb_1
		Splitting on page-break at id=calibre_pb_2
		Splitting on page-break at id=calibre_pb_3
		Splitting on page-break at id=calibre_pb_4
		Splitting on page-break at id=calibre_pb_5
		Splitting on page-break at id=calibre_pb_6
		Splitting on page-break at id=calibre_pb_7
		Splitting on page-break at id=calibre_pb_8
		Splitting on page-break at id=calibre_pb_9
	Split into 10 parts
		Splitting on page-break at id=calibre_pb_0
		Splitting on page-break at id=calibre_pb_1
		Splitting on page-break at id=calibre_pb_2
		Splitting on page-break at id=calibre_pb_3
		Splitting on page-break at id=calibre_pb_4
		Splitting on page-break at id=calibre_pb_5
		Splitting on page-break at id=calibre_pb_6
		Splitting on page-break at id=calibre_pb_7
		Splitting on page-break at id=calibre_pb_8
		Splitting on page-break at id=calibre_pb_9
	Split into 10 parts
		Splitting on page-break at id=calibre_pb_0
		Splitting on page-break at id=calibre_pb_1
		Splitting on page-break at id=calibre_pb_2
		Splitting on page-break at id=calibre_pb_3
		Splitting on page-break at id=calibre_pb_4
		Splitting on page-break at id=calibre_pb_5
		Splitting on page-break at id=calibre_pb_6
		Splitting on page-break at id=calibre_pb_7
		Splitting on page-break at id=calibre_pb_8
	Split into 9 parts
Creating KF8 output
	Generating KF8 markup...
	Compressing markup...
	Creating indices...
AZW3 output written to C:\Users\Hengyu\AppData\Local\Temp\calibre_ovqb4n\gpm0pd.azw3
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	313
Size:	240.4 KB
ID:	161904  

Last edited by theducks; 01-28-2018 at 01:20 PM.
hengyu is offline   Reply With Quote
Old 01-28-2018, 02:30 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://www.mobileread.com/forums/sh...d.php?t=186697
kovidgoyal is offline   Reply With Quote
Advert
Old 01-28-2018, 09:54 PM   #3
hengyu
Enthusiast
hengyu began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Aug 2016
Device: Kindle Paperwhite 2016
Quote:
Originally Posted by kovidgoyal View Post
Hi,

I've attached an epub file containing only the table in question and the preceding few paragraphs, hope it suffices
Attached Files
File Type: epub Overcoming Social Anxiety and S - Gillian Butler.epub (1.20 MB, 82 views)
hengyu is offline   Reply With Quote
Old 01-28-2018, 10:14 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
THat's because it uses valign, which is deprecated. Add the following to extra css and you will be fine.

Code:
td[valign="top"] { vertical-align: top; }
kovidgoyal is offline   Reply With Quote
Old 01-28-2018, 11:07 PM   #5
hengyu
Enthusiast
hengyu began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Aug 2016
Device: Kindle Paperwhite 2016
Quote:
Originally Posted by kovidgoyal View Post
THat's because it uses valign, which is deprecated. Add the following to extra css and you will be fine.

Code:
td[valign="top"] { vertical-align: top; }
Thanks man!
hengyu is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting EPUB to AZW3: TOC loses CSS Phssthpok Conversion 4 10-02-2016 06:14 AM
vertical-align: super Francois_C Editor 11 02-20-2015 06:14 AM
vertical-align/display table nu9j6e ePub 2 01-27-2015 03:20 PM
EPUB to MOBI/AZW3 loses formatting Siavahda Conversion 2 02-12-2014 03:35 PM
unwanted table-change (vertical align) by calibre NASCARaddicted Calibre 2 01-27-2010 03:35 AM


All times are GMT -4. The time now is 05:00 AM.


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