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 08-21-2024, 02:00 PM   #1
mwlucas
author
mwlucas began at the beginning.
 
Posts: 2
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:	46
Size:	843.4 KB
ID:	210340   Click image for larger version

Name:	bad 2.png
Views:	51
Size:	834.3 KB
ID:	210341  
Attached Files
File Type: txt convertlog.txt (4.8 KB, 19 views)
File Type: docx ryoms-appledebug.docx (145.6 KB, 27 views)
File Type: epub ryoms-appledebug.epub (62.7 KB, 27 views)
mwlucas is offline   Reply With Quote
Old 08-21-2024, 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: 40,383
Karma: 156982136
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 offline   Reply With Quote
Advert
Old 08-21-2024, 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: 76,316
Karma: 136006010
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 08-21-2024, 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,985
Karma: 27620706
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 offline   Reply With Quote
Old 08-21-2024, 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: 40,383
Karma: 156982136
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 offline   Reply With Quote
Advert
Old 08-21-2024, 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,985
Karma: 27620706
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; 08-21-2024 at 08:38 PM.
BetterRed is offline   Reply With Quote
Old 08-21-2024, 09:32 PM   #7
mwlucas
author
mwlucas began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2024
Location: Detroit
Device: Kindle Oasis
thanks, everyone.

Yes, I created the styles. I'm all styles all the time. It's the only way to keep tech books sane.

I'll take a look at Mammoth, thanks! Calibre is the best I've found so far for these horribly format-heavy tech books, but I'm open to ideas.

Thank you all!
mwlucas is offline   Reply With Quote
Old 08-21-2024, 09:38 PM   #8
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,985
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@mwlucas - I changed the 'filename' styling in the "You must know how to manage your operating system" paragraph to 'normal' with inline italics. It's attached, try converting it to EPUB and throwing that at Apple.

BR
Attached Files
File Type: docx ryoms-appledebug.docx (146.1 KB, 22 views)
BetterRed is offline   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 05:01 PM.


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