From: Matěj C. <mc...@ce...> - 2020-02-23 18:04:13
|
On 2020-02-23, 16:23 GMT, Guenter Milde via Docutils-users wrote: > There is a method for defining the language of text parts: The > HTML and LaTeX writers convert a "class" argument starting > with ``language-`` in a language argument with the remainder, It really works for HTML5 and LaTeX, but unfortunately it doesn’t for ODT. So, this rST: In the end both options happened. Uncle Harry in secret asked the French :language-fr:`Bureau des Aurors` to sent somebody to start the investigation, gives me this lovely HTML: <p>In the end both options happened. Uncle Harry in secret asked the French <span lang="fr">Bureau des Aurors</span> to sent somebody to start the investigation,</p> and this LaTeX (and the generator even managed to translate “ft” -> “french”): In the end both options happened. Uncle Harry in secret asked the French \foreignlanguage{french}{Bureau des Aurors} to sent somebody to start the investigation, but ODT generator doesn’t catch this trick and creates a new empty style (which actually is not visible in the style tools in OOWriter): <text:p text:style-name="rststyle-textbody">In the end both options happened. Uncle Harry in secret asked the French <text:span text:style-name="rststyle-language-fr">Bureau des Aurors</text:span>to sent somebody to start the investigation,</text:p> I was trying a bug for this at https://sourceforge.net/p/docutils/bugs, but I couldn’t find anything. And I know, unsupported magical feature means it is unsupported, but still it would be lovely to have the ODT generator following the suite. Do you know whether there is such bug? Best, Matěj -- https://matej.ceplovi.cz/blog/, Jabber: mc...@ce... GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 Roses are red; Violets are blue. I'm schizophrenic, And so am I. |