Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11117 > unrolled thread

Bug in "Find Previous"

Started byJames Stein <mathgroup@stein.org>
First post2012-07-29 07:05 +0000
Last post2012-07-30 07:46 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Bug in "Find Previous" James Stein <mathgroup@stein.org> - 2012-07-29 07:05 +0000
    Re: Bug in "Find Previous" Helen Read <readhpr@gmail.com> - 2012-07-30 07:46 +0000

#11117 — Bug in "Find Previous"

FromJames Stein <mathgroup@stein.org>
Date2012-07-29 07:05 +0000
SubjectBug in "Find Previous"
Message-ID<jv2nc9$meg$1@smc.vnet.net>
Copy these seven lines into a cell as "Plain Text",
(NOT as the default "Mathematica Input").
Test searching for n as a single word (not in "not", e.g.).
You should find this n but not any 'n' in not any !
Do you see the difference searching forward or backward?
And what is the definition of 'word' in 'Full Word'?
Why is this 'n' not found?  What about "n"?

This bug may be platform specific.
I'm running Mathematica 8.0.4 on Mac OS X 10.6.8.

[toc] | [next] | [standalone]


#11122

FromHelen Read <readhpr@gmail.com>
Date2012-07-30 07:46 +0000
Message-ID<jv5e3v$r3r$1@smc.vnet.net>
In reply to#11117
For me (8.0.4, Windows) it finds all the unquoted single n searching for 
Whole Words with Find Next. It doesn't get either 'n' or "n" which one 
could argue either way. Using Find Previous, the Whole Words match seems 
quite flaky. It does find the single n with or without quotes, but it 
also picks out the n in some but not all words containing n. For 
example, it skips "found" and "definition" but hits the n in the "in" 
"And" and "any". It skips the n in the unquoted "not" but hits the n in 
the quoted "not".

I also tried appending the following to your text:

Now search Whole Words for instances of not. Did you notice it misses 
some cases of 'not' with Find Previous?

Then I searched for Whole Word matches 'not' with Find Next and Find 
Previous. Find Next gets all of the unquoted instances of 'not' and 
correctly skips over 'notice'. Find Previous also skips over 'notice' as 
it should, and hits all the quoted and unquoted instances of not until 
it gets to the one with double quotes, and then it stops and does not 
hit the two preceding cases.

Turning off the Whole Words match gets all instances of 'not' whether 
quoted or unquoted (including the substring of 'notice') searching in 
either direction.

It seems that the Whole Words mode is a bit unreliable.

Helen Read

On 7/29/2012 3:05 AM, James Stein wrote:
> Copy these seven lines into a cell as "Plain Text",
> (NOT as the default "Mathematica Input").
> Test searching for n as a single word (not in "not", e.g.).
> You should find this n but not any 'n' in not any !
> Do you see the difference searching forward or backward?
> And what is the definition of 'word' in 'Full Word'?
> Why is this 'n' not found?  What about "n"?
>
> This bug may be platform specific.
> I'm running Mathematica 8.0.4 on Mac OS X 10.6.8.
>



[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web