GREP for changing the style of paragraphs ending with '='

Hi, I work with a giant list of the names and dates of graduation. Each line ends with a space and an equal sign must have a special paragraph applied to her style. Is it possible to design a "find/replace" for this, instead of manually? I can't understand what would work the GREP search string - I've never worked with him before, and I can't find anything in the lists of the metacharacters that would do the trick. Any ideas?

In find it on the field just type = $ ( means hit the bar to type a space). The $ at the end means the end of a paragraph, so he could find no instance anywere elsewhere in a paragraph, which is the only reason why you have to GREP for that instead of a search of plain text.

Set the paragraph style that you need in the form of the change.

It works only if it IS indeed the end of a paragraph, however. If you have several lines in the same paragraph that ends with =, or more text in the paragraph after the =, you need to show us the structure. Don't forget that the paragraphs can have style single paragraph, applied to the whole paragraph. If you need several styles in the same paragraph, you need to use character styles, which can be applied as nested styles, line styles and GREP styles, or manually, depending on the structure of the text, you have to work with.

Tags: InDesign

Similar Questions

  • Changing the names of paragraph style

    I asked this question a month ago, but I did ' t really ask him just.

    I get InDesign to InDesign6 documents. In the process, we change the style names to make things future compabile makes all the spaces. periods, dashes, etc.

    Thus, for example, title 1 becomes Heading_1 in Page No. -left becomes PageNo_Left, etc. Easy, just do one or two documents by hand, but I literally desgines of the documents that are going to need it.

    So, I'm looking to write a script to automate this process, more or less. I think I need something like:

    App.documents [0].paragraphStyle.Item ("Heading 1"). Name = "Heading_1".

    App.documents [0].paragraphStyle.Item (page no. - Left). Name = "PageNo_Left".

    etc.

    Am I headed in the right direction? Any advice would be greatly appreciated.

    Figured it out. Script is:

    app.activeDocument.paragraphStyles.item("Heading_1").name = "Heading_1".

    app.activeDocument.paragraphStyles.item("Page_No.-Left").name = "PageNo_Left".

  • Change the style of the drop-down list for the fill-in-the-white questions

    As the title says, I just want to know how to change the style, or at least font size in the drop-down lists to fill-in-the-blank questions. By default have a tiny font that is difficult to read, and a blocky interface. I can do to fix that?

    Hello

    I'm sorry, but this is not possible at the moment. If you fill a feature request (as I already did) to find out a better way to format these drop-down lists?

    Lilybiri

  • Apply the style of paragraph 1 above and the style of paragraph 3 below all paragraphs containing only the italics?

    Hello

    I need a script that can find the paragraphs in italics only glyphs (maybe we can change all that pretty color) and apply the style of paragraph 1 above, the style of paragraph 3 below and this paragraph in italics to paragraph style 2

    Some paragraph of text (for the 1 paragraph style)

    some italic text (for paragraph style 2)

    little text (for the 3 paragraph style)

    After you run the script, I have something like this in 3 styles different points

    a text

    some italic text

    a text

    Lost link!

    /*

    Fixing paragraph style combinations

    Version: 1.2.B

    Script by Thomas Silkjaer

    http://indesigning.NET/

    Minor version b: Bruno Herfst

    + Add any style to replace paragraphs

    + Can cancel

    */

    var the_document = app.documents.item (0);

    Create a list of paragraph styles

    var list_of_paragraph_styles = [];

    var all_paragraph_styles = [];

    the_document.paragraphStyles.everyItem () .name;

    for (i = 0; i< the_document.paragraphstyles.length;="" i++)="">

    list_of_paragraph_styles.push (the_document.paragraphStyles [i]. (Name)

    all_paragraph_styles.push (the_document.paragraphStyles [i]);

    }

    for (i = 0; i< the_document.paragraphstylegroups.length;="" i++)="">

    for (b = 0; b< the_document.paragraphstylegroups[i].paragraphstyles.length;="" b++)="">

    list_of_paragraph_styles.push (the_document.paragraphStyleGroups [i] .name + ' /' + the_document. paragraphStyleGroups [i] .paragraphStyles [i] .name);

    all_paragraph_styles.push (the_document.paragraphStyleGroups [i] .paragraphStyles [i]);

    }

    }

    var list_of_replace_paragraph_styles = list_of_paragraph_styles.slice (0);

    list_of_replace_paragraph_styles.unshift ("[no paragraph style]" "");

    That the dialog box to select the paragraph styles

    var the_dialog = app.dialogs.add ({name: 'Paragraph style pairs Fix'});

    {with (the_dialog.dialogColumns.Add ())}

    {with (dialogRows.Add ())}

    staticTexts.add({staticLabel:"Find:"});)

    }

    {with (borderPanels.Add ())}

    var find_first_paragraph = dropdowns.add ({stringList:list_of_paragraph_styles, selectedIndex:0});})

    staticTexts.add ({staticLabel: "monitoring of"});

    var find_second_paragraph = dropdowns.add ({stringList:list_of_replace_paragraph_styles, selectedIndex:0});})

    }

    {with (dialogRows.Add ())}

    staticTexts.add({staticLabel:"Change:"});)

    }

    {with (borderPanels.Add ())}

    var change_first_paragraph = dropdowns.add ({stringList:list_of_paragraph_styles, selectedIndex:0});})

    staticTexts.add ({staticLabel: "monitoring of"});

    var change_second_paragraph = dropdowns.add ({stringList:list_of_paragraph_styles, selectedIndex:0});})

    }

    }

    {if (the_dialog. Show())}

    Define paragraph styles

    var find_first_paragraph = all_paragraph_styles [find_first_paragraph.selectedIndex];

    anyStyle var = false;

    If (find_second_paragraph. SelectedIndex == 0) {}

    anyStyle = true;

    }

    var find_second_paragraph = all_paragraph_styles [find_second_paragraph.selectedIndex - 1];

    var change_first_paragraph = all_paragraph_styles [change_first_paragraph.selectedIndex];

    var change_second_paragraph = all_paragraph_styles [change_second_paragraph.selectedIndex];

    Set preferences for grep to find to find all the points with the first selected paragraph style

    app.findChangeGrepOptions.includeFootnotes = false;

    app.findChangeGrepOptions.includeHiddenLayers = false;

    app.findChangeGrepOptions.includeLockedLayersForFind = false;

    app.findChangeGrepOptions.includeLockedStoriesForFind = false;

    app.findChangeGrepOptions.includeMasterPages = false;

    app.findGrepPreferences = NothingEnum.nothing;

    app.findGrepPreferences.appliedParagraphStyle = find_first_paragraph;

    app.findGrepPreferences.findWhat = ' $';

    Search current history

    var the_story = app.selection [0] .parentStory;

    var found_paragraphs = the_story.findGrep ();

    var change_first_list = [];

    var change_second_list = [];

    Browse the paragraphs and create a list of words and mark them as index words

    myCounter = 0;

    {}

    try {}

    Create an object to in paragraph reference and the following

    var first_paragraph is found_paragraphs [myCounter].paragraphs.firstItem ();.

    var next_paragraph = first_paragraph.paragraphs [-1] .insertionPoints [-1] .paragraphs [0];

    {if (anyStyle)}

    change_first_list.push (first_paragraph);

    change_second_list.push (next_paragraph);

    } else {}

    Check if the next paragraph is equal to the find_second_paragraph

    if(next_paragraph.appliedParagraphStyle == find_second_paragraph) {}

    change_first_list.push (first_paragraph);

    change_second_list.push (next_paragraph);

    }

    }

    } catch (err) {}

    myCounter ++;

    } While (myCounter<>

    Apply paragraph styles

    myCounter = 0;

    {}

    change_first_list [myCounter] .appliedParagraphStyle = change_first_paragraph;

    change_second_list [myCounter] .appliedParagraphStyle = change_second_paragraph;

    myCounter ++;

    } While (myCounter<>

    Alert ("fact pairs fixation!");

    }

  • PageNumbers: How to change the style of pagenumber?

    Normally, you change the style between letters as VII and numbers like 7 in the "layout" window by clicking on the button for "numbers". But in my iBook version 2.4.1 author is not any button like that. There are only functions for the lines, as you can see:

    What ist wrong? Can someone help me?

    Hello

    Try the iBooks author User Guide > https://help.apple.com/ibooksauthor/mac/

  • How to change the style of point of the last lot on multiplot XY graph programmatically?

    Hi all

    I have a multiplot XY Chart.  I want to change the style of the last plot point by program.  Any way to do it?  I tried and it looks like only the first property parcel is changeable by program.

    Thanks for any help.

    Anne

    ergwser wrote:

    Hi all

    I have a multiplot XY Chart.  I want to change the style of the last plot point by program.  Any way to do it?  I tried and it looks like only the first property parcel is changeable by program.

    Thanks for any help.

    Anne

    Nodes property can be resized by dragging down on them.

    resize the property node you re using and use a "Conspiracy Active" property to set the index of the plot of the plot you wan to act on.

    Also note that property nodes are running up and down, so the "active conspiracy" must be above the property where you specify the point style.

    Ben

  • How to change the style of picture frame

    I would like to know how to change the style of table on the front. For the example below, I would like to remove the covered framework of gray color.

    I could not find the table style editor.

    First option: use the table on the classic controls palette, which has no border.

    Second option-

    1. Select the painting tool.
    2. Right click on the border.
    3. With open color dialog box, click the space bar. This toggles the color picker to work on color FG, the background color, or both. It is also described at the bottom of the color picker.
    4. When the two have been selected, you can make the frame completely transparent by selecting the color of T.
  • How to change the style of the text of segmentedControl

    Hi all

    Is there a way to change the style of the text in a segmented control?

    The control works perfectly but the texts are so big and I can't change the fontSize of them.

    Someone at - it already do this?

    Thank you

    Because we can not style more standard controls of waterfalls, you can do this without re - implement the entire control, at least for now.

  • How to get all the style of paragraphs and their policies of an indesign file and write all the info with info para in a txt file with scripts

    @

    How to get everyone how to get all the style of paragraphs and their policies of an indesign file and write all the info with info para in a txt file with scriptingstyle and their policies of an indesign file and write all the info with info para in a txt file with scripts

    Hello

    Try this,

    var doc = app.activeDocument,
        pstyles = doc.allParagraphStyles,
        report = "";
    for(var i =0;i
    

    Kind regards

    Cognet

  • How can I change the style of police in After Effects CS6?

    How can I change the style of police in After Effects CS6?

    Basics of EI: go to the window > character or select Workspace > text

    In the timeline panel, select the layer in the Comp panel, with the tool selected text or text and the layer selected in the timeline panel, select the text you want to change

    In the character Panel, change the attributes of police...

    Take a look at this short video. You will learn how to find the police Panel, change the style and the base line of paragraph:

    Please, since your question tells me that you're very new to After Effects start here: Basic Workflow

  • Problems to change the style of an object Style

    Hello! Im making a JTextPane for some feedback for the loading/backup of the files and I wanted two colors of text, successful (black) and failed (red). The code I'm looking a little confused is: [http://download.oracle.com/javase/tutorial/uiswing/examples/components/TextSamplerDemoProject/src/components/TextSamplerDemo.java: this example] when it comes actually to change the style of the Style object. Ive tried to use 'StyleConstants', but it changes all styles, so I put the error in red, and the regular also turns red.

    I was wondering if someone could point me in the right direction, I don't think that im using StyleConstants right.
         static int REGULAR = 0;
         static int ERROR = 1;
         
         static private String[] infoStyles = { "regular", "error"};
    
         public void addStylesToDocument(StyledDocument doc)
         {
              Style standard = getStyle(Color.black);
              doc.addStyle(infoStyles[REGULAR], standard);
              System.out.println(infoStyles[REGULAR]);
              
              Style error = getStyle(Color.red);
              doc.addStyle(infoStyles[ERROR], error);
              System.out.println(infoStyles[ERROR]);
         }
         
         private Style getStyle(Color color) {
              Style ret = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
              StyleConstants.setForeground(ret, color);
              return ret;
         }
    Thank you

    Hello

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class StyleConstantsTest {
      private final JTextPane jtp = new JTextPane();
      public JComponent makeUI() {
        jtp.setEditable(false);
    
        StyledDocument doc = jtp.getStyledDocument();
        Style def = StyleContext.getDefaultStyleContext().getStyle(
            StyleContext.DEFAULT_STYLE);
    
        Style regular = doc.addStyle("regular", def);
        StyleConstants.setForeground(def, Color.BLACK);
    
        Style error = doc.addStyle("error", regular);
        StyleConstants.setForeground(error, Color.RED);
    
        Box box = Box.createHorizontalBox();
        box.add(Box.createHorizontalGlue());
        box.add(new JButton(new AbstractAction("regular") {
          @Override public void actionPerformed(ActionEvent e) {
            append("aaaaaaaaaaaa", "regular");
          }
        }));
        box.add(new JButton(new AbstractAction("error") {
          @Override public void actionPerformed(ActionEvent e) {
            append("bbbbbbbb", "error");
          }
        }));
        JPanel p = new JPanel(new BorderLayout());
        p.add(box, BorderLayout.SOUTH);
        p.add(new JScrollPane(jtp));
        return p;
      }
      private void append(String text, String style) {
        StyledDocument doc = jtp.getStyledDocument();
        try {
          doc.insertString(doc.getLength(), text+"\n", doc.getStyle(style));
        } catch (BadLocationException e) {
          e.printStackTrace();
        }
      }
      public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
          @Override public void run() { createAndShowGUI(); }
        });
      }
      public static void createAndShowGUI() {
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        frame.getContentPane().add(new StyleConstantsTest().makeUI());
        frame.setSize(320,240);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      }
    }
    

    Published by: aterai on 12/06/2010 23:46 by defaultregular

  • Change the Style in order to update the changes on all the elements, to which the style is applied?

    I have a number of elements with the same style that are applied from the Styles tab in the active panel. I want to change the style, so the changes update on all points, it is applied, is that possible?
    Thank you

    Altogether. It is a feature added in Fireworks CS4.
    Apologize for the confusion.

  • How can you change the style out of your records

    Hello

    Is there a way you can change the style or the icon off all your records

    Thank you

    Goryon

    Hello

    If you are referring to the customization of the folder that includes the display of folders, the etc folder icon change, then you can check out the link below.

    Behavior and change folder views

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-folder-views-and-behavior

    Change the thumbnail size details and file

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-thumbnail-size-and-file-details

    How to modify your folder view settings or customize a folder

    http://support.Microsoft.com/kb/812003

  • need instructions for changing the ITB on hp color laserjet cp1518ni

    need instructions for changing the ITB on hp color laserjet cp1518ni

    Hello the circus,

    Unfortunately the ITB - transfer belt doesn't seem to be a replaceable piece by customer. You will need to call our technical support at the 800-474-6836, and they can help you get this problem is resolved. If you do not live in the United States / Canada region please click the link below to get help from your region number.

    http://goo.GL/kQDB

    HP out of warranty of the Support Options for HP printers selection:
    http://goo.GL/WJ1Vb

  • How do you change the style of arrowheads on a series of lines in Illustrator?

    I don't want to redraw all, but I want to select the whole group and to change the style of arrowhead. I work in CS4 on Mac.

    Then, open the appearance Panel. You will find the effect existing of arrowheads. You can double-click it and change arrowhead.

    If all of these arrows have the same attributes, just cloud create you a graphic style and apply it.

Maybe you are looking for

  • Game sounds

    Originally publishing family vista and upgraded to windows 7... had it fixed a computer failure and it.  Now has same windows 7. Sounds of the game are now changed... which means there just not here.  Examples; Minesweeper makes no noise when a mine

  • recovery for windows 8.1

    I have problem with windows 8, 1 and you need to format the hard drive and load into my backup from an external hard drive. I need to get a recovery to do disk or can I format my hard disk, and then load into my backup.

  • CLIQ XT 1.31.44 - touchscreen problems (HELP)

    I just started having a problem where the touch screen is crazy and continues pressing on and highlighting the top textfield, the point, the password box, etc. I could not connect on my phone because I put the digital password and he kept clicking on

  • error message when you try to use outlook express 6

    I tried for a less than 2 weeks. to send mails from craigslist & they are not sent. always an error message. Help

  • How to remove all adware.

    How can I get rid of all the adware that appears when I connect.  I have Att.yahoo.com (I hate Yahoo).  My computer is 64-bit Vista Home Premium.  Can I download something without harming my computer.  Whenever I sign in all of this adware lights. He