Page 1 of 1

find/replace doesn't take care of the font style

Posted: 2008-09-19 06:20:18
by dakofi
Hi

've a problem with find/replace. If I'm looking for an expression in italics font style, expressions in italics+superior are marked as well. Or in case I'm looking for lower case letters [[lower]] the upper case letters [[upper]] appear as well.
It is strange. In Nisus Classic I've never had such a problem.

Thanks for your feedback.

dakofi

Re: find/replace doesn't take care of the font style

Posted: 2008-09-19 07:54:30
by Kino
dakofi wrote:Or in case I'm looking for lower case letters [[lower]] the upper case letters [[upper]] appear as well.
You have to uncheck Ignore Case. Umm... I find it a bit counterintuitive. Perl seems to work in that way, though (but ignore case is something exceptional in Perl). IMO [[:lower:]] should not match upper case letters regardless of Case option. If you use \p{Lower} instead of [[:lower:]], you don't need paying attention to the Case option, btw.

Re: find/replace doesn't take care of the font style

Posted: 2008-09-19 09:35:02
by Kino
dakofi wrote:If I'm looking for an expression in italics font style, expressions in italics+superior are marked as well.
Nothing strange, it is in Italic anyway. If you want to exclude text in Italic AND Superscript...

1. Type ".+" or any expression fitting your purpose in the find field;
2. Apply Any Attributes on the find expression;
3. Apply Italic on the find expression;
4. Apply Format:Baseline:No Super/Sub on the find expression.
5. Hit Next or any button you like.

Re: find/replace doesn't take care of the font style

Posted: 2008-09-25 05:24:00
by dakofi
Good to know.

Thanks.