details: https://code.tryton.org/relatorio/commit/63f72a8c110e
branch: default
user: Cédric Krier <[email protected]>
date: Sun Mar 29 11:30:39 2026 +0200
description:
Update documentation to use LibreOffice
diffstat:
doc/indepthexample.rst | 14 +++++++-------
doc/quickexample.rst | 2 +-
relatorio/templates/opendocument.py | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (76 lines):
diff -r afaa298d3241 -r 63f72a8c110e doc/indepthexample.rst
--- a/doc/indepthexample.rst Sun Mar 29 08:48:14 2026 +0200
+++ b/doc/indepthexample.rst Sun Mar 29 11:30:39 2026 +0200
@@ -14,8 +14,8 @@
.. include:: ../examples/common.py
:literal:
-Create a simple OpenOffice Writer template
-------------------------------------------
+Create a simple LibreOffice Writer template
+-------------------------------------------
Let's start with the simple template defined in :file:`basic.odt`.
@@ -34,7 +34,7 @@
Genshi_ heritage. In fact, all reports using relatorio are subclasses of
Genshi's Template. Thus you can use most of the goodies provided by Genshi.
-.. _Placeholder:
https://wiki.openoffice.org/wiki/Documentation/OOoAuthors_User_Manual/Writer_Guide/Using_placeholder_fields
+.. _Placeholder:
https://help.libreoffice.org/latest/en-US/text/swriter/01/04090003.html
.. _Genshi: https://genshi.edgewall.org/
To iterate over a list you must use an hyperlink (created through
@@ -75,8 +75,8 @@
.. _`zipfile library`: https://docs.python.org/3/library/zipfile.html
.. _Zipfile: https://docs.python.org/3/library/zipfile.html#zipfile.ZipFile
-One step further: OpenOffice Calc and OpenOffice Impress templates
-------------------------------------------------------------------
+One step further: LibreOffice Calc and LibreOffice Impress templates
+--------------------------------------------------------------------
Just like we defined a Writer template it is just as easy to define a
Calc/Impress template. Let's take a look at :file:`pivot.ods`.
@@ -90,7 +90,7 @@
* or through the hyperlink specification I explained earlier.
Note that there is another tab in this Calc file used to make some data
-aggregation thanks to the `data pilot`_ possibilities of OpenOffice.
+aggregation thanks to the `data pilot`_ possibilities of LibreOffice.
.. _data pilot:
https://help.libreoffice.org/latest/en-US/text/scalc/guide/datapilot.html
@@ -140,7 +140,7 @@
.. image:: complicated.png
-In this example, you can see that not only the openoffice plugin supports the
+In this example, you can see that not only the libreoffice plugin supports the
``for directive``, it also supports the ``if directive`` and the ``choose
directive``
that way you can choose to render or not some elements.
diff -r afaa298d3241 -r 63f72a8c110e doc/quickexample.rst
--- a/doc/quickexample.rst Sun Mar 29 08:48:14 2026 +0200
+++ b/doc/quickexample.rst Sun Mar 29 11:30:39 2026 +0200
@@ -1,7 +1,7 @@
Quick Example
=============
-In this page we will show you how you can create OpenOffice documents using
Relatorio.
+In this page we will show you how you can create LibreOffice documents using
Relatorio.
Data
-----
diff -r afaa298d3241 -r 63f72a8c110e relatorio/templates/opendocument.py
--- a/relatorio/templates/opendocument.py Sun Mar 29 08:48:14 2026 +0200
+++ b/relatorio/templates/opendocument.py Sun Mar 29 11:30:39 2026 +0200
@@ -71,7 +71,7 @@
# A note regarding OpenDocument namespaces:
#
-# The current code assumes the original OpenOffice document uses default
+# The current code assumes the original LibreOffice document uses default
# namespace prefix ("table", "xlink", "draw", ...). We derive the actual
# namespaces URIs from their prefix, instead of the other way round. This has
# the advantage that if a new version of the format use different namespaces