I need to use Unicode characters in my Sphinx documentation.
When I insert the line
.. |ohat| unicode:: U+00F4 .. ohat
at the top of a file, I get a "ô" only if the "|ohat|" is surrounded by space.
But if the "|ohat|" is inside a word, it is not translated - I get "D|ohat|le" instead of "Dôle".
How can I use Unicode characters inside a word when using rst?
Without a substitution
Just use
Dôlein the document.With a substitution
The substitution reference must be surrounded by whitespace. In order to exclude the whitespace from the output, escaping is needed:
References: