jdum / odfdo

python library for OpenDocument format (ODF)
Apache License 2.0
58 stars 11 forks source link

The default language is french. It is no where documented how to change it. #23

Closed pdenapo closed 9 months ago

pdenapo commented 1 year ago

The default document language is french. This might be not what most users want. The code in the meta.py example

document.set_language('fr-FR')

does not work. This should be the most pythonic way of doing this.

jdum commented 1 year ago

Sorry, but you're wrong: The default document language is ... empty. But you are right the example is erroneous, the actual working code is meta.get_language(), with meta being: document.get_part("meta.xml")

You have a working example the the recipe "show_meta_data.py"

I'm sorry that the rather old code base of this software is too close to ODF, and so far from your dreams.