ID CC 2014 grep styles problem

Have you noticed that the new ID CC 2014 version does not use grep-styles correctly? I have a quite complicated grep-styles system I have to use with my client. But now this new ID does not understand it at all. I have 5 greps and this poor new id understands only 3 first on stack, if even those. Old cc and CS6 did all of them correctly. It seems that quality of Adobe has been going down even more... This is not the only problem with these new rented products from Adobe nowadays. They are not even robust anymore.
Example:
Orginal data:
to look like this:
by using grep-styles like this:
This used to work like a charm, but not anymore.

It depends by order but for instance like this:

Similar Messages

  • CS5 - Grep style problems

    Where I work the treatment of the type is to reduce the size of all-caps, a string of numbers, or a combination of the two. For years they've been doing it by setting up a Character Style for each Paragraph Style (e.g., "Body smaller" for "Body), and then also alternate Character Styles if the text already has a Character Style applied to it ("Body Red Italic smaller" for "Body Red Italic"). You can imagine this quickly becomes a lot of styles.
    So I thought with CS5 Grep styles I could set this up in the Paragraph Styles. I want the Grep style to apply a Character Style that is nothing but a Horizontal and Vertical scale of 95%.
    The types of things I'm wanting Grep to find are below. But I'm only wanting to apply the style to the letters and numbers and not the punctuation.
    AAA
    B23
    33,333
    4,444,444
    U.S.A.
    (ABC-1)
    I went at writing this a piece at time, so it is not very elegant. Here's what I have:
    \d{2,}|\u{2,}|\u+\d+|\d+\u+|\d+[[:punct:]]\d+|\u+[[:punct:]]\u+|\u+[[:punct:]]\d+|\d+[[:pu nct:]]\u+
    This does a pretty good job, with a couple of problems.
    1) It is "catching" (applying the character style) to the first punctuation if there is a single character before it (e.g. the first piece of punctuation in 4,444,444 and U.S.A.)
    2) It is not always "catching" instances where there are more than three sets of numbers/caps in an item (e.g. U.S.A., it doesn't style the "A"). I know Grep is probably just doing what I'm telling it to do, but I can't see how to fix it.
    I would appreciate any help anyone could give me.
    Thanks.
    Tom

    You can't do all this in one GREP style. The one you came up with is already difficult to read, so you can imagine what happens to its readability by the time you get it to work. Apart from that I don't think it's possible to do what you want in one expression.
    So you really need to split up your task into several chunks, all of which you can then add to the same paragraph style. Your expressions may be more efficient, but they're much eaier to understand and maintain. Here goes.
    The easy ones are AAA, B23, and (ABC-1), all of which are captured by this expression:
    \(?\u[-\u\d]+\)?
    U.S.A. is more tricky, and it needs to be split in two itself. The first part captures series capital+period, but not the last one:
    \u(?=\.\u)
    Capturing the last capital+period is interesting in that it requires a negative lookahead embedded in a positive lookahead, which I wouldn't have thought was possible, but it works:
    (?<=\.)\u(?=\.(?!\u))
    For the numbers you's do something similar.
    Peter

  • IDCS5/MAC - GREP Style to uppercase a letter after a dash between words

    G'day there.
    I'm trying to create a GREP style to uppercase a letter after a dash between words, more specifically where one word starts with a capital and the one after a dash does not e.g. Lorem-ipsum = Lorem-Ipsum
    The full story is that there is a standing indesign file used over and over again which data-merges surnames which are in a massive database. The data arrives in uppercase and our mail barcoding software allows us to Title Case certain fields, but the Title Case behaviour has the following results:
    * McLeod = Mcleod
    * D'Agostino = D'agostino
    * Smith-Bunting = Smith-bunting
    i've been able to solve the McLeod = Mcleod problem with the following GREP style:
    (?<=Mc)\l
    and then apply a character style which is nothing more than All Caps.
    similarly, i've been able to solve the D'Agostino = D'agostino problem:
    (?<=\u')\l
    and once again apply the All Caps style to the affected letter. This also solves the O'leary problem to O'Leary.
    However, when I try these GREPs to grab the Smith-bunting style issues:
    (?<=\u\l+?-)\l     or   (?<=\u\l{2,}-)\l
    the search won't work, nor will it work with regular Find/Change GREP replace... yet the expression \u\l+?-\l will find the block that i'm after.
    I could use the search
    (?<=\l-)\l
    and this will find Smith-bunting = Smith-Bunting... but will also find co-operate = co-Operate (will find two words joined with a dash but  starts with a lower case letter).
    This is fine if the para style is applied to the  line in the address block containing the client's name, but if the name is referred to in a block of text, then that block of text has to have the para style with the GREP style applied, and any dashes between words in that para behave the same way as the name.
    yes, it is possible to go into excel and use the =PROPER(affected cell) and fix the Smith-Bunting fields, but i'm trying to create a solution which will work solely in InDesign so that other operators in the office (who aren't familiar with excel) can simply open the standing file and dump in the txt database generated by the mail barcoding software.
    there are other names that the mail barcoding's title-case fouls up i.e.
    * MacLeod = Macleod
    * van der Graaf = Van Der Graaf
    * van Diemen = Van Diemen
    but a GREP to make Macleod become MacLeod may foul up Mack, Mackie or Macy to become MacK, MacKie or MacY.
    I also know that a GREP for the van der or van won't work as the style will only force letters to become All Caps, not uppercase to lower...
    Ultimately...
    does anyone know a way to GREP style (not a find/change GREP) a fix for Xxxxx-xxxxx = Xxxxx-Xxxxx?
    Colly
    Colecandoo.

    I agree with Haakenlid on his Dirty-Workaround view -- I feel data should be entered the way it oguht to, not altered by some magic GREP styling -- but then again I can also sympathize with your POV re: a fire-and-forget solution even your dumbest operator can't miss.
    Oh the rigors of life.
    If you are totally, absolutely certain you want to do this by GREP, use this:
    (a) Set a To Capitals character style to the string
    \b\u\l+\-\l
    -- this will magically transform "Hon. Lt. Sir John Forsythe Blunt-object" into "BLUNT-Object".
    (b) Then override ( ! ) the first half again with another character style that removes the To Capitals attribute ( ! ):
    \b\u\l+-(?=\l)
    Notice how this expression is exactly the same as the above one, except for the very last code -- the next lowercase must also be caught, but now using a lookahead so its formatting won't be affected.
    This removes the All Caps override from the first halve, changing it from "BLUNT-Object" back to "Blunt-Object".
    Lots of side effects, I'm sure. Perhaps it is safer to teach your operators to run a single script.

  • GREP styles vs style sheets

    I've got a lull at work and decided to work on my list and start to learn GREP so that I can use GREP styles.
    The first one is a simple one:  [[A-Z][A-Z]\S+?] This finds anything inside the brackets that starts with two capital letters. I know it works because I can find "[MT2]" in Find/Change.
    OK, so I try it in some ID cs5 text with my first GREP style. It's failing the vast majority of the time. So I try lots of different things to see if I can find a pattern of what works and what doesn't. I've tried just the local formatting of a lone 'graf. I've tried making character and 'graf style sheets that incorporate a GREP style with the new character style, say "change type color to green".
    I've looked through the forums and don't see others with my problem so it must be something about me or my document. I've used other documents to eliminate that variable. I've gone through the tutorials and David Blatner's stuff and don't see anything I'm doing differently.
    When I format some text with a character and 'graf style sheet, it fails. BUT when I change the character style sheet of the source text to "[None]" it works. I've tried starting with text that is '[None]' and a 'graf style sheet of Normal, it works.
    But starting with text styled with '[None]' character and a formal 'graf style sheet with a GREP Style, it fails. But when I change the 'graf style sheet to ]'Basic Paragraph]' it works.
    I'm trying to find a pattern here, so to speak, and the only thing that has a chance to succeed is setting the character style sheet to 'None.' I just don't see than anyone who uses GREP styles has any problems like I do.
    What do you reckon I'm overlooking? I've spent today trying to find what works and doesn't. As it is, I can't recommend this to my co-workers.

    Rule of thumb for applying styles is basic formats for the entire paragraph should be defined in the paragraph style. If some selected bit of text needs to be formatted differnently, then you apply a character style (or, if you must, a local formatting override). With Nested Styles and GREP styles, ID has very powerful tools for applying character styles to selected text WITHIN the confines of the paragraph style definition. Most programs don't have that capability.
    Should you apply the character syle as a nested or GREP style, or perhaps through Find/Change, or just by manually selecting text and applying the style? The answer to that will depend on a few variables. Should the particular string ALWAYS have a particular set of attributes, no matter what? Find/Change or local selection is the way to go. Character styles applied that way will survive even if the underlying paragraph style is changed to match the character style, then changed again. If the style should be applied to a string in a particular position in a paragraph, even if that position might move around a bit, a nested style is probably the way to go. If you want to make changes to text that matches a particular pattern, wherever it falls, when the surrounding text is a particular style, a GREP style is the answer.
    GREP styles are very powerful, but they also use far more in terms of resources than applying a character style using other methods. I've seen reoprts of ID getting bogged down by too many GREP styles.

  • Apply grep style only once

    I can't get my brain around what is probably a very simple problem: I want a paragraph style that applies boldfacing to any character up to an including the first colon in a paragraph. If I used  a nested style "through 1 :" the whole graf is bold if there is no colon. So that's out.
    A grep style ".+: " seems to work in most cases, but if there's a second colon, the boldfacing is extended to that point. What I think I want is a grep style that works "zero or 1 times" but I cannot figure out how to use the ? to make that happen.

    @Jongware – I think Robert wants to limit the GREP style to the first line of a paragraph.
    But unfortunately GREP in InDesign does not know about line endings.
    In scripting we could do something like what he wants, but comes with some obstacles, because the GREP will apply a character style, that will probably change the line ending. A very dynamic situation…
    Example 1
    Basic situation:
    This is my text here comes the colon: and
    here another one: that Robert don't like
    to take into account using the GREP style.
    Formatted after  the GREP style is applied:
    This is my text here comes the colon: and
    here another one: that Robert don't like
    to take into account using the GREP style.
    As I understand it, in case that the first colon will leave line one, only the first line should be formatted like this:
    (Case 1)
    This is my text here comes the first
    colon: and here another one: that
    Robert don't like to take into account
    using the GREP style.
    Or should it be, that the style should only be applied, if it's in the first line?
    (Case 2):
    This is my text here comes the first
    colon: and here another one: that
    Robert don't like to take into account
    using the GREP style.
    But what, if the colon in the basic case is at the end of line 1 and will be shifted to line 2 after formatting?
    What should happen then?
    That is simply not possible to format automatically (dynamically) using GREP styles in InDesign.
    Uwe

  • GREP STYLE, find/change

    Hi!
    My problem is..
    I got these numbers:
    17
    31.9
    32.9
    15
    in a table/cells. They need to have an .00 and 0 like this:
    17.00
    31.90
    32.90
    15.00
    I can use this one for that: find: .$  change: $0.00 but then the numbers with 31.9 gets the .00 also.. 31.9.00
    Any grep styles for that? multiple functions in the same style`?

    A grep style can't change text for you; it can only apply a style to text that matches whatever pattern you set.
    I don't think there any one search/replace that will get you where you want to go, but I was able to do it using two search and replace strings:
    ^\d+(?!\.)\b
    $0.00
    Finds any number of digits at the beginning of a line, that does NOT have a period following it, and returns the same number with ".00" appended.
    ^\d+\.\d\b
    $00
    Finds the remaining instances that have a period and only one digit after it, replaces it with the found text with "0" appended.
    This will not touch anything that has a number that has two digits after the period, like 12.95.
    Give it a try on a copy of your document, see if it does what you need. Depending on how your document is set up, and what other text is in it, you might also want to highlight the table (or just the relevant columns) and restrict the search to the selection rather than the whole document.

  • Nested Line Style affecting my GREP style

    Hello all.
    I'm formatting a large book at the moment and am trying out a "runt fixer" to prevent bad sentence breaks in columns. So far I have created a character style that only applies the "no-break" attribute, and have two GREP styles - one looking for a space and 8 characters or less before a full-stop, exclamation mark or question mark; and another looking for the 8 characters or less then a space after a full-stop, exclamation point or question mark. The codes are:
    \s.{1,8}[.!?]
    and
    (?<=[.?!]\s).{1,8}\s
    It works... nearly. It has issues when fullstops are used in numbers such as displaying currency, dates... but largely works for the text.
    The problem occurs when I go to the Drop Caps and Nested Styles feature, and use the "New Line Style" - in this instance it was used at the beginning of chapters to make the first line smallcaps. Instead, something strange happened to the second GREP style - it no longer worked.
    In case I'm not explaining myself properly, i've uploaded a sample of what is going on here: https://dl.dropboxusercontent.com/u/55743036/runt-issue.idml
    The first page is OK, but the second page displays the fault. I've colorised the GREPs so that it is clear what is not breaking at the end of a sentence and what is not breaking at the start of a sentence.
    Has anyone experienced this before or can tell me what is going on? it is my error or is it a bug?
    Colin

    @Colin – I thought, I could make it work, if I introduce another GREP Style BEFORE the one that is not working: A GREP Style, that is doing nothing (applying the character style "[None]" to a character like "§" that is simply not in the text. Did not work.
    Another attempt with InDesign CS5.5 OSX 10.6.8: I made a new paragraph style BASED ON the one that is not working. Changed nothing in that new one, just let it be based on the not working one.
    Now: THAT IS FINALLY WORKING! But in a different way I expected…
    "Will work" is based on "not working".
    Here all GREP Styles used in "Will work":
    Uwe

  • In my GREP style I want it to find a different / (forward slash) in glyph set

    Hello!
    I have a GREP style that I have been using to find fractions and it works fine.
    The issue now, is we are not going to be using the standard / in the glyph set, but a different one. It's a unique one built into the font.
    This is the part of the GREP style I have that finds the /
    (?<=\d)/(?=\d)
    Now, I need to replace the symbol between the 2 sets of parenthesis, the thing its actually applying a character style too, to a unique looking symbol in the glyph set, but I don't know how to replace it. I tried to copy and paste it, but it did not work.
    Is there a way to tell a GREP Style to look for a GLYPH's GID or UNICODE number?
    So, it might look more like this:
    (?<=\d)GID217(?=\d)
    thanks
    babs

    Hi Peter!
    OK-that does work. Took me a bit, but I got it.
    Problem now is,  I then also had to switch the / for the Unicode one for the numerator and denominator GREP style part. I almost have it, but for some reason, the slash is saying its using a mixed style (you know, when you select something, one character in a GREP style, but in the character panel, it tells you at the bottom wihch one its using). This now says mixes instead of slash for the character style name, and isn't correct.
    Can you see what might be wrong in this snapshot?
    thanks so much!!!!
    babs

  • Lost GREP styles

    I had created a whole liste of GREP-styles and suddenly I realize they have all disappeared. Perhaps this happened when synchronizing the parameters, or by installing Indesign 2014. Does someone know where the user-created GREP-styles are stored? I could try to get them via my Time Machine.

    GREP styles are document-level attributes that you should be able to load from a previous document. Saved GREP queries for Find?Change, however, are stored as part of the user preferences. You should find a folder named Find-Change Queries in your profile or library in the same path where the InDesign Defaults preference file is stored for each version. You can copy the entire folder to a new version, or only selected queries. for more information, see Replace Your Preferences

  • Indesign crashes when editing GREP styles

    I'm using Indesign CS6 on a mac.  I have GREP styles applied to a certain paragraph style, and every time I go in to try and edit the GREP styles, ID crashes.  I have another, completely separate file, which also uses GREP styles, but so far hasn't had a problem with me editing them.  I tried the suggested solution of exporting to .idml and recreating the file, but when I try to open the idml file, ID crashes again.  Is my best option to clear my preferences?  Is there anything else I can try?

    It's when I try to edit any of the four GREP styles I have applied to that paragraph style.  If I try to edit GREP styles for any of my other paragraph styles, ID handles it fine.  I made a new paragraph style that was identical to the troublesome one (just by applying the same styles, not by duplicating it), and without any GREP styles.  When I went to delete the old one and replace it with the new one, ID crashed again.  So it sounds as though this paragraph style is what is causing the problem, but I can't seem to get rid of it.

  • GREP style for one specific paragraph

    Hi all,
    I'm faced with the following problem in a textdocument I've got to rework in InDesign.
    The text is based on 3 'groups' of information. First there is a title, beginning with:
    "1.1. Title (so two digits and a paragraph),
    a body text,
    and a source, starting with: 'source: This is the source' and
    '*: this is the source'.
    Now I want all paragraphs starting with two digits in the same style, and all lines starting with 'Source' or '*' in the same style.
    I'm pretty new with GREP, but I believe that might be the solution. Or any other ideas to to this fast and automated?
    Is there a code that specifies a style for a whole paragraph?
    All help is very much appreciated since this is a very laaaarge document.
    Thanks!

    GREP styles (which you seem to think of) only apply character styles. So that's out for entire paragraphs.
    woutergeeftvorm wrote:
    Now I want all paragraphs starting with two digits in the same style, and all lines starting with 'Source' or '*' in the same style.
    Select all text and assign it your Body text paragraph style. Then use this in the Find/Replace dialog, GREP section. Find:
    ^\d+\.\d+
    Replace: leave blank, but select the name of the title style in the Change To formatting fiend.
    Press Change All. Done.

  • Grep style positive look behind

    I am trying to create a grep style in InDesign CC 2014 to make anything after an em space a certain character style. I have come up with
    (?<=~m[[:punct:]]\l\u\s)*?
    but it doesn't work. Must contain punctuation, spaces and words.
    Any suggestions would be appreciated.

    The correct look-behind for the em space would be (?<=~m) and what you want to find goes outside of that. (?<=~m).+ will find everything after an em space up to the end of the paragraph. (?<=~m)\S+ will find up to the next white space (so the first word following the em space). (?<=~m)[^~m]+ will find everything following an em space up to the next em space.
    It's not really clear to me what you are trying to do here. It's also not clear why you think you need a GREP style rather than a simple nested style.

  • How do I apply a grep style to the plus (+) sign?

    I was able to apply a grep style to the minus and equal sign, but not the plus sign "+".  It appears the plus sign means 'apply to all' in the grep style box.  Can some assist me with this? Thanks in advance.

    Thank you. It worked perfectly.

  • How can I apply a GREP style to a text variable?

    Hello everybody,
    I have a question concerning GREP styles inside Paragraph styles.
    1. I've created a text variable to generate a recurring title on the upper side of the page based on the main title paragraph style;
    2. The recurring title is in Adobe Garamond Small Caps, all letters in lower case, and it is formatted with a paragraph style sheet in the master page;
    3. I want to create a GREP style for the recurring title, according to which every time that in the recurring title appear an apostrophe or the double quotes, they are automatically lowered 2pt on the baseline
    (I already created the character style sheet that lowers letters of 2pt).
    What I need is the correct GREP formula to automatically apply the character style sheet to apostrophes and double quotes, in the line of text generated by the text variable...
    Thanks for your  help
    p.

    Hi,
    As I said, using Power Headers is the best way to do it.
    As Power Headers treats the header as "live text", you can use a simple grep style inserted in the header para style:
    … to obtain:
    For the sample, I use a char style named "-2pts" with Shift -5 pts and Green color to show you the place of ' and ".
    Don't forget that, even Power Headers treats the header as "live text", you only have to update Power Headers to make an update of the headers! 
    Even I use in another cases Tomaxxi's [JS] and it's a good way to treat the question, Jean-Claude Tremblay's solution is less interesting because the variable used is converted in text. If the variable text content changes, it's more complicated to manage the update!

  • Can't move one anchorpoint to another anchorpoint accurately anymore in Illustrator CC 2014. No problems in former versions. Any idea?

    When I want to put an anchorpoint of one object on top of an anchorpoint of another object it jumps off the position I would like to put it. Other versions never had this issue! I need to work very accurately for my designs! Illustrator CC 2014 has this problem.
    Snap to grid, smart guides, etc putting on or off, doesn't help...........
    I pay monthly quite an amount of money for Illustrator. I don't want to waiste any working time on solving problems occuring after updating. I have no need of new features "to fluff up Illustrator" , I need an efficient programm to work with!
    Sorry for being so annoyed, but las Friday I chatted with Illustrator helpdesk, which also cost me a few hours of my working time! I need to work...not to keep spending time on tutorials, solving new problems and finding things out! That is not what I pay for...sorry Adobe!

    jolieu,
    In cases like this, the first guess is Align to Pixel Grid.
    You may select everything and then untick Align to Pixel Grid in the Transform pallete, and also untick Align New Objects to Pixel Grid in the flyout options.
    You may avoid document types with that as default (RGB for web and the like) or change the default for such documents.

Maybe you are looking for