From: David G. <go...@py...> - 2017-05-03 21:25:27
|
I assume you mean -l/--language. The option -p (in the subject) doesn't exist. On Wed, May 3, 2017 at 3:43 PM, Matěj Cepl <mc...@ce...> wrote: > If I run > > $ rst2odt -l cs kobylky.rst >kobylky.odt > > I would expect that kobylky.odt default style would be in the > Czech language. What do you mean by "default style"? > Except when I open it in OOWriter (or LOWriter > these days), it is still in English. The same result with ``-l > cz_CZ`` (not sure which one is expected). "cs" is expected for Czech. See the supported languages in docutils/languages/ (each language has a corresponding Python file there; Czech's is cs.py). If you try an unsupported language, you'll get a warning that ``language "x" not supported: Docutils-generated text will be in English.`` > Any thoughts? Try ``rst2html.py -l cs kobylky.rst >kobylky.html``; do you get what you expect? Looks like there's a bug in the ODT Writer. It doesn't handle admonition labels properly: it's not looking up the label in the target language. Please open a bug ticket for this. David Goodger <http://python.net/~goodger> |