Remove the custom smartypants code

Instead rely on docutils’ ‘smart_quotes’ option which is available
since docutils 0.10.

This adds support for internationalization: our code supported only
English quotes, while docutils code supports 27 different languages.

Closes #498, #580, #3345, #3472.
This commit is contained in:
Dmitry Shachnev
2017-03-14 23:43:04 +03:00
parent 710ddb3880
commit edc7f30b9c
12 changed files with 38 additions and 539 deletions

View File

@@ -34,14 +34,14 @@ def test_docinfo(app, status, warning):
'field name': u'This is a generic bibliographic field.',
'field name 2': (u'Generic bibliographic fields may contain multiple '
u'body elements.\n\nLike this.'),
'status': u'This is a "work in progress"',
'status': u'This is a work in progress',
'version': u'1',
'copyright': (u'This document has been placed in the public domain. '
u'You\nmay do with it as you wish. You may copy, modify,'
u'\nredistribute, reattribute, sell, buy, rent, lease,\n'
u'destroy, or improve it, quote it at length, excerpt,\n'
u'incorporate, collate, fold, staple, or mutilate it, or '
u'do\nanything else to it that your or anyone else\'s '
u'do\nanything else to it that your or anyone elses '
u'heart\ndesires.'),
'contact': u'goodger@python.org',
'date': u'2006-05-21',