Loss of the GREP styles

I had created a whole list of GREP-styles and suddenly I realize that they're all gone. Maybe it happened during the synchronization of the settings, either by installing Indesign 2014. Anyone know where the GREP styles created by the user are stored? I could try to get through my time Machine.

GREP styles are the attributes at the level of the document that you should be able to load from an earlier document. Saved grep queries to search for? Change, however, are stored in the user preferences. You should find a folder named queries to search - replace in your profile or library in the same way where the preferences InDesign Defaults 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

Tags: InDesign

Similar Questions

  • import the grep styles in more than a paragraph style

    Hello

    First of all, I must say that I have no experience in scripting. I do not create scripts, simply use the.

    I have a script that imports a paragraph style grep styles to another (in the same document). Whenever I use it, I have to change the script, captures the source paragraph styles and target in this piece of code:

    source = "origem";

    target = "alvo";

    What happens is that sometimes I need to do this lots of times (especially when the updating of old projects). Is it possible to import styles grep for more than a paragraph at the same time, listing multiple targets?

    Thank you!

    Sorry,

    the variable 'source' changed during execution of the script old th. Don't have a close enough look...

    Please replace:

    function setGrepStyle(){
    var target = arguments[0].toString();
    error = "";
     basePStyle = theDoc.paragraphStyles.item(source);
    if (!basePStyle.isValid) error = 'Source style does not exist';
     var target = theDoc.paragraphStyles.itemByName(target);
     if (!target.isValid) error += '\rTarget style does not exist';
     if (error != ""){alert (error); exit()}
      gs = basePStyle.nestedGrepStyles;
     for (i = 0; i < gs.length; i++)
            target.nestedGrepStyles.add (gs[i].properties);
            }
    

    Work here, if this does not work on your machine, I'll write a new piece to add to the SNA nestedGrepStyles ship off the doScript is not really necessary...

  • Temporarily stop the execution of grep styles

    Hello

    I still bring a book with lots of texts in three languages. I have several paragraph styles with up to 10 grep styles. So my short of very slow InDesign files, I think that cause grep styles in my paragraph style.

    My question is, is there a way to prevent the grep style to run in the paragraph style without removing them?

    Concerning

    Sascha

    Hi Sascha,

    Add an asterisk in front of the GREP expression: *.

    Uwe

  • GREP style - applies to some extent

    Hello

    We run a catalog with products that are often part of their range excluded, and the style for the product descriptions is to have everything after the word "exclude" in italics.

    We use a GREP style Excludes(.+\n) *. + \r to apply the italic word "exclude" from, and it works fine.

    For example, we can have a description like "company name cheese slices 250 g slices of low fat does not include", so our GREP style applies the italic style on just "excludes Low Fat slices '."

    A new situation happened where there is perhaps now some content that appear after the text "excludes" where we do not want the italic style applied. The new text will be always start with a dollar sign, but I can't work on how stop style GREP right here.

    So the description can now be "company name cheese 250 g sliced Exclut Low Fat slices $1.50 each or'.»» "We want the ' excludes Low Fat slices" to be picked up and italic with the GREP style, but don't want the ' $1.50 each or "at the end to be affected. We want to stay in the original style, unitalicised.

    I guess it's a matter of telling the GREP style to arrest whenever he meets a "$" after "does not understand", but I can't get out.

    Is it possible to do?

    Thank you

    Steve

    Is this the first time that appears a $? If If you can use a second GREP style to apply [no style] to the $ and following.

  • In my GREP style, I want it to find another / (slash) in defined glyph

    Hello!

    I have a GREP style that I used to find fractions and it works fine.

    The question now is, we will not use the standard / in the set of glyphs, but another. This is a unique integrated into the police.

    It's the GREP style part I find her.

    ( ? < =\d)/(?=\d)

    Now, I need to replace the symbol between the 2 sets of parenthesis, the sound thing actually apply a style of character, to a unique symbol of the search in the set of glyphs, but I don't know how to replace it. I tried to copy and paste, but it did not work.

    Is there a way to tell a GREP Style to find a GLYPH UNICODE or GID number?

    So, it might look more like this:

    (? < = \d) GID217(?=\d)

    Thank you

    Babs

    I think \x {} is the correct syntax to refer to a unicode value.

  • Point to add to the script or Grep Style?

    Hello

    Is it possible to add a hightlight to a script?  Basically, what I want to do is highlight the text and the tricky part is that the text changes size depending on the size of the file, we are working on that.  I want to highlight automatically the "FOR PROFESSIONAL USE ONLY" the way that we do now is to underscore that in the menu options underscore: say my font size is 8, leading 9.6 (these will always change).

    Weight: = 9.6

    Shift: = - 8*.33

    Color = yellow

    It's the way we do now.  Can it be scripted or Grep style which will automatically do this for certain lines of text only?  And no matter the font size calculate what he needs to do if its 2pt, 10pt 100 PT etc... It will highlight the text specified correctly?

    I hope it's possible...

    Thank you

    The lower one is best.

    I remove a bug and also if not 'what' is provided to the point function culminating and there is no entry in find it which is the find panel of text and text is selected, then this text is highlighted.

    An idea in the script is that a shortcut can be applied to it and it will get its information from the Panel of text search.

    So for now to change the answer to this one

    // Highlight function by Trevor
    // http://creative-scripts.com
    // Custom Scripts for Adobe InDesign, Illustrator and a lot more
    // Beta Version 1
    // https://forums.adobe.com/message/8898663#8898663
    
    function highlight(what, color) {
        var range, s, doc;
        doc = app.properties.activeDocument;
        if (!doc) {
            return 'No Active Document';
        }
        s = app.selection && app.selection[0];
        range = (s && s.properties.underline !== undefined && s.characters.length) ? s : doc;
        app.doScript(f, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, 'Highlight Text');
    
        function f() {
            var finds, find, l, leading, pointSize, currentChangeProps;
            color = color || app.activeDocument.colors.itemByName('Yellow');
            // Store current find change text settings
            currentFindTextWhat = app.findTextPreferences.findWhat;
            currentChangeProps = app.changeTextPreferences.properties;
            what = what || currentFindTextWhat;
            if (what !== '') {
                // if no what is provided then the current entry in the find text panel will be used
                app.findTextPreferences.findWhat = what;
                app.changeTextPreferences.changeTo = '';
                app.changeTextPreferences.underline = true;
                app.changeTextPreferences.underlineColor = color;
                finds = range.findText();
                range.changeText();
                l = finds.length;
                while (l--) {
                    find = finds[l];
                    leading = find.leading;
                    pointSize = find.pointSize;
                    leading = pointSize * find.autoLeading / 100;
                    find.underlineWeight = leading + 'pt'; // This is presuming that font and leading size is set to points!
                    find.underlineOffset = (pointSize - leading) * 1.5; // The 1.5 might need tweaking but seems to work well
                }
                app.findTextPreferences.findWhat = currentFindTextWhat;
                app.changeTextPreferences.properties = currentChangeProps;
            } else if (range !== app.activeDocument) {
                leading = range.leading;
                pointSize = range.pointSize;
                leading = pointSize * range.autoLeading / 100;
                range.underline = true;
                range.underlineColor = color;
                range.underlineWeight = leading + 'pt'; // This is presuming that font and leading size is set to points!
                range.underlineOffset = (pointSize - leading) * 1.5; // The 1.5 might need tweaking but seems to work well
            }
        }
    }
    
    /***************************************************************************************************************************************
    ** If text is selected then the "highlighting" is only applied within the selected text                                              **
    ** Otherwise the "highlighting" is applied within the whole document                                                                **
    ** One could change this to apply to what ever is selected in the Find text document if one wanted to                                **
    ** To highlight the word(s) in the find text panel just use highlight(); or highlight(undefined, app.activeDocument.swatches[5]);    **
    ** One can use highlight('Foo'); to highlight "foo" and ignore what's in the find text panel                                        **
    ** The formating / styles etc. for the find are taken from the find panel                                                            **
    ** If one provides a swatch as the second argument highlight(undefined, app.activeDocument.swatches[5]); that swatch will be used    **
    ** otherwise yellow will be used                                                                                                    **
    ** If one provides a swatch as the second argument highlight(undefined, app.activeDocument.swatches[5]); that swatch will be used    **
    ** If text is selected and what argument is given and the find what in the find panel is empty then the selected text is highlighted **
    **************************************************************************************************************************************/
    
    highlight();
    
  • GREP style - apply character style to the opening and closing parentheses surrounding a 0 (but not 0)

    Hello

    I'm relatively new to GREP style and will have to put in shape about 600 postcards containing various data (via the merger of data), including phone numbers. Consider the following data set:

    1. + 44 (0) 123467800

    2 (©) copyright

    3. (name of the program)

    I want to tell Indesign to stagger the opening and the closing parenthesis of the baseline (with a character style), but only the bracket that include a 0 and, possibly, without affecting the 0 value between them.

    Seems like an easy task, but it is impossible to find a solution. Could someone help?

    Thank you very much

    Antonio

  • remove the grep in paragraph styles

    Hello

    I added grep styles to my para styles:

    for (var i = 1; i < myParaStyles.length; i ++) {}

    var myGrepStyles is myParaStyles [i].nestedGrepStyles.add ();.

    myGrepStyles.grepExpression = '. '. (?=»)";

    myGrepStyles.appliedCharacterStyle = myDoc.characterStyles.itemByName ("Stylename");

    }

    in a new version, I have to get rid of these grep styles. Replacing the stylename with "[None]" does not, and removing the style isn't a solution either, as it could is used somewhere else.

    any ideas?

    Thanx

    You can remove GREP styles:

    myParagraphStyle.nestedGrepStyles [0] .remove ();

    If there are two or more GREP styles in a paragraph style, loop through them.

    Peter

  • GREP style: Find all the letters between

    I am trying to create a GREP style to deal with a signature of two lines like this:

    -Name of the author,

    Source cited

    I want the name of the author to be caps/sc and the font that I use has an established expert, so I need to replace only the lowercase characters of the name of the author with the sc. character style

    So far, what I did is creat a character style that is defined as the Roman. I then to my grep styles:

    peps.jpg

    The italic style applies to the 2nd line (after a forced line break) very well.

    However, I can't do it sc style to apply to my lc between the em dash characters and the comma. I can get the sc to be applied to the whole line, if I use '. ' for any character, but "\l" does nothing for me...

    Someone at - it advice?

    Thank you

    Chris

    Thanks for the help. You led me in the right direction.

    I was doing too complicated and I still don't have a firm grasp on what GREP may or may not do.

    I solved the problem with GREP styles:

    The reason that I can't apply sc for the first line is because the font I'm using is old and includes a set of expert. In police expertise, there are only small capitals. Strikes in uppercase are reserved for the factions, currency symbols and other glyphs not standards.

    Best,

    Chris

  • Style GREP in the paragraph style

    I am wanting to create a GREP style that uses a character style. Whenever certain words (no classes) appear followed by dates. Sometimes, it's a unique and sometimes more than one date. For example:

    No class 7/11.

    No class 7/11-8/11.

    What I have so far is:

    No class \d+.

    It works very well through the words 'No class' and the first digit, but not for the whole sentence. I tried different combinations, but nothing works.

    Can anyone help?

    Jay

    The first expression grep in your screenshot does not work because you have added / /, which I should have mentioned should be omitted (including all spaces preceding) - sorry about that. It should read this:

    No class\s [-\d /] +.

    The hyphen is necessary to match the dates like 7/11-8/11.

    As the level of positions with dates and parental guidance optionally, this one works on your example:

    \d[-\d\. My] + [my] (, demands. +)?

    which is a little more secure that Reese, it's because it requires that the date ends in M or y. The? Suite (, requires) makes between it brackets in option. Remember that grep is case-sensitive: If your months can be tiny m thus, use [-\d\.] MMY] for your character class. You may need to tighten the grep to match the dates according to the formats possible.

    Peter

  • Is it possible that the text Variables can be sensitive GREP style?

    I grep styles defined within a paragraph style and they apply to everything correctly except for one repetitive text variables?

    Is this a limitation of the software?

    Yes, the composition engine handles all conent of the variable as a single character. For the same reason the content of a variable cannot break and crushed to two lines.

  • Trouble with Grep Styles

    I'm trying to set up a grep style in my paragraph styles.  I am wanting this to "BOLD" or chemicals that it will not be because of the () is there a way to do this "BOLD" in a grep style?

    any time you need a character that she also an operator in GREP, you can escape it by using-in front of her

    chemical\ (be)

  • The information means the number on the bottom of the Panel Styles of character?

    Character Styles panel displays the tracking number of a Style name on the bottom bar of the Panel for a text selection.

    The "None" character Style is applied to the text selection.

    See screenshot for example:

    CharacterStylesPanelExample.jpg

    The information means the number on the bottom of the Panel Styles of character?

    In the paragraph style is probably a use of character style defined in the styles nested Styles or GREP.

  • Following style and same style. Is there a way to get my styles to switch to the first style?

    I found a similar question here using "next style" with the same paragraph for more of a paragraph style, but my dilemma is that repeat (or style) paragraphs will not always be the same number of points. Is there anyway, in a text, to have my Styles somehow same cycle to the first Style? Perhaps with some sort of special marker or GREP? Thank you in advance.

    Screen Shot 2015-11-05 at 10.42.17 PM.png

    Not automatically, as far as I know.

  • Find whole words with Grep Style

    Hi, need some help with this, he cannot know.

    I need to find some words in the style of a paragraph. I have created a character style to 'be bold' and you want to paraghaph style 'ainesosat' to use it when there are words in the paragraph.

    the words are for example

    Rasvaton maitojauhe

    Maitojauhe

    Juustojauhe

    Kerma

    VOI

    I know I can find these with this string:

    Rasvaton maitojauhe | Maitojauhe | Juustojauhe: Kerma. VOI

    but I don't want to find for example:

    Voimakassuolainen

    -includes "Voi".

    Also the words could begin with capital letter or not. I can of course dublicate chain and do both, with or without capital letters, but if there is a better solution for it, I'd be happy to hear...

    Tero

    1. add parentheses and word limits:

    \b(rasvaton maitojauhe | Maitojauhe | Juustojauhe | Kerma. \B voi)

    2. Add the flag "ignore case" at the beginning:

    (? i) \b(Rasvaton maitojauhe | Maitojauhe | Juustojauhe | Kerma. \B voi)

    See InDesign help | Find/replace for GREP options. You can use almost all the search commands in a GREP style, but does not replace those. ('Almost', because a GREP style, by definition, is limited to a single paragraph to work, and tempting to cross paragraphs automatically him will fail.)

Maybe you are looking for

  • Malicious site asking Apple ID

    I am posting this here because I hope in some the message will get to someone at Apple and they may have more success in the action on this subject than me. I received an email telling me someone tried to access my Apple account and I needed to conne

  • sound of folio 13 HP does not work

    Hi I have a HP Folio 13-1000eo pc, recently, I dropped it with my headphones still in making to THE and unfortunately he landed directly on decision-making who pushed into the auxiliary voltage now my speaker or to THE works, so I opened and took a f

  • S400 U boot failed

  • Effectiveness of the Cartesian to spherical coordinate of the conversion

    I use a VI in the LV 2014 distribution called ".vi NI_AALPro.lvlib:3D Conversion of coordinates (scalar)". It uses DBL inputs and outputs and has several functions of table build in it as a library function call. I need to make a massive number of Ca

  • Helps the Composition Widget

    I use a widget Element (empty) to create a context menu.  It's at the top of the Master Page.  However, when I place the content on another page and assign the master with the widget, the pop-up appears on the content when triggered.  He played in th