Quote:
Originally Posted by cerement
Does anyone have a decent search-replace for handling curly quotes? Found a couple algorithms online but they all seem to run into special cases (nested quotes, quotes inside brackets) and all seem to just give up when trying to deal with something like 5'10" inside a quote ...
|
Converting 5'10" is easy. You just convert based on the space after the " and the fact that no space exists before the ". As for the ', you convert it based on the fact of no spaces between the ' and no other '.