Find/replace paragraph shading

I have a project submitted by a designer and somehow most of the paragraphs have a + after the style and it's because the shading of the paragraph has been changed. No paragraph shading is turned on everywhere, so I would like to get rid of all the + s, but I don't see a way to search and replace paragraph shading.

Hello

By Javascript!

See: Re: what are the paragraph properties that control the new paragraph shading option in CC2015?

Tags: InDesign

Similar Questions

  • GREP find/replace + paragraph Styles

    Hello

    I'm editing a long document and have benefited from the assistance of the community already, but being new GREP Style, find/replace, I need to ask for additional help.

    Below a screenshot of the script (original). Two blocks of text you see anticipated by the icons have have styles of different paragraphs. Icons are placed like custom glyphs.

    Now, the last line with C2, 9, 14,... is the target of this post. They are buses of London and I created a paragraph with another icon. The copy that I work with unfortunately is as you see. Buses will follow «;»

    Resulting to place a \r after the semicolon and assign the new paragraph style. The item to work with is (probably) the last "," before the registration of the bus. All entries have it in the same way, where a search/replace global grep should work fine.

    My attempts:

    I used of a previous debate (? < =------;)) [^ ;] + $ to match everything from the end until the last semicolon, but then I found the problem preserving the matched characters and placing \r (using the (? < =-;). start at the beginning and stops at each point comma + space)

    So question: how to stop at the first semicolon at the end and replace the space with \r to create a new paragraph?

    Then, it is two question :-)

    From my previous attempts, I noticed that when you replace the semicolon + space with \r, and change the style of paragraph at a time (from Rail to Bus) caused the Rail paragraph style change (logic) to the style of Bus. So I tried to say the paragraph style of the track "Following paragraph Style is style of Bus" (and not to change the paragraph style in find/replace), but in a way that no longer works.

    Second question is: given to split the find/replace in two steps, how then transform / apply to newly created paragraph the correct style of Bus?

    Thank you in advance for your valuable assistance. So far, the community has been great!

    Antonio

    Original

    Screen Shot 2016-07-12 at 22.32.23.png

    Result for

    Screen Shot 2016-07-12 at 22.54.51.png

    Hi Antonio,.

    If I understand correctly, in 2 regex [1 click play with Multi/find-replace our friend Martinho da Gloria]:

  • InDesign CC Grep find/replace to replace the character of space per paragraph (fly)

    Hello InDesigners,

    I'm trying to clean up a 99 page document. In the file, titles of chapters, in capital letters, followed by a space, which is then followed with text more uppercase there. This always occurs at the beginning of a paragraph.

    I'm trying to target the space character that appears just after the number of chapter and Exchange to a number (fly).

    For example:


    CHAPTER 22 SUNDAY UNDERGROUND

    I want the Grep to change this as follows:

    CHAPTER 22

    SUNDAY UNDERGROUND

    I know that to do this job, I need to use positive look behind and positive Look Ahead, at first, I just tried to isolate CHAPTER 22 using the following:

    ^ \u{2,}\s\d+

    It worked. However, as soon as I cut and paste into P.L.B., find/replace says that it does not match.

    (?<=^\u{2,}\s\d+)\s


    The culprit seems to be the comma that comes just after the number 2. If I take, I get a match, but just not the one I wanted.


    Why P.L.B. does not accept the comma as part of the range in my definition grep?


    (FYI, I prefer to use wildcards with a specified scope, rather than literal text).

    It is indeed the comma, and the reason why it does not work because the flavor of InDesign's GREP does not allow a variable length argument in its lookbehinds. And the construction "has {x, y}" indicates a variable length.

    "Chapter" only you know how many characters to uppercase, and even the exact text, you can use

    (?<=^CHAPTER>

    the first chapters to a number, then

    (?<=^CHAPTER>

    for the rest. In your version of InDesign, I guess there is also a possible solution with the fairly new \K "forget - me" operator but I have not yet enough experience with that. It should look like this:

    ^ \u{2,}\s\d+\K\s

    but you will have to experiment a bit to see how to work with the replacement string.

    In addition, you should only use the name of "fly" for a character that looks like this: "¶". The code that you insert will call it a 'return' or 'paragraph return. Initially, I took your question literally, and it sounded as if you were after this result: "CHAPTER 22 ¶ SUNDAY UNDERGROUND"

  • Find and replace paragraph styles?

    Hi all

    I'm building a desktop, Tablet and phone layouts for a site.  What is the the faster/more easier way to change between layouts paragraph styles?  Is there a way find and replace paragraph styles?  If I copy / paste the contents of the desktop version to the version of the Tablet, and I've set up styles for each layout, how to change styles without manually changing each iteration of the style?

    Example: I paragraph title book BookHdr styles and BookHdrTablet is it possible for me to automate changing all instances of BookHdr in BookHdrTablet?

    Thank you very much, Barbara

    There is no way to override the styles heavily; You can, however, change the styles of multiple objects by shift-click to select.

    David

  • [win] [js] [cs4] find/replace the paragraph styles without losing the replacements the

    Hi guys I need some help here.

    I created a javascript script that will find and replace paragraph styles for the DOCFILE with indesign paragraph styles. everything works fine but the problem is that, when she applies paragraph styles, he loses all replacements the. I tried:

    changetext (false);

    but his does not work, this is a kind of conditional parameter that I can put in the function changetext() so that it used clear local overrides?

    Thank you.

    Horse

    Use findGrep() (or findText()) instead of changeText(). This returns an array of items found. Then, you can loop through the array and apply a paragraph style without erasing the replacements (the 2nd parameter must be false).

    Example:

    Main();
    
    function Main() {
        var foundItem;
        var doc = app.activeDocument;
    
        app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.NOTHING;
    
        app.findGrepPreferences.findWhat = ".+";
        app.findGrepPreferences.appliedParagraphStyle = "Body text";
    
        var foundItems = doc.findGrep();
    
        for (var i = 0; i < foundItems.length; i++) {
            foundItem = foundItems[i];
            foundItem.applyParagraphStyle(doc.paragraphStyles.item("Body"), false);
        }
    
        app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.NOTHING;
    }
    
  • conditional text find/replace problem

    Hello!

    For a few hours, I'm trying to solve this case: I want to apply conditions (conditional text) to all paragraphs according to the name of the applied style. So, for example, text with paragraph called "BODY" style should have "BODY" of the conditional text etc. I figured out mechanism, but I can't solve the problem with passing to find/replace.

    Here is my code:

    (function() {
        if (app.documents.length > 0) {
            processDocument(app.documents[0]);
        }
        function processDocument(aDoc) {
            var paraStyles = aDoc.allParagraphStyles.sort();
            for (var j = 0; paraStyles.length > j; j++) {
                var currentStyle = paraStyles[j].name;
                if(aDoc.conditions.item (currentStyle) == null){
                    var varConditions = aDoc.conditions.add({name: currentStyle});
                }
                doFindChange(currentStyle);
            }
        }
    }())
    function doFindChange(currentStyle) {
        app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
        
        app.findGrepPreferences.appliedParagraphStyle = currentStyle;
        app.changeGrepPreferences.appliedConditions = currentStyle;
        
        app.activeDocument.changeGrep();
    }
    

    I know what's wrong, but I have no idea how to change.

    Could someone help me?

    Thanks in advance!

    You have some problems in the code:

    1 move the actual paragraph style (and not just its name) to findGrepPreferences (your variable, currentStyle is a string, although this can work, it is better [especially for paragraph in the groups styles] to adopt the paragraph style real itself).

    2. Ditto for the appliedCondition: give changeGrepPreferences the condition itself, not just its name.

    3. it seems that changeGrepPreferences.appliedConditions expects a range of disorders, then give him a table even if it has only one member.

    Ariel

  • Cannot find the paragraph style, which is apparently in use

    Hello.

    I'm working on a document with the text that I have imported the word. After you have applied all my character and paragraph styles, I check to see if there are styles original Word still in use. Can I do a search/replace for those still persistent and change them to mine. There is a paragraph style, named normal, what don't get me. It seems to be in use - when I try to remove it, he asks what style should be used to replace it. It shows also upward on the Panel of cross references when I try to create a new cross reference. I tried to change its definitions to something with the big guy and a strong color, so I could find it easily on the pages, but not luck. When I use find/replace to the style, I get the message "cannot find match". I even tried the police search of the style, I do not use on my styles, but nothing appears. Am I missing something?

    Thank you.

    The next thing to try would be exporting to IDML. See remove minor corruption by exporting

  • Bug in find/replace - no work around ideas

    With the help of CC2015 on Yosemite.

    There seems to be a bug in find/replace.

    I have a text style in various paragraph styles. The problem is that I also get a lot of tab characters unwanted that I need to delete that are always before a newline (CR). Get rid of them seems simple enough that all I have to do is to find a tab followed by a CR and replace them with a CR. The problem is that when I do it, InDesign changes the paragraph style of the paragraph following the same style as the previous paragraph. Nothing in the find/replace includes anything in the next paragraph, so why should it end up being on? I think it is a bug

    I tried to do this in GREP and also the method of TEXT, and the result is the same. As such, I can't replace the unwanted tabs. The ideas people?

    It is not a bug. Do not delete the return, only the tab.

    Find \t$ should work, or \t(?=\r), but the latter won't find a rear tab in the last paragraph in a story that does not end in a hard return.

    You could do \t+$ or \t+(?=\r) to remove several tabs.

  • Find/replace for text formatting

    Hi guys,.

    How to use find/replace for text formatting changes? I would like to change a text of entire book to try an another typographical options. The book is currently typed in text of Lyon. The problem is when I change to Sabon will make it overides the italics and the word "BOLD".

    I tried to find/display

    Search

    Lyon text regular italic

    Change

    Sabon italic

    Captura de pantalla 2015-02-18 a la(s) 10.17.19.png

    but it does not work. Most of the text of this book is not formatted with the character to italic Style, for example, just a paragraph Style General to make it easier to work with.

    What I am doing wrong? Any help or ideas?


    Thank you!

    All of the text has a paragraph style that applies the formatting of basis for the whole paragraph. ALL text that deviates from the General formatting of the paragraph should have a style of character applied somehow, either directly, or as a nested or style GREP, which overrides the formatting of paragraph and gives what you want. The paragraph styles that do not change the font family are much more useful, for example a style that just changing the text in italics, as they continue to work when you change the font family of the paragraph style in the basic text format section.

    Character styles are used ONLY to change the part of the text in a paragraph. If the paragraph has the same formatting, it should have a paragraph set for this format style.

  • Find a paragraph via its tag format

    Hi all

    I have read and tried the search and replace script that was posted by Russ / Ian last year and has made a few changes to get the result I need: find a paragraph with a particular paragraph format tag. It does not work and I do not see why.

    Saving the paragraph tag "WritersNoteText" in the Find function gives me a lot of hits. But there is nothing, just an error code - 2 using ExtendScript. With the help of PrintErrno translated by FE_Success error code.

    var doc is app. ActiveDoc;

    var findParams = new PropVals();

    strange var = new TextRange();

    flow = doc. MainFlowInDoc;

    Frame = flow. FirstTextFrameInFlow;

    strange. Beg.obj = trange.end.obj = section. FirstPgf;

    strange. Beg.Offset = trange.end.offset = 0;

    findParams = AllocatePropVals (1);

    findParams [0].propIdent.num = Constants.FS_FindPgfTag;

    findParams [0].propVal.valType = Constants.FT_String;

    . propVal.sval findParams [0] = "WritersNoteText";

    FA_errno = Constants.FE_Success;

    strange = doc. Find (trange.beg, findParams);

    If (FA_errno == Constants.FE_Success) {}

    doc. DeleteText (strange);

    } else {}

    PrintErrno ();

    }

    Where is the error in my code, or in my way of thinking?

    Jang

    Strange things going on here. I restarted Windows and FM10, and the same script works... In blog of Debra Herman, I found a reference to an include for the FDK file that lists at least some of the error codes - which showed that la - 2A was invalid book or document. It must have been a miscommunication going on between the ESTK and FM10 when I was testing my script.

    In any case, on the next trap...

    Ciao

    Jang

  • How to use styles to characters in find/replace JavaScripts?

    First of all, good luck to Ole. It has been so useful (and a good writer, too). All the best!

    My JavaScripts find/replace run trouble in line 159 of the ExtendScript Toolkit. The script is looking for a particular font, it is expected to then apply a character style. I use the format that I see in the example text 'FindChangeList' to Adobe, but the script is always hit a wall. What I am doing wrong? I wish I had a working method for research, not only for fonts, but also to find a paragraph or character style and apply a new style.

    Simple stuff, but I'm roadblocked.

    Here's the script until now:

    This script applies the character style DFKai to the Arial Unicode font.


    text {findWhat: "', appliedFont:" Arial Unicode MS", fontStyle:"Regular"} {appliedCharacterStyle: 'DFKai'} {include notes: true, include master pages: true include hidden layers: true, any word: false} find Unicode fonts; change the style of character DFKai.

    Thanks for your help!

    Gary Niemeier

    Gary Niemeier says:

    {include notes: true, include master pages: true include hidden layers: true, any word: false}

    This not is not valid JavaScript, it looks like it was copied from a script AppleScript but not changed properly. Keys property for options must not contain spaces, they must be written:

    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
    
  • Find/replace, delete characters I want to keep

    I have game GREP search/replace the query up like below.


    The goal is to find all the text blocks that start by the paragraph Intro of Style, add a return to the beginning of the text block and set the new style of paragraph at the beginning of paragraph MainText

    The following query works except for the fact that it removes the first character at the beginning of the paragraph. How configure the query if the first character is not deleted?

    Search:

    ^.

    Replace:

    ~ b

    Search: 'Document '.

    Find the Format:

    Paragraph style: Intro

    Format change:

    Paragraph style: MainText

    You cannot have the two chnages in a single query. Best strategy might be to just add a paragraph (without changing the formatting), then find empty paragraphs and change the style.

    I'm curious to know why you want to add an empty paragraph, and why the style would matter since there is no text?

  • Use Grep to find/replace

    I'm trying to find how to use GREP in find/replace of chage the formatting of a text which is a spreadsheet.

    I worked on the GREP query "~ b (\d\d) ~ b ', which is a paragraph return, followed by two digits, followed by another paragraph of return

    and then it is replaced by ' \t $1 ~ b ', which is a tab, found two numbers and a paratrooper returned.

    What I have to do is change the query to search for ANY number of digits, (which may be delimited by commas: e.g. 23, 36, 48, 50), then replace with a tab + found text.

    I guess what I'm looking for is a way for the query find "any text between two paragraph returns, no matter what that length", but I don't know how to do this. All of the generic options seem to find a single exampler (a figure, a character etc.)

    And you came so far

    Repetition operators are? (zero or one), * (zero or more) and + (one or more times). You can also specify the exact number: {at least up to the}.

    All of these operators are "greedy" by default - they match as much as possible. To to match as less as possible (which I'm sure you will come, sooner or later), add another? After the expression of repeat.

    If this is a number, then possibly another (which will be always included):

    \D\d?

    and what a figure, then zero or as much as 9999999,93856 million:

    \D\d*

    which is functionally identical

    \d+

    And it is between 3 and 8 figures but will be forced to use the shortest possible match:

    \d{3,8}?

    Having said that: a quick & dirty solution for your real problem is to find any amount of numbers, spaces, and comma:

    ~ b [\d,] + ~ b

    (there are more here because otherwise it would correspond also to an empty line). The [..] a list of the hooks - it will match to any unique inside code.

    A more complicated but 'cleaner' way is looking very precisely that for many, comma, space, number sequences - it is cleaner because it lines poorly trained (comma without a space) is fried!

    (She also has another code - operators in parentheses. Look at their place in a good reference GREP - lost people are enthusiastic about Peter Kahrel O'Reilly title, because there on the use of GREP in InDesign.)

    ~b\d+(, \d+)*~b)

  • How to find a paragraph whose him restart the numbering [CS3] [Javascript]

    Hello

    Does anyone of you knows how to fix it:

    I do a script that needs to search for numbered paragraphs and assign it to a specific paragraph style. It should be like this:

    If the numbering of restarts (which means that it starts with 1) - the style must be '1 '.

    If the continuous numbering from where it is - the style must be 'number

    It seems simple enough in theory and even doable with simple operation "Find/replace" in InDesign, but when I went on the object model, I couldn't find a single method for my script to make the difference between the two cases. Does anyone of you know of a way to do it?

    Here's what I have so far:

    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;

    app.findTextPreferences.bulletsAndNumberingListType = 1280601709; Numbers of

    app.changeTextPreferences.appliedParagraphStyle = 'number ';

    app.changeText ();

    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;

    Thank you

    OLA

    Oops - sorry. Try numberingContinue.

  • Using find/replace

    Is it possible to use the search/replace on an array of text feature?  For example, I want to search my document for any type of [Text1, Text2, Rem3 Rem4] and change the style of paragraph on this text.  I know I could create 4 different searches, but since they all change the same paragraph style, it would be much easier to just use a.  Thanks for any help.

    Yes, if you have InCopy CS3 or CS4, you can use GREP find/replace to do what you want.

    1. Discover all the stories, then you can find/replace
    2. Edition > find/change, GREP tab
    3. In find it this field, enter "text 1 | Text 2 | Text 3 "(sans les guillemets)." The vertical bar character means 'or '.
    4. Let the change to the empty field
    5. Click the button change in format at the bottom and select the name of your paragraph Style in the first Panel of Options of Style
    6. Run a search/replace to test

    hope that helps!

    AM

Maybe you are looking for

  • Upgrade to version 4.0 beta, should I completely remove Firefox 3.6 now?

    I just upgraded to firefox 4.0 beta but I see that firefox 3.6 is still on my machine. Several of my modules will not work with it. The Aardvark, Adblock Plus, Tracker gains eHow, Microsoft .NET and WOT, all are incompatible with version 4.0 beta. Bu

  • E1-510: battery problem

    Hello, I have an Acer Aspire E1 - 510 Notebook (Intel Quad Core N3520 2.16 GHz, 4 GB RAM, 1 TB of HARD drive). I am a student and I use my laptop on battery 2 or 3 times a week when I'm at my University (I'm a computer SCIENCE student). I bought my l

  • computer slows down to this that frozen

    the performance of my office slowdown until it hangs completely. This occurs if it is in use or sitting dormant. a reboot or a complete stop will heal it temporarily however it is a recurring problem. I've defragged, old / unused files removed and pr

  • Q10 in gray blackBerry camera setting

    Hello. I need to change my settings storage camera on my q10 running 10.2, but I have the camera app open, then I swipe down to bring up the taskbar settings, the settings button is dimmed and I can't select it. Any ideas?

  • BlackBerry Smartphones typing while it is plugged

    When I tap on the private when it's plugged in, it is funny and you can't get more than a few letters and damage and I must correct. I was hoping updated fix it but didn't. Is there something I can adjust to make it work better? Thank you