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 05-11-2020, 03:03 AM   #1
tage fredheim
Member
tage fredheim began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
Can't open converted docx

Hi, I attach an xhtml file (renamed to .txt) that converts ok to docx. However, the docx (also attached) can't be opened in word.
Attached Files
File Type: docx 861475_clean.docx (511.8 KB, 147 views)
File Type: txt 861470.txt (858.3 KB, 717 views)
tage fredheim is offline   Reply With Quote
Old 05-11-2020, 08:13 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: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There will be something in there that word doesn't like. Sadly word gives us no useful eror message so impossible to say what. You can try deleting sections of the html file and see if you can narrow it down.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-11-2020, 08:48 AM   #3
tage fredheim
Member
tage fredheim began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
Ok, thanks for your quick response though :-)
tage fredheim is offline   Reply With Quote
Old 05-11-2020, 11:41 AM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,206
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by tage fredheim View Post
Hi, I attach an xhtml file (renamed to .txt) that converts ok to docx. However, the docx (also attached) can't be opened in word.
When I took a look at the xhtml file by opening it in Word, there were complaints about XML elements that are no longer supported in Word. A conversion to RTF gave a file that could be opened in Word but quite a bit of the layout vanished.
DNSB is online now   Reply With Quote
Old 05-15-2020, 01:55 AM   #5
tage fredheim
Member
tage fredheim began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
Thanks, do you know by any chance which xhtml-elements that are not supported by docx, so we can avoid using those in our mark-up :-)

/Tage
tage fredheim is offline   Reply With Quote
Advert
Old 05-15-2020, 02:02 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: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
xhtml elements are notused in docx, they get converted to docx elements. The question is what of those elements word does not like, and the only way to find that out is to repeatedly remove things from the problem file till you narrow down the markup causing the issue.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
display: block for image converted from docx quinta@ebf.cz Conversion 4 03-05-2019 03:00 AM
DOCX to EPUB and Tables are not converted correctly lbdyck Conversion 4 01-17-2017 06:27 AM
Open HTML or DOCX as new book DiapDealer Editor 2 01-12-2017 06:45 AM
Converted file to DOCX is not readable by Word HagaWaga Conversion 1 01-28-2016 11:47 AM
How to keep bold texts in converted pdf, when you convert docx to pdf? Foxitoff Conversion 1 11-04-2015 10:24 PM


All times are GMT -4. The time now is 01:36 AM.


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