Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 15 posts - 106 through 120 (of 231 total)
  • Author
    Posts
  • Graham Park
    Member

    With 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
    •.+~b

    Red Price with Per
    (?=\$)\$\S+per\d+

    Graham Park
    Member

    Well 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.

    Graham Park
    Member

    This 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$

    in reply to: Spreads and prepress #100266
    Graham Park
    Member

    Sounds 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.

    Graham Park
    Member

    O should have added punctuation incase you use some before the $

    ^((\w||[[:punct:]])+)(\$\d\S+)

    ^((\w||[[:punct:]])+)

    Graham Park
    Member

    How 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.

    Graham Park
    Member

    Sorry 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+

    Graham Park
    Member

    Just 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+

    in reply to: Print thumbnails document pages #100245
    Graham Park
    Member

    There is a THUMBNAILS check box under the SETUP tab, just set the number you want on a page.

    Graham Park
    Member

    Use 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?

    Graham Park
    Member

    If yo have a sample of the text you are using I can try to get the above method to work for you.

    Graham Park
    Member

    Is there a logic to the second instance of the price?
    If there is you can create a second GREP

    Eg
    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)

    Graham Park
    Member

    You will probably also need to do a Find space ” and replace with ” to get rid of the extra space that has been added

    Graham Park
    Member

    I 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}$2

    Then
    (\S[\.|?|!])(\S)
    Replace
    $1\x{0020}$2

    Graham Park
    Member

    In 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,

Viewing 15 posts - 106 through 120 (of 231 total)