Smartquotes suck and macros are awesome
Jul. 31st, 2010 01:20 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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.
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.