Re: Is rst2odt -p cs supposed to work?

Dave Kuhlman <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
Matěj,

I believe I've been able to:

- Add support for the -l/--language command line option to the ODT
  writer.  You should be able to set the default language/country
  with something like the following::

      $ rst2odt.py -l cs-CZ test.txt test.odt
      $ rst2odt.py --language=cs_CZ test.txt test.odt

- Fixed the bug that was triggered by your image in the test file
  you sent me.

I'll attach the modified file to a separate message so as to not
clutter the mailboxes of everyone on the list.

Please let me know if this works for you.
If it does, then I'll see about submitting the change.

Dave

On Fri, May 05, 2017 at 12:34:55PM +0200, Matěj Cepl wrote:
> On 05/05/17 01:12, Dave Kuhlman wrote:
> > When I did the above, and then opened that output .odt file in
> > LibreOffice Writer, the default language was set to Czech, if I
> > understand you correctly.
> 
> Attached is the diff I thought should be applied (or rather generated
> when we create the ODT file).
> 
> Matěj
> 
> -- 
> https://matej.ceplovi.cz/blog/, Jabber: [email protected]
> GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
> 
> Of course I'm respectable. I'm old. Politicians, ugly buildings,
> and whores all get respectable if they last long enough.
>       --John Huston in "Chinatown."

> --- styles_en.xml	2017-05-05 11:25:51.077658035 +0200
> +++ styles.xml	2017-05-05 12:32:15.759359812 +0200
> @@ -72,13 +72,13 @@
>        style:writing-mode="lr-tb" />
>        <style:text-properties style:use-window-font-color="true"
>        style:font-name="Nimbus Roman No9 L" fo:font-size="12pt"
> -      fo:language="en" fo:country="US"
> +      fo:language="cs" fo:country="CZ"
>        style:font-name-asian="DejaVu Sans"
> -      style:font-size-asian="12pt" style:language-asian="en"
> -      style:country-asian="US"
> +      style:font-size-asian="12pt" style:language-asian="cs"
> +      style:country-asian="CZ"
>        style:font-name-complex="DejaVu Sans"
> -      style:font-size-complex="12pt" style:language-complex="en"
> -      style:country-complex="US" fo:hyphenate="false"
> +      style:font-size-complex="12pt" style:language-complex="cs"
> +      style:country-complex="CZ" fo:hyphenate="false"
>        fo:hyphenation-remain-char-count="2"
>        fo:hyphenation-push-char-count="2" />
>      </style:default-style>





-- 

Dave Kuhlman
http://www.davekuhlman.org

------------------------------------------------------------------------------
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.