View Single Post
Old 08-16-2011, 07:16 PM   #2
pholy
Booklegger
pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.
 
pholy's Avatar
 
Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
The simplest tool, but neither fast nor reliable, is a text editor and your eyeballs and fingertips...

To be more useful... What kind of text file do you have? Is it 7-bit ASCII or UTF-8? Is it html or xhtml? And, most importantly, is the apostrophe character the same as the right quote? If not, then a simple character substitution would work. However, they are usually the same, so something more sophisticated is required.

I use quoter to change straight quotes to curly quotes in my html, and straight apostrophes to right single quotes. I don't know if it will do single quotes to double quotes, however. I found it with google, and it is supplied as a lex/yacc source, so it could be modified, I suppose.
pholy is offline   Reply With Quote