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 10-20-2023, 05:04 AM   #1
varan66
Member
varan66 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2013
Device: kindle3
caliber does not convert docx to epub

caliber does not convert docx to epub:
Spoiler:

Převést knihu 1 z 1 (Netrpělivost srdce)
Conversion options changed from defaults:
epub_flatten: True
enable_heuristics: True
filter_css: 'text-justify-trim,p {text-indent: 1.5em; },font-face,text-autospace,layout-grid-mode,font-family'
no_default_epub_cover: True
preserve_cover_aspect_ratio: True
remove_first_image: True
cover: 'C:\\Users\\FP\\AppData\\Local\\Temp\\calibre_6wdu c5d5\\n6u513nf.jpeg'
verbose: 2
remove_paragraph_spacing: True
dont_split_on_page_breaks: True
read_metadata_from_opf: 'C:\\Users\\FP\\AppData\\Local\\Temp\\calibre_6wdu c5d5\\mvr3pijv.opf'
output_profile: 'generic_eink'
Resolved conversion options
calibre version: 6.29.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|p rologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': 'C:\\Users\\FP\\AppData\\Local\\Temp\\calibre_6wdu c5d5\\n6u513nf.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': True,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': True,
'epub_flatten': True,
'epub_inline_toc': False,
'epub_max_image_size': 'none',
'epub_toc_at_end': False,
'epub_version': '2',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': 'text-justify-trim,p {text-indent: 1.5em; '
'},font-face,text-autospace,layout-grid-mode,font-family',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x0000021415EC86A0>,
'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,
'no_chapters_in_toc': False,
'no_default_epub_cover': True,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x0000021415EC8D00>,
'page_breaks_before': "//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': True,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'C:\\Users\\FP\\AppData\\Local\\Temp\\calibre_6wdu c5d5\\mvr3pijv.opf',
'remove_fake_margins': True,
'remove_first_image': True,
'remove_paragraph_spacing': True,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'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,
'toc_title': None,
'transform_css_rules': '[]',
'transform_html_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: ViaWordConverterInput running
on C:\Users\FP\AppData\Local\Temp\calibre_6wduc5d5\xa o4i5y6.docx
Traceback (most recent call last):
File "runpy.py", line 196, in _run_module_as_main
File "runpy.py", line 86, in _run_code
File "site.py", line 83, in <module>
File "site.py", line 78, in main
File "site.py", line 50, in run_entry_point
File "calibre\utils\ipc\worker.py", line 215, in main
File "calibre\gui2\convert\gui_conversion.py", line 38, in gui_convert_override
File "calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
File "calibre\ebooks\conversion\plumber.py", line 1108, in run
File "calibre\customize\conversion.py", line 242, in __call__
File "calibre_plugins.dummy1.__init__", line 33, in convert
File "calibre\ebooks\conversion\plugins\html_input. py", line 93, in convert
File "calibre\ebooks\conversion\plugins\html_input. py", line 81, in set_root_dir_of_input
File "calibre\utils\filenames.py", line 628, in get_long_path_name
TypeError: startswith first arg must be bytes or a tuple of bytes, not str

Last edited by theducks; 10-20-2023 at 12:02 PM. Reason: spoilered log
varan66 is offline   Reply With Quote
Old 10-20-2023, 06:40 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,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
what version of calibre is this?
kovidgoyal is offline   Reply With Quote
Advert
Old 10-20-2023, 09:38 AM   #3
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,651
Karma: 87590587
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Don't enable
heuristics
Flatten epub
Quoth is offline   Reply With Quote
Old 10-21-2023, 01:45 AM   #4
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,046
Karma: 6422750
Join Date: Sep 2020
Device: Calibre E-book viewer
Quote:
Originally Posted by Quoth View Post
Don't enable
heuristics
Flatten epub
hmm, just curious, what's meant by flatten epub?

Off-topic:

Today I found a kludgy way to correct the structure detection of some series of biweekly issued .docx documents I will need to consult often, which are quite non-standardly outlined this way, with numerous small topics:

Topic 1

Topic 2

Topic 3
...

Each "Topic" is underlined as they're hyperlinks to online resources, but unfortunately there aren't any headings in the docx structure!

I wanted to insert page breaks before each one and have an EPUB with a TOC. The problem was that I couldn't figure the Xpath expression to make Calibre detect those .docx "Chapters".

Eventually I decided to convert the .docx to HTMLZ, extract the 'index.html' inside that format and see what tag the 'Topic' links had, only to find they're plain paragraphs <p>.

Fortunately, I found that Calibre is adding this class in one of the series of docs' paragraphs: calibre_pb_1. For the other one, it uses block_2. So all i have to do is to click the Xpath wizard and fill in the fields accordingly, then convert HTMLZ to EPUB.

Now I'd guess there are other ways to accomplish this; for instance, instead of converting to HTMLZ, I could just edit the EPUB converted using the default Xpath expression, then look for the needed classes in the split index htm files. HTMLZ gave me one single index file in this case...

Last edited by Comfy.n; 10-21-2023 at 06:58 AM.
Comfy.n is offline   Reply With Quote
Old 10-21-2023, 06:58 AM   #5
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,651
Karma: 87590587
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
I always convert docx to epub2 first, then to whatever else. Never had a problem, not even with ToC, unless the docx was broken.
Heuristics is extra stuff to try and convert broken source. Better turned off and fix source. Kovid has a few times told people to turn it off.

I don't know what flatten epub does, but as all conversions of unbroken html, txt, docx, mobi,epubx and azw3 work without it for me, I suggested turning it off.

Similarly unless you have crazy images, "tablet" profile is best even for 4.3″ screen epub or 6″ ancient mobi Kindles (167dpi?).
Quoth is offline   Reply With Quote
Advert
Old 10-21-2023, 07:05 AM   #6
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,651
Karma: 87590587
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by Comfy.n View Post
I wanted to insert page breaks before each one and have an EPUB with a TOC. The problem was that I couldn't figure the Xpath expression to make Calibre detect those .docx "Chapters".
That can be fixed by a custom paragraph style for topic heading or first paragraph of a page which has EVERYTHING the same except heading level (1 or 2) and Insert Page before (with no style).
Then at start Insert Auto inline Contents/Index with settings changed (delete tabs & page numbers, set suitable paragraph & heading styles).

This is all easier in any version of LO Writer since at least 5.x (now on 7.x) than Word 2007.
Note in LO Writer only edit/save odt and do an extra save in docx for Calibre as the odt conversion isn't as good.
Never use predefined Headings in LO, make your own or you might get list formatting!

Since I got more clued on LO headings in custom paragraph styles and either insert contents, or manually add a bookmark at each start of new page/heading style and then a manual list of contents page with links to bookmarks (Copy & past auto contents to text editor and copy/paste back as KDP prefers manually done contents/index even on epub upload. Calibre doesn't care. More flexible).

So now I never edit xpath unless it's some mad mobi / azw3 / epub being converted, but even then better to edit the azw3/epub (not an option for mobi, but convert to epub, edit, convert epub to epub and page breaks appear!)

Last edited by Quoth; 10-21-2023 at 07:11 AM.
Quoth is offline   Reply With Quote
Old 10-21-2023, 07:40 AM   #7
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,046
Karma: 6422750
Join Date: Sep 2020
Device: Calibre E-book viewer
Just found the Flatten epub option under EPUB output settings in the conversion dialog. According to the tooltips:

This option is needed only if you intend to use the EPUB with FBReaderJ. It will flatten the file system inside the EPUB, putting all files into the top level.

As for LO Writer, I know from many posts here in MR it can be very useful for fixing conversion issues, but in this case I needed steps that could be replicated easily on a batch of files - so the Xpath Wizard method seems to be OK, as long as the classes are the same in each docx...
Comfy.n is offline   Reply With Quote
Old 10-21-2023, 08:55 AM   #8
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,651
Karma: 87590587
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
I'll avoid FBreaderJ then.
Quoth is offline   Reply With Quote
Old 10-22-2023, 10:09 AM   #9
varan66
Member
varan66 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2013
Device: kindle3
Quote:
Originally Posted by kovidgoyal View Post
what version of calibre is this?
calibre 6,29

Spoiler:
Převést knihu 1 z 1 (Jestli promluvi tak zemre)
Conversion options changed from defaults:
epub_flatten: True
filter_css: 'layout-grid-mode,text-autospace,p {text-indent: 1.5em; },text-justify-trim,font-face,font-family'
no_default_epub_cover: True
preserve_cover_aspect_ratio: True
remove_first_image: True
cover: 'C:\\Users\\FP\\AppData\\Local\\Temp\\calibre_b6bw m9g4\\muhm291f.jpeg'
verbose: 2
remove_paragraph_spacing: True
dont_split_on_page_breaks: True
read_metadata_from_opf: 'C:\\Users\\FP\\AppData\\Local\\Temp\\calibre_b6bw m9g4\\8mlltklb.opf'
output_profile: 'generic_eink'
Resolved conversion options
calibre version: 6.29.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|p rologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': 'C:\\Users\\FP\\AppData\\Local\\Temp\\calibre_b6bw m9g4\\muhm291f.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': True,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': True,
'epub_inline_toc': False,
'epub_max_image_size': 'none',
'epub_toc_at_end': False,
'epub_version': '2',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': 'layout-grid-mode,text-autospace,p {text-indent: 1.5em; '
'},text-justify-trim,font-face,font-family',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x00000180176FB970>,
'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,
'no_chapters_in_toc': False,
'no_default_epub_cover': True,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x00000180176FB310>,
'page_breaks_before': "//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': True,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'C:\\Users\\FP\\AppData\\Local\\Temp\\calibre_b6bw m9g4\\8mlltklb.opf',
'remove_fake_margins': True,
'remove_first_image': True,
'remove_paragraph_spacing': True,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'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,
'toc_title': None,
'transform_css_rules': '[]',
'transform_html_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: ViaWordConverterInput running
on C:\Users\FP\AppData\Local\Temp\calibre_b6bwm9g4\wt pupfgv.docx
Traceback (most recent call last):
File "runpy.py", line 196, in _run_module_as_main
File "runpy.py", line 86, in _run_code
File "site.py", line 83, in <module>
File "site.py", line 78, in main
File "site.py", line 50, in run_entry_point
File "calibre\utils\ipc\worker.py", line 215, in main
File "calibre\gui2\convert\gui_conversion.py", line 38, in gui_convert_override
File "calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
File "calibre\ebooks\conversion\plumber.py", line 1108, in run
File "calibre\customize\conversion.py", line 242, in __call__
File "calibre_plugins.dummy1.__init__", line 33, in convert
File "calibre\ebooks\conversion\plugins\html_input. py", line 93, in convert
File "calibre\ebooks\conversion\plugins\html_input. py", line 81, in set_root_dir_of_input
File "calibre\utils\filenames.py", line 628, in get_long_path_name
TypeError: startswith first arg must be bytes or a tuple of bytes, not str

Last edited by theducks; 10-22-2023 at 11:47 AM. Reason: spoilered log
varan66 is offline   Reply With Quote
Old 10-22-2023, 10:15 AM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,618
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by varan66 View Post
caliber does not convert docx to epub:
Spoiler:

Převést knihu 1 z 1 (Netrpělivost srdce)
Conversion options changed from defaults:
epub_flatten: True
enable_heuristics: True
filter_css: 'text-justify-trim,p {text-indent: 1.5em; },font-face,text-autospace,layout-grid-mode,font-family'
no_default_epub_cover: True
preserve_cover_aspect_ratio: True
remove_first_image: True
cover: 'C:\\Users\\FP\\AppData\\Local\\Temp\\calibre_6wdu c5d5\\n6u513nf.jpeg'
verbose: 2
remove_paragraph_spacing: True
dont_split_on_page_breaks: True
read_metadata_from_opf: 'C:\\Users\\FP\\AppData\\Local\\Temp\\calibre_6wdu c5d5\\mvr3pijv.opf'
output_profile: 'generic_eink'
Resolved conversion options
calibre version: 6.29.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|p rologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': 'C:\\Users\\FP\\AppData\\Local\\Temp\\calibre_6wdu c5d5\\n6u513nf.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': True,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': True,
'epub_flatten': True,
'epub_inline_toc': False,
'epub_max_image_size': 'none',
'epub_toc_at_end': False,
'epub_version': '2',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': 'text-justify-trim,p {text-indent: 1.5em; '
'},font-face,text-autospace,layout-grid-mode,font-family',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x0000021415EC86A0>,
'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,
'no_chapters_in_toc': False,
'no_default_epub_cover': True,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x0000021415EC8D00>,
'page_breaks_before': "//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': True,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'C:\\Users\\FP\\AppData\\Local\\Temp\\calibre_6wdu c5d5\\mvr3pijv.opf',
'remove_fake_margins': True,
'remove_first_image': True,
'remove_paragraph_spacing': True,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'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,
'toc_title': None,
'transform_css_rules': '[]',
'transform_html_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: ViaWordConverterInput running
on C:\Users\FP\AppData\Local\Temp\calibre_6wduc5d5\xa o4i5y6.docx
Traceback (most recent call last):
File "runpy.py", line 196, in _run_module_as_main
File "runpy.py", line 86, in _run_code
File "site.py", line 83, in <module>
File "site.py", line 78, in main
File "site.py", line 50, in run_entry_point
File "calibre\utils\ipc\worker.py", line 215, in main
File "calibre\gui2\convert\gui_conversion.py", line 38, in gui_convert_override
File "calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
File "calibre\ebooks\conversion\plumber.py", line 1108, in run
File "calibre\customize\conversion.py", line 242, in __call__
File "calibre_plugins.dummy1.__init__", line 33, in convert
File "calibre\ebooks\conversion\plugins\html_input. py", line 93, in convert
File "calibre\ebooks\conversion\plugins\html_input. py", line 81, in set_root_dir_of_input
File "calibre\utils\filenames.py", line 628, in get_long_path_name
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
What does caliber do? I know what calibre does, but I've never used caliber.
JSWolf is offline   Reply With Quote
Old 10-22-2023, 10:16 AM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,618
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Quoth View Post
I'll avoid FBreaderJ then.
FBReader is awful. I would avoid it in any case.
JSWolf is offline   Reply With Quote
Old 10-22-2023, 11:48 AM   #12
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,973
Karma: 56143930
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JSWolf View Post
What does caliber do? I know what calibre does, but I've never used caliber.
Give that a rest Jon. Auto correct is KNOWN to strike.
theducks is offline   Reply With Quote
Old 10-22-2023, 01:07 PM   #13
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,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
is this with a particular docx or all of them?
kovidgoyal is offline   Reply With Quote
Old 10-22-2023, 01:54 PM   #14
varan66
Member
varan66 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2013
Device: kindle3
Quote:
Originally Posted by kovidgoyal View Post
is this with a particular docx or all of them?
With all and probably after some Win10 update
varan66 is offline   Reply With Quote
Old 10-22-2023, 04:46 PM   #15
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,677
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by varan66 View Post
With all and probably after some Win10 update
What did you use to create the DOCX - MS Word, LO Writer, Abby Fine Reader, InDesign… Apple Pages?

I convert 3 DOCXs most every day, two from MS Word, 1 from LO Writer, two of which contain graphics and tables.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert form Zip including Docx files to EPUB The_book Conversion 1 03-22-2022 12:45 PM
Can't convert DOCX to anything hal@scogginsweb Conversion 3 09-02-2019 05:39 PM
DOCX Identation - Ebook-Convert tafr Conversion 8 08-01-2018 05:33 AM
Convert EPUB to DOCX [Change Default Margins] Lassox Conversion 3 04-12-2017 10:03 PM
Newbie question: mobi convert to sony with Caliber MaxwellBeckett Sony Reader 3 05-07-2009 12:46 PM


All times are GMT -4. The time now is 06:48 AM.


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