scanner / typogrify

Automatically exported from code.google.com/p/typogrify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Cap filter needs to allow for possessive apostrophe-S #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Run typogrify filter on "JIMMY'S TEST"

What is the expected output? What do you see instead?

Expected:

<span class="caps">JIMMY&#8217;S</span> <span class="caps">TEST</span> <span 
class="caps">CASE</span>

Returned:

<span class="caps">JIMMY</span>&#8217;S <span class="caps">TEST</span> <span 
class="caps">CASE</span>

What version of the product are you using? On what operating system?

Current 0.2

Please provide any additional information below.

Obviously this needs to allow for various possible versions of the apostrophe, 
including straight 
ASCII, HTML-escaped and Unicode straight/curly variants.

Original issue reported on code.google.com by kikuj...@gmail.com on 21 Feb 2008 at 4:28

GoogleCodeExporter commented 9 years ago
Good catch. I'll definite get some tests up and get this fixed next time I sit 
down and work on typogrify. 
Shouldn't be to hard. Thanks!

Original comment by mintx...@gmail.com on 7 May 2008 at 2:05

GoogleCodeExporter commented 9 years ago
Fixed in r14

It's not super smart. It only catches dumb single prime apostrophes. If you're 
using the individual filters make 
sure you run |caps before |smartypants.

Original comment by mintx...@gmail.com on 29 Aug 2008 at 9:24