Re: [sphinx-users] Are there way to generate RST file from translated PO file

2023-01-06 Thread 藤田祐治
Hi Shimazu-san, Thank you for the email. That is exactly what I thought as possible solution. The po file contain the information of the location of the string and source string as msgid and translated string as msgrd. It looks ok if sorce string is the plain sentence, But I am not sure I can h

[sphinx-users] wrong hierarchy in latexpdf

2023-01-06 Thread Yaroslav Nikitenko
Dear Sphinx users, I want to have documentation in both html and pdf formats. While all works fine for html, for LaTeX I have to use things like .. raw:: latex \chapter{Manual} .. only:: latex .. include:: yarsync.1.md because otherwise section hierarchy is wrong. I filled the bug a

[sphinx-users] Re: The xrst sphinx wrapper

2023-01-06 Thread bradley...@gmail.com
This is not a problem with readthedoc, it is a problem with how firefox handles redirects. xrst is using a redirect in the index.html file to load any page that one chooses on the command line; e.g., ``` window.location.href="user-guide.html" ``` The problem is that once firefox gets the redir

[sphinx-users] Re: The xrst sphinx wrapper

2023-01-06 Thread bradley...@gmail.com
I changed the name user_guide to user-guide (as a test) and there seems to be a problem with readthedocs. The link https://xrst.readthedocs.io/en/latest/index.html works fine and gets to the user-guide.html page, but the link https://xrst.readthedocs.io/ tries to go to the old user_guide.html pag

Re: [sphinx-users] Are there way to generate RST file from translated PO file

2023-01-06 Thread Takayuki Shimizukawa
Hi Yuji, I think there is no easy way to do this. Sphinx reads the source and converts it to an AST: Abstract Syntax Tree (doctree), where it replaces the messages matching the po file. The problem is that we cannot reproduce the reST sources from the AST, because most of the structure of the dire

[sphinx-users] Re: Builder and custom extension

2023-01-06 Thread Daniel Woste
Hi, answered this also on SO: If your output code is not too complex (for instance just some div-container, paragraphs, some text) I would try to avoid the custom builder visitor functions. Mainly as you need to maintain one solution for each