[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] Updated: (OFFICE-3695)number:max-denominator-digits attribute to number:fraction
[ http://tools.oasis-open.org/issues/browse/OFFICE-3695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Guelzow updated OFFICE-3695:
-------------------------------------
Proposal:
Proposal #1:
Include:
------------------------------------------------------------------------------
19.xxx number:max-denominator-digits
The number:max-denominator-digits attribute specifies the maximum number of digits to use for the chosen denominator if its <number:fraction> element does not have a number:denominator-value attribute. The number:max-denominator-digits attribute is ignored in the presence of a number:denominator-value attribute attribute. The absence of the number:max-denominator-digits attribute indicates that no maximum number of difgits is specified.
Note: The number:max-denominator-digits attribute is used with number:grouping 19.348, number:min-denominator-digits 19.350, number:min-integer-digits 19.352 and number:min-numerator-digits 19.353 to define the display of a floating point number as a fraction.
The number:max-denominator-digits attribute is usable with the following element:
<number:fraction> 16.27.6.
The number:max-denominator-digits attribute has the data type positiveInteger 18.2.
------------------------------------------------------------------------------
In the listing of applicable attributes for 16.27.6 <number:fraction> include number:max-denominator-digits (19.xxx).
In the schema in
------------------------------------------------------------------------------
<define name="number-fraction-attlist">
<interleave>
<optional>
<attribute name="number:min-numerator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:min-denominator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:denominator-value">
<ref name="integer"/>
</attribute>
</optional>
</interleave>
</define>
------------------------------------------------------------------------------
insert a section on number:max-denominator-digits, ie:
------------------------------------------------------------------------------
<define name="number-fraction-attlist">
<interleave>
<optional>
<attribute name="number:min-numerator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:min-denominator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:max-denominator-digits">
<ref name="positiveInteger"/>
</attribute>
</optional>
<optional>
<attribute name="number:denominator-value">
<ref name="integer"/>
</attribute>
</optional>
</interleave>
</define>
------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------
Proposal #2:
Include:
------------------------------------------------------------------------------
19.xxx number:max-denominator-value
The number:max-denominator-value attribute specifies the maximum denominator permitted to be chosen if its <number:fraction> element does not have a number:denominator-value attribute. The number:max-denominator-value attribute is ignored in the presence of a number:denominator-value attribute attribute. The absence of the number:max-denominator-value attribute indicates that no maximum denominator is specified.
Note: The number:max-denominator-value attribute is used with number:grouping 19.348, number:min-denominator-digits 19.350, number:min-integer-digits 19.352 and number:min-numerator-digits 19.353 to define the display of a floating point number as a fraction.
Note: A number:max-denominator-value attribute value of 99 is equivalent to pemitting any 1 or 2 digit denominator. A number:max-denominator-value attribute value of 999 is equivalent to pemitting any 1, 2, or 3 digit denominator.
The number:max-denominator-value attribute is usable with the following element:
<number:fraction> 16.27.6.
The number:max-denominator-value attribute has the data type positiveInteger 18.2.
------------------------------------------------------------------------------
In the listing of applicable attributes for 16.27.6 <number:fraction> include number:max-denominator-value (19.xxx).
In the schema in
------------------------------------------------------------------------------
<define name="number-fraction-attlist">
<interleave>
<optional>
<attribute name="number:min-numerator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:min-denominator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:denominator-value">
<ref name="integer"/>
</attribute>
</optional>
</interleave>
</define>
------------------------------------------------------------------------------
insert a section on number:max-denominator-value, i.e.:
------------------------------------------------------------------------------
<define name="number-fraction-attlist">
<interleave>
<optional>
<attribute name="number:min-numerator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:min-denominator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:max-denominator-value">
<ref name="positiveInteger"/>
</attribute>
</optional>
<optional>
<attribute name="number:denominator-value">
<ref name="integer"/>
</attribute>
</optional>
</interleave>
</define>
------------------------------------------------------------------------------
Resolution:
Include:
------------------------------------------------------------------------------
19.xxx number:max-denominator-value
The number:max-denominator-value attribute specifies the maximum denominator permitted to be chosen if its <number:fraction> element does not have a number:denominator-value attribute. The number:max-denominator-value attribute is ignored in the presence of a number:denominator-value attribute attribute. The absence of the number:max-denominator-value attribute indicates that no maximum denominator is specified.
Note: The number:max-denominator-value attribute is used with number:grouping 19.348, number:min-denominator-digits 19.350, number:min-integer-digits 19.352 and number:min-numerator-digits 19.353 to define the display of a floating point number as a fraction.
Note: A number:max-denominator-value attribute value of 99 is equivalent to pemitting any 1 or 2 digit denominator. A number:max-denominator-value attribute value of 999 is equivalent to pemitting any 1, 2, or 3 digit denominator.
The number:max-denominator-value attribute is usable with the following element:
<number:fraction> 16.27.6.
The number:max-denominator-value attribute has the data type positiveInteger 18.2.
------------------------------------------------------------------------------
In the listing of applicable attributes for 16.27.6 <number:fraction> include number:max-denominator-value (19.xxx).
In the schema in
------------------------------------------------------------------------------
<define name="number-fraction-attlist">
<interleave>
<optional>
<attribute name="number:min-numerator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:min-denominator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:denominator-value">
<ref name="integer"/>
</attribute>
</optional>
</interleave>
</define>
------------------------------------------------------------------------------
insert a section on number:max-denominator-value, i.e.:
------------------------------------------------------------------------------
<define name="number-fraction-attlist">
<interleave>
<optional>
<attribute name="number:min-numerator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:min-denominator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:max-denominator-value">
<ref name="positiveInteger"/>
</attribute>
</optional>
<optional>
<attribute name="number:denominator-value">
<ref name="integer"/>
</attribute>
</optional>
</interleave>
</define>
------------------------------------------------------------------------------
was:
Include:
------------------------------------------------------------------------------
19.xxx number:max-denominator-digits
The number:max-denominator-digits attribute specifies the maximum number of digits to use for the chosen denominator if its <number:fraction> element does not have a number:denominator-value attribute. The number:max-denominator-digits attribute is ignored in the presence of a number:denominator-value attribute attribute. The absence of the number:max-denominator-digits attribute indicates that no maximum number of difgits is specified.
Note: The number:max-denominator-digits attribute is used with number:grouping 19.348, number:min-denominator-digits 19.350, number:min-integer-digits 19.352 and number:min-numerator-digits 19.353 to define the display of a floating point number as a fraction.
The number:max-denominator-digits attribute is usable with the following element:
<number:fraction> 16.27.6.
The number:max-denominator-digits attribute has the data type positiveInteger 18.2.
------------------------------------------------------------------------------
In the listing of applicable attributes for 16.27.6 <number:fraction> include number:max-denominator-digits (19.xxx).
In the schema in
------------------------------------------------------------------------------
<define name="number-fraction-attlist">
<interleave>
<optional>
<attribute name="number:min-numerator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:min-denominator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:denominator-value">
<ref name="integer"/>
</attribute>
</optional>
</interleave>
</define>
------------------------------------------------------------------------------
insert a section on number:max-denominator-digits, ie:
------------------------------------------------------------------------------
<define name="number-fraction-attlist">
<interleave>
<optional>
<attribute name="number:min-numerator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:min-denominator-digits">
<ref name="integer"/>
</attribute>
</optional>
<optional>
<attribute name="number:max-denominator-digits">
<ref name="positiveInteger"/>
</attribute>
</optional>
<optional>
<attribute name="number:denominator-value">
<ref name="integer"/>
</attribute>
</optional>
</interleave>
</define>
------------------------------------------------------------------------------
In the TC meeting of June 21, 2011 it was suggested that rather than specifying a maximum number of digits, we should allow the more general specification of a maximum denominator. I have formulated that suggestion as Proposal #2 and propose this as our resolution of this issue.
Note that
maximum 1 denominator digit can be obtained by using a maximum denominator value of 9;
maximum 2 denominator digits can be obtained by using a maximum denominator value of 99;
maximum 3 denominator digits can be obtained by using a maximum denominator value of 999;
> number:max-denominator-digits attribute to number:fraction
> ----------------------------------------------------------
>
> Key: OFFICE-3695
> URL: http://tools.oasis-open.org/issues/browse/OFFICE-3695
> Project: OASIS Open Document Format for Office Applications (OpenDocument) TC
> Issue Type: New Feature
> Components: Formatting Properties
> Affects Versions: ODF 1.2 CD 07
> Reporter: Andreas Guelzow
> Assignee: Andreas Guelzow
> Fix For: ODF 1.3 CSD 01
>
>
> In ODF 1.2 the <number:fraction> element has the attribute number:denominator-
> value. If this attribute is not present, a denominator that is appropriate for
> displaying the number is used. Clearly what is considered appropriate will be implementation dependent/defined. For example LibreOffice considers the appropriate denominator for of:=PI() to be 7 although a denominator of 113 would create a much closer approximation. From a user perspective if formatting a number as a fraction usually the size of the denominator is important even if the exact chosen denominator does not matter. Some implementations, for example Gnumeric, permit the user to determine a maximum number of digits to be used in the choice of the denominator. Currently Gnumeric stores that information in a foreign element: gnm:max-denominator-digits. In the interest of interoperability it would be desirable to include a similar attribute in the ODF1.3 standard.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]