Re: commit: RTF import list improvement


Subject: Re: commit: RTF import list improvement
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Thu Oct 11 2001 - 20:27:01 CDT


On Fri, 12 Oct 2001, Matti Picus wrote:

> I fixed the list import so that it seems to parse a format string from the
> RTF leveltext keyword. I also change a bunch of member variables so they
> start with m_
>
> Still to do:
> I want this: But I get:
> 1 One 1 One
> (a) One-a (a) One-a
> (b) One-b (b) One-b
> 2 Two 2 Two
> (a) Two-a (c) Two-a
> (b) Two-b (d) Two-b
>

Hi Matti,
         What you have to do is to start a new abiword list after the
 2 Two

paragraph. You do this by changing the listid attribute.

I think you can detect this occurance when a \restartnumbering
RTF keyword is encountered.

To build the complex list contructs allowed in MS Word where a
particular level in a deeply nested list structure is displayed or not
would require an expansion the role of the "%L" in the list-delim
property.

I agree with your suggestion here. We could use something like the
complex RTF constructs to do this.

At this stage I'm baffled as to how to build an intuitive UI to do this.
We could just put the capability into abiword to display and import these
sort of things and show the string in the "format" entry of the
dialog.

The "level-delimeter" entry is the text that goes between list labels in
nested lists.

So for a list like:

 1 One
     1...(a) One a
     1...(b) One b
 2 Two
     2...(i) Two i
     2...(ii) Two ii

The "..." would go in the "Level Delimeter" entry of the dialog for the
first level "1,2,3," entry.

Also I'll commit some small changes to the way the lists start so that
paragraphs with lists started on them with indents greater than the
previous paragraph are not attached to the previous list. This should make
contructing lists of the sort you're working on easier to build in
abiword.

Cheers

Martin

PS. I'm more than happy to help you out. You've made great contributions
already. Keep up the good work!



This archive was generated by hypermail 2b25 : Thu Oct 11 2001 - 20:27:10 CDT