Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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