= Summary =
Proposal owner: Miklos Vajna
Proposal short name: Style for format changes
= Rationale =
Use cases:
ODF already supports tracked changes with a format type. It's possible to
record a format change for a text portion that has direct character properties
associated with it (automatic style), but in this case the document only
contains the new character properties. The proposal is to store the old
properties inside the tracked change, somewhat similar to deleted text.
Alternatives considered:
- Requiring the usage of character styles for the old character properties
would be an option, so once e.g. the font size is reset back to "default",
no need to store the old character properties.
- Don't allow format changes on text which has direct formatting on it
already. This has the downside that some format changes won't be tracked,
even if track changes recording is on.
= Requested changes to the ODF Standard =
Text changes/additions (compared to ODF 1.4):
5.5.6 <text:format-change> (existing section)
Remove "Note: This element does not contain formatting changes that have taken place."
This element uses the text:style-name attribute to refer to the previous
formatting.
The <text:format-change> element has the following attribute: text:style-name 19.880.
19.880 text:style-name (existing)
Add subheading 19.880.N <text:format-change>:
The text:style-name attribute references the text style that was applied immediately before the text style was changed.
Schema changes/additions:
<rng:element name="text:format-change">
<rng:optional>
<rng:attribute name="text:style-name">
<rng:ref name="styleNameRef"/>
</rng:attribute>
</rng:optional>
<rng:ref name="office-change-info"/>
</rng:element>
In other words, allow a new, optional <text:format-change
text:style-name="..."> attribute to refer to an automatic style, describing
the old direct formatting, that was lost previously.
= Impacts =
Conformance:
This proposal will not add any mandatory features or behaviors.
Backwards compatibility:
This change will not impact existing ODF processors, the usage of the new
attribute is optional.
Accessibility impact:
This change will not impact accessibility.
Interoperability:
OOXML's wordprocessingML allows storing such "old direct character
formatting"; this proposal allows roundtripping that feature in ODF.
LibreOffice 26.2 implements this feature.