Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

French typographic rules #5

Closed
wants to merge 3 commits into from
Closed

Conversation

Chimrod
Copy link

@Chimrod Chimrod commented Apr 24, 2013

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

@chrisdrackett
Copy link
Collaborator

@Chimrod We've made a lot of changes over the past couple weeks as we've revived the project. If you want, please submit a new request on our new code. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants