You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Japanese quotes (e.g. 『, 「) are suitable, we use them in translation.
So we don't want to translate English quotes (", ') to Japanese quotes automatically.
Would you disable smart-quotes option in docutils.conf?
No diff for en and fr as expected, and a diff for japanese as following:
Lots of:
< zip application format uses this ability to prepend a standard POSIX 「shebang」
---
> zip application format uses this ability to prepend a standard POSIX "shebang"
That result looks good, but disabling smartquotes has bad effect on French version, which is quite undesirable for me.
So, I suggest to use configuration smartquotes_excludes in conf.py.
This configuration is more straightforward and flexible than smartquotes-locales in docutils.conf.
Since this commit bumps Sphinx version to 1.7.2, smartquotes was disabledfor Japanese HTML builds and will not break Japanese HTML documents.
Of course, smartquotes is still enabled for other language.
Finally, this issue seems resolved with the better way.
Activity
JulienPalard commentedon Oct 9, 2017
Looks fixed by #33
JulienPalard commentedon Oct 11, 2017
Fixed (I just upgraded sphinx to the latest version, they fixed it).
methane commentedon Oct 15, 2017
@JulienPalard In Japanese, we want use
"and'not only API manual, but also normal paragraph. For example,Could you consider again disabling smart quotes?
python-doc-ja/python-doc-ja#774 (comment)
As @cocoatomo said, we can disable it by putting
docutils.conffile like below on top of the sphinx project root directory.methane commentedon Oct 15, 2017
python-doc-ja/python-doc-ja#774 (comment)
@cocoatomo suggests this configuration for
docutils.conf:With this config,
"title"is used for Japanese and«title»is used for French.JulienPalard commentedon Oct 15, 2017
That's nice, so we can commit the file in cpython if this is the case, I'm trying it right now.
JulienPalard commentedon Oct 15, 2017
I tried it and got the following results:
No diff for en and fr as expected, and a diff for japanese as following:
Lots of:
and
I'm opening an issue on b.p.o and a PR.
JulienPalard commentedon Oct 15, 2017
Opened the PR: python/cpython#4006
JulienPalard commentedon Mar 11, 2018
python/cpython#4006 has been merged.
cocoatomo commentedon Mar 19, 2018
Same issue is now occurring on Japanese translation on docs.python.org.
docutils.conf does exist on https://github.com/python/cpython/blob/master/Doc/docutils.conf,
but it does not seem effective.
I would like to reopen this issue.
cocoatomo commentedon Mar 22, 2018
@JulienPalard Would you like to check the comment above?
JulienPalard commentedon Mar 23, 2018
Hi @cocoatomo, I tried disabling smartquotes completly, on
bugs.htmldiffs are:(Last one diff on the simple quote of "Developer's" from U+2019 to U+0027.)
How does it looks to you?
Sadly it diff a lot on english and french version too (U+2019, U+201C, U+201D, ...).
cocoatomo commentedon Mar 24, 2018
That result looks good, but disabling smartquotes has bad effect on French version, which is quite undesirable for me.
So, I suggest to use configuration smartquotes_excludes in conf.py.
This configuration is more straightforward and flexible than
smartquotes-localesin docutils.conf.JulienPalard commentedon Mar 24, 2018
So, upgrading to sphinx 1.6.6 should do it. I'm trying a local build with 1.7.2.
cocoatomo commentedon Apr 17, 2018
Since this commit bumps Sphinx version to 1.7.2, smartquotes was disabledfor Japanese HTML builds and will not break Japanese HTML documents.
Of course, smartquotes is still enabled for other language.
Finally, this issue seems resolved with the better way.
JulienPalard commentedon Apr 22, 2018
Nice to hear :)