View Single Post
Old 12-09-2019, 07:23 PM   #7
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by bobbibo View Post
using cleanhtml in order to clean up a word document having footnotes, before moving it into Sigil.

[...]

Of course, this does not work in the resulting epub.
The original doc has over 100 footnotes, so manual adjustment is just not do-able!
Do not use that crappy website. It's awful.

If you want an easy DOCX->EPUB conversion, just use Calibre to convert.

You can then do your cleanup from there.

* * *

But ultimately, the single largest thing in Word is learn how to use Styles.

I linked to a few videos/resources on the topic in this post:

https://www.mobileread.com/forums/sh...55#post3848055

Once you create your DOCX with Styles, your resulting code will be SO much cleaner in any workflows. You could then even use Save As > Clean HTML from Word and finagle that using Sigil or Calibre's Editor.

* * *

And it's best to keep your final Footnote code very simple:

This would go in your text:

Code:
<p>This is an example sentence.<a href="#fn1" id="ft1">[1]</a></p>
And this would go at the bottom of your file:

Code:
<p><a href="#ft1" id="fn1">[1]</a> This is a footnote.</p>
Note: Also, in ebooks, brackets are recommended over superscripts because it's easier to click, easier to read, and doesn't mess with line-heights.

Quote:
Originally Posted by Doitsu View Post
You'll usually get better results, if you save MS Word documents as a .docx files and convert them to .epub files with Calibre.
Agreed.

There are also plenty of other tools to help you convert cleanly:

1. If you have Microsoft Word, Toxaris's EPUBTools is a recommended addon:

https://www.mobileread.com/forums/sh...d.php?t=213372

This gives you extremely clean code.

(Note: It currently has a bug with italics disappearing in footnotes. Next version will fix this.)

2. If you're using Sigil, DiapDealer created a Sigil plugin: DOCXImport.
Tex2002ans is offline   Reply With Quote