I am preparing a register for a projected book. In p. 9, there is written: "(Gesamtwürdigung des Werkes)".
Now I start 2 searches of the form "find word":
a) for "Gesamtwürdigung"
b) for "Werkes"
The results: a) ist "not found", b) is found on p. 9.
To me the results seem contradictory, because brackets never belong to a word, beit in the beginning, beit in the end of the word, So, "Gesamtwürdigung" should be found too.
Or made I something wrong?
Thank you for your answer!
find word
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 9731
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: find word
Hi.
Where do you see brackets ("[" or "]") in your text?
You are talking about two different "find" actions, correct? But are you asking why the first one failed and the second one succeeded? And what is meant by "page 9"? Do you mean card 9?
Can you post the code you used?
Craig
Where do you see brackets ("[" or "]") in your text?
You are talking about two different "find" actions, correct? But are you asking why the first one failed and the second one succeeded? And what is meant by "page 9"? Do you mean card 9?
Can you post the code you used?
Craig
-
- VIP Livecode Opensource Backer
- Posts: 7257
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: find word
LC finds words by looking for spaces between words. If there is no space after a bracket then LC thinks the bracket is part of the word. I'm not sure if this will work, but try
"find trueword" instead of "find word". It isn't in the dictionary but it might work. The keyword "trueword" ignores punctuation and symbols.
"find trueword" instead of "find word". It isn't in the dictionary but it might work. The keyword "trueword" ignores punctuation and symbols.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 9731
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: find word
Hi.
Aha. By "brackets" do you mean parentheses "(" or ")"?
If so, then something Jacque mentioned may be an issue, since those "brackets" are part of the word you are searching for. So when you use the "find word" form of the "find" command, unless you: the find will fail. If you instead:
Livecode will work fine.
Craig
Aha. By "brackets" do you mean parentheses "(" or ")"?
If so, then something Jacque mentioned may be an issue, since those "brackets" are part of the word you are searching for. So when you use the "find word" form of the "find" command, unless you:
Code: Select all
find word "(Gesamtwürdigung"
Code: Select all
find "Gesamtwürdigung"
or
find string "Gesamtwürdigung"
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9731
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: find word
But still am not clear about "page 9"
Craig
Craig