08-21-2024, 02:00 PM | #1 |
author
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! |
08-21-2024, 04:45 PM | #2 |
Bibliophagist
Posts: 40,382
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. |
08-21-2024, 05:08 PM | #3 |
Resident Curmudgeon
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.
|
08-21-2024, 06:56 PM | #4 | |
null operator (he/him)
Posts: 20,985
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
There is no inline formatting, everything is done by styles, most of which I suspect were created by @mwlucas. BR |
|
08-21-2024, 07:58 PM | #5 |
Bibliophagist
Posts: 40,382
Karma: 156982136
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
08-21-2024, 08:35 PM | #6 |
null operator (he/him)
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. |
08-21-2024, 09:32 PM | #7 |
author
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! |
08-21-2024, 09:38 PM | #8 |
null operator (he/him)
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 |
|
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 |