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 04-20-2020, 03:40 AM   #1
tage fredheim
Member
tage fredheim began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
Docx text type and sizes in tables

My table looks like as seen in the attachment.

The text appears to be of different sizes and scaled down compared to the rest of the text in the book.

I have defined the text as Verdana 13 pt. When looking up the properties of the text in the table cells, the smallest appearing text is of type Verdana 12.5 pt Para04. The biggest appearing text is of type Verdana 12.5 pt Normal.

Should not all text be displayed of the same size and type?

I think it is ok that the text is scaled down to fit in the table cells. Is this done automatically by default in calibre?
Attached Thumbnails
Click image for larger version

Name:	table.JPG
Views:	124
Size:	72.8 KB
ID:	178549  
tage fredheim is offline   Reply With Quote
Old 04-20-2020, 08:30 AM   #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: 44,163
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Turn off font size rescaling in the conversion preferences, and font sizes will be unchanged. And no text is not scaled to fit in table cells.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-18-2020, 06:01 AM   #3
tage fredheim
Member
tage fredheim began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
Table examples

I have tried with font-size resizing on and off The text in the table still appears to be quite much smaller than the rest of the text. So some sort of rescaling is taking place.

Check the table at page 35 to see this.

When changing the size of the text manually in the docx, the size must be set to 20 to be displayed with the same size as the rest of the text.
Attached Files
File Type: docx 861075_clean_with font resizing.docx (320.4 KB, 222 views)
File Type: docx 861075_clean_without font resizing.docx (308.9 KB, 123 views)
tage fredheim is offline   Reply With Quote
Old 05-18-2020, 06:09 AM   #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: 44,163
Karma: 22670164
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
Old 05-19-2020, 04:02 AM   #5
tage fredheim
Member
tage fredheim began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
Source file and extra.css

Hello, here is the log after running the GUI:
Spoiler:

Convert book 1 of 1 (Geografi)
Processing archive...
Conversion options changed from defaults:
extra_css: u'@namespace epub \'http://www.idpf.org/2007/ops\';\n\nhtml {\n color: #000;\n font-family: verdana;\n font-size: 13px;\n}\n\n\nsup, sub {\n vertical-align: baseline;\n position: relative;\n top: -0.4em;\n font-size: 0.75em;\n}\n\nsub {\n top: 0.2em;\n}\n\nu {\n text-decoration: underline;\n}\n\n\n\nol.nomargin {\nlist-style-type: none;\n margin-left: -57px;\n}\n/*\nol {\n counter-reset: item inherit;\npadding: 0em; \nmargin-left: -20px;\n display: block; \n}\n\n\nol > li {\n counter-increment: item;\n}\n\nol ol > li {\n display: block;\n}\n\nol ol > li:before {\n content: counters(item, ".") ". ";\n margin-left: -20px;\n}\n*/\nli{\npadding-left: 0px;\n \n}\n\n/*ol {\npadding-left: 0px;\nlist-style-type: decimal; \ntext-indent:0%;\n}\nol ol {\n list-style-type: lower-latin;\n text-indent:2%;\n} \n\nol ol ol {\n list-style-type: decimal;\n text-indent4%;\n}\nol ol ol ol {\n list-style-type: lower-latin;\n text-indent:6%;\n}\n\n\nol p {\n margin-bottom: 0;\n}\nol img {\n margin-bottom: 1.5em;\n}*/\n\nul {\n list-style-type: none;\n }\nul ul {\n list-style-type: none;\n text-indent:2%;\n}\nul ul ul {\n list-style-type: none;\n text-indent:4%;\n}\nul ul ul ul {\n list-style-type: none;\n text-indent:6%;\n}\nul li > p {\n text-indent:2%; \n}\n\nol ul{\n text-indent:12%;\n\n}\nol p{\n text-indent:2%;\n\n}\nol li p{\nmargin-left: 12%;\ntext-indent:2%;\n}\n\nol ul li{\nmargin-left: 12%;\ntext-indent:2%;\n}\n\n\n\nfigure {\npadding: 0em; \n margin: 0em; \n display: block; \n}\n\nfigcaption {\npadding: 0em; \n margin: 0em; \n display: block; \n}\n\np {\n text-indent:2%;\npadding: 0em; \n margin: 0em; \n display: block; \n}\n\n\n\n[epub|type~=\'note\']{\n padding-top: 0em; \n margin-top: 0em; \n display: block; \n}\n[epub|type~=\'pagebreak\']{\n\n padding-top: 0.5em; \n display: block; \n\n}\nsection{\n padding: 0em; \n margin: 0em; \n display: block; \n \n}\n\nsection section{\n padding: 0em; \n margin: 0em; \n display: block; \n }\n\n\n\nsection section section{\n padding: 0em;\n margin: 0em; \n display: block; \n\n}\n.table figcaption header h1 {\n font-weight: bold;\n}\n\ntable {\n background: transparent;\n border-style: solid;\n border-width: 2px 1px 2px;\n border-color: #468173;\n padding: 0em;\n margin-top: 0em;\n margin-right: 0em;\n margin-bottom: 1.5em;\n margin-left: 0em;\n -moz-border-radius: 0;\n -webkit-border-radius: 0;\n border-radius: 0;\n font-size: 13pt;\n font-family: "Verdana", sans-serif; \n margin-top: 0em ;\n margin-bottom: 0em ;\n \n width: 100%;\n border-collapse: collapse;\n}\ncaption {\n /*background: rgba(70, 129, 115, 0.15);*/\ndisplay: table-caption;\n font-size: 13pt;\n font-family: "Verdana", sans-serif; \n text-align: center;\n border-style: solid;\n border-width: 1px;\n border-color: #468173;\n padding: 0.75em;\n margin: 0em;\n -moz-border-radius: 0;\n -webkit-border-radius: 0;\n border-radius: 0;\n vertical-align: top;\n \n color: #468173;\n width: 100%;\n \n}\ntable thead {\n border-bottom: 1px solid #468173;\n}\n\ntable th {\n /*background: rgba(70, 129, 115, 0.15);*/\n border-style: solid;\n border-width: 1px;\n border-color: #468173;\n padding: 0.75em;\n margin: 0em;\n -moz-border-radius: 0;\n -webkit-border-radius: 0;\n border-radius: 0;\n vertical-align: top;\n font-size: 13pt;\n font-family: "Verdana", sans-serif; \n text-align: left;\n\n \n}\ntable td {\n background: transparent;\n border-style: solid;\n border-width: 1px;\n border-color: #468173;\n padding: 0.75em;\n margin: 0em;\n -moz-border-radius: 0;\n -webkit-border-radius: 0;\n border-radius: 0;\n font-size: 13pt;\n font-family: "Verdana", sans-serif; \n vertical-align: top;\n text-align: left;\n}\ntable tfoot td {\n background: transparent;\n border-style: solid;\n border-width: 1px;\n border-color: #468173;\n padding: 0.75em;\n margin: 0em;\n -moz-border-radius: 0;\n -webkit-border-radius: 0;\n border-radius: 0;\n font-size: 13pt;\n font-family: "Verdana", sans-serif; \n \n text-align: left;\n}\n\nttable td p{\nvertical-align: top;\ntext-align: left;\n}\n\n\ntable td p{\nfont-size: 13pt; \nfont-family: "Verdana", sans-serif; \nvertical-align: top;\ntext-align: left;\n text-indent:0%;\npadding: 0em; \n margin: 0em; \n display: block; \n}\n\n\n\n\naside, blockquote, figure, header, iframe,\nnav, object, pre, div, section, table {\n\npage-break-after: avoid;\n}'
read_metadata_from_opf: u'C:\\Users\\trfre\\AppData\\Local\\Temp\\calibre_ uzymi8\\ogxcbo.opf'
verbose: 2
output_profile: u'generic_eink'
Resolved conversion options
calibre version: 4.16.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'breadth_first': False,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'docx_custom_page_size': None,
'docx_no_cover': False,
'docx_no_toc': False,
'docx_page_margin_bottom': 72.0,
'docx_page_margin_left': 72.0,
'docx_page_margin_right': 72.0,
'docx_page_margin_top': 72.0,
'docx_page_size': u'letter',
'dont_package': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': u'@namespace epub \'http://www.idpf.org/2007/ops\';\n\nhtml {\n color: #000;\n font-family: verdana;\n font-size: 13px;\n}\n\n\nsup, sub {\n vertical-align: baseline;\n position: relative;\n top: -0.4em;\n font-size: 0.75em;\n}\n\nsub {\n top: 0.2em;\n}\n\nu {\n text-decoration: underline;\n}\n\n\n\nol.nomargin {\nlist-style-type: none;\n margin-left: -57px;\n}\n/*\nol {\n counter-reset: item inherit;\npadding: 0em; \nmargin-left: -20px;\n display: block; \n}\n\n\nol > li {\n counter-increment: item;\n}\n\nol ol > li {\n display: block;\n}\n\nol ol > li:before {\n content: counters(item, ".") ". ";\n margin-left: -20px;\n}\n*/\nli{\npadding-left: 0px;\n \n}\n\n/*ol {\npadding-left: 0px;\nlist-style-type: decimal; \ntext-indent:0%;\n}\nol ol {\n list-style-type: lower-latin;\n text-indent:2%;\n} \n\nol ol ol {\n list-style-type: decimal;\n text-indent4%;\n}\nol ol ol ol {\n list-style-type: lower-latin;\n text-indent:6%;\n}\n\n\nol p {\n margin-bottom: 0;\n}\nol img {\n margin-bottom: 1.5em;\n}*/\n\nul {\n list-style-type: none;\n }\nul ul {\n list-style-type: none;\n text-indent:2%;\n}\nul ul ul {\n list-style-type: none;\n text-indent:4%;\n}\nul ul ul ul {\n list-style-type: none;\n text-indent:6%;\n}\nul li > p {\n text-indent:2%; \n}\n\nol ul{\n text-indent:12%;\n\n}\nol p{\n text-indent:2%;\n\n}\nol li p{\nmargin-left: 12%;\ntext-indent:2%;\n}\n\nol ul li{\nmargin-left: 12%;\ntext-indent:2%;\n}\n\n\n\nfigure {\npadding: 0em; \n margin: 0em; \n display: block; \n}\n\nfigcaption {\npadding: 0em; \n margin: 0em; \n display: block; \n}\n\np {\n text-indent:2%;\npadding: 0em; \n margin: 0em; \n display: block; \n}\n\n\n\n[epub|type~=\'note\']{\n padding-top: 0em; \n margin-top: 0em; \n display: block; \n}\n[epub|type~=\'pagebreak\']{\n\n padding-top: 0.5em; \n display: block; \n\n}\nsection{\n padding: 0em; \n margin: 0em; \n display: block; \n \n}\n\nsection section{\n padding: 0em; \n margin: 0em; \n display: block; \n }\n\n\n\nsection section section{\n padding: 0em;\n margin: 0em; \n display: block; \n\n}\n.table figcaption header h1 {\n font-weight: bold;\n}\n\ntable {\n background: transparent;\n border-style: solid;\n border-width: 2px 1px 2px;\n border-color: #468173;\n padding: 0em;\n margin-top: 0em;\n margin-right: 0em;\n margin-bottom: 1.5em;\n margin-left: 0em;\n -moz-border-radius: 0;\n -webkit-border-radius: 0;\n border-radius: 0;\n font-size: 13pt;\n font-family: "Verdana", sans-serif; \n margin-top: 0em ;\n margin-bottom: 0em ;\n \n width: 100%;\n border-collapse: collapse;\n}\ncaption {\n /*background: rgba(70, 129, 115, 0.15);*/\ndisplay: table-caption;\n font-size: 13pt;\n font-family: "Verdana", sans-serif; \n text-align: center;\n border-style: solid;\n border-width: 1px;\n border-color: #468173;\n padding: 0.75em;\n margin: 0em;\n -moz-border-radius: 0;\n -webkit-border-radius: 0;\n border-radius: 0;\n vertical-align: top;\n \n color: #468173;\n width: 100%;\n \n}\ntable thead {\n border-bottom: 1px solid #468173;\n}\n\ntable th {\n /*background: rgba(70, 129, 115, 0.15);*/\n border-style: solid;\n border-width: 1px;\n border-color: #468173;\n padding: 0.75em;\n margin: 0em;\n -moz-border-radius: 0;\n -webkit-border-radius: 0;\n border-radius: 0;\n vertical-align: top;\n font-size: 13pt;\n font-family: "Verdana", sans-serif; \n text-align: left;\n\n \n}\ntable td {\n background: transparent;\n border-style: solid;\n border-width: 1px;\n border-color: #468173;\n padding: 0.75em;\n margin: 0em;\n -moz-border-radius: 0;\n -webkit-border-radius: 0;\n border-radius: 0;\n font-size: 13pt;\n font-family: "Verdana", sans-serif; \n vertical-align: top;\n text-align: left;\n}\ntable tfoot td {\n background: transparent;\n border-style: solid;\n border-width: 1px;\n border-color: #468173;\n padding: 0.75em;\n margin: 0em;\n -moz-border-radius: 0;\n -webkit-border-radius: 0;\n border-radius: 0;\n font-size: 13pt;\n font-family: "Verdana", sans-serif; \n \n text-align: left;\n}\n\nttable td p{\nvertical-align: top;\ntext-align: left;\n}\n\n\ntable td p{\nfont-size: 13pt; \nfont-family: "Verdana", sans-serif; \nvertical-align: top;\ntext-align: left;\n text-indent:0%;\npadding: 0em; \n margin: 0em; \n display: block; \n}\n\n\n\n\naside, blockquote, figure, header, iframe,\nnav, object, pre, div, section, table {\n\npage-break-after: avoid;\n}',
'extract_to': None,
'filter_css': u'',
'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 0x00000175397BA708>,
'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_levels': 5,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x00000175397C0348>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\trfre\\AppData\\Local\\Temp\\calibre_ uzymi8\\ogxcbo.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,
'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,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: HTML Input running
on C:\Users\trfre\AppData\Local\Temp\calibre_uzymi8\v psoiw_pl_arc\content.opf
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing 861070.xhtml ...
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Maximum TOC links reached, stopping.
Auto generated TOC with 50 entries.
Flattening CSS and remapping font sizes...
Source base font size is 9.36000pt
Removing fake margins...
Found 57 items of level: div_3
Found 20 items of level: div_2
Found 147 items of level: p_6
Found 61 items of level: p_7
Found 4 items of level: div_7
Found 95 items of level: p_1
Found 81 items of level: p_2
Found 504 items of level: p_3
Found 827 items of level: p_5
Found 1470 items of level: p_4
Found 8 items of level: p_8
Found 3 items of level: div_1
Found 10 items of level: p_9
Found 139 items of level: div_4
Found 35 items of level: div_5
Found 2 items of level: div_6
Ignoring level p_8
Ignoring level div_7
Ignoring level p_9
Ignoring level div_6
div_3 left margin stats: Counter({u'': 57})
div_3 right margin stats: Counter({u'': 57})
div_2 left margin stats: Counter()
div_2 right margin stats: Counter()
p_6 left margin stats: Counter({u'0': 142, u'12%': 5})
p_6 right margin stats: Counter({u'0': 147})
p_7 left margin stats: Counter({u'0': 53, u'12%': 8})
p_7 right margin stats: Counter({u'0': 61})
p_1 left margin stats: Counter({u'0': 95})
p_1 right margin stats: Counter({u'0': 95})
p_2 left margin stats: Counter({u'0': 81})
p_2 right margin stats: Counter({u'0': 81})
p_3 left margin stats: Counter({u'0': 504})
p_3 right margin stats: Counter({u'0': 504})
p_5 left margin stats: Counter({u'0': 799, u'12%': 28})
p_5 right margin stats: Counter({u'0': 827})
p_4 left margin stats: Counter({u'0': 1470})
p_4 right margin stats: Counter({u'0': 1470})
div_1 left margin stats: Counter({u'': 1})
div_1 right margin stats: Counter({u'': 1})
div_4 left margin stats: Counter({u'': 139})
div_4 right margin stats: Counter({u'': 139})
div_5 left margin stats: Counter({u'': 35})
div_5 right margin stats: Counter({u'': 35})
Cleaning up manifest...
Trimming unused files from manifest...
Creating DOCX Output...
Rasterizing SVG images...
Processing 861070.xhtml
3 Text Styles 17 Combined styles
DOCX output written to C:\Users\trfre\AppData\Local\Temp\calibre_uzymi8\4 ot49o.docx

Attached Files
File Type: txt 861070.txt (945.4 KB, 146 views)
File Type: txt extra.txt (4.3 KB, 116 views)

Last edited by theducks; 05-19-2020 at 10:50 AM. Reason: spoiler logs
tage fredheim is offline   Reply With Quote
Advert
Old 05-19-2020, 07:26 AM   #6
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: 44,163
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You are running this conversion with a bunch of extra CSS that will affect things, and you have not disabled font size rescaling.
kovidgoyal is offline   Reply With Quote
Old 05-20-2020, 12:04 AM   #7
tage fredheim
Member
tage fredheim began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
Ok, we found out that the culprit is the "vertical-align: top;" property in the css.
One of our expert braille reading list users also experienced that JAWS interpret and announces the vertical-align: top; property as superscript formatting which by the way is somewhat errounus.

After removing vertical-align: top; the table displays as expected.
tage fredheim is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default indentation for list type decimal in docx? tage fredheim General Discussions 0 01-23-2020 03:08 AM
DOCX to EPUB and Tables are not converted correctly lbdyck Conversion 4 01-17-2017 06:27 AM
Mobi - Text justification in Tables verydeepwater Kindle Formats 5 09-21-2014 05:22 PM
Text sizes on new DX Captain Skurvy Amazon Kindle 1 08-14-2010 02:27 AM
text sizes Johns1NOnly Which one should I buy? 6 12-13-2008 12:06 PM


All times are GMT -4. The time now is 01:56 PM.


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