amalthia: (Lord of the Rings)
[personal profile] amalthia
Today I had to make a new macro to address a problem with ellipses in stories. It's not a problem that authors use them but for some reason Calibre doesn't recognize them depending on how they were made.

Here's the macro for anyone else converting docs to mobi or epub.

With Selection.Find
.Text = "…"
.Replacement.Text = "..."
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll

I may end up sharing more macros as time goes on but currently the file is rather huge and most of it is geared towards removing the codes Word Perfect inserts into the HTML files it creates.
This account has disabled anonymous posting.
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org