[wp-trac] [WordPress Trac] #26850: Single quotes show up as apostrophes when appearing before numbers

WordPress Trac noreply at wordpress.org
Thu Jun 12 02:16:02 UTC 2014


#26850: Single quotes show up as apostrophes when appearing before numbers
-------------------------------------------------+-------------------------
 Reporter:  yurivictor                           |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Formatting                           |  Release
 Severity:  minor                                |     Version:  3.9
 Keywords:  wptexturize needs-unit-tests has-    |  Resolution:
  patch close                                    |     Focuses:
-------------------------------------------------+-------------------------

Comment (by yurivictor):

 Right. It's a tough bug.

 The code in core currently assumes all apostrophes followed by a number
 are dates and changes the apostrophe accordingly.

 Case 1: `4 is styled like a year, but it's never a year
 Case 2: `44 is styled like a year, which it might be a year or the start
 of a quote
 Case 3: `444 is styled like a year, but it's never a year

 The patch solves case 1 and case 3. I have no idea how to solve case 2.

 If someone comes up with a solution for case 2, I'd love to hear it
 because smart quotes are
 [https://twitter.com/yurivictor/status/459754784107814912 kind of a
 nightmare on almost every platform].

 Smart quotes make for strange code.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26850#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list