mintchaos / typogrify

A set of Django template filters to make caring about typography on the web a bit easier.
http://static.mintchaos.com/projects/typogrify/
Other
168 stars 29 forks source link

Typogrify will mangle initials in names #27

Open szhorvat opened 10 years ago

szhorvat commented 10 years ago

It seems Typogrify will process capitals separated by dots and spaces, as in J. F. Kennedy. This gives an incorrect result with initials used in names (initials shouldn't be formatted differently than the rest of the name).

Perhaps these should be left alone, at least when the letters are separated by both a . and a space. Abbreviations where caps are separated with both dots and spaces are not common. This pattern is very common with names/initials.

This can be particularly annoying in pages with lots of references to scientific publications.

chrisdrackett commented 10 years ago

I've run into this myself. We also have an issue with long lines of capitalized text (often seen in legal docs). The main reason this isn't fixed is I just haven't have time to figure out and write the correct regex. :blush: