jfbu
2017-05-28 09:10:32 UTC
Hi,
the SmartQuotes class of docutils.transforms.universal
has a method apply() which contains
# Iterator educating quotes in plain text:
# (see "utils/smartquotes.py" for the attribute setting)
teacher = smartquotes.educate_tokens(self.get_tokens(txtnodes),
attr='qDe', language=lang)
The attribute 'qDe' is hard-coded. Could it be made
user-configurable via docutils.conf ?
I am asking this because originally I was looking for a quick work-around
with a problem with ``--`` being smartquotified into en-dash
(I know from "utils/smartquotes.py" docstring that I can use ``-\\-``
mark-up; this is Sphinx context)
My ``--`` problem will hopefully get resolved otherwise, but perhaps my query
makes sense nevertheless
Best,
Jean-François
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Docutils-develop mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-develop
Please use "Reply All" to reply to the list.
the SmartQuotes class of docutils.transforms.universal
has a method apply() which contains
# Iterator educating quotes in plain text:
# (see "utils/smartquotes.py" for the attribute setting)
teacher = smartquotes.educate_tokens(self.get_tokens(txtnodes),
attr='qDe', language=lang)
The attribute 'qDe' is hard-coded. Could it be made
user-configurable via docutils.conf ?
I am asking this because originally I was looking for a quick work-around
with a problem with ``--`` being smartquotified into en-dash
(I know from "utils/smartquotes.py" docstring that I can use ``-\\-``
mark-up; this is Sphinx context)
My ``--`` problem will hopefully get resolved otherwise, but perhaps my query
makes sense nevertheless
Best,
Jean-François
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Docutils-develop mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-develop
Please use "Reply All" to reply to the list.