ODF New Proposal Template

Summary

Proposal owner:

Mingfei Jia

Proposal short name:

format change tracking enhancement

Rationale

Use cases:

Document authors often need to track the format changes for the specific text region, and may accept or reject some or all of the format changes at some time later. In current ODF specification(OpenDocument-v1.2-draft7-11.odt), the definition of format change only contains the office change info, e.g. format change date/time, author name, and comments, but doe not contain the style info before the format is changed. This results in that for a specific format change, the author only can accept it, but can not reject it since the author does not know the previous style info before the format change occurs.

If a document has been edited by multiple authors at different time slots. It is very possible that multiple authors have changed the format for one text region by multiple times. And some time later, one author wants to accept or reject some of those format changes to the same text region. But current ODF specification (OpenDocument-v1.2-draft7-11.odt) only allows one format change in one changed region, and can not record multiple format changes for one text region.
Also, author may want to reject or accept any format change among all the format changes occurred upon one text region, so the definition of format change needs not only the style info before the format is changed, but also the style info after the format is changed.

Alternatives considered:

May have different solutions according to different design ideas.  

Requested changes to the ODF Standard

Text changes/additions (please state section numbers):

In OpenDocument-v1.2-draft7-11.odt, section 4.6.2 <text:changed-region>:
change the last sentence

From:
"The <text:changed-region> element may have the following child elements: <text:deletion> 4.6.4, <text:format-change> 4.6.5 and <text:insertion> 4.6.3."

To:
"The <text:changed-region> element may have the following child elements: <text:deletion> 4.6.4, one or more <text:format-change> 4.6.5 and <text:insertion> 4.6.3."

In OpenDocument-v1.2-draft7-11.odt, section 4.6.5 <text:format-change>:

Delete the sentence "Note: A format change element does not contain the actual changes that took place."

Change the sentence
From:
"The <text:format-change> element has no attributes."

To:
"The <text:format-change> element has the attributes <text:before-change-style-name> 18.xxxx and <text:after-change-style-name> 18.yyyy".
Here "xxxx" and "yyyy" depends on the overall attributes sorting that may be done by the specification editor.

In OpenDocument-v1.2-draft7-11.odt, chapter 18, add 2 sections:

18.xxxx <text:before-change-style-name>
The <text:before-change-style-name> attribute specifies the style name that applies to a text region before some format change occurs upon the text region.
The <text:before-change-style-name> attribute may be used with the following element <text:format-change>4.6.5.

18.yyyy <text:after-change-style-name>
The <text:after-change-style-name> attribute specifies the style name that applies to a text region after some format change occurs upon the text region.
The <text:after-change-style-name> attribute may be used with the following element <text:format-change>4.6.5.

Schema changes/additions:

change the schema
From:
<define name="text-changed-region-content" combine="choice">
        <element name="text:format-change">
                <ref name="office-change-info"/>
        </element>
</define>

To:
<define name="text-changed-region-content" combine="choice">
        <oneOrMore>
                <element name="text:format-change">
                        <optional>
                                <attribute name="text:before-change-style-name">
                                        <ref name="styleNameRef">
                                </attribute>
                                <attribute name="text:after-change-style-name">
                                        <ref name="styleNameRef">
                                </attribute>
                        </optional>
                        <ref name="office-change-info">
                </element>
        </oneOrMore>
</define>

Impacts

Conformance:

This proposal enables ODF document to save style info before or after format change, as well as multiple format changes for one text region. It allows ODF application to accept/reject any format change occurred upon one text region.

Backwards compatibility:

To be backward compatibility, the style info attributes of format change are optional.

Accessibility impact:

No

Workflow (to be filled in by TC Chairs)

Category: CategoryNewProposal

Date Proposal initially made: 2008/11/23

Dates Proposal discussed on TC calls:

Date vote is requested:

Date vote is held:

Results of vote:

format_change_tracking_enhancement (last edited 2009-08-12 18:04:28 by localhost)