Re: Smart quote character replacement for those with deficient sed-fu.

2012-06-16 Thread Steven D'Aprano
On Sat, 16 Jun 2012 18:39:42 -0700, smitty1e wrote: [...] > python charfix.py `ls src/*.tex` > > charfix.py code: Thanks for that. You might like to also publish it on the ActiveState Python recipes site, where people are more likely to find it in the future. http://code.activestate.com/reci

Smart quote character replacement for those with deficient sed-fu.

2012-06-16 Thread smitty1e
Use case: === 1. OSX 10.7, bunch of .tex files culled from a blog via some cruddy old Perl script. .tex files are utf-8 encoded, which means the quotes and apostrophes drop out going through pdflatex. 2. Recommend using git to manage the .tex files, which are all in a /src directory in the p