OASIS Open Document Format for Office Applications (OpenDocument) TC

Expand all | Collapse all

Data Grid Size element proposal

  • 1.  Data Grid Size element proposal

    Posted 11-19-2008 00:02
    
    
    
    
    
    
    
    
    
    
    

    Dear TC members,

    I have created a proposal on a new Table Grid Size element: http://wiki.oasis-open.org/office/Table_Grid_Size_element

    Regards,

    Doug

    Doug Mahugh | Senior Program Manager | Office Interoperability | 425-707-1182 | blogs.msdn.com/dmahugh



  • 2.  Re: [office] Data Grid Size element proposal

    Posted 11-19-2008 17:42
    Why not just have a way to specify formatting for an entire row?
    
    I'm not comfortable with heuristically determining that an attribute
    applied to all the columns (or rows) in one app and magically
    extending it to all columns (or rows) in another app. I think it's a
    really hacky solution.
    
    wt
    
    On Tue, Nov 18, 2008 at 16:01, Doug Mahugh 


  • 3.  Re: [office] Data Grid Size element proposal

    Posted 11-20-2008 06:13
      
        
        
      
      
        

    Hi Warren,


    I'm comfortable with adding a *new* way of adding attributes to cells and rows for backward compatibility reasons.

    I'd rather have a backward compatible solution, such that ODF 1.0/1.1 and readers get the most information -- they understand --- out of the document.


    When adding a formatting for an entire row ODF 1.0/1.1 readers will ignore its and all the formatting gets lost. Do we really want this?


    Regards,


    ~Florian



    >>> Warren Turkal <turkal@google.com> 11/19/2008 6:42 PM >>>
    Why not just have a way to specify formatting for an entire row?

    I'm not comfortable with heuristically determining that an attribute
    applied to all the columns (or rows) in one app and magically
    extending it to all columns (or rows) in another app. I think it's a
    really hacky solution.

    wt

    On Tue, Nov 18, 2008 at 16:01, Doug Mahugh <Doug.Mahugh@microsoft.com> wrote:
    > Dear TC members,
    >
    >
    >
    > I have created a proposal on a new Table Grid Size element:
    > http://wiki.oasis-open.org/office/Table_Grid_Size_element
    >
    >
    >
    > Regards,
    >
    > Doug
    >
    >
    >
    > Doug Mahugh | Senior Program Manager | Office Interoperability |
    > 425-707-1182 | blogs.msdn.com/dmahugh
    >
    >

    ---------------------------------------------------------------------
    To unsubscribe from this mail list, you must leave the OASIS TC that
    generates this mail.  Follow this link to all your TCs in OASIS at:
    https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php



  • 4.  RE: [office] Data Grid Size element proposal

    Posted 11-20-2008 16:51
    
    
    
    
    
    
    
    
    
    
    
    
    

    Warren,

    By heuristics, are you referring to client code like this?

       if (number-columns-repeated == col-max) then

           {extend or shrink formatting to current client's maximum columns}

    I’d call that deterministic myself, but what would you prefer? 

    As Florian said, something like table:number-columns-repeated="MAX_COLS" would not be backwards compatible with existing ODF 1.1 readers.

    I’m open to anything that addresses the issue, preferably without introducing a breaking change.

    Regards,

    Doug

    From: Florian Reuter [mailto:freuter@novell.com]
    Sent: Wednesday, November 19, 2008 10:13 PM
    To: Warren Turkal
    Cc: office@lists.oasis-open.org
    Subject: Re: [office] Data Grid Size element proposal

    Hi Warren,

    I'm comfortable with adding a *new* way of adding attributes to cells and rows for backward compatibility reasons.

    I'd rather have a backward compatible solution, such that ODF 1.0/1.1 and readers get the most information -- they understand --- out of the document.

    When adding a formatting for an entire row ODF 1.0/1.1 readers will ignore its and all the formatting gets lost. Do we really want this?

    Regards,

    ~Florian



    >>> Warren Turkal <turkal@google.com> 11/19/2008 6:42 PM >>>
    Why not just have a way to specify formatting for an entire row?

    I'm not comfortable with heuristically determining that an attribute
    applied to all the columns (or rows) in one app and magically
    extending it to all columns (or rows) in another app. I think it's a
    really hacky solution.

    wt

    On Tue, Nov 18, 2008 at 16:01, Doug Mahugh <Doug.Mahugh@microsoft.com> wrote:
    > Dear TC members,
    >
    >
    >
    > I have created a proposal on a new Table Grid Size element:
    > http://wiki.oasis-open.org/office/Table_Grid_Size_element
    >
    >
    >
    > Regards,
    >
    > Doug
    >
    >
    >
    > Doug Mahugh | Senior Program Manager | Office Interoperability |
    > 425-707-1182 | blogs.msdn.com/dmahugh
    >
    >

    ---------------------------------------------------------------------
    To unsubscribe from this mail list, you must leave the OASIS TC that
    generates this mail.  Follow this link to all your TCs in OASIS at:
    https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php



  • 5.  RE: [office] Data Grid Size element proposal

    Posted 11-20-2008 17:34
    On Thu, 2008-11-20 at 08:51 -0800, Doug Mahugh wrote:
    > Warren,
    > 
    >  
    > 
    > By heuristics, are you referring to client code like this?
    > 
    >    if (number-columns-repeated == col-max) then 
    > 
    >        {extend or shrink formatting to current client's maximum
    > columns}
    > 
    >  
    > 
    > I’d call that deterministic myself, but what would you prefer?  
    > 
    > As Florian said, something like
    > table:number-columns-repeated="MAX_COLS" would not be backwards
    > compatible with existing ODF 1.1 readers.
    > 
    > I’m open to anything that addresses the issue, preferably without
    > introducing a breaking change.
    > 
    
    I am wondering whether something like table:grid-size doesn't also have
    repercussions on evaluation of formulae. Imagine a formula that refers
    to a cell location outside the current grid. What happens is this
    formula suddenly finds itself in a larger grid?
    
    Andreas
    
    


  • 6.  Re: [office] Data Grid Size element proposal

    Posted 11-21-2008 17:03
    Hi,
    
    On Thursday, 2008-11-20 10:34:17 -0700, Andreas J. Guelzow wrote:
    
    > I am wondering whether something like table:grid-size doesn't also have
    > repercussions on evaluation of formulae. Imagine a formula that refers
    > to a cell location outside the current grid. What happens is this
    > formula suddenly finds itself in a larger grid?
    
    Might evaluate to something (maybe something wrong) then, where before
    it should had resulted in an error. Unless you artificially limit the
    sheet size as well.
    
    There's more to it though. For named expressions (ranges or formulae)
    there is the strange and awkward behavior required for interoperability
    that for relative references the references _wrap_ around the sheet if
    the position of the formula cell moves towards an edge. When loaded in
    another grid size, the wrapped position will be different, thus the
    formula result may as well.
    
    We should at least give some recommendations what to do in such cases,
    better would be clear definitions.
    
      Eike
    
    -- 
     OpenOffice.org / StarOffice Calc core developer and i18n transpositionizer.
     SunSign   0x87F8D412 : 2F58 5236 DB02 F335 8304  7D6C 65C9 F9B5 87F8 D412
     OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
    


  • 7.  RE: [office] Data Grid Size element proposal

    Posted 11-21-2008 23:16
    Warren, your suggestion looked to me like a good way to address the specific problem of row/column formatting that I had described in the proposal.
    
    An optional grid-size element may also be useful in other circumstances, including scenarios we haven't considered.  I'd like to revise the proposal to include the grid-size element as well as attributes for formatting an entire row or entire column.  Does anybody see any problem with that?
    
    Andreas and Eike, regarding formula references, I'm not sure what the best solution would be to the scenarios you have described.  The grid-size element would give consumers enough information to know whether the spreadsheet was created on an implementation with a different grid size, so that they can do whatever they feel is appropriate.  Perhaps we could look at some recommendations as Eike suggested, based on use of this element.
    
    Regards,
    Doug
    
    
    


  • 8.  Re: [office] Data Grid Size element proposal

    Posted 11-21-2008 23:34
    Can you please describe a situation that still requires the explicit
    grid-size elements? I'm having a hard time coming up with a use case
    for them if there is a way to just apply a style to a whole row (or
    column).
    
    wt
    
    On Fri, Nov 21, 2008 at 15:15, Doug Mahugh 


  • 9.  RE: [office] Data Grid Size element proposal

    Posted 11-21-2008 23:48
    Eike's example provides a good description of such a situation:
    
    > There's more to it though. For named expressions (ranges or formulae) there is the strange and awkward behavior required for interoperability that for relative references the references _wrap_ around the sheet if the position of the formula cell moves towards an edge. When loaded in another grid size, the wrapped position will be different, thus the formula result may as well.
    
    Given these sorts of ramifications of variations in grid size, the presence of an (optional) grid-size element would be useful.  Otherwise, how would a consumer know that the spreadsheet is being loaded in "another grid size"?
    
    I suppose we could come up with an alternative specifically targeted at the relative-reference issue, as you've suggested for the formatting issue, but the underlying issue in both cases is that the grid size has changed.  In the long run I think it may be simpler to explicitly store grid-size information than to create a separate custom solution for each grid-size issue that arises.
    
    Do you feel that the addition of this optional element would cause any problems?
    
    - Doug
    
    
    


  • 10.  RE: [office] Data Grid Size element proposal

    Posted 11-22-2008 01:44
    On Fri, 2008-11-21 at 15:47 -0800, Doug Mahugh wrote:
    > Do you feel that the addition of this optional element would cause any problems?
    
    It occurred to me that some applications may not want to have a maximum
    grid size at all. (At least it is a frequent request by gnumeric users.)
    So shouldn't we already provide for the possibility that the maximum
    gridsize is in fact infinite?
    
    Andreas
    
    -- 
    "Liberty consists less in acting according to
    one's own pleasure, than in not being subject 
    to the will and pleasure of other people. It 
    consists also in our not subjecting the wills 
    of other people to our own."  Rousseau
    
    
    Prof. Dr. Andreas J. Guelzow
    Dept. of Mathematical & Computing Sciences
    Concordia University College of Alberta
    
    


  • 11.  Re: [office] Data Grid Size element proposal

    Posted 11-22-2008 02:10
    I don't really see the problem with an error being caused by a
    reference to a cell outside the user agent's range going away when
    opening the doc in a user agent with a greater number of cells. I
    could only see that mattering if you rely on the error for some logic
    in your spreadsheet. That just seems like a bad idea.
    
    But maybe I am being dense here. If so, could you please give a
    concrete and real world example?
    
    wt
    
    On Fri, Nov 21, 2008 at 15:47, Doug Mahugh 


  • 12.  Re: [office] Data Grid Size element proposal

    Posted 11-22-2008 02:53
    On Fri, 2008-11-21 at 18:09 -0800, Warren Turkal wrote:
    > I don't really see the problem with an error being caused by a
    > reference to a cell outside the user agent's range going away when
    > opening the doc in a user agent with a greater number of cells. I
    > could only see that mattering if you rely on the error for some logic
    > in your spreadsheet. That just seems like a bad idea.
    
    While I agree that it is a bad idea to depend on it, over my years as
    developer of Gnumeric I have seen lots of spreadsheets were users have
    used really strange constructions and even the type of error returned by
    functions mattered. If you are worried about interoperability (as we
    Gnumeric developers have been with respect to Excel then you have to
    cover even for the strangest situations.
    > 
    > But maybe I am being dense here. If so, could you please give a
    > concrete and real world example?
    
    Since I personally wouldn't do that I have to have a look around for
    one.
    
    Andreas
    > 
    > wt
    > 
    > On Fri, Nov 21, 2008 at 15:47, Doug Mahugh 


  • 13.  Re: [office] Data Grid Size element proposal

    Posted 11-22-2008 04:31
    On Fri, 2008-11-21 at 18:09 -0800, Warren Turkal wrote:
    > I don't really see the problem with an error being caused by a
    > reference to a cell outside the user agent's range going away when
    > opening the doc in a user agent with a greater number of cells. I
    > could only see that mattering if you rely on the error for some logic
    > in your spreadsheet. That just seems like a bad idea.
    > 
    > But maybe I am being dense here. If so, could you please give a
    > concrete and real world example?
    
    Let's see:
    The following formula is from
    http://theimmersivelife.blogspot.com/2008/08/tools-of-trade-google-apps-as.html
    =ARRAYFORMULA(OFFSET(A1,INT(MAX(NOT(ISBLANK(C3:C200))*(COLUMNS($B1:
    $IW1)*ROW(C3:C200)+COLUMN(C3:C200)))/COLUMNS($B1:
    $IW1))-1.0,MOD(MAX(NOT(ISBLANK(C3:C200))*(COLUMNS($B1:
    $IW1)*ROW(C3:C200)+COLUMN(C3:C200)))/COLUMNS($B1:$IW1),1.0)*COLUMNS($B1:
    $IW1)-1.0))
    
    This formula is invalid in Gnumeric with its default grid size but would
    be valid with a larger gridsize. Suppose a program with a larger
    gridsize saves this formula, it would be useful if gnumeric could easily
    determine that the sheet comes from such a larger grid.
    
    http://groups.google.com/group/How-to-Documents/browse_thread/thread/1f3ab6e086392bd4 seems to do some similar.
    
    Moreover, the code in
    http://www.excelforum.com/excel-programming/584805-run-time-error-1004-a.html
    would not have shown that error in a gridsize larger than 256 columns.
    
    Andreas
    
    > wt
    > 
    > On Fri, Nov 21, 2008 at 15:47, Doug Mahugh 


  • 14.  Re: [office] Data Grid Size element proposal

    Posted 11-24-2008 20:45
    On Fri, Nov 21, 2008 at 20:30, Andreas J Guelzow
    


  • 15.  RE: [office] Data Grid Size element proposal

    Posted 11-24-2008 21:16
    Warren, it's clear that you don't agree with the reasoning that has led several other implementers to conclude that a grid-size element would be useful, but you've not answered my question about what problems you feel the addition of this element would cause.  Do you have a specific argument against the proposal itself?
    
    It seems to me that an optional element which multiple implementers find useful is worth considering as an addition, barring a specific reason that it would cause problems.
    
    Thanks,
    Doug
    
    


  • 16.  Re: [office] Data Grid Size element proposal

    Posted 11-24-2008 23:40
    On Mon, Nov 24, 2008 at 13:16, Doug Mahugh 


  • 17.  RE: [office] Data Grid Size element proposal

    Posted 11-24-2008 23:52
    If the bar is based on the feature offering useful functionality, that bar has clearly been met.  I and my colleagues here at Microsoft would find this element useful for improving interoperability.  Eike pointed out a scenario where he would find it useful.  Andrew described multiple scenarios where he would find it useful.
    
    I believe the bar you're using here is more accurately entitled "does Warren Turkal find this feature useful?"  That's something only you can decide, and you've clearly made up your mind.  Let's agree to disagree.
    
    Meanwhile, we need to answer the question of whether this feature should be added.  I'll get it on the ODF 1.2 list, and we can vote on it in a future call.  No need to burn any more time at this point, I think all the relevant points have been made on both sides of this one.
    
    Thanks,
    Doug
    
    
    


  • 18.  Re: [office] Data Grid Size element proposal

    Posted 11-24-2008 21:59
    You are referring to "an explicit maximum size". This makes it sounds
    like the proposal is to fix a maximum size. It is really about
    specifying which size was in use when the sheet was saved. 
    
    Andreas
    
    
    
    -- 
    Andreas J. Guelzow 


  • 19.  Re: [office] Data Grid Size element proposal

    Posted 11-24-2008 22:07
    On Mon, 2008-11-24 at 12:44 -0800, Warren Turkal wrote:
    > On Fri, Nov 21, 2008 at 20:30, Andreas J Guelzow
    > 


  • 20.  Re: [office] Data Grid Size element proposal

    Posted 11-24-2008 23:42
    On Mon, Nov 24, 2008 at 14:06, Andreas J. Guelzow
    


  • 21.  Re: [office] Data Grid Size element proposal

    Posted 11-24-2008 22:29
    Warren,
    
    It seems to me that your main argument against inclusion of an indicator
    of how large the grid was when the file was saved is that programs can
    figure it out parsing all formulae and seeing whether a cell outside the
    current range is referenced.
    
    If this is seen as a valid reason against this inclusion I wonder why
    items such as  
    


  • 22.  word-count (was Re: [office] Data Grid Size element proposal)

    Posted 11-24-2008 22:55
    "Andreas J. Guelzow" 


  • 23.  Re: [office] word-count (was Re: [office] Data Grid Size elementproposal)

    Posted 11-24-2008 23:00
    On Mon, 2008-11-24 at 17:56 -0500, robert_weir@us.ibm.com wrote:
    > "Andreas J. Guelzow" 


  • 24.  Re: [office] word-count (was Re: [office] Data Grid Size element proposal)

    Posted 11-24-2008 23:15
    "Andreas J. Guelzow" 


  • 25.  Re: [office] word-count (was Re: [office] Data Grid Size elementproposal)

    Posted 11-25-2008 14:09
    Rob,
    
    robert_weir@us.ibm.com wrote:
    > "Andreas J. Guelzow" 


  • 26.  Re: [office] word-count (was Re: [office] Data Grid Size element proposal)

    Posted 11-26-2008 09:39
    On Monday 24 November 2008, Andreas J. Guelzow wrote:
    > But why is this information saved in the file?
    
    One good reason IMHO is: so that it is accessible to other applications without loading the whole file.
    For instance you can move the mouse over a .odt file in a file manager and a tooltip will
    tell you some metadata about that file (author, word count, etc) -- without having to parse the whole file.
    
    -- 
    David Faure, faure@kde.org, sponsored by Qt Software @ Nokia to work on KDE,
    Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
    


  • 27.  Re: [office] word-count (was Re: [office] Data Grid Size elementproposal)

    Posted 11-26-2008 09:49
    On 11/26/08 10:38 AM, David Faure wrote:
    > On Monday 24 November 2008, Andreas J. Guelzow wrote:
    >> But why is this information saved in the file?
    > 
    > One good reason IMHO is: so that it is accessible to other applications without loading the whole file.
    > For instance you can move the mouse over a .odt file in a file manager and a tooltip will
    > tell you some metadata about that file (author, word count, etc) -- without having to parse the whole file.
    > 
    I agree to this. If an application has this information available, then 
    why should it not be able to store it in the file so that other 
    applications may make use of it.
    
    Regarding how words or sentences are counted: Well, I think it is 
    outside the scope of the ODF specification to define how words or 
    sentences are actually counted, because this would require that we 
    include a definition of what a word or a sentence is. That's locale 
    dependent, and we probably can't include definitions for all locales.
    
    Michael
    
    
    
    -- 
    Michael Brauer, Technical Architect Software Engineering
    StarOffice/OpenOffice.org
    Sun Microsystems GmbH             Nagelsweg 55
    D-20097 Hamburg, Germany          michael.brauer@sun.com
    http://sun.com/staroffice         +49 40 23646 500
    http://blogs.sun.com/GullFOSS
    
    Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
    	   D-85551 Kirchheim-Heimstetten
    Amtsgericht Muenchen: HRB 161028
    Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
    Vorsitzender des Aufsichtsrates: Martin Haering
    


  • 28.  Re: [office] word-count

    Posted 11-26-2008 13:13
    Hi Robert,
    
    On Monday, 2008-11-24 17:56:13 -0500, Robert Weir wrote:
    
    > Also, I'm not sure that the concept of "word" is clearly stated.  It is 
    > the kind of thing linguists go crazy about.  We probably want to state 
    > explicitly that the word-count refers to "orthographic words",  which are 
    > the groups of letters delimited by whitespace.  This works fine for modern 
    > languages.  The ancient Greeks wrote their texts without spaces between 
    > words.  Nothing we can do about that.  Even human experts have arguments 
    > over where the word breaks go in those texts.  So we can't expect a word 
    > processor to figure it out.
    
    There are also "modern" languages that don't use whitespace at all, such
    as Khmer, for example. Writers _may_ insert the ZWSP U+200B character to
    help a word processing application. The situation for CTL languages may
    be completely different from what most are used to or would call
    "normal". But also in Western languages there may be differences whether
    constructs such as here-it-is counts as one word or more. This may vary
    between languages. I think we should not define how word count is to be
    computed, and not state anything that may be correct for some languages
    but wrong for others.
    
      Eike
    
    -- 
     OpenOffice.org / StarOffice Calc core developer and i18n transpositionizer.
     SunSign   0x87F8D412 : 2F58 5236 DB02 F335 8304  7D6C 65C9 F9B5 87F8 D412
     OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
    


  • 29.  Re: [office] Data Grid Size element proposal

    Posted 11-24-2008 23:40
    I didn't mean to imply that it was a maximum size for and
    implementation of sheet size. I meant explicitly specifying the max
    size in the document.
    
    wt
    
    On Mon, Nov 24, 2008 at 14:28, Andreas J. Guelzow
    


  • 30.  Re: [office] Data Grid Size element proposal

    Posted 11-24-2008 23:50
    Those attributes are different in that they count something that is a
    feature of the document and not a feature of the app. To be similar to
    what your advocating, those attributes would have to be something more
    like:
    


  • 31.  Re: [office] Data Grid Size element proposal

    Posted 11-26-2008 12:53
    Hi Warren,
    
    On Friday, 2008-11-21 18:09:59 -0800, Warren Turkal wrote:
    
    > I don't really see the problem with an error being caused by a
    > reference to a cell outside the user agent's range going away when
    > opening the doc in a user agent with a greater number of cells.
    > [...]
    > I could only see that mattering if you rely on the error for some
    > logic in your spreadsheet. That just seems like a bad idea.
    
    People do have the strangest ideas when "designing" spreadsheets..
    
    Andreas already gave examples where formulas would evaluate to
    a non-error in a larger grid size. Let me add another not so obvious
    example not involving errors at all, which is with the defined named
    ranges I already mentioned that wrap around the sheet's edges when used
    with different offsets, which users may or may not be aware of,
    I suspect most aren't but some may use it as an obscure feature.
    [The entire idea of this wrap-around IMHO was bad from the beginning,
    but ...]
    
    - In an application that supports 256 columns maximum, e.g. Excel2003 or
      Calc2.4, enter the following values in cells:
    
       A1: 1
       B1: 2
      IU1: 4
      IV1: 8
    
    - Position the cell cursor on C2.
    - Open the Define Names dialog (menu Insert->Name->Define or such).
      - Define a name MYNAME and as the reference define A1:B1, note the
        relative addressing without preceding $ characters.
    - In cell C2 enter the formula =SUM(MYNAME), result is 3.
    - In cell A2 enter the formula =SUM(MYNAME), result is 12.
      - That is the wrap actually results in the range IU1:IV1, you may
        easily see if you invoke the Define Name dialog again on cell A2 and
        look at the definition of MYNAME.
    
    Now if this file was loaded in an application that supported more
    columns without knowing the original maximum grid size, the formula in
    A2 would yield 0 because the range wrapped pointing to then empty cells.
    What applications actually can or should do about this is beyond the
    scope of the file format standard, nevertheless it seems to be a good
    idea to include the hint of the original grid size.
    
      Eike
    
    -- 
     OpenOffice.org / StarOffice Calc core developer and i18n transpositionizer.
     SunSign   0x87F8D412 : 2F58 5236 DB02 F335 8304  7D6C 65C9 F9B5 87F8 D412
     OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
    


  • 32.  Re: [office] Data Grid Size element proposal

    Posted 11-26-2008 18:04
    On Wed, Nov 26, 2008 at 04:45, Eike Rathke 


  • 33.  Re: [office] Data Grid Size element proposal

    Posted 11-29-2008 09:42
    So...I asked a spreadsheet ninja coworker of mine if they had ever
    used the named range wrapping functionality you showed me for anything
    use. That person told me that they had never seen it used in the real
    world. Considering that it only works on named ranges and not ranges
    given in formulas, I am inclined to say that this feature (max row/col
    attributes) is still not worth adding unless someone can come up with
    a real world example of usage that would be enhanced with its
    addition. I don't like the idea of having some magic value that alters
    the way the spreadsheet calculates formulas, and I don't think that it
    would be a valuable use of the TC's time to define all the corner
    cases that result from that feature. I think it will make things
    radically more complex for an edge case that rarely (if ever) is
    encountered.
    
    Having said all this, I do think that we should consider making named
    ranges specifically not wrap. This kind of change may belong in the
    next major revision of ODF (2.x?). I think that would be a much more
    clean way to address the issues that you brought up.
    
    Thanks,
    wt
    
    On Wed, Nov 26, 2008 at 10:03, Warren Turkal 


  • 34.  Re: [office] Data Grid Size element proposal

    Posted 11-29-2008 18:16
    
    On Sat, 2008-11-29 at 01:41 -0800, Warren Turkal wrote:
    > So...I asked a spreadsheet ninja coworker of mine if they had ever
    > used the named range wrapping functionality you showed me for anything
    > use. That person told me that they had never seen it used in the real
    > world. Considering that it only works on named ranges and not ranges
    > given in formulas, I am inclined to say that this feature (max row/col
    > attributes) is still not worth adding unless someone can come up with
    > a real world example of usage that would be enhanced with its
    > addition. I don't like the idea of having some magic value that alters
    > the way the spreadsheet calculates formulas, and I don't think that it
    > would be a valuable use of the TC's time to define all the corner
    > cases that result from that feature. I think it will make things
    > radically more complex for an edge case that rarely (if ever) is
    > encountered.
    
    I don't really care whether you and your coworkers have previously seen
    something. I have just used a default sized Gnumeric to create the
    following spreadsheet:
    
    A1 to E1 contain the integers 1 through 5
    A2 contains "=IV1" and this is copied into B2 to E2.
    
    As a consequence E2 shows the value 4.
    
    Now this spreadsheet exists in the real world (and has nothing to do
    with named ranges.)
    
    How can I save this as an odf file so that a large-size gnumeric can at
    least warn the user that previously wrapped vales may change results.
    Without knowing the grid size of the creating application the opeining
    application can not even find out whether there was wrapping.
    
    ANdreas
    
    -- 
    "Liberty consists less in acting according to
    one's own pleasure, than in not being subject 
    to the will and pleasure of other people. It 
    consists also in our not subjecting the wills 
    of other people to our own."  Rousseau
    
    
    Prof. Dr. Andreas J. Guelzow
    Dept. of Mathematical & Computing Sciences
    Concordia University College of Alberta
    
    


  • 35.  Re: [office] Data Grid Size element proposal

    Posted 12-01-2008 19:28
    On Sat, Nov 29, 2008 at 10:15, Andreas J Guelzow
    


  • 36.  Re: [office] Data Grid Size element proposal

    Posted 12-02-2008 01:07
    On Mon, 2008-12-01 at 11:28 -0800, Warren Turkal wrote:
    > On Sat, Nov 29, 2008 at 10:15, Andreas J Guelzow
    > 


  • 37.  Re: [office] Data Grid Size element proposal

    Posted 12-02-2008 12:49
    Hi Andreas,
    
    On Monday, 2008-12-01 18:06:55 -0700, Andreas J. Guelzow wrote:
    
    > > OO.o 3.0 since it has more columns.
    > > 
    > > A1..E1 contain 1..5.
    > > AMJ is the last colume.
    > > A2 is set to "=AMJ1" and copied to B2..E2.
    > > 
    > > A1 = 0 and B1..E1 say "#REF!" and are set to "=REF!".
    > 
    > So the users asked OOo to copy a formula and OOo silently changes the
    > formula into an error string _without_alerting the user?
    
    The result displays #REF!, which is a standard error displayed for
    references errors. Behavior is the same in Excel.
    
    > > I personally find OO.o's behavior in this situation much more helpful
    > > than magically wrapping the references.
    >
    > silently changing the content of what is being copied?
    >
    > I guess I could have thought of that: if OOo doesn't do X why would
    > anyone want X?!
    
    Got out of bed on the wrong side?
    
      Eike
    
    -- 
     OpenOffice.org / StarOffice Calc core developer and i18n transpositionizer.
     SunSign   0x87F8D412 : 2F58 5236 DB02 F335 8304  7D6C 65C9 F9B5 87F8 D412
     OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
    


  • 38.  Re: [office] Data Grid Size element proposal

    Posted 12-02-2008 17:06
    On Tue, 2008-12-02 at 13:41 +0100, Eike Rathke wrote:
    > Hi Andreas,
    > 
    > On Monday, 2008-12-01 18:06:55 -0700, Andreas J. Guelzow wrote:
    > 
    > > > OO.o 3.0 since it has more columns.
    > > > 
    > > > A1..E1 contain 1..5.
    > > > AMJ is the last colume.
    > > > A2 is set to "=AMJ1" and copied to B2..E2.
    > > > 
    > > > A1 = 0 and B1..E1 say "#REF!" and are set to "=REF!".
    > > 
    > > So the users asked OOo to copy a formula and OOo silently changes the
    > > formula into an error string _without_alerting the user?
    > 
    > The result displays #REF!, which is a standard error displayed for
    > references errors.
    
    My copy of OOo 3.0 does _not_ display #REF! just as a result but in fact
    it changes the formula entered to "=REF!". (If it just showed the result
    of #REF! I could go in and modify the reference. This way I cannot.)
    
    Note that OpenFormula draft requires that if the reference is beyond the
    capabilities of the application the reference should evaluate to REF! I
    ma wondering what OOo would do would it encounter this in a file and the
    file is being saved without user modification. Would it change the
    formula?
    
    Since the OpenFormula draft refers to capabilities (and not gridsize) I
    consider Gnumeric compliant with the draft in this respect (using a
    toroidal grid) while OOo  is not.
    
    Andreas
    
    -- 
    "Liberty consists less in acting according to
    one's own pleasure, than in not being subject 
    to the will and pleasure of other people. It 
    consists also in our not subjecting the wills 
    of other people to our own."  Rousseau
    
    
    Prof. Dr. Andreas J. Guelzow
    Dept. of Mathematical & Computing Sciences
    Concordia University College of Alberta
    


  • 39.  Re: [office] Data Grid Size element proposal

    Posted 12-16-2008 11:58
    Hi Andreas,
    
    On Tuesday, 2008-12-02 10:05:15 -0700, Andreas J. Guelzow wrote:
    
    > > > > OO.o 3.0 since it has more columns.
    > > > > 
    > > > > A1..E1 contain 1..5.
    > > > > AMJ is the last colume.
    > > > > A2 is set to "=AMJ1" and copied to B2..E2.
    > > > > 
    > > > > A1 = 0 and B1..E1 say "#REF!" and are set to "=REF!".
    > > > 
    > > > So the users asked OOo to copy a formula and OOo silently changes the
    > > > formula into an error string _without_alerting the user?
    > > 
    > > The result displays #REF!, which is a standard error displayed for
    > > references errors.
    > 
    > My copy of OOo 3.0 does _not_ display #REF! just as a result but in fact
    > it changes the formula entered to "=REF!". (If it just showed the result
    > of #REF! I could go in and modify the reference. This way I cannot.)
    
    Almost true. To be exact, the part that lead to the reference error is
    set to #REF!, here the column, so it is =#REF!1  (row 1 is kept intact).
    The behavior is similar to what Excel does, just that Excel does not
    distinguish sheet/col/row parts and unconditionally modifies the formula
    to =#REF! instead.
    
    > Note that OpenFormula draft requires that if the reference is beyond the
    > capabilities of the application the reference should evaluate to REF! I
    > ma wondering what OOo would do would it encounter this in a file and the
    > file is being saved without user modification. Would it change the
    > formula?
    
    No, the formula would be saved "as is", including the '#REF!'.
    
    > Since the OpenFormula draft refers to capabilities (and not gridsize) I
    > consider Gnumeric compliant with the draft in this respect (using a
    > toroidal grid) while OOo  is not.
    
    I don't get that. Why would Gnumeric be compliant with the draft when
    wrapping references while copying cells? And why would OOo not be
    compliant when it does not?
    
      Eike
    
    -- 
     OpenOffice.org / StarOffice Calc core developer and i18n transpositionizer.
     SunSign   0x87F8D412 : 2F58 5236 DB02 F335 8304  7D6C 65C9 F9B5 87F8 D412
     OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
    


  • 40.  Re: [office] Data Grid Size element proposal

    Posted 12-16-2008 17:05
    On Tue, 2008-12-16 at 12:49 +0100, Eike Rathke wrote:
    > Hi Andreas,
    > 
    > On Tuesday, 2008-12-02 10:05:15 -0700, Andreas J. Guelzow wrote:
    > 
    > > > > > OO.o 3.0 since it has more columns.
    > > > > > 
    > > > > > A1..E1 contain 1..5.
    > > > > > AMJ is the last colume.
    > > > > > A2 is set to "=AMJ1" and copied to B2..E2.
    > > > > > 
    > > > > > A1 = 0 and B1..E1 say "#REF!" and are set to "=REF!".
    > > > > 
    > > > > So the users asked OOo to copy a formula and OOo silently changes the
    > > > > formula into an error string _without_alerting the user?
    > > > 
    > > > The result displays #REF!, which is a standard error displayed for
    > > > references errors.
    > > 
    > > My copy of OOo 3.0 does _not_ display #REF! just as a result but in fact
    > > it changes the formula entered to "=REF!". (If it just showed the result
    > > of #REF! I could go in and modify the reference. This way I cannot.)
    > 
    > Almost true. To be exact, the part that lead to the reference error is
    > set to #REF!, here the column, so it is =#REF!1  (row 1 is kept intact).
    > The behavior is similar to what Excel does, just that Excel does not
    > distinguish sheet/col/row parts and unconditionally modifies the formula
    > to =#REF! instead.
    > 
    > > Note that OpenFormula draft requires that if the reference is beyond the
    > > capabilities of the application the reference should evaluate to REF! I
    > > ma wondering what OOo would do would it encounter this in a file and the
    > > file is being saved without user modification. Would it change the
    > > formula?
    > 
    > No, the formula would be saved "as is", including the '#REF!'.
    > 
    > > Since the OpenFormula draft refers to capabilities (and not gridsize) I
    > > consider Gnumeric compliant with the draft in this respect (using a
    > > toroidal grid) while OOo  is not.
    > 
    > I don't get that. Why would Gnumeric be compliant with the draft when
    > wrapping references while copying cells? And why would OOo not be
    > compliant when it does not?
    
    My reading of the standard is:
    
    -------------------------------------------------------------------
    if the reference is "beyond the capabilities" of the application it
    should _return_as_value an error but of course it should retain the
    formula as is since without user interaction the formulas ought to be
    saved as they were in the file when opened.
    
    if the reference is not "beyond the capabilities" then of course we are
    just using it...
    -------------------------------------------------------------------
    
    Clearly the reference I was talking about is beyond the capabilities of
    the Openoffice and it changes the formula to another formula, so it is
    not compliant.
    
    Gnumeric handles the reference by interpreting it on a toroidal grid, so
    the reference is not beyond its capabilities  and so there is no need to
    return an error.
    
    I suspect that your understanding of "beyond the capabilities" is
    different from mine (namely that you think that this reference ought to
    be beyond Gnumeric's capabilities if its number of column is too small)
    but I did not find any definition of this in the standard. 
    
    Andreas   
    -- 
    
    
    


  • 41.  Re: [office] Data Grid Size element proposal

    Posted 12-18-2008 15:48
    Hi Andreas,
    
    On Tuesday, 2008-12-16 10:04:34 -0700, Andreas J. Guelzow wrote:
    
    > > No, the formula would be saved "as is", including the '#REF!'.
    > > 
    > > > Since the OpenFormula draft refers to capabilities (and not gridsize) I
    > > > consider Gnumeric compliant with the draft in this respect (using a
    > > > toroidal grid) while OOo  is not.
    > > 
    > > I don't get that. Why would Gnumeric be compliant with the draft when
    > > wrapping references while copying cells? And why would OOo not be
    > > compliant when it does not?
    > 
    > My reading of the standard is:
    > 
    > -------------------------------------------------------------------
    > if the reference is "beyond the capabilities" of the application it
    > should _return_as_value an error but of course it should retain the
    > formula as is since without user interaction the formulas ought to be
    > saved as they were in the file when opened.
    > 
    > if the reference is not "beyond the capabilities" then of course we are
    > just using it...
    > -------------------------------------------------------------------
    > 
    > Clearly the reference I was talking about is beyond the capabilities of
    > the Openoffice and it changes the formula to another formula, so it is
    > not compliant.
    > 
    > Gnumeric handles the reference by interpreting it on a toroidal grid, so
    > the reference is not beyond its capabilities  and so there is no need to
    > return an error.
    
    So a user may even not notice that the formula is different from the
    original and produces a different result. What may be even worse, when
    saved again the formula would also be different, but still valid. How
    does that make Gnumeric being compliant?
    
    > I suspect that your understanding of "beyond the capabilities" is
    > different from mine (namely that you think that this reference ought to
    > be beyond Gnumeric's capabilities if its number of column is too small)
    > but I did not find any definition of this in the standard. 
    
    Then it seems we need a definition what should happen with references
    pointing outside the actual grid of the application. Not argue about
    which application is compliant and which is not. If a document is loaded
    in a smaller grid than it was created with, data outside the actual grid
    will be lost as well and applications probably will warn the user about
    that data loss. The user needs to be informed which of the formula's
    references actually caused the #REF! error, doing that by changing the
    corresponding part in the formula so far to me seemed to be a good
    approach. There may be better means by using tool tips or whatever and
    keep the formula intact. However, saving the document again would leave
    a broken document that when loaded again in a larger grid would produce
    different results because the formula would be valid but the data gone.
    Not a solution either.
    
      Eike
    
    -- 
     OpenOffice.org / StarOffice Calc core developer and i18n transpositionizer.
     SunSign   0x87F8D412 : 2F58 5236 DB02 F335 8304  7D6C 65C9 F9B5 87F8 D412
     OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
    


  • 42.  Re: [office] Data Grid Size element proposal

    Posted 12-18-2008 17:24
    Hi Eike,
    
    On Thu, 2008-12-18 at 16:39 +0100, Eike Rathke wrote:
    > Hi Andreas,
    > 
    > On Tuesday, 2008-12-16 10:04:34 -0700, Andreas J. Guelzow wrote:
    > 
    > > > No, the formula would be saved "as is", including the '#REF!'.
    > > > 
    > > > > Since the OpenFormula draft refers to capabilities (and not gridsize) I
    > > > > consider Gnumeric compliant with the draft in this respect (using a
    > > > > toroidal grid) while OOo  is not.
    > > > 
    > > > I don't get that. Why would Gnumeric be compliant with the draft when
    > > > wrapping references while copying cells? And why would OOo not be
    > > > compliant when it does not?
    > > 
    > > My reading of the standard is:
    > > 
    > > -------------------------------------------------------------------
    > > if the reference is "beyond the capabilities" of the application it
    > > should _return_as_value an error but of course it should retain the
    > > formula as is since without user interaction the formulas ought to be
    > > saved as they were in the file when opened.
    > > 
    > > if the reference is not "beyond the capabilities" then of course we are
    > > just using it...
    > > -------------------------------------------------------------------
    > > 
    > > Clearly the reference I was talking about is beyond the capabilities of
    > > the Openoffice and it changes the formula to another formula, so it is
    > > not compliant.
    > > 
    > > Gnumeric handles the reference by interpreting it on a toroidal grid, so
    > > the reference is not beyond its capabilities  and so there is no need to
    > > return an error.
    > 
    > So a user may even not notice that the formula is different from the
    > original and produces a different result. What may be even worse, when
    > saved again the formula would also be different, but still valid. How
    > does that make Gnumeric being compliant?
    
    I don't thin k the "formula" is different. (The meaning and/or result of
    the formula of course is different.) Note that I am not saying that
    Gnumeric's behaviour is desirable, but I believe it to be compliant.
    This may just be a reason to change the openformula draft. 
    
    > 
    > > I suspect that your understanding of "beyond the capabilities" is
    > > different from mine (namely that you think that this reference ought to
    > > be beyond Gnumeric's capabilities if its number of column is too small)
    > > but I did not find any definition of this in the standard. 
    > 
    > Then it seems we need a definition what should happen with references
    > pointing outside the actual grid of the application.
    
    This thread is the result of a disagreement about the need to know the
    grid size used by the application.
    
    >  Not argue about
    > which application is compliant and which is not. 
    
    Sorry, I didn't see this as an argument about applications but only used
    their behaviour differences to point out that their is some problem with
    the standard, especially id we do not know the grid size....
    > If a document is loaded
    > in a smaller grid than it was created with, data outside the actual grid
    > will be lost as well and applications probably will warn the user about
    > that data loss. The user needs to be informed which of the formula's
    > references actually caused the #REF! error, doing that by changing the
    > corresponding part in the formula so far to me seemed to be a good
    > approach. There may be better means by using tool tips or whatever and
    > keep the formula intact. However, saving the document again would leave
    > a broken document that when loaded again in a larger grid would produce
    > different results because the formula would be valid but the data gone.
    > Not a solution either.
    
    indeed
    
    Andreas
    > 
    
    -- 
    Andreas J Guelzow 


  • 43.  Re: [office] Data Grid Size element proposal

    Posted 12-02-2008 12:43
    Hi Andreas,
    
    On Saturday, 2008-11-29 11:15:26 -0700, Andreas J. Guelzow wrote:
    
    > I have just used a default sized Gnumeric to create the
    > following spreadsheet:
    > 
    > A1 to E1 contain the integers 1 through 5
    > A2 contains "=IV1" and this is copied into B2 to E2.
    > 
    > As a consequence E2 shows the value 4.
    
    Gnumeric does that even with plain formulas not involving defined names?
    Might be related to how shared formulas are treated with regard to
    Excel, but nevertheless strange.
    
      Eike
    
    -- 
     OpenOffice.org / StarOffice Calc core developer and i18n transpositionizer.
     SunSign   0x87F8D412 : 2F58 5236 DB02 F335 8304  7D6C 65C9 F9B5 87F8 D412
     OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
    


  • 44.  Re: [office] Data Grid Size element proposal

    Posted 11-22-2008 01:40
    On Fri, 2008-11-21 at 15:34 -0800, Warren Turkal wrote:
    > Can you please describe a situation that still requires the explicit
    > grid-size elements? I'm having a hard time coming up with a use case
    > for them if there is a way to just apply a style to a whole row (or
    > column).
    
    The evaluation of some formulas may change when the grid size changes.
    So some applications may want to warn the user about that.
    
    Andreas
    
    > 
    > wt
    > 
    > On Fri, Nov 21, 2008 at 15:15, Doug Mahugh 


  • 45.  Re: [office] Data Grid Size element proposal

    Posted 11-20-2008 22:15
    On Thu, Nov 20, 2008 at 08:51, Doug Mahugh