Ticket #4491 (new defect)

Opened 1 year ago

Last modified 8 months ago

Quoted text ending in number foils "smart" quotes

Reported by: cherylontheweb Assigned to: anonymous
Priority: lowest Milestone: 2.7
Component: Administration Version: 2.2
Severity: minor Keywords:
Cc: cherylontheweb

Description

The end quote of a quoted string is different when the string ends in a number (and is also in that case inconsistent with the starting quote); I have to assume there is a bug here? (not running any plugins that could account for this)

Example: "one" is encoded as “one” but "1" is encoded as “1″

Or take this test example.. "1" "one" "11" "one1" "12"

.. which is encoded as.. “1″ “one” “11″ “one1″ “12″

Change History

06/19/07 18:31:10 changed by cherylontheweb

  • cc set to cherylontheweb.

06/19/07 18:42:24 changed by foolswisdom

  • milestone set to 2.4 (future).

06/19/07 19:24:52 changed by Otto42

After a number, it converts a quote into a "double prime" character, which is usually used to represent inches.

http://en.wikipedia.org/wiki/Prime_(symbol)

This is done by wptexturize(), and there's probably not a particularly good solution for it.

06/26/07 16:38:29 changed by cherylontheweb

Interesting, thanks for your comments. Inches notation is USA-centric, I've not heard of another country that uses it - given I live in Germany and I can't turn off this USA notation, I would say this is a small bug.

For anyone else with this problem: workaround is not to use quotes around phrases that end in numbers but to use the HTML itself: “your_text” If rich text editor is on you have to do this in the source.

11/17/07 00:24:24 changed by lloydbudd

  • milestone changed from 2.4 to 2.6.