jfbu
2017-05-26 15:15:48 UTC
Hi,
please excuse the naive question (and perhaps I should have used
user list)
in ``docutils.languages.get_language()`` the list of languages
for which ``<language>.py`` exists is different than the list
of languages for which the ``smartchars`` class in
``docutils.utils.smartquotes`` provides settings.
currently we have an issue at Sphinx
https://github.com/sphinx-doc/sphinx/issues/3788 which was
initially related to the fact that Sphinx supports more languages
than those available in ``docutils/languages/``. Thus the attempt
to use the smart quotes feature was causing the problem that
``docutils.languages.get_language('tr')`` raises a warning.
the current envisioned fix will drop the attempt to apply Docutils
smart quotes if analysis of the returned value from
``get_language('<language_code>')`` (with no reporter
so that no warning is issued) shows that the language is not supported
(for example ``tr``)
but this sounds a pity because for example the development
version of Docutils has the ``tr`` smart quotes, and already
0.13.1 has the ``et`` smart quotes. But there is no ``et.py``
in ``docutils/languages/``.
Do you have any advice about how to fully benefit from
Docutils smart quotes without the limitation that ``get_language``
only recognizes a shorter list of language codes ?
I apologize if my question displays basic mis-understanding
on my part: I am not all familiar with Docutils source code.
.. and only a little with Sphinx ;-) by the way it looks as if
with Sphinx before 1.6.1, calls to Docutils ``get_language()``
always were with ``'en'``, as far as I understand. So the issue
did not arise so far.
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.
please excuse the naive question (and perhaps I should have used
user list)
in ``docutils.languages.get_language()`` the list of languages
for which ``<language>.py`` exists is different than the list
of languages for which the ``smartchars`` class in
``docutils.utils.smartquotes`` provides settings.
currently we have an issue at Sphinx
https://github.com/sphinx-doc/sphinx/issues/3788 which was
initially related to the fact that Sphinx supports more languages
than those available in ``docutils/languages/``. Thus the attempt
to use the smart quotes feature was causing the problem that
``docutils.languages.get_language('tr')`` raises a warning.
the current envisioned fix will drop the attempt to apply Docutils
smart quotes if analysis of the returned value from
``get_language('<language_code>')`` (with no reporter
so that no warning is issued) shows that the language is not supported
(for example ``tr``)
but this sounds a pity because for example the development
version of Docutils has the ``tr`` smart quotes, and already
0.13.1 has the ``et`` smart quotes. But there is no ``et.py``
in ``docutils/languages/``.
Do you have any advice about how to fully benefit from
Docutils smart quotes without the limitation that ``get_language``
only recognizes a shorter list of language codes ?
I apologize if my question displays basic mis-understanding
on my part: I am not all familiar with Docutils source code.
.. and only a little with Sphinx ;-) by the way it looks as if
with Sphinx before 1.6.1, calls to Docutils ``get_language()``
always were with ``'en'``, as far as I understand. So the issue
did not arise so far.
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.