Re: List numbering..

From: msevior@physics.unimelb.edu.au
Date: Wed Apr 23 2003 - 18:53:11 EDT

  • Next message: Hubert Figuiere: "Commit (HEAD): Re: Cast-related Build Failure"

    > I'm currently refactoring the AbiWord WordPerfect plugin to handle
    > libwpd's implementation of lists. I'm trying to do a better job of
    > handling weird cases than I did before: one of these weird cases is the
    > "renumbering of a list in the middle of a list". For example, in
    > WordPerfect it's possible to define a list like so:
    >
    > 1. One
    > 2. Two
    > 3. Three
    > 1. One
    > 2. Two
    >
    > AbiWord would _seem_ to allow this by setting the "start-value" element
    > when you define the list element's paragraph properties (it's also
    > defined in the document list definition). However, setting this value
    > seems to have no effect. For example: this chunk of AbiWord XML..
    >
    > [..]
    >
    > <p level="1" listid="451835450" parentid="0" props="start-value:0;
    > text-indent:-0.300000in; list-style:0; field-font:NULL;
    > margin-left:0.500000in"><c props="list-tag:186795337"></c><field
    > type="list_label"></field><c props="font-weight:normal;
    > font-family:Times New Roman; font-size:12.000pt;
    > font-style:normal"> Five.</c></p>
    > <p props="text-align:left"><c props="font-weight:normal;
    > font-family:Times New Roman; font-size:12.000pt;
    > font-style:normal">Starting all over again:</c></p>
    > <p level="1" listid="451835450" parentid="0" props="start-value:1;
    > text-indent:-0.300000in; list-style:0; field-font:NULL;
    > margin-left:0.500000in"><c props="list-tag:1094088751"></c><field
    > type="list_label"></field><c props="font-weight:normal;
    > font-family:Times New Roman; font-size:12.000pt;
    > font-style:normal"> One.</c></p>
    >
    > You would expect the paragraph "One" to be renumbered at "1", but no, it
    > gets "6".
    >
    > Any ideas? It's possible to work around this (by creating a new list),
    > but the filter code would be a lot cleaner if this were allowed.

    HI Will,
            No this is not allowed in AbiWord. The start value is the global
    property for the whole list. Frankly I can't imagine why a user
    would want one list to do this this feature but hey, what do I
    know? In any case I have no plan to allow an offset from the
    current counter - which is what I think Wp must use, so you'll
    have to fake it with two seperate lists - sorry.

    Martin

    > --
    > William Lachance <william.lachance@sympatico.ca>



    This archive was generated by hypermail 2.1.4 : Wed Apr 23 2003 - 19:09:55 EDT