-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Replace the custom smartypants code with docutils’ smart_quotes #3345
Copy link
Copy link
Closed
Milestone
Description
Sphinx currently uses its own code to handle the html_use_smartypants option. However, that uses a hard-coded set of quotes for every language: “” and ‘’.
That is not optimal for some languages: i.e. in Russian we use «», and in German „“ are used instead.
Docutils has a smartquotes.py file since version 0.10 (released in 2012), which provides support for 27 different languages, and takes the current block language into account.
Sphinx already depends on docutils ≥ 0.11, so in my opinion the custom code for smartypants can be dropped, and the html_use_smartypants can be mapped directly to docutils’ smart_quotes configuration option.
What do you think?
Reactions are currently unavailable