On 1/3/21 8:33 PM, Dan Lewis wrote:
1) What are the OS that this will work with?
The procedure described below is OS independent (in this new version of
the "cleaning" procedure the odtclean.py script is not required, which
is a significant simplification)
2) Where are the directions on how to use it?
LoGuidesStyles.oxt is a simple extension and should be installed as any
other extension. Its usage is described on
in the last section:
The extension can be used to |Highlight Character Styles| and to |Reset
Character Styles|. These functions can be accessed either using a tool
bar |Add On 2| or in |Tools > Add-Ons|.
The rest is described below.
On 1/3/21 9:18 AM, Milos Sramek wrote:
yes, please, use that file.
I would like to ask you (and anybody else) to help in testing of the
LoGuidesStyles.oxt extension and document cleaning.
The extension is available from
and it highlights character styles. I created it to be used in manual
style checking, but if used during editing it enables full control over
direct formatting/styles and thus makes additional checking not
necessary. But, maybe, all these colors are disturbing in editing – I
would like to know your opinion on that.
I have written here several times about using the script odtclean.py. It
is, however possible, that it is not necessary to use it at all, since
the Format/Clear Direct Formatting works good enough. I wrote the script
5 years ago because the Clear Direct Formatting command corrupted the
LOGuides documents (mostly lists). I've tested Clear Direct Formatting
on several documents now and it works without problems (I've noticed
just insignificant changes in paragraph spacing in some documents). It
cleans the document nearly as good as the script (does not clean image
captions and does not merge neighboring styles of the same type, but
these are not a problem).
Please, test it, too. One cannot run the command on the whole document
(CTRL-A) – it is necessary to use it in two steps: first on the text
before the table of contents and then on the rest after the table of
If these two steps work well, the extra cleaning step in the workflow
will not be necessary
On 1/2/21 8:58 PM, Steve Fanning wrote:
As discussed at a recent Document Team meeting, I am working on an
update to Chapter 13 of the 7.0 Calc Guide (Calc as a Database).
I have assumed that the best ODT file to start with is the cleaned
version in the folder that Milos identified below
Please advise if this assumption is incorrect!
On 28/12/2020 16:34, Milos Sramek wrote:
Hi Olivier and all,
now that CG70 and MG70 are published I have cleaned the documents
manually and by the script. You can find the archives in
I suggest to replace the chapter files in the Published directory by
their cleaned versions without producing the full odt and pdf book.
Thus, the next version will start from the cleaned document.
If you agree, I will replace them.
I've created a simple extension, which highlights the character styles
used in the guides:
If highlighted, an author can see if styles are really used instead of
direct formatting - in that case additional manual cleaning would
necessary and it would be sufficient only to run the script. I suggest
then to produce the cleaned files after publishing the guide.
To summarize, I suggest to include two additional steps to the
LO Guides document
- for authors: use the extension and use the character styles
- for a specific person (me for now): to run the script after
the guide and to replace the chapter files in the published directory
On 12/17/20 8:55 PM, Olivier Hallot wrote:
Hi Milos, All
Em 17/12/2020 16:41, Milos Sramek escreveu:
I suggest to include file cleaning in the workflow. In cleaning one
removes direct formatting, which is necessary for translation.
I do that after a guide is published - the cleaned files can be
The current problem is that nobody knows about them and a new
a guide starts from an uncleaned version in the Published and thus I
have to repeat the laborious manual cleaning part again an again.
BTW, last time I tried odtclean.py in my Linux box it failed,
related to python version. Actually, is it still of use?
My suggestion is to add another step after step 7 in the "How to
a chapter" section (page 15, 2 - Producing LO Guides.odt): a
directory, the contents of which will then be used to start a next
version of the guide. I will then produce the cleaned files.
I think the cleaned files should be the published files. In other
only publish cleaned files.
email & jabber: email@example.com
To unsubscribe e-mail to: firstname.lastname@example.org
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/documentation/
Impressum (Legal Info)
: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (MPLv2
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our trademark policy