Decimal-Fidelity in Calc Interchange (was RE: Difficulties with Flat XML under source control)

2012-06-28 Thread Dennis E. Hamilton
-Original Message- From: Dennis E. Hamilton [mailto:dennis.hamil...@acm.org] Sent: Wednesday, June 20, 2012 10:57 To: 'Thorsten Behrens' Cc: 'libreoffice-dev' Subject: RE: Difficulties with Flat XML under source control It occurs to me that Postscript and PDF have deal

Re: Difficulties with Flat XML under source control

2012-06-22 Thread Johannes Sixt
Am 20.06.2012 14:48, schrieb Thorsten Behrens: > Johannes Sixt wrote: - Measurements change. E.g. (just to pick one case), in the draw:visible-area-width changes from 6.088cm to 6.089cm. Is there a remedy to avoid changes of this kind? >>> >>> Ah; nasty, some rounding problem /

Re: Difficulties with Flat XML under source control

2012-06-21 Thread Michael Stahl
On 17/06/12 22:10, Johannes Sixt wrote: > - The changes. That xml:id does not > seem to be used anywhere. Can I just remove it? What will I lose? these are sadly auto-generated, which is a bug in itself; they are used in ODF itself for continuations, i.e. there can be another list that continues

Re: Difficulties with Flat XML under source control

2012-06-21 Thread Michael Stahl
On 21/06/12 14:07, Stephan Bergmann wrote: > On 06/20/2012 03:07 PM, Dennis E. Hamilton wrote: >> I think it is necessary to look at round-trip out-in conversion preservation. >> >> For out-in (which this is, presumably), you want to record a decimal >> expression of the internal value that will c

Re: Difficulties with Flat XML under source control

2012-06-21 Thread Thorsten Behrens
Stephan Bergmann wrote: > Hasn't there been progress in that field recently? Wait, yes, > "Printing floating-point > numbers quickly and accurately with integers" by Florian Loitsch. > Nice catch - and some code is here: http://code.google.com/p/double-

Re: Difficulties with Flat XML under source control

2012-06-21 Thread Stephan Bergmann
On 06/20/2012 03:07 PM, Dennis E. Hamilton wrote: I think it is necessary to look at round-trip out-in conversion preservation. For out-in (which this is, presumably), you want to record a decimal expression of the internal value that will convert back to the exact internal value on re-input.

RE: Difficulties with Flat XML under source control

2012-06-21 Thread Dennis E. Hamilton
: Johannes Sixt Cc: libreoffice-dev Subject: Re: Difficulties with Flat XML under source control Johannes Sixt wrote: > >> - Measurements change. E.g. (just to pick one case), in > >> the draw:visible-area-width changes from > >> 6.088cm to 6.089cm. Is there a remedy to

RE: Difficulties with Flat XML under source control

2012-06-20 Thread Dennis E. Hamilton
ay be some help too. - Dennis -Original Message- From: Thorsten [mailto:netsr...@googlemail.com] On Behalf Of Thorsten Behrens Sent: Wednesday, June 20, 2012 06:32 To: Dennis E. Hamilton Cc: 'libreoffice-dev' Subject: Re: Difficulties with Flat XML under source control Denn

Re: Difficulties with Flat XML under source control

2012-06-20 Thread Thorsten Behrens
Dennis E. Hamilton wrote: > For out-in (which this is, presumably), you want to record a > decimal expression of the internal value that will convert back to > the exact internal value on re-input. (The in-out case is that > the input conversion provide whatever internal representation that > will

Re: Difficulties with Flat XML under source control

2012-06-20 Thread Thorsten Behrens
Johannes Sixt wrote: > >> - Measurements change. E.g. (just to pick one case), in > >> the draw:visible-area-width changes from > >> 6.088cm to 6.089cm. Is there a remedy to avoid changes of this kind? > > > > Ah; nasty, some rounding problem / internal representation issue - > > possibly aga

Re: Difficulties with Flat XML under source control

2012-06-20 Thread Miklos Vajna
On Tue, Jun 19, 2012 at 07:56:08PM +0200, Johannes Sixt wrote: > > The code to poke at is in: > > > > xmloff/ > > and > > sw/source/filter/xml/ > > Been there, done that. But it's way over my head (and time budget). See > > http://thread.gmane.org/gmane.comp.documentfoundation.libre

Re: Difficulties with Flat XML under source control

2012-06-19 Thread Johannes Sixt
Michael, thanks for your feedback! Am 19.06.2012 10:48, schrieb Michael Meeks: > On Sun, 2012-06-17 at 22:10 +0200, Johannes Sixt wrote: >> I'm writing a small tool that transforms the XML into a canonical format >> so that only substantial changes remain. The question is: Which >> transformation

Re: Difficulties with Flat XML under source control

2012-06-19 Thread Michael Meeks
Hi Johannes, On Sun, 2012-06-17 at 22:10 +0200, Johannes Sixt wrote: > I want to place a software manual under source control. It seems most > feasible to use a flat XML format, in particular, .fodt. Yes - that's a good plan :-) > But I have some difficulties because when LO 3.5.4 opens