Re: Is rst2odt -p cs supposed to work?
David Goodger <[email protected]>
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <CABiJP=KQ8_DMTbfNLQp7Zb7O80nN-z8PSjf-MaS1w-sUphPOZw@mail.gmail.com> |
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 <[email protected]> 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> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Docutils-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/docutils-users Please use "Reply All" to reply to the list.