Demos, code samples. Only questions related to the existing topics are allowed here.
-
Sergey Tkachenko
- Site Admin
- Posts: 14313
- Joined: Sat Aug 27, 2005 10:28 am
-
Contact:
Post
by Sergey Tkachenko » Tue Jan 31, 2012 5:18 pm
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.
-
Pieter E.
- Posts: 719
- Joined: Sun Aug 28, 2005 9:34 am
Post
by Pieter E. » Wed Nov 14, 2012 8:34 am
Is it possible to count sentences instead of lines?
-
Sergey Tkachenko
- Site Admin
- Posts: 14313
- Joined: Sat Aug 27, 2005 10:28 am
-
Contact:
Post
by Sergey Tkachenko » Fri Nov 16, 2012 5:20 pm
How do you define a sentence?
For example, if a line contains a single word, is this a sentence?
-
Pieter E.
- Posts: 719
- Joined: Sun Aug 28, 2005 9:34 am
Post
by Pieter E. » Mon Nov 19, 2012 9:09 am
Good question.
A sentence ends with '.', ':' and ';'?
-
Pieter E.
- Posts: 719
- Joined: Sun Aug 28, 2005 9:34 am
Post
by Pieter E. » Mon Nov 19, 2012 7:25 pm
All three options seems reasonable.

-
Sergey Tkachenko
- Site Admin
- Posts: 14313
- Joined: Sat Aug 27, 2005 10:28 am
-
Contact:
Post
by Sergey Tkachenko » Wed Nov 21, 2012 6:11 pm
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.
-
Pieter E.
- Posts: 719
- Joined: Sun Aug 28, 2005 9:34 am
Post
by Pieter E. » Thu Nov 22, 2012 6:51 pm
Thank you for your suggestion. I'll look into this.
