Forum Replies Created
-
AuthorPosts
-
December 12, 2017 at 9:44 pm in reply to: Using GREP in paragraph style to format only the first occurrence of a phrase #100307
Graham Park
MemberWith your text this works for me, they have to be in order
Bold Black
^((\w||[[:punct:]])+)(\$\d\S+)Red Price
\$\d\S+ (per\d+)?Normal
•.+~bRed Price with Per
(?=\$)\$\S+per\d+December 12, 2017 at 7:27 pm in reply to: Using GREP in paragraph style to format only the first occurrence of a phrase #100303Graham Park
MemberWell sort of but you seem to be formatting the second price instance as well.
This is easy to achieve with nested styles just add the END NESTED STYLES mark when you want the format to change but this is not automated.
Try my three GREP above and it will bold the description, make the prices red (including the per 100) and then make the last price normal again,
With GREP you need to be very specific about the text you are formatting as it matched patterns so we need to see some good sample text to get the GREP statements correct. Two or three prices can make a big difference to how to approach the task.December 12, 2017 at 4:57 pm in reply to: Using GREP in paragraph style to format only the first occurrence of a phrase #100291Graham Park
MemberThis example is not the same as your original request.
3 GREP to make it work, but the text needs to follow the same pattern.Character format Bold Black for leading text
^((\w||[[:punct:]])+)(\$\d\S+)Character format Red Prices, if these are not all ‘per’ then a list would be needed to make this work
\$\d\S+ (per\d+)?Character format Normal (to correct the last price)
\S+ ea$Graham Park
MemberSounds like someone us using a really old workflow. All modern workflow systems such as Agfa Apogee, Kodak Prinergy, Esko, Fuji etc all handle documents supplied as single pages.
The workflow does the pagination and sets up the printers spreads, not something I want to do with a document to get it ready for printing.
We normally output to PDF with bleed and printers marks, the workflow will then trim the gutter to the required specs. Anyway 20 pages staple bound is not going to be an issue even for comic layouts.
The biggest problem with their suggestion is that for a 20pp document the inside front cover (page 2) will print opposite inside back cover (page 19) and so on. So the two pages do not relate to each other in the design only when printing. And for design it is a total pain.
Or you do the whole document then do the pagination for the printer, but wait that is what prepress workflow systems were designed for.December 12, 2017 at 12:28 am in reply to: Using GREP in paragraph style to format only the first occurrence of a phrase #100264Graham Park
MemberO should have added punctuation incase you use some before the $
^((\w||[[:punct:]])+)(\$\d\S+)
^((\w||[[:punct:]])+)
December 11, 2017 at 10:23 pm in reply to: Using GREP in paragraph style to format only the first occurrence of a phrase #100263Graham Park
MemberHow about this, it does not rely on the ‘IS’ to work and such will work with any text.
Format for the number
^((\w|)+)(\$\S+)
Then to add normal format back to the beginning of the paragraph
^((\w|)+)Maybe Aaron can tweak this into one expression as well.
December 10, 2017 at 5:18 pm in reply to: Using GREP in paragraph style to format only the first occurrence of a phrase #100252Graham Park
MemberSorry I should be more precise.
Two GREP in your paragraph style, the first one will add your text style to all $prices, the second one will replace the format with the normal character style.First
Apply Style This is the style you want for the price.
To Test \$\S+Second
Apply Style: Normal, create a style that has the format of this paragraph text
To Text (?<=is)\$\S+December 10, 2017 at 5:05 pm in reply to: Using GREP in paragraph style to format only the first occurrence of a phrase #100251Graham Park
MemberJust a thought, is the second price always preceded by ‘is’ if so then create a GREP in your paragraph style
This will find the is followed by a $ and everything up to the next white space.(?<=is)\$\S+
Graham Park
MemberThere is a THUMBNAILS check box under the SETUP tab, just set the number you want on a page.
December 7, 2017 at 10:05 pm in reply to: Using GREP in paragraph style to format only the first occurrence of a phrase #100183Graham Park
MemberUse https://imgur.com/ and place a link in your post.
Is there a pattern to the second price that is different to the first that we could use in the GREP?December 7, 2017 at 8:01 pm in reply to: Using GREP in paragraph style to format only the first occurrence of a phrase #100169Graham Park
MemberIf yo have a sample of the text you are using I can try to get the above method to work for you.
December 7, 2017 at 7:34 pm in reply to: Using GREP in paragraph style to format only the first occurrence of a phrase #100167Graham Park
MemberIs there a logic to the second instance of the price?
If there is you can create a second GREPEg
First – set the format for the first number
(\$\S+)
Then – set this one to the NORMAL format so this over rides the above format
(\$\S+ ea)December 6, 2017 at 9:45 pm in reply to: How to find sentences that end in periods with no space after them #100106Graham Park
MemberYou will probably also need to do a Find space ” and replace with ” to get rid of the extra space that has been added
December 6, 2017 at 6:42 pm in reply to: How to find sentences that end in periods with no space after them #100104Graham Park
MemberI thin you will need two operations. First one will find the period followed by a double quote and the second the period or ! or ? and add the space.
Find
(\.”)(\S)
Replace
$1\x{0020}$2Then
(\S[\.|?|!])(\S)
Replace
$1\x{0020}$2December 5, 2017 at 10:13 pm in reply to: How to find sentences that end in periods with no space after them #100093Graham Park
MemberIn the FIND/REPLACE dialogue box choose the GREP tab and use the below.
This will find non space character (it will find letters, numbers and punctuation) followed by a period follow by a capital letter and will add a space between them.
If you have two fullstops in a row or ., it will find them as well
Second one will find a lowercase character followed by a period followed by a Capital letter
Choose which one suits you best.Find
(\S\.)(\u)
or
(\.)(\u)
Replace
$1\x{0020}$2\x{0020} = This is just a visible space character, you can just type a space in between the found items,
-
AuthorPosts
