Page 3 of 3
Posted: Tue Jan 31, 2012 5:18 pm
by Sergey Tkachenko
I suggest to get a text string using the functions from RVLinear.pas (they are better because they just insert a character in place of non-text items, except for tabs and tables) and use it to calculate this statistics.
Posted: Wed Nov 14, 2012 8:34 am
by Pieter E.
Is it possible to count sentences instead of lines?
Posted: Fri Nov 16, 2012 5:20 pm
by Sergey Tkachenko
How do you define a sentence?
For example, if a line contains a single word, is this a sentence?
Posted: Mon Nov 19, 2012 9:09 am
by Pieter E.
Good question.
A sentence ends with '.', ':' and ';'?
Posted: Mon Nov 19, 2012 6:07 pm
by Sergey Tkachenko
Line breaks inside a sentence? Pictures? Tables?
Posted: Mon Nov 19, 2012 7:25 pm
by Pieter E.
All three options seems reasonable.
Posted: Wed Nov 21, 2012 6:11 pm
by Sergey Tkachenko
Still not clear
If a table is allowed inside a sentence... What if this table cells contains several sentences?
Actually, I suggest the following way of calculation. Get text using RVGetTextRange(rv, 0, RVGetTextLength(rv)) (from RVLinear unit) and calculate sentences in this text.
Posted: Thu Nov 22, 2012 6:51 pm
by Pieter E.
Thank you for your suggestion. I'll look into this.