Re: Retaining punctuation

2001-06-17 Thread Jeff 'japhy' Pinyan
On Jun 17, Lonya said: >Say I have a line like this: >This *s a te*t, this *s only a te*t. > >And I'd like to replace "te*t," with "test," after a dictionary lookup. >Well, I can split out the punctuation easily enough, but I don't know >how to join it back in later. You probably want to use a r

Re: Retaining punctuation

2001-06-17 Thread perl
you can just do this before you spell check. { s/./ ./g; # Would make Test. Test . s/,/ ,/g; # etc. for other punctuation marks. spellcheck s/ ././g; # Make Test . back to Test. after spell check

Re: Retaining punctuation

2001-06-17 Thread Lonya
I have to remove punctuation so that I can look in a dictionary to list all possible completions of the english word: "te*t". ie. teat teet tent test text If I leave the punctuation in, there will be no dictionary matches on "te*t,". Is that clearer now? Lonya --- The tagline below makes free

Re: Retaining punctuation

2001-06-17 Thread Giorgos Keramidas
On Sun, Jun 17, 2001 at 07:35:06PM -0700, Lonya wrote: > Hi all, > > I could use some help. I'm trying to retain punctuation in sentences > when doing a spell check. > > Say I have a line like this: > This *s a te*t, this *s only a te*t. > > And I'd like to replace "te*t," with "test," after a

Retaining punctuation

2001-06-17 Thread Lonya
Hi all, I could use some help. I'm trying to retain punctuation in sentences when doing a spell check. Say I have a line like this: This *s a te*t, this *s only a te*t. And I'd like to replace "te*t," with "test," after a dictionary lookup. Well, I can split out the punctuation easily enough,