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 Today, 02:00 PM   #1
mwlucas
author
mwlucas began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2024
Location: Detroit
Device: Kindle Oasis
docx->epub weirdness, but only for Apple readers

Hi,

I'm using Calibre 7.16.0 to convert my docx manuscripts to epub. The resulting epub works wonderfully in calibre, Kindle, and Adobe Digital Editions, but the spacing keeps changing in Apple's epub reader. I *think* I've attached everything, but just in case there's screenshots at:

https://cdn.mwl.io/junk/apple/bad1.png
https://cdn.mwl.io/junk/apple/bad2.png

A docx that reproduces the problem:

https://cdn.mwl.io/junk/apple/ryoms-appledebug.docx

A conversion of this sample:
https://cdn.mwl.io/junk/apple/ryoms-appledebug.epub

The conversion log:
https://cdn.mwl.io/junk/apple/convertlog.txt .

Is there some Apple-specific setting I should be using? Something in my docx style sheet that Apple's choking on?

Realistically: as conversion problems go, it's not horrid. It's definitely readable, just annoying for my readers. Any suggestions would be appreciated!
Attached Thumbnails
Click image for larger version

Name:	bad 1.png
Views:	14
Size:	843.4 KB
ID:	210340   Click image for larger version

Name:	bad 2.png
Views:	19
Size:	834.3 KB
ID:	210341  
Attached Files
File Type: txt convertlog.txt (4.8 KB, 2 views)
File Type: docx ryoms-appledebug.docx (145.6 KB, 4 views)
File Type: epub ryoms-appledebug.epub (62.7 KB, 7 views)
mwlucas is offline   Reply With Quote
Old Today, 04:45 PM   #2
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: 38,627
Karma: 152905840
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I was noticing a couple of items in your stylesheet. You are using a mix of absolute (px, pt, etc.) and relative (%, em, etc.) measurements. I would suggest sticking to relative other than for thin borders.

Also:

Several <span class="????"></span> scattered through the text.

You might try changing the vertical-align: super; to vertical-align: top;

There is a mix of line heights for text. 1.2 seems to be the commonest. I would suggest removing the line-height: 1.2; lines and letting the reader set their preferred line height with the line-height 1.5 being relative to that user set value.

Several mixes of text-align: center and non-zero text indents in the stylesheet.

Courier New is used as the monospace font in two places and Lucida Sans Typewriter in a third.

Also note that unless you embed any specified fonts, the reader will use replacement fonts for ones that are not available.

Someone who more enthused about Word and styles will likely chime in about the issues with the .docx file.
DNSB is online now   Reply With Quote
Advert
Old Today, 05:08 PM   #3
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: 75,562
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Redo the .docx file and remove all formatting and use styles. Highlight the text and apply nothing but a style. Otherwise you end up with a mess as you can see.
JSWolf is offline   Reply With Quote
Old Today, 06:56 PM   #4
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,815
Karma: 27405122
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by JSWolf View Post
Redo the .docx file and remove all formatting and use styles. Highlight the text and apply nothing but a style. Otherwise you end up with a mess as you can see.
Did you actually look at the DOCX !?

There is no inline formatting, everything is done by styles, most of which I suspect were created by @mwlucas.

BR
BetterRed is online now   Reply With Quote
Old Today, 07:58 PM   #5
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: 38,627
Karma: 152905840
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by BetterRed View Post
There is no inline formatting, everything is done by styles, most of which I suspect were created by @mwlucas.
That was the reason I suggested that any issues with .docx and styles should be commented on by someone else.
DNSB is online now   Reply With Quote
Advert
Old Today, 08:35 PM   #6
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,815
Karma: 27405122
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@mwlucas - curious, what did you use to create the DOCX - Word, LO Writer, Wordperfect… etc.

I looked at your sample DOCX with Word, the one thing I noticed was that the paragraphs with 'tight' line spacing have styling within them — e.g.filename and Users and Hosts… which converts to something like <span class=text4>blah blah</span>.

Is that true for all the paragraphs that are badly formed on Apple.

If you use the same styling (template) in multiple manuscripts you might want to consider using the Mammoth DOCX to EPUB converter rather than calibre… there's a Sigil plugin called DOCX Input which is a shim to Mammoth. It provides a mechanism to map DOCX styles directly to CSS entries… takes a bit of effort to set up, but providing it is reusable its worth doing.

BR

Last edited by BetterRed; Today at 08:38 PM.
BetterRed is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUB or DOCX to MOBI MGA Kindle Formats 4 05-25-2024 05:06 AM
newbie needs help - DOCX to EPUB highmeadow Conversion 5 04-12-2023 04:35 PM
Converting Epub>docx Winnito Conversion 2 03-24-2022 11:38 AM
Epub to Docx conversion? Hattie Conversion 14 09-13-2014 04:12 AM
Android Epub maker 1.0 (.doc and .docx --> .epub) devseev enTourage Archive 2 08-30-2010 12:35 PM


All times are GMT -4. The time now is 08:43 PM.


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