-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sphinx fails to distinguish open and close quotation marks #4142
Comments
I can reproduce it with Docutils. Test file .. comment
https://github.com/python-doc-ja/py36-locale/blob/master/ja/LC_MESSAGES/bugs.po#L122
.. comment https://github.com/sphinx-doc/sphinx/issues/4142
Welcome to FOO's documentation!
===============================
Hello \"Title\" World
バグ報告フォームには幾つかのフィールドがあります。\"Title\" フィールドには、問題の説明を *非常に*
Process with html file contains:
Can you open ticket or ask for advice/explanation at https://sourceforge.net/p/docutils/bugs ? |
@jfbu OK, I will open a ticket and give an explanation later. |
I just have created a ticket. Ticket URL: https://sourceforge.net/p/docutils/bugs/332/ |
I confirmed. Indeed, docutils expects a space before opening quotes. |
closes sphinx-doc#4142 closes sphinx-doc#4357 closes sphinx-doc#4359 refs: sphinx-doc#3967 Adds ``smartquotes``, ``smartquotes_action``, ``smartquotes_excludes`` configuration variables. - if ``smartquotes`` is set to False, then Smart Quotes transform is not applied even if a Docutils configuration file activates it, - the current default of ``smartquotes_excludes`` deactivates Smart Quotes for Japanese language, and also for the ``man`` and ``text`` builders. However, currently ``make text html`` deactivates Smart Quotes for ``html`` too, and ``make html text`` activates them for ``text`` too, because the picked environment is shared and already transformed. - now Smart Quotes get applied also when source documents are in Markdown or other formats.
Subject: On the translation project of Python document, smart quotes, the feature from docutils, fails to determine whether some quotation mark is open or close.
Problem
"Title"
to”Title”
(”
,T
,i
,t
,l
,e
,”
), or」Title」
with smart quotes enabled and language set to Japanese.Procedure to reproduce the problem
Then, open
_build/html/bugs.html
with your browser.Error logs / results
Expected results
docutils transforms
"Title"
to「Title」
(also"Type"
to「Type」
),or do not transforms
"Title"
at all.Reproducible project / your project
Environment info
The text was updated successfully, but these errors were encountered: