[sw-issues] [Issue 53489] Column widths in Writer o nly calculated in percent values

2005-08-18 Thread mru
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=53489


User mru changed the following:

  What|Old value |New value

   Assigned to|mru   |requirements

Ever confirmed|  |1

Status|UNCONFIRMED   |NEW

Issue type|DEFECT|ENHANCEMENT

   Summary|Incorrect Calculation of  |Column widths in Writer
  |Relative Column Widths in |only calculated in percent
  |Tables|values





--- Additional comments from [EMAIL PROTECTED] Thu Aug 18 05:44:29 -0700 
2005 ---
Currently relative column width in Writer tables are calculated in percent
values. There should also be a possibility according to the OpenDocument spec.
There, also a possibility is stated where absolute relations like 1:3:4 (for
three cells) can be used.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[sw-issues] [Issue 53489] Column widths in Writer o nly calculated in percent values

2005-08-18 Thread dgardner
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=53489





--- Additional comments from [EMAIL PROTECTED] Thu Aug 18 07:30:37 -0700 
2005 ---
Are you sure this should be treated as an enhancement? Treating the
relative column widths as percent values is simply wrong and not
just an incomplete implementation that can later be enhanced. The
treatment only works when, by accident or design, the relative widths
add up to approximately 100 (once the total is close to 100, any slight
error will probably go unnoticed).

The Open Document specification says:

  A relative width is specified by the style:rel-column-width
  property that takes a number value, followed by a '*' character.
  If rc is the relative with [sic] of the column, rs the sum of
  all relative columns widths, and ws the absolute width that is
  available for these columns, then the absolute with wc of the
  column is wc=rc ws/rs.

Nowhere is there any suggestion that these values should be assumed
to be percentage values. As I cannot find the code in question, I
would guess that the error is that rs (the sum of all relative
column widths) is being assumed to be 100 instead of being calculated
correctly by summing the relative width values for each column.

This use of n* notation for relative width values is identical to
the proportional width scheme defined in the DocBook specification
and assuming the values to be percentages (despite the * character,
not the % character) hinders what was probably a deliberate attempt
to make the specifications compatible in this respect.

In the meantime, I can work around this by converting the ratios to
percentage values, but this is not easy to do in what was an otherwise
simple XSLT stylesheet (I might post my solution later if I can get
something working).


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]