[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Patch: Flesch reading ease
From:       Daniel Naber <daniel.naber () t-online ! de>
Date:       2001-06-09 16:11:37
[Download RAW message or body]

On Saturday 09 June 2001 10:17, David Faure wrote:

> Make the first one return 0  (there are 0 paragraphs in an image for
> instance ;-) and the second return true (nothing to count -> move on).

Okay, I just applied it. Small problem with tables: iterating over all 
paragraphs gives "# " (using parag->string()->toString()) for each table, 
besides the actual contents of the table. Of course I'd like to ignore 
that (it gets counted as a sentence). What's the best way to do that? 
if( s == "# " ) doesn't look very professional.

regards
 daniel

-- 
Daniel Naber, Paul-Gerhardt-Str. 2, 33332 Guetersloh, Germany
Tel. 05241-59371, Mobil 0170-4819674
_______________________________________________
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