Smart quote algorithm
| From: | Miguel Cruz | Date: | Tue, 21 May 2002 04:13:54 +0000 |
| Subject: | Smart quote algorithm | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-98560@lists.php.net to get a copy of this message | ||
I have an application where I need to take some text that may contain inch
and foot marks (aka ASCII quotes, ' and ") and change them to typesetters'
quotes prior to exporting as an RTF.
I poked around a little and didn't have much luck; I wonder if anyone has
already implemented the required algorithm in PHP. If so, that would save
me some time - since it's not a trivial undertaking, what with nested
quotes, contractions, contracted numbers like "'70s", old-fashioned
paragraphs without closing quotes, inch and foot measurements, etc.
If not, I guess I'll do it and share the results.
miguel