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.

Tags: InDesign

Similar Questions

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

  • 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

  • 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.)

  • Grep style short (non-greedy) modifier ignored

    I'm looking for confirmation of a possible bug I've had problems with InDesign version 5.5 upwards through the DC 10.0.0.70.

    What I'm trying to do is apply a character by a rule of grep style in a paragraph style that matches all through the first colon in a block of text. The goal is to make this text bold. My rule of grep is

    .+?:

    which means corresponds to one or more of any character, the shortest correspondence (non-gourmand in the terminology of grep), followed by two points. But the non-greedy modifier is ignored and it does match the text up to the last two points.

    Here is a screenshot.

    Screen Shot 2014-10-02 at 5.05.14 PM.PNG

    I came up with a work around, but it would be nice to make it work properly. I will report it as a bug if others confirm having the same problem. Thank you.

    It works just like it is supposed to - you aren't limited to the first occurrence of the colon, so it matches the first string through the first colon, then matches the following string until the second colon and so on.

    If you want to apply from the beginning of the paragraph to the first two points, you can use ^. + ? :, but it would be much simpler and more effective to use regular nested style through two points 1.

  • About GREP Style (2)

    Hello

    Imagine the following line and how I want to treat:

    "It is on the left side a bwatertiful blEU House with pink you'llow doors and windows. On the right side, we find a beautiful green horse black stIArs and a pue roof rpl! »

    What I mean: some words where the vowels are in bold, somewhere the consonants are in bold, but you can not systematize it.

    In this case, a way to speed up the process to deal with every word? Thanks in advance!

    Piece of cake. He needs 2 character styles (well, one if you want everything is the same: "BOLD") and 2 styles GREP, as well as two invisible characters that you can easily insert without interrupting the flow of regular text. I used "End nested Style" (~ h) and "Non-Joiner Invisible" (~ d) here. the two have no default keyboard shortcut, but those are easily added if you do a lot of them.

    GREP Style 1: [aeiou](?=\w*~h)

    GREP Style 2: [bcdfghj-np-twxyz](?=\w*~j)

    ... I wonder how correct it is to insert 'y' is the consonant or a vowel list. It is not a vowel in "yellow" is? If there is something simple, such as "It's a consonant followed or preceded by a vowel", you can add a style fat isn't (or in my example is not highlighted, by cutting the underscore) for

    (?<>

    (Just thought of this after you have created the image below. He works for switching * off * for vowels, but not for * on * for consonants. Maybe that has need of a 4th GREP).

  • GREP Style question

    I need help with a formula of GREP styles.

    My customer needs to put in the form of specific letters within a word in all uses, so my solution is to character styles applied via the number styles, GREP styles. I don't know the formula to use, however.

    Say the word is "ThisBrand", and character styles should be applied to the "s", "B" "a" and "n". Do you know that can GREP I use in the paragraph style?

    Hello pariah Burke,

    You want to use a grep style (s) only on the word Thisbrand?

    Try this:

  • Questions to copy text, including GREP styles

    Hello.

    I have a block of text, which contains text formatted with styles, and a particular style by contains a GREP style, making a certain word "BOLD" and colored.

    When I copy this document to a new document that does not contain the styles, paragraph styles are made, but the character GREP style is not fired.

    If the character style in the receiving document, then all is good.

    Is this normal? I was expecting the character style that is attached to the paragraph style to be included automatically in the target document.

    Is there a way to get around this? I want to make it as perfect as possible, but for now I need to make sure that I have loaded before as I have paste the character style.

    See you soon


    Roy

    It should not. Try trashing the prefs - see replace your preferences

  • GREP styles - excluding whole words

    A project of datamerge we were experimenting GREP styles to see if we can get the text to change the names automatically.

    We basically data that came with "Firstname Lastname" in a few places. In only one of the occurrences we want to remove 'Lastname' then thought we would experience a GREP style for this. We use a character with a fill of none style to achieve.

    So we have "Dear Firstname Lastname," and you want to make a style of GREP that is just "Lastname", but leaves the "Dear" and "First name" single. Targeting "Dear" and "First name" with a GREP style was easy. "Dear\s\S +" is "Dear" followed by a space, followed by anything that is not a space until it reaches the next space. However, applying the same logic to exclude it was not so easy.

    We tried a postanalyse to say look for "Dear" followed of a Word and exclude them, then apply the style to the rest of the line. We started with (? < = expensive) \S+ who worked to exclude just 'Dear' and apply the style to the rest of the line, but when we added the rest of the expression to create (? < = Dear\s\S +) we got nothing? We were able to get (? < = Dear\s\S) \D+ to work. It excluded "Dear", more space and the first letter of "Lastname", but we can't seem to find a combination that will include the whole second word ("Firstname").

    Maybe it's that there is an even easier way to do that simply target the first two words of a paragraph, but we have not been able to find a way to do either. Maybe we're just too ask many GREP styles and it is not possible... but we approach!

    I know it's probably easier to address this issue in the data by doing a new field in advance, but we don't have that luxury this time.

    Thanks for the pointers that anyone may be able to give.

    Steve

    OK, I guess that I do not take your sense of the first time through. Can I use the deprivation of sleep as an excuse?

    Of course, that's just my opinion, but I think that if there are some styles to make, either nested or GREP, we should limit the paragraph style so that those paragraphs that would be greetings, even if it means using a realtionship of style based on the isolate. Given the description of the problem where the paragraphs seem to begin with 'Dear', I'd be willing to bet that there no cases of paragraphs in this position in the merger that doesn't start like that.

    And I really don't like your solution.

  • Beginner GREP style: matches a sentence

    Hello

    I am learning all the wonderful types of styles available in InDesign for a project I'm working on that. I use InDesign CS5. I have a fundamentally just character style characters become smallcaps. I want to use this character as a GREP style style in a paragraph style.

    In the paragraph, if there are strings that match "mm" or "ct" or "ct tw", then use this style of character smallcaps.

    I had the 'Text' field to say: (mm | TB | tw).

    The problem is that I have words like "twin" in the paragraph that I don't want small caps have an impact, so I want to say something like (mm | TB | ct tw), but it does not work.

    I know I can just do a second GREP style for 'ct tw', but I hope there's a way to do it in a single statement. I'm sure that it is a very simple syntax, but I'm completely new to GREP, so pointers will be greatly appreciated!

    Thank you!

    In the biz of jewelry, are we?  I think that this expression should work: \b(tw|mm|ct)\b (feel free to change the order in parentheses). the \b is a word boundary, so it will match only if there is no other character on each side.

  • 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

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

  • GREP style sheets styles vs

    I've had a lull at work and decided to work on my list and start learning the GREP so that I could use GREP styles.

    The first is a simple one: [[A - Z] [A - Z] \S+?] He finds something inside the brackets that begin with two capital letters. I know it works because I can find no "[MT2]" in find/replace.

    OK, so I try in a text of cs5 ID with my first GREP style. It fails to the vast majority of the time. So I try a lot of different things to see if I can find a model of what works and what does not. I tried just the local formatting of a solitary ' graf. I tried to make character and "stylesheets graf incorporate a GREP style with the new character style, for example"change color in green type".

    I've looked through the forums and can't see any others with my problem there must be something about me or my document. I used other documents to eliminate this variable. I went through tutorials and stuff to David Blatner and don't see anything I'm doing differently.

    When I format text to character and "graf stylesheet, it fails. BUT when I change the stylesheet of the text source "[None]" characters it works. I tried from text which is "[None]" and a ' graf normal style sheet, it works.

    But from text styled with "[None]" character and official "graf stylesheet with a GREP Style, it fails. But when I change the "[graf stylesheet to] [' standard paragraph]' it works."

    I'll try to find a model here, so to speak, and the only thing that has a chance to succeed attaches the stylesheet of character to 'None '. I don't see that anyone using GREP styles is having problems as I do.

    What do you I'm dominant? I spent today trying to find what works and does not work. As it is, I can't recommend it to my co-workers.

    Golden rule to apply styles is the Basic for all of paragraph formats should be defined in the paragraph style. If some bit of text should be in the format differnently then you apply a character style (or, if you must, a substitution of local formatting). With the nested Styles and GREP, ID has very powerful tools to apply character styles to text selected in the paragraph style definition. Most of the programs do not have this capacity.

    If you apply the syle of character as a nested or style may find/replace, or just GREP in manually by selecting the text and using the style? The answer will depend on a few variables. The particular string must ALWAYS have a particular attribute set, what happens? Find/replace or local selection is the way to go. Applied character styles this way will survive even if the underlying paragraph style is changed to match the style of character, then again changed. If the style should be applied to a string in a particular position in a paragraph, even if this position can move a bit, a nested style is probably the way to go. If you want to make changes to the text that corresponds to a particular model, whenever he falls, when the surrounding text is a particular style, a style of GREP is the answer.

    GREP styles are very powerful, but they also use a lot more in terms of resources that the application of a style of character using other methods. I've seen reoprts ID get bogged down by too many GREP styles.

  • Any attempt to create a GREP Style

    I'm doing a GREP style to one of my paragraph styles, which will take the text from the beginning of a line to a colon and define a character style to it for "BOLD" in this part.

    Example:

    Step 1: Take bread

    Step 2: Take peanut butter

    Step 3: Spread over peanut butter bread

    I don't think I got the syntax right.  I put ^ \:~h and ^: ~ h in the box ' text', thinking it meant "beginning of line until character ':' and at the end", but none of those who gave me the results I want.  Thanks in advance for the help!

    Your trial:

    ^\:~h

    1. you need to escape from the colon. It is one of the few characters who don't not need to escape and make them literal. (It doesn't hurt, you mind, but cleanliness etc..)

    2. you don't need a ~ h - you only need that if you want to scan up to a manually "nested in the Style end here" code.

    3. you need to allow a couple of characters between the beginning of the line and the colon. You can use the wildcard character 'not at all' (and use the shortest match, because otherwise it will engulf all until the last colon):

    ^.+?:

    or be literal and don't allow 'Not' and a single digit:

    ^ \D step:

    Either one will work for you.

Maybe you are looking for

  • 6s 9.3.2 IPhone not charging

    Hello! Sorry for my English! After I updated my Iphone s 9.3.1 to 9.3.2 6 I have problem with load. My iphone recharges up to only 1% while the cable connected. If I unplage cable - iphone turn off for a few minutes and he's trying to turn itself (I

  • Satellite click Mini L9W - B - overheated

    It's over heated anyone know what I can do to fix this or if it sets itself once cooled it won't continue for two days and it turns on just them black screen even once, I sat next to heater and he just had to I didn't know what could happen because I

  • Satellite A10 works on AC adapter but the lights are on?

    Hi, everything was fine... until I put the champions league final on! My phone was on and fine, I then put an installation disc (AXIS AND allies)-it to half way through and it stopped - no power left in the battery! Well it would have been ok, but it

  • hide the subVIs making them .dll

    I know I read somewhere on how to do it, but I can't seem to find the detachment.  Anyway, I have a project that I want to deploy, and it contains several classes that use the legacy.  If the application builder creates several subdirectories with al

  • RV180 VPN route all internet traffic via IPSec VPN

    Hello I install my RV180 to VPN to our headquarters Fortigate 60 C. It works really well My only problem is that I don't know how to move internet traffic on our remote site by Headquarters. We want to use this technique so that all sites have the sa