Re: Smart, straight and curly
Re: Smart, straight and curly
- Subject: Re: Smart, straight and curly
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 1 Sep 2010 23:38:35 -0400
I'm confused. "Smart Quotes" is just the name of the feature that
replaces straight quotes with the curly kind, so its outcome should be
identical to that created by your script. If smart quotes causes
problems, won't your script also cause problems?
On Wed, Sep 1, 2010 at 9:28 PM, email@hidden <email@hidden> wrote:
> Before I go about reinventing the wheel, does anyone have a routine to change smart quotes to curly quotes?
>
> I have an issue with translating text from a word document to a number of ebook formats. Word's smart quotes cause problems in some of the formats (at least with the translation software that's being used) and the developer suggests using straight quotes. (Yuk.)
>
> But the curly quote characters ‘’ “” work just fine.
>
> So, I'm going to write a script that will read through a document and "smartly" replace smart quotes with the appropriate curly quote character.
>
> This would need to replace a straight double quote at the beginning of a word (including the beginning of the text, paragraph, sentence, inside parens) with a left double quote
> Replace a straight double quote at the end of a word (etc.) with a right double quote. (Also accounting for punctuation)
>
> Same with single quotes.
>
> Plus change some single quotes to right single quotes: "foo's"
>
> And somehow leave straight quotes straight when used to designate feet, inches or degrees. (That last bit may be too much to automate, word gets that wrong too).
>
> Has anyone been down this path?
>
> ES
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden