Re: ntext word boundary detection
- From: Aric Bills <aric.bills@xxxxxxxxx>
- Date: Fri, 16 May 2008 15:24:08 -0700 (PDT)
On May 16, 12:14 pm, Alexandre Ferrieux <alexandre.ferri...@xxxxxxxxx>
wrote:
Hi Aric,
On May 16, 9:40 pm, Aric Bills <aric.bi...@xxxxxxxxx> wrote:
if only I could come to grips with the content of this
page:http://aspn.activestate.com/ASPN/docs/ActiveTcl/8.5/tklib/ntext/ntext...
(feeling somewhat dense today...)
I'm discovering all this right now, so I won't be of much technical
help, but let me say that I have the very same feeling reading
that :-}
So much text without a stab at semantics, it reminds me of Win32 API
docs...
If anybody has pointers for how to get ntext to treat items in angle
brackets as words, that would be wonderful. If anybody could explain,
even in part, the advantage of having two classes of non-word
characters and what the difference between those two classes might be,
I'd be grateful for that too. And while we're at it, if you have any
other good advice for me, send it my way.
Next step is reading the code I'm afraid. Will do that now.
-Alex
Well, I've come to a partial understanding of the two classes of word
characters... (I realize I said it wrong above, sorry)
Apparently they can be used to mark word boundaries between two things
that would be considered "words". So if category 1 is letter-like
characters and category 2 is punctuation (basically the default ntext
rules), and you had the string "abcde.;!...?", you have two words for
the purposes of selecting words (double clicking on a word) or
navigating forward or backward one word at a time (Control-Right and
Control-Left). With the same rules, the string "ab@#cde.;!..@#&*.?"
contains four words: {ab@#cde} {.;!..} {@#} {&*.?}.
Still haven't figured out how to do what I want, but maybe I'm a
little closer now...
Aric
P.S. Don't mean any disrespect to Keith or ntext; it is a very nice
package and I would recommend it to anyone who wants more intuitive
text widget behavior.
.
- Follow-Ups:
- Re: ntext word boundary detection
- From: Alexandre Ferrieux
- Re: ntext word boundary detection
- References:
- ntext word boundary detection
- From: Aric Bills
- Re: ntext word boundary detection
- From: Alexandre Ferrieux
- ntext word boundary detection
- Prev by Date: Re: Compile fails on vista 64
- Next by Date: Re: How to get path?
- Previous by thread: Re: ntext word boundary detection
- Next by thread: Re: ntext word boundary detection
- Index(es):
Relevant Pages
|