[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: ascii filter development
From: "Michael Johnson" <mikej () xnet ! com>
Date: 2000-10-20 16:48:42
[Download RAW message or body]
________________________________________________________
___________
> > - Starts a new paragraph after a double carriage
> > return or a double cr/line feed pair.
>
> As I did in the perl program, you have to do a new paragraph after
> more then 1 LF, see the slight change ;)
>
That's where I got the idea, from your perl program.
> > - Use a new paragraph for any line containing tabs.
>
> Hmm, why?
Because a table presentation would be ruined by not starting a new
paragraph for each line with tabs. Tabs are a common way to
arrange data in ascii and word processors usually make a mess.
It's impossible to know what the writer intended so I will just use a
simple rule and hope it works.
>
> > > - Auto detection of enumerated lists would be nice. Setting that to the
> > > right style.
> > >
> > Harder to do especially in all languages? I think this might identify
> > lists:
> >
> > - A succession of paragraphs (or just lines)
> > starting with common list identifiers (dashes,
> > letter o, numerals , roman numerals or single letters
> > and all lines indented.
>
> yes, I might suggest you simple start with a series of '-' or 'o'.
> The filter is really a stream right now. I think that needs to change if
> you want things like: a succession of paragraphs. That stuff is really
> hard to do as a states machine.. So a slight parsing needs to be done then.
Ok but I think I'll go for arabic numerals also. Yes, the stream input
will have to change into reading in an entire file at once.
Michael Johnson
mikej@xnet.com
_______________________________________________
Koffice-devel mailing list
Koffice-devel@master.kde.org
http://master.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic