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-08-2025, 10:02 AM   #1
WJSwanepoel
Junior Member
WJSwanepoel began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2025
Device: none
Question Problem converting DOCX to EPUB

I have a DOCX that contains numbered items with a frame around it.
I import it into Calibre and then convert to EPUB.
In the Calibre e-book viewer it loses some of the numbers and puts others outside the frame.

However if I view th EPUB in Adobe Digital Editions it does not lose numbers, but still puts some outside the frame.

Attached is:
The DOCX I am trying to covert
The coverted EPUB
A snapshot of how it displays in Adobe.

I would appreciate any assistance.
Attached Thumbnails
Click image for larger version

Name:	Adobe_View.png
Views:	175
Size:	227.4 KB
ID:	212926  
Attached Files
File Type: docx Calibre_Test.docx (22.7 KB, 89 views)
File Type: epub Calibre Test - Willem Swanepoel.epub (46.1 KB, 164 views)
WJSwanepoel is offline   Reply With Quote
Old 01-08-2025, 10:16 AM   #2
WJSwanepoel
Junior Member
WJSwanepoel began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2025
Device: none
One file did not load

Here is the Calibre log.
Attached Files
File Type: docx Calibre Log.docx (17.3 KB, 92 views)
WJSwanepoel is offline   Reply With Quote
Old 01-09-2025, 03:14 AM   #3
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
Conversion of lists has limitations as the listing model of docx and HTML are very different, so completely faithful conversion is not possible. I suggest you remove the frames from the source document and then use CSS such as

Code:
ol { border: solid 1px currentColor; }
in the extra css under the look & feel section of the conversion dialog, to simulate the frames.
kovidgoyal is offline   Reply With Quote
Old 01-09-2025, 07:37 AM   #4
Quoth
Still reading
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: 14,035
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Also I find it's best to NEVER use a list format, but a suitable paragraph style and manually put the bullets or numbers or letters, because ebooks are more limited in lists than HTML (has to start at 1 and not be interrupted etc).

Using LO Writer and an extra Save As in docx you can have a paragraph style with a box. It isn't a frame, but looks like one and survives even epub to mobi conversion (which surprised me as Mobi has only inline style & HTML3 no CSS). You are limited with how margins work.

Don't use actual frames. Naturally you can't have two boxes side by side, unless they are in table columns, but tables are notoriously poor on smaller screens or user picking larger font. They fail.

Last edited by Quoth; 01-09-2025 at 07:39 AM.
Quoth is offline   Reply With Quote
Old 01-09-2025, 07:26 PM   #5
Jaws
JCL Punch-Card Collector
Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.
 
Posts: 75
Karma: 34468
Join Date: Jun 2014
Location: Antarctica
Device: Aggressively Device Independent
One additional note, due to a really weird quirk in Word (that causes lawyers' blood pressure to rise exponentially when they encounter it):

A "numbered list" and a "multilevel list" look very much the same on the page. The underlying XML code, however, is not — and the "numbered list" (very common in numbered-paragraph legal pleadings) is on the visible first part of the ribbon, but the "multilevel list" (necessary to maintain numbering when copying between documents) is nowhere on the ribbon at all and has to be customized into the ribbon. (Plus Word is actively hostile to the two most-common numbering systems used in legal and government documents, but maybe that's on purpose.)

I've had a lot more success with Word documents (.doc and .docx), and even similar documents originating in LibreOffice, by saving them as HTML in Word/LibreOffice, then running a garbage-stripper on the HTML file before importing into Calibre. It's an extra step that saves lots and lots of time, and preserves the actual numbering scheme.
Jaws is offline   Reply With Quote
Old 01-09-2025, 11:07 PM   #6
WJSwanepoel
Junior Member
WJSwanepoel began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2025
Device: none
Thank you!

Thank you for all the advice. I simply removed all the borders around my text and everything now appears OK in EPUB.
WJSwanepoel is offline   Reply With Quote
Old 01-10-2025, 12:59 PM   #7
Quoth
Still reading
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: 14,035
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by Jaws View Post

A "numbered list" and a "multilevel list" look very much the same on the page.
The reliable solution is to never ever in any program use lists and especially automatic numbered or letter ones. Use regular paragraph styles that look like the required list and manually number/letter the items. Then the docx to epub is 100% perfect.

Only edit in odt in LO Writer and do an extra Save As in docx

Don't use doc.

After importing doc or docx to Word OR LO Writer from somewhere else the styles, links etc all need checked for two reasons:
1) The other user may have been treating a system like a typewriter and using direct or wrong formatting or styles. Anchors need to be only at the start of a paragraph. All tabs, multiple spaces and empty lines need removed and styles used. Footnote links need to be a whole word, not just the number in box [3], otherwise hard to select.

2) MS has multiple doc format and docx format versions. So stuff goes wrong.

Last edited by Quoth; 01-10-2025 at 01:07 PM.
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Colour problem when converting Docx to epub jmwallet Conversion 1 09-19-2022 12:12 PM
Converting Epub>docx Winnito Conversion 2 03-24-2022 11:38 AM
Converting from EPUB to DOCX - styles tage fredheim Conversion 2 10-16-2019 11:21 AM
Error Converting docx to epub drago87 Conversion 7 08-11-2015 04:24 PM
Error with converting docx to epub ssflwp Calibre 3 07-05-2014 06:39 AM


All times are GMT -4. The time now is 04:32 AM.


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