Re: ntext word boundary detection



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.
.



Relevant Pages

  • Re: REVIEW: Russells Reviews Volume One # 2
    ... Thanks for the review, Tom! ... fictional characters, especially since those fictional ... details would make them less parodies and more ... In addition to eliminating that nagging feeling that I'm ...
    (rec.arts.comics.creative)
  • Re: 19 years later...
    ... years later left me feeling very cheated. ... JK spent SO much time ... and effort invested in ALL the characters in the book and thusly, ...
    (alt.fan.harry-potter)
  • Re: 19 years later...
    ... years later left me feeling very cheated. ... JK spent SO much time ... and effort invested in ALL the characters in the book and thusly, ... heard of one being torn down because of an infamous alumni. ...
    (alt.fan.harry-potter)
  • Re: 19 years later...
    ... years later left me feeling very cheated. ... JK spent SO much time ... and effort invested in ALL the characters in the book and thusly, ... heard of one being torn down because of an infamous alumni. ...
    (alt.fan.harry-potter)
  • Re: the fox in FOTR
    ... or feeling. ... characters' thoughts directly. ... More often the narrator tells us ... None of this, of course, applies to that silly fox! ...
    (rec.arts.books.tolkien)