summaryrefslogtreecommitdiff
path: root/docutils/test/test_transforms
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2017-03-31 12:13:54 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2017-03-31 12:13:54 +0000
commit6c822d0a1c195578d1bd286f306881bcd8570946 (patch)
treec5a4280a4256ecf12422e7a8a1dbf381330f27eb /docutils/test/test_transforms
parent89b4e7e588417e7f52e432c32bd21bf7bfe16b13 (diff)
downloaddocutils-6c822d0a1c195578d1bd286f306881bcd8570946.tar.gz
Update smartquotes:
* use the rules of the `Imprimerie nationale` as french default (full NBSP inside guillemets). * do not invert “ and ’ in en-UK: expect British authors to use u0027 APOSTROPHE for primary quotes and " for secondary quotes in the source. Set ``--smart-quotes=alt`` (or use en-UK-x-altquot) for inversion by `smartquotes`. * do not call ``educate_backticks`` in the SmartQuotes transform: backticks have a special meaning in rST. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8053 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_transforms')
-rw-r--r--docutils/test/test_transforms/test_smartquotes.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/docutils/test/test_transforms/test_smartquotes.py b/docutils/test/test_transforms/test_smartquotes.py
index 309a6a987..4e5b4e53d 100644
--- a/docutils/test/test_transforms/test_smartquotes.py
+++ b/docutils/test/test_transforms/test_smartquotes.py
@@ -157,9 +157,10 @@ u"""\
German "smart quotes" and 'secondary smart quotes'.
-.. class:: language-en-UK
+.. class:: language-en-UK-x-altquot
-British "quotes" use single and 'secondary quotes' double quote signs.
+British "primary quotes" use single and
+'secondary quotes' double quote signs.
.. class:: language-foo
@@ -173,13 +174,14 @@ u"""\
<document source="test data">
<paragraph classes="language-de">
German „smart quotes“ and ‚secondary smart quotes‘.
- <paragraph classes="language-en-uk">
- British ‘quotes’ use single and “secondary quotes” double quote signs.
+ <paragraph classes="language-en-uk-x-altquot">
+ British ‘primary quotes’ use single and
+ “secondary quotes” double quote signs.
<paragraph classes="language-foo">
"Quoting style" for unknown languages is 'ASCII'.
<paragraph classes="language-de-x-altquot">
Alternative German »smart quotes« and ›secondary smart quotes‹.
- <system_message level="2" line="11" source="test data" type="WARNING">
+ <system_message level="2" line="12" source="test data" type="WARNING">
<paragraph>
No smart quotes defined for language "foo".
"""],