mintchaos/typogrify — pull request #5 by Chimrod (2013-04-24 13:45:00+00:00)
Title: French typographic rules

The french typographic require narrow non breakable space in some special cases :

between a word and double punctuation point ( : ; ? ! )
inside quoted text : « »
or as separator between numbers (phone number…)

This is done with a "nowrap" attribute, inside a span element (as for amp transformation), you can get more information about nnbsp in html in stackoverfow.

I'm aware that this is specific to french, so the processor is only activated when locale is fr_FR, some other specific language can be added, but I don't know the rules for each of them and let the community add them if need. The locale can be overrided in the locale module.

The doctests are Ok, and I updated the doc, as long as my english is correct.

stackoverfow : http://stackoverflow.com/questions/595365/how-to-render-narrow-non-breaking-spaces-in-html-for-windows
locale : http://docs.python.org/2/library/locale.html