Re: Is rst2odt -l cs supposed to work?
Matěj Cepl <[email protected]>
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <[email protected]> |
On 2017-05-16, 12:10 GMT, Guenter Milde wrote:
> Unless absolutely required otherwise, I suggest passing just
> "en".
>
> If this is not possible, the odt writer could use a different default
> (this needs to be documented).
>
> Rationale: not only Mexican and Castillean Spaniards disagree about the
> default region tag for a language, narrowing "en" to American English
> must at least be documented.
What about locale.normalize() (https://is.gd/dZe2bZ)?
In [1]: import locale
In [2]: locale.normalize('en')
Out[2]: 'en_US.ISO8859-1'
In [3]: locale.normalize('cs')
Out[3]: 'cs_CZ.ISO8859-2'
In [4]: locale.normalize('es')
Out[4]: 'es_ES.ISO8859-1'
In [5]: locale.normalize('fr')
Out[5]: 'fr_FR.ISO8859-1'
In [6]:
(that encoding is bad, I would prefer UTF-8 all the time, but
that’s another point)
Best,
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."
------------------------------------------------------------------------------
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.