GREP Styles and Changing Ligatures

Hello,
I have been using InDesign since it came out, and have great results. However, I am brand new to GREP, and was wondering if a script could be made/written(?) by me (a person who does not understand script), to do the following:
I have tons of copy, regularly, with a number of different ligatures in it. One (of the many, the fi ligature) causes the client to cringe. Is it possible to change this ligature by - turning off - the fi ligature only? Because I am out of the old school, I appreciate ligatures, and tight kerning.
I realize, I could just turn off ligatures, but, would rather not.
Thank you,
Lain Kennedy

A character style whose only property is no ligature, used as a GREP nested paragraph style, is certainly the best approach. However, if the ligature appears in many different paragraph styles, it might be possible to change them all in one operation by creating a paragraph style that duplicates (not based on) [No Style] - that is with no properties set - and create a GREP nested style for it that applies the no ligature property to fi. Then set each paragraph style to be based on this no-fi-ligature paragraph style.
I haven't tested this to see if this really works. Character styles are supposed to supersede paragraph styles, but perhaps not in this scenario.
HTH
Regards,
Peter Gold
KnowHow ProServices

Similar Messages

  • Using GREP styles for changing characters and colors

    Hello everybody,
    I have a question regarding GREP styles. I wish to change each letter of an alphabet in text to a square in a different color. For example: every 'a' in the text change to a yellow ■. I thought GREP styles would be perfect for it so I went to find/change, typed in my requests and InDesign told me it has found no 'a' in my text, which isn't possible. How do I fix it? And the other thing- is it possible to change the color of ■ ? Because i couldn't find the option.
    Please excuse me my incompetence, I am a new user of InDesign.
    Thanks in advance for your help! : )

    First off, it sounds like you want to use find/change with GREP, which is fine, rather than a GREP style, which is part of a paragraph style definition and cannot change the text in any way other than apply a character style to the found string, so would not help here.
    The not finding the text makes me think you've limited the search parameters in some way, either by limiting the scope to a selection, or by including a style or format requirement in the find options, perhaps.
    In order to do this, I think you are going to need to make use of the "other" category in the change dropdown and select Formatted Contents of Clipboard (which should clue you in that you need to make one of your colored squares and copy it to the clipboard before you run Find/Change). You can do this with either a plain text query or a GREP query, and there is no advantage to GREP in this case unless you want to match several different things and apply the same clipboard content to any of them.
    You'll need to run a separate find/change for each colored square. It might be possible to script a chain so it runs in a single operation, but that would also require swapping the colored sqaures on the clipboard which complicates things in this case. You might want to ask over in scripting: InDesign Scripting

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

  • Grep styles and bullet points

    Is there a way of using GREP styles to insert bullet points on text after a specific heading has been detected?
    I am working on a brochure where many of the pages will have a features section, so am reluctant to manually overide paragraph styles. The "FEATURES:" heading will always stay the same, the text within the bullet points will change.
    At the moment I have the following layout...
    FEATURES:
    test1
    test2
    test3
    test4
    What I am hoping to achieve is this...
    FEATURES:
    test1
    test2
    test3
    test4
    I haven't used GREP styles before but from looking round it seems the most obvious feature to use, so if anyone has an alternate solution that'd be great.

    Header should be a paragraph style on it's own.
    Use a hard return not a soft return for a new paragraph http://indesignsecrets.com/dos-and-donts-of-text-in-indesign.php
    Bullet should be a separate paragraph style.
    Apply that style to only bullets
    Set a Character Style for your Bullets, which can be applied through the Bullet paragraph style.

  • 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

  • Use Grep Styles to add multiplication symbol.

    Hey Everyone,
    Has anyone used grep styles to change 5x6 to 5×6?  I tried to do it, but the dialog box to create a grep style is the character style dialog box. But, I am unable to enter a glyph. Now, I can use the find and search for \d+x\d+, but it will find 5x6 and change it all to × instead of changing the "x" only. I would hate to have to search for "x" in a document. Just trying to find a way to change "number 'x' number" to "number '×' number."
    Thanks,

    Or you can use (?<=\d)x(?=\d)  [that's a look-behind/lookahead withthe x in the middle] and apply a character style to scale and shift the x. GREP styles cannot change the glyph used, only the formatting.

  • Grep Styles/Nested Styles from the end of the paragraph

    Hi -
    It appears that grep styles, and nested styles only allow you to apply styles from the beginning of the paragraph until the match.
    I'd like to be able to apply styles from the END of the paragraph going back.
    This would allow me to apply a non-breaking character style to the end of a paragraph to control "runts". You could make the last two words of a paragraph non breaking, or set a 15 character threshold.
    This wouldn't work for all cases, but I'm working with centered, non-justified text, so it should work fine. If the feature were there.
    I'm sure there are other things one could do with it as well.
    There's a good discussion, and a MANUAL work-around on
    http://pdsassoc.com/tipsCS/DeruntingParagraphs/index.html
    Tom

    I used your suggestion and reviewed the tutorial again.
    Sometimes a missing piece of info drives you nuts.
    Thanks again.
    My clients will love this enhancement.
    CS rocks.

  • GREP find and Style

    It is some thing I get quite a bit of, I import text unstyled, into ID!
    I then do a search for a [A Head] leader to a para and change to "A Head"  para style!
    You get the drift I am sure But... what if get a [Bullet] para return, a list of text to be styled followed by [End Bullet]
    Can this be done with GREP?
    It could make a big difference to my make-up time
    Regards
    Lou

    I ws wondering If my question was a bit cryptic!
    What I am doing is importing authors text into the document, I am working on.
    The text is not styled but the required styles are flagged with [A Head], [Body Text] [C head], etc.
    What I then do is search for these flags, I search for eg.
    [AHead]Resources
    then change the hilited text to my style for A Headings, which makes the whole paragraph a A Heading. I do a "change all" and all the A headings in my document are styled.
    The problematic (for me at least) is when we come to eg. Bullet text this will be flagged so
    [bullets]
    Recall information
    Organise or reorganise knowledge
    Use information in a new way
    Critically evaluate scientific information
    [end bullets]
    Is there a way of searching for text between those flags and applying a style to it?
    Looking for help

  • Grep that finds curly quotes and changes to straight ones, but only after digits....

    Hello
    I am trying to find all the curly quotes that follow numbers and turn them into straight quotes.
    I am going to try and put this in a GREP style eventually, but in the meantime, I was testing it with find and change.
    Here is what I did......but it doesn't work.
    For the Find what- I did a positive look behind to find a digit and then pasted in the curly quote
    Fort the change to-I found the Unicode value for the straight quote.
    But it didn't work ;-(
    any thoughts out there!!
    babs

    Well, I'm no Engineer, and I suppose it would require all the font
    manufacturers to rebuild the fonts to handle it the same as small
    No...given that All Caps, is handled by InDesign without special
    font support, this feature could work the same way. A Character
    panel option (like All Caps) that Forces Straight Quotes.
    Or maybe that was your point. (?)
    It can certainly be done.
    Question is merely whether it should be done.
    But how much worse can it get than all those airplanes falling from the sky
    How could you ask such a thing? Surely having the entire universe
    sucked into a rift and enveloped in eternal blackness without sunshine,
    light, or heat is far worse than a few aluminum chassis falling into the
    ocean and there being no power grid to run InDesign unless you purchased
    the hand-crank version!

  • Grep Styles - Conflicting - "^" not working in lookbehind and more

    Hi,
    Still fighting my way in the jungle of paragraph grep styles.
    In InDesign CS5 by the way.
    I import text from DB and they all come in the same.
    I need to use the same paragraph style to all paragraphs.
    I really don't want to use find-change since that would mess up the xml holding the data.
    Example-text explanation:
    • All sizes are separated by ", - "
    • …… = tab
    • Not all rows have tab
    • Sizes can be both numeric, letters, contain "/" and "-" and """ and " " (space) and yes indeed a "," comma!! (and every other idiotic combination you culd think of.)
    • When only 2 posts in a row - should be separated by a ", " = (Comma-space)
    • When more than 2 posts i a row - all posts but first and last should be hidden and separated by " - " (space-dash-space)
    I have tried numerous combinations to get them all but they always conflict with each other.
    Bugger!
    I really shouldn't be impossible.
    Is it possible in Paragraph grep styles to "catch" "any character but these" and kind of make a character-set like [!not this character]   (= [!a|b|c]  )
    Is it possible to count the number of posts in a row? ( like... if more than 2 then hide...bla bla)
    All sizes are separated by the same ", - " and sometimes I want to hide them, and somtimes I want to use one of them...
    Is there any kind of "if-else" thing that can be used??
    My original idea was to be able to catch them by using ^-combinations for beginning of paragraph and matching with tha linebreak and tab but it seems as if that don't always work when using positive or negative look-behind-ahead.
    Oh, I'm blabbering. Sorry.
    Any hints or pointers would be greatly appreciated.
    /K
    A) Got this - Original text
    Same text but this is my Goal!
    134/140, - 146/152, - 158/164……….299,-
    134/140, - 146/152……….299,-
    38, - 40, - 42, - 44, - 46……….399,-
    38, - 40……….399,-
    XS, - S, - M, - L, - XL……….399,-
    XS, - S, - M, - L
    XS, - M
    XS, - S, - M, - L, - XL……….399,-
    B 70, - 75, - 80, - 90, - 95……….199,-
    B 70, - 75……….199,-
    Medium-Wide 17”, - 17,5”……….995,-
    Normal, - X-Wide……….999,-
    16 mm 95, - 105, - 115, - 125, - 135, - 145…......99,-
    16 mm 95, - 105……....99,-
    134/140 - 158/164……….299,-
    134/140, 146/152……….299,-
    38 - 46……….399,-
    38, 40……….399,-
    XS - XL……….399,-
    XS - L
    XS, M
    XS - XL……….399,-
    B 70 - 95……….199,-
    B 70, 75……….199,-
    Medium-Wide 17”, 17,5”……….995,-
    Normal, X-Wide……….999,-
    16 mm 95 - 145…......99,-
    16 mm 95, 105……....99,-
    GrepStyle
    Result wanted
    ,\s(?<=,\s)-\s.+(?=\s-)
    Red undelined text will be hidden
    (Got this)
    134/140, - 146/152, - 158/164……….299,-
    134/140, - 146/152……….299,-
    38, - 40, - 42, - 44, - 46……….399,-
    38, - 40……….399,-
    XS, - S, - M, - L, - XL……….399,-
    XS, - S, - M, - L
    XS, - M
    XS, - S, - M, - L, - XL……….399,-
    B 70, - 75, - 80, - 90, - 95……….199,-
    B 70, - 75……….199,-
    Medium-Wide 17”, - 17,5”……….995,-
    Normal, - X-Wide……….999,-
    16 mm 95, - 105, - 115, - 125, - 135, - 145…......99,-
    16 mm 95, - 105……....99,-
    Need this to not conflict with other grep
    blue underlined text needs to be hidden.
    134/140, - 146/152, - 158/164……….299,-
    134/140, - 146/152……….299,-
    38, - 40, - 42, - 44, - 46……….399,-
    38, - 40……….399,-
    XS, - S, - M, - L, - XL……….399,-
    XS, - S, - M, - L
    XS, - M
    XS, - S, - M, - L, - XL……….399,-
    B 70, - 75, - 80, - 90, - 95……….199,-
    B 70, - 75……….199,-
    Medium-Wide 17”, - 17,5”……….995,-
    Normal, - X-Wide……….999,-
    16 mm 95, - 105, - 115, - 125, - 135, - 145…......99,-
    16 mm 95, - 105……....99,-

    There are error messages in the errorconsole.<br>
    Firefox ignores the css rules because there is a syntax error at line 18:<br>
    -->> table.heading {{background-image:url('barline.jpg');<br>
    please remove one of the opening brackets here<br>
    You can go to Mozilla Developer Network to learn CSS.<br>
    https://developer.mozilla.org/en-US/learn/css<br>

  • The font i used in my KEYNOTE presentation is not available when you upload it to the cloud.  So, now my  text boxes are all messed up.  How can I select ALL font boxes of presentation and change (at least) the font style?

    I have a large presentation that I need to access from the cloud THIS SATURDAY.  Now, after uploading from my iMac to Cloud, the font is all messed up because the font I selected on my mac is NOT available on the Keynote Cloud....so capitalization is wrong, inconsistent, etc.
    Is there a quick way to select all text and change the style?  Help..I am running out of time!

    What's the URL of the page?
    In the mean time clear the cache and reload the page.

  • Find and change last paragraph style

    With .js or grep, I want to change the style of the last bullet paragraph to one with more space after, there are many of them in one story mixed with other styles.
    Change this:
    blarr blarrblarr (bullet style)
    blarr blarr blarr blarr (bullet style)
    blarr blarr change this one (bullet style)
    To this:
    blarr blarrblarr (bullet style)
    blarr blarr blarr blarr (bullet style)
    blarr blarr change this one (last bullet style)
    Can this be done? If anyone can help, it would be great!
    Many thanks!

    I reckon this JavaScript does the job. You might have to change the style names to match yours. Also, it assumes that the styles aren't grouped in a folder.
    //DESCRIPTION: Fix last bullet paragraphs
    (function() {
         if (app.documents.length > 0) {
              findFixLastBullets(app.documents[0]);
         function findFixLastBullets(aDoc) {
              setupFindText();
              app.findTextPreferences.appliedParagraphStyle =  "Bullet";
              var myFinds = aDoc.findText();
              for (var j = myFinds.length - 1; j >= 0; j--) {
                  var lastPara = myFinds[j].paragraphs[-1];
                  // if next para already BulletLast do nothing
                  var nextPara = lastPara.insertionPoints[-1].paragraphs[0];
                  if (nextPara.appliedParagraphStyle.name == "BulletLast") continue;
                  lastPara.appliedParagraphStyle = "BulletLast";
         function setupFindText(find, change, wholeWd, caseSense, foots, hidLayers, lockedLayers, lockedStories, masters) {
         app.findTextPreferences = null;
         app.changeTextPreferences = null;
         try { app.findTextPreferences.findWhat = find } catch(e) {};
         try {app.changeTextPreferences.changeTo = change } catch(e) {};
         app.findChangeTextOptions.properties = {
              caseSensitive:(caseSense == null ? false : caseSense),
              wholeWord:(wholeWd == null ? false : wholeWd),
              includeFootnotes:(foots == null ? false : foots),
              includeHiddenLayers:(hidLayers == null ? false : hidLayers),
              includeLockedLayersForFind:(lockedLayers == null ? false : lockedLayers),
              includeLockedStoriesForFind:(lockedStories == null ? false : lockedStories),
              includeMasterPages:(masters == null ? false : masters)
    } // end setupFindText
    Notice the little touch that if the next paragraph is already BulletLast it ignores that found text. This allows you to run the script more than once if you add more text.
    Dave

  • Change Styles and Skins

    Hi,
    Can Styles and/or Skins be changed by login id?
    Thanks?

    Skins can be varied at the time of user login. They can be dynamic(You can set the SKIN system variable dynamically in the repository). But styles do not have that option since styles can vary from one dashboard page to another and hence are not specific to a user.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • Is it possible to change the font style and size of the front panel title?

    Can you change the style and size of the Front Panel Window title?  I seem to have no luck.  I seem to be stuck with only 1 font/style.  I would like to use a superscript for 1 of the letters in the title.  Is this possible?  If it isn't this would be a nice feature to have in the future.  I am using LabVIEW 8.5.1.

    Things like the window title font is a function of Windows - not LV. You can change it globally, but not on a window by window basis.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • I need help writing a script that finds the first instance of a paragraph style and then changes it

    I need help writing a script that finds the first instance of a paragraph style and then changes it to another paragraph style.  I don't necessarily need someone to write the whole thing, by biggest problem is figuring how to find just the first instance of the paragraph style.  Any help would be greatly appreciated, thanks!

    Hi,
    Do you mean first instance of the paragraph style
    - in a chosen story;
    - on some chosen page in every text frames, looking from its top to the bottom;
    - in a entire document, looking from its beginning to the end, including hidden layers, master pages, footnotes etc...?
    If story...
    You could set app.findTextPreferences.appliedParagraphStyle to your "Style".
    Story.findText() gives an array of matches. 1st array's element is a 1st occurence.
    so:
    Story.findText()[0].appliedParagraphStyle = Style_1;
    //==> this will change a paraStyle of 1st occurence of story to "Style_1".
    If other cases...
    You would need to be more accurate.
    rgds

Maybe you are looking for