diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2017-04-24 09:23:07 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2017-04-24 09:23:07 +0000 |
| commit | 0fa1bb93786e527cc4a8024b18514e39aecf9be3 (patch) | |
| tree | 51725798e3bb1a747416d1b15cd44091315bcfa0 /docutils/test/test_transforms | |
| parent | d30521f132b2a8655ca605d4618b146fceec5580 (diff) | |
| download | docutils-0fa1bb93786e527cc4a8024b18514e39aecf9be3.tar.gz | |
Fix [ 317 ] Extra space inserted with French smartquotes .
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8061 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_transforms')
| -rw-r--r-- | docutils/test/test_transforms/test_smartquotes.py | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/docutils/test/test_transforms/test_smartquotes.py b/docutils/test/test_transforms/test_smartquotes.py index 4e5b4e53d..a16025213 100644 --- a/docutils/test/test_transforms/test_smartquotes.py +++ b/docutils/test/test_transforms/test_smartquotes.py @@ -153,6 +153,72 @@ u"""\ .\ """], ["""\ +Do not convert context-character at inline-tag boundaries +(in French, smart quotes expand to two characters). + +.. class:: language-fr-ch-x-altquot + + Around "_`targets`", "*emphasized*" or "``literal``" text + and links to "targets_". + + Inside *"emphasized"* or other `inline "roles"`: + (``"string"``), (``'string'``), *\\"betont\\"*, \\"*betont*". + + Do not drop characters from intra-word inline markup like + *re*\ ``Structured``\ *Text*. +""", +u"""\ +<document source="test data"> + <paragraph> + Do not convert context-character at inline-tag boundaries + (in French, smart quotes expand to two characters). + <paragraph classes="language-fr-ch-x-altquot"> + Around «\u202f + <target ids="targets" names="targets"> + targets + \u202f», «\u202f + <emphasis> + emphasized + \u202f» or «\u202f + <literal> + literal + \u202f» text + and links to «\u202f + <reference name="targets" refname="targets"> + targets + \u202f». + <paragraph classes="language-fr-ch-x-altquot"> + Inside \n\ + <emphasis> + «\u202femphasized\u202f» + or other \n\ + <title_reference> + inline «\u202froles\u202f» + : + ( + <literal> + "string" + ), ( + <literal> + 'string' + ), + <emphasis> + «\u202fbetont\u202f» + , «\u202f + <emphasis> + betont + \u202f». + <paragraph classes="language-fr-ch-x-altquot"> + Do not drop characters from intra-word inline markup like + <emphasis> + re + <literal> + Structured + <emphasis> + Text + . +"""], +["""\ .. class:: language-de German "smart quotes" and 'secondary smart quotes'. |
