Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This matter was discussed in a bug report raised in 2013, fdo#68183. In the comment trail it is explained that the "officeooo:rsid" of <style:text-properties> (and one or two other related attributes) are part of the "OASIS OpenDocument 1.2 extended" format. These numbers (it appears) carry revision IDs.

Although a "fix" for this was committed as long ago as v. 4.5.0 (in "tdf#68183 sw: config option for disabling the creation of automatic RSID marks"), it isn't immediately clear how to get rid of them.

There are two approaches, I believe, one that is partial, and one that is more thorough:

  1. Partial: one can select text, and use Format > Clear Direct Formatting, and this will get rid of many (perhaps not all) of these wrappers. It will also get rid of direct formatting, of course (e.g., if "italics" have been applied), and so even this partial solution may come at a cost.

  2. Thorough: It is possible to save the document using a different ODF file-save setting. Go to Tools > Options > Load/Save > General to get to this dialog:

settings-screenshot

You want to choose one of the options that does not have "extended" with it. Choose, e.g., 1.2 (plain), then save your document. This should get rid of most of the offensive <text:span text:style-name="Tnn"> ... </text:span> wrappers, and in my tests at least produces a document which can be meaningfully manipulated by regex.

This matter was discussed in a bug report raised in 2013, fdo#68183. In the comment trail it is explained that the "officeooo:rsid" of <style:text-properties> (and one or two other related attributes) are part of the "OASIS OpenDocument 1.2 extended" format. These numbers (it appears) carry revision IDs.

Although a "fix" for this was committed as long ago as v. 4.5.0 (in "tdf#68183 sw: config option for disabling the creation of automatic RSID marks"), it isn't immediately clear how to get rid of them.

There are two approaches, I believe, one that is partial, and one that is more thorough:

  1. Partial: one can select text, and use Format > Clear Direct Formatting, and this will get rid of many (perhaps not all) of these wrappers. It will also get rid of direct formatting, of course (e.g., if "italics" have been applied), and so even this partial solution may come at a cost.

  2. Thorough: It is possible to save the document using a different ODF file-save setting. Go to Tools > Options > Load/Save > General to get to this dialog:

settings-screenshotsettings-screenshot

You want to choose one of the options that does not have "extended" with it. Choose, e.g., 1.2 (plain), then save your document. This should get rid of most of the offensive <text:span text:style-name="Tnn"> ... </text:span> wrappers, and in my tests at least produces a document which can be meaningfully manipulated by regex.