[wp-trac] [WordPress Trac] #29256: Strings ending with a number and quotation mark get wrong smart quotes
WordPress Trac
noreply at wordpress.org
Tue Aug 19 02:07:38 UTC 2014
#29256: Strings ending with a number and quotation mark get wrong smart quotes
-------------------------------------------------+-------------------------
Reporter: coreygilmore | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: Formatting | Review
Severity: normal | Version: 2.8
Keywords: needs-patch needs-unit-tests | Resolution:
wptexturize | Focuses:
-------------------------------------------------+-------------------------
Comment (by miqrogroove):
Algorithm brainstorm:
1. Split the subject string at every opening quote.
1. If each value contains only one closing quote, then no primes exist.
1. If a value contains multiple closing quote candidates then any
candidate that is not preceded by a digit should be replaced with a
closing quote before replacing the primes.
1. Make sure primes are followed by a space, whereas trailing punctuation
indicates a quote.
1. If all closing quotes are preceded by a digit and not followed by
punctuation then the last quote is assumed to be the only closing quote
character.
1. Implode the subject string and resume the inner loop of wptexturize.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29256#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list