|
|
| START_SINGLE = re.compile(r"^'(?=%s\\B)" % _CH_CLASSES['punct']) |
| |
|
| START_DOUBLE = re.compile(r'^"(?=%s\\B)' % _CH_CLASSES['punct']) |
| |
|
| ADJACENT_1 = re.compile('"\'(?=\\w)') |
| |
|
| ADJACENT_2 = re.compile('\'"(?=\\w)') |
| |
| | OPEN_SINGLE |
| |
| | OPEN_DOUBLE |
| |
|
| DECADE = re.compile(r"'(?=\d{2}s)") |
| |
|
| APOSTROPHE = re.compile(r"(?<=(\w|\d))'(?=\w)") |
| |
|
| OPENING_SECONDARY = re.compile( % _CH_CLASSES, re.VERBOSE) |
| |
|
| CLOSING_SECONDARY = re.compile(r"(?<!\s)'") |
| |
|
| OPENING_PRIMARY = re.compile( % _CH_CLASSES, re.VERBOSE) |
| |
|
| CLOSING_PRIMARY = re.compile(, re.VERBOSE) |
| |
◆ _CH_CLASSES
| dict docutils.utils.smartquotes.RegularExpressions._CH_CLASSES |
|
staticprotected |
Initial value:= {'open': '[([{]',
'close': r'[^\s]',
'punct': ,
'dash': r'[-–—]',
'sep': '[\\s\u200B\u200C]',
}
◆ OPEN_DOUBLE
| docutils.utils.smartquotes.RegularExpressions.OPEN_DOUBLE |
|
static |
Initial value:= re.compile(r'(%(open)s|%(dash)s)"(?=%(punct)s? )'
% _CH_CLASSES)
◆ OPEN_SINGLE
| docutils.utils.smartquotes.RegularExpressions.OPEN_SINGLE |
|
static |
Initial value:= re.compile(r"(%(open)s|%(dash)s)'(?=%(punct)s? )"
% _CH_CLASSES)
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/docutils/utils/smartquotes.py