Re: Clever quotes

2005-10-19 Thread Juergen Spitzmueller
Paul wrote: > Suppose I have some text that has a lot of quoted speech in it, but it's > supplied using standard (") straight single and double quotes. > > Is there some pre-processing tool that will try to convert them to > proper curly quotes suitable for LaTeX (``) and ('')? Here's some post-pr

Re: Clever quotes

2005-10-19 Thread Angus Leeming
Mike Meyer wrote: >>> Is there a command-line tool that does this using some heuristics to >>> cover most areas that could be problematic? >> sed. tr, too, but sed would work. Something like s/"[A-Z,a-z]?/``?/g. >> I didn't look at my sed book, but that reads, "substitute two single >> backqotes w

Re: Clever quotes

2005-10-19 Thread Mike Meyer
In <[EMAIL PROTECTED]>, Rich Shepard <[EMAIL PROTECTED]> typed: > On Thu, 20 Oct 2005, Paul wrote: > > > Is there a command-line tool that does this using some heuristics to cover > > most areas that could be problematic? > > Paul > >sed. tr, too, but sed would work. Something like s/"[A-Z,a

Re: Clever quotes

2005-10-19 Thread Angus Leeming
Paul wrote: > Suppose I have some text that has a lot of quoted speech in it, but it's > supplied using standard (") straight single and double quotes. > > Is there some pre-processing tool that will try to convert them to > proper curly quotes suitable for LaTeX (``) and ('')? > > I know it can

Re: Clever quotes

2005-10-19 Thread Rich Shepard
On Thu, 20 Oct 2005, Paul wrote: Is there a command-line tool that does this using some heuristics to cover most areas that could be problematic? Paul sed. tr, too, but sed would work. Something like s/"[A-Z,a-z]?/``?/g. I didn't look at my sed book, but that reads, "substitute two single