Adobe InDesign CS3 Instrukcja Użytkownika Strona 144

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 672
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 143
INDESIGN CS3
User Guide
137
Use parentheses to divide your search into subexpressions. For example, if you want to search for “cat” or “cot,
you can use the c(a|o)t string. Parentheses are especially useful to identify groupings. For example, searching for
the (cat) and the (dog)” identifies “cat” as Found Text 1 and “dog” as Found Text 2. You can use the Found Text
expressions (such as $1 for Found Text 1) to change only part of the found text.
GREP search examples
Follow these examples to learn how to take advantage of GREP expressions.
Example 1: Finding text within quotation marks
Suppose you want to search for any word enclosed in quotation marks (such as “Spain”), and you want to remove the
quotation marks and apply a style to the word (so that it becomes Spain instead of “Spain”). The expression
(")(\W+)(") includes three groupings, as indicated by parentheses ( ). The first and third groupings search for any
quotation mark, and the second grouping searches for one or more word characters.
You can use the Found Text expressions to refer to these groupings. For example, $0 refers to all found text, and $2
refers to only the second grouping. By inserting $2 in the Change To field and specifying a character style in the
Change Format field, you can search for a word within quotations marks, and then replace the word with a character
style. Because only $2 is specified, the $1 and $3 groupings are removed. (Specifying $0 or $1$2$3 in the Change To
field would apply the character style to the quotation marks as well.)
GREP example
A. Finds all word characters enclosed in quotation marks B. Change applies only to the second grouping C. Character style applied
This example searches only for single words enclosed in parentheses. If you want to search for phrases enclosed in
parentheses, add wildcard expressions, such as (\s*.*\w*\d*), which looks for spaces, characters, word characters,
and digits.
Example 2: Phone numbers
InDesign includes a number of search presets that you can choose from the Queries menu. For example, you can
choose the Phone Number Conversion query, which looks like this:
\(?(\d\d\d)\)?[-. ]?(\d\d\d)[-. ]?(\d\d\d\d)
A
B
C
Przeglądanie stron 143
1 2 ... 139 140 141 142 143 144 145 146 147 148 149 ... 671 672

Komentarze do niniejszej Instrukcji

Eric 02 Mar 2024 | 15:32:04

Dear manymanuals.pl Admin! my name’s Eric and for just a second, imagine this… - Someone does a search and winds up at manymanuals.pl. - They hang out for a minute to check it out. I’m interested… but… maybe… - And then they hit the back button and check out the other search results instead. - Bottom line – you got an eyeball, but nothing else to show for it. - There they go. This isn’t really your fault – it happens a LOT – studies show 7 out of 10 visitors to any site disap

Eric 03 Mar 2024 | 05:37:29

Dear, Eric here with a quick thought about your website manymanuals.pl Owner! I’m on the internet a lot and I look at a lot of business websites. Like yours, many of them have great content. But all too often, they come up short when it comes to engaging and connecting with anyone who visits. I get it – it’s hard. Studies show 7 out of 10 people who land on a site, abandon it in moments without leaving even a trace. You got the eyeball, but nothing else. Here’s a solution for y