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 06-03-2016, 05:28 AM   #1
rmd2000ro
Junior Member
rmd2000ro began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2016
Device: none
Question Bulk epub to docx margins settings ignored

Hi,

I am trying to do a bulk conversion from EPUB to DOCX. Conversion works fine but margins new settings (10p) are ignored and the defaults (72p) are used.

When doing this individually it works fine and I am getting the new page margins.

This is happening with any epub files to be converted, I have tried with 200 epub files, so the problem is not related to the source file (as if I use individually conversion anyone of them works fine with new margins).

Here is the log from one of the conversion:

Spoiler:
Convert book 4 of 6 (Rugaciunea Mamei)
Resolved conversion options
calibre version: 2.58.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'justify',
'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': u'C:\\Users\\mario\\AppData\\Local\\Temp\\calibre_ nmrpmv\\vw1v2z.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'docx_custom_page_size': None,
'docx_no_cover': True,
'docx_no_toc': True,
'docx_page_size': u'a5',
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': u'Bookman Old Style',
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'margin-right,margin-top,,margin-left,margin,margin-bottom',
'fix_indents': True,
'font_size_mapping': u'12',
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x0000000004FB3588>,
'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': 72.0,
'margin_left': 72.0,
'margin_right': 72.0,
'margin_top': 72.0,
'markup_chapter_headings': True,
'max_toc_links': 0,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x0000000004FB3908>,
'page_breaks_before': '/',
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\mario\\AppData\\Local\\Temp\\calibre_ nmrpmv\\azyigs.opf',
'remove_fake_margins': False,
'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': 0,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\mario\AppData\Local\Temp\calibre_nmrpmv\3 steyt.epub
Parsing all content...
Parsing Ops/style.css ...
Parsing Ops/001.html ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Filtering CSS properties: , margin, margin-bottom, margin-right, margin-left, margin-top
Embedding font: Bookman Old Style
Source base font size is 13.08000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating DOCX Output...
Rasterizing SVG images...
Processing Ops/001.html
0 Text Styles 3 Combined styles
DOCX output written to C:\Users\mario\AppData\Local\Temp\calibre_nmrpmv\0 ccdwp.docx

I have attached the epub file.

Changes from default:
text: justified
font family: bookman old style
font size: 12
output profile: generic e-ink
input profile: default input profile
margins: 10p
DOCX options: paper size A5


I have here also the log for indidually conversion where 10p margins are all right:
Convert book 1 of 1 (Rugaciunea Mamei)
Resolved conversion options
calibre version: 2.58.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'justify',
'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': u'C:\\Users\\mario\\AppData\\Local\\Temp\\calibre_ nmrpmv\\9tgupo.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'docx_custom_page_size': None,
'docx_no_cover': True,
'docx_no_toc': True,
'docx_page_size': u'a5',
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': u'Bookman Old Style',
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'margin-right,margin-top,,margin-left,margin,margin-bottom',
'fix_indents': True,
'font_size_mapping': u'12',
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x0000000004FDB588>,
'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': 10.0,
'margin_left': 10.0,
'margin_right': 10.0,
'margin_top': 10.0,
'markup_chapter_headings': True,
'max_toc_links': 0,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x0000000004FDB908>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\mario\\AppData\\Local\\Temp\\calibre_ nmrpmv\\e7nmd9.opf',
'remove_fake_margins': False,
'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': 0,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\mario\AppData\Local\Temp\calibre_nmrpmv\t r0pcm.epub
Parsing all content...
Parsing Ops/001.html ...
Parsing Ops/style.css ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Filtering CSS properties: , margin-right, margin-top, margin-left, margin, margin-bottom
Embedding font: Bookman Old Style
Source base font size is 13.08000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating DOCX Output...
Rasterizing SVG images...
Processing Ops/001.html
0 Text Styles 3 Combined styles
DOCX output written to C:\Users\mario\AppData\Local\Temp\calibre_nmrpmv\w ylqi0.docx


Thank you,
Mario

Last edited by BetterRed; 06-03-2016 at 05:50 AM. Reason: wrap log in spoiler tags
rmd2000ro is offline   Reply With Quote
Old 06-03-2016, 05:36 AM   #2
rmd2000ro
Junior Member
rmd2000ro began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2016
Device: none
Also to mention that I have tried bulk conversion and disable "saved settings for invidually books" also.
rmd2000ro is offline   Reply With Quote
Advert
Old 06-03-2016, 05:42 AM   #3
rmd2000ro
Junior Member
rmd2000ro began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2016
Device: none
I have also tried new epub books that have never been converted individually. Thank you!
rmd2000ro is offline   Reply With Quote
Old 06-03-2016, 05:47 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: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, that is because the DOCX output plugin whatever the default setting is. Use the setting in the Bulk conversion dialog itself to force it.
kovidgoyal is offline   Reply With Quote
Old 06-03-2016, 04:04 PM   #5
rmd2000ro
Junior Member
rmd2000ro began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2016
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Yes, that is because the DOCX output plugin whatever the default setting is. Use the setting in the Bulk conversion dialog itself to force it.
That's exactly what I am doing in the bulk settings forcing it to 10p margins, please see the jpg attachement. However it is ignoring it, please see one of the docx output.

I would not insist so much for few files but I will have probably arounf 1000 to convert.
Click image for larger version

Name:	bulk page setup options.JPG
Views:	307
Size:	91.4 KB
ID:	149168

Click image for larger version

Name:	docx.JPG
Views:	272
Size:	36.6 KB
ID:	149169
Thank you,
Mario
rmd2000ro is offline   Reply With Quote
Advert
Old 06-03-2016, 10:44 PM   #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: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In that case you are out of luck -- the only way to do it is via individual conversions, sorry.
kovidgoyal is offline   Reply With Quote
Old 06-04-2016, 06:57 AM   #7
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,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...ce30a4220977bd
kovidgoyal is offline   Reply With Quote
Reply

Tags
bulk, docx, epub, margins


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Video Review of new Margins Settings tool in PDF Reader Booxtor Onyx Boox 8 01-05-2013 10:43 AM
Bulk converting settings opalflame Conversion 8 12-04-2011 11:18 PM
[Old thread] ePub output margins - settings unresponsive, issue on iPad/iBook garrick Conversion 4 05-14-2011 06:56 PM
Android Epub maker 1.0 (.doc and .docx --> .epub) devseev enTourage Archive 2 08-30-2010 12:35 PM
Bookdesigner: Which fontsizes, margins,settings when converting to LRF? ProDigit LRF 2 11-25-2008 06:42 PM


All times are GMT -4. The time now is 09:51 AM.


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