rst_epilog in Sphinx - intl

77 views
Skip to first unread message

藤田祐治

unread,
Dec 19, 2020, 9:40:20 PM12/19/20
to sphinx-users
Hi 
I am using Sphinx and Sphinx-intl for the document translation from Englsih to Japanese.

After translating to Japanese in PO file and then, run
make -e SPHINXOPTS="-D language='ja'" html

All translation is reflected in html file in Japanese.
However,  I can not reflect rst-epilog

Here is rst-epilog in conf.py file:

rst_epilog = """
..  |variable_version| replace:: 2.5
"""

This is supposed to replace |variable_version| with version number of 2.5
It looks rst_epilog is not working in my case.
I mean converted html still remain |variable_version|

How can I make rst_epilog work,?

Thanks
Yuji

藤田祐治

unread,
Dec 19, 2020, 10:43:12 PM12/19/20
to sphinx-users
Hi 
Addition.
In my case
make -e SPHINXOPTS="-D language='ja'" html

does not reflect rst_elpilog

However
make -e SPHINXOPTS="-D language='ja'" latexpdf

reflect rst_epilog

anything wrong with my set up?

Thanks
Yuji




2020年12月20日日曜日 11:40:20 UTC+9 藤田祐治:

Komiya Takeshi

unread,
Dec 25, 2020, 10:38:35 AM12/25/20
to sphinx...@googlegroups.com
Hi Yuji,

That's strange. I believe Sphinx should output the same result both
`make html` and `make latexpdf`. I guess something are cached on your
environment.
Could you try `make clean` before building docs?

As a trial, I made a simple project including a substitution. And I
succeeded to build "substituted" document.

Thanks,
Takeshi KOMIYA

2020年12月20日(日) 12:43 藤田祐治 <yujf...@open-lc.co.jp>:
> --
> You received this message because you are subscribed to the Google Groups "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/4679212d-f026-4af2-8526-ac8163361534n%40googlegroups.com.

藤田祐治

unread,
Jan 6, 2021, 2:05:53 AM1/6/21
to sphinx...@googlegroups.com
Komiya-san,

Thank you very much and sorry for taking long time to respond back to you.
I found special character like  XXXX™️ and  ©︎ stop the latexpdf process.
and when removed these, the trouble solved.

Thank you very much for taking care

Yuji

2020年12月26日(土) 0:38 Komiya Takeshi <i.tk...@gmail.com>:


--
藤田 祐治
オープンリンク株式会社
代表取締役 社長
住所:千葉県千葉市美浜区打瀬2-9-16-414
携帯:080-3694-5550
e-mail: yujf...@open-lc.co.jp

Komiya Takeshi

unread,
Jan 7, 2021, 12:09:55 PM1/7/21
to sphinx...@googlegroups.com
I suppose `latex_engine = 'uplatex'` setting will help your case. It
can compile the LaTeX document including some unicode characters
especially Japenese. Please try it if you have time.

Thanks,
Takeshi KOMIYA

2021年1月6日(水) 16:05 藤田祐治 <yujf...@open-lc.co.jp>:
> To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/CABdx1LvSQv1Q8nN_Z1w03q19zLSujB0Dc%2BcmfhQL-eyFSVnWkA%40mail.gmail.com.

藤田祐治

unread,
Jan 7, 2021, 12:43:58 PM1/7/21
to sphinx...@googlegroups.com
Hi Komiya~San,

Thank you very much for wonderful advise.
I will definitely try and feed back the result

Many thanks
Yuji

2021年1月8日(金) 2:09 Komiya Takeshi <i.tk...@gmail.com>:

藤田祐治

unread,
Jan 7, 2021, 10:49:34 PM1/7/21
to sphinx...@googlegroups.com
Hi Komiya-san,

Thank you very much for your advice.
I tested three files and all worked.

This solved one of my headaches.

Many thanks
Yuji

2021年1月8日(金) 2:09 Komiya Takeshi <i.tk...@gmail.com>:
I suppose `latex_engine = 'uplatex'` setting will help your case. It
Reply all
Reply to author
Forward
0 new messages