Find the text formatted in a paragraph

Hello

I have a problem with the search for a formatted text.

I have a paragraph that contains two times a character style "Bold".

For example:

Lorem ipsum dolor sit amet, adipiscing elit computer. DUIs nisl eros, vehicula nec, elementum a nunc aliquam tincidunt.

I want to find the text in bold and change.

So, I'm looking for with the GREP code. + $ and style of character "Bold".

If I click on find next, I get only the first character style but not the second.

If I click Find Next again, I get the next character style in another paragraph. Not the second in the same paragraph.

Can someone help me?

Thank you very much!

You asked to find a text in bold at the end of a paragraph with this request. Try it without the $

Tags: InDesign

Similar Questions

  • How to get the text formatting in the tables

    Dear experts and aid

    For my project, I import an RTF file and then read the data into 3 tables. It works fine when just using the contents of the string of paragraphs. However, the final script should be able to read and to replace the text formatted...
    Why use intermediate tables? Because otherwise I need to swap between two fm-documents (and you can be a part of the book).

    The imported file starts with a certain number of lines separated into two parts by a TAB ("designates a TAB in \x08 FM)
    [[Garneau, 1990 #12]]    »   [9]
    The good article can also be locally as text, e.g. [9]
    Then follow the same (or smaller) number of paragraphs with text formatted like this:
    [9]"D. Garneau, ed., National Language Support Reference Manual (national language Information Design Guide. Toronto, CDN: IBM National Language technical Centre, 1990.

    Is it possible to replace in the body of the function below the next song

      while(pgf.ObjectValid()) {
        pgfText = GetText (pgf, newDoc);
        gaBibliography.push(pgfText);
        pgf = pgf.NextPgfInFlow;
      }
    

    with this

      while(pgf.ObjectValid()) { 
        gaBibliography.push(pgf);
        pgf = pgf.NextPgfInFlow;
      }
    

    Do I need a special statement of the gaBibliography range?
    And how to get the right part of the lines as formatted intro thingy in table gaFmtCitsFmt ?

    Currently, I read in the tables as "strings" (function GetText not shown):

    var gaFmtCitsRaw  = [];                           // left column in processed RTF
    var gaFmtCitsFmt  = [];                           // right column in processed RTF
    var gaBibliography= [];                           // bibliography lines from processed RTF
    // filename is something like E:\_DDDprojects\FM+EN-escript\FM-testfiles\BibFM-collected-IEEE.rtf 
    
    function ReadFileRTF (fileName) {
      var nCits=0, nBib = 0, openParams, openReturnParams, newDoc, pgf, pgfText ;
      var TAB = String.fromCharCode(8);               // FM has wrong ASCI for TAB
      var parts = [];
      
      openParams = GetOpenDefaultParams();
      openReturnParams =  new PropVals();  
      newDoc = Open (fileName, openParams, openReturnParams);  
      pgf = newDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;  // get first pgf in flow
    
    // --- read the temp/formatted citations  
      while(pgf.ObjectValid()) {
        pgfText = GetText (pgf, newDoc);
        if (pgfText.substring (0,2) == "[[") {        // citation lines start with [[
          parts = pgfText.split(TAB);                 // get the two parts of the line
          gaFmtCitsRaw.push (parts[0]);               // Push the result onto the global array
          gaFmtCitsFmt.push (parts[1]);
          pgf = pgf.NextPgfInFlow;
        } else { break }
      }
    
    // --- read the bibliography
      while(pgf.ObjectValid()) {                      // until end of doc
        pgfText = GetText (pgf, newDoc);
        gaBibliography.push(pgfText);
        pgf = pgf.NextPgfInFlow;
      }
      newDoc.Close (Constants.FF_CLOSE_MODIFIED);
    } // --- end ReadFileRTF
    

    The following questions will then be how to change the script of FindAndReplace of Ian Proudfoot for managing text formatted as replacement. I will need to use the copy and paste IMHO...

    Klaus, okay, before pasting, you must assign the TextSelection object at your insertion point.

    // Add a new paragraph after the current paragraph.
    var newPgf = oDoc.NewSeriesPgf (lastPgf);
    var textRange = new TextRange (new TextLoc (newPgf, 0), new TextLoc (newPgf, 0));
    
    oDoc.TextSelection = textRange;
    oDoc.Paste ();
    

    -Rick

  • Find the text and place the eps images

    Hello

    I have a lot of eps in the folder (eps001.eps, eps002.eps), but manually find the text in indesign [[[eps001.eps]]] and place corresponding image folder can someone help me

    Kind regards

    Barro

    Try this,

    var file = myArtFolder ("/ C / / numbers /" ""); Figure folder path

    var myArtFilesList = myArtFolder.getFiles ();

    app.findGrepPreferences = app.changeGrepPreferences = null;

    app.findGrepPreferences.findWhat = ' \ [------[------[. +------]------]------]';

    found = app.activeDocument.findGrep (true);

    for (j = 0; j< found.length;="">

    var foundText = .silence found [j];

    for (i = 0; i<>

    {

    "var artFile = ' [[[" + myArtFilesList [i] .name + ' "]]]"

    if(artFile==foundText)

    {

    found [j].insertionPoints.item (0) concerned (file (myArtFilesList [i]));

    }

    }

    }

    app.findGrepPreferences = app.changeGrepPreferences = null;

    I did not delete the text "[[[eps001.eps]]]...". "using script, you test and eventually remove it by using grep.

    Vandy

  • Keep the text format when replacing text

    Hi - I'm updating in indesign pages with 100 + boxes of text block containing prices / Cup/etc (not all threaded together, each thread is homogeneous). I need to replace the contents of these boxes with new content, but every time I put the new text, she brings with her fitness and I have to select everything and re - format text imported to the text format it replaced. I'm pulling my text in xls and converting it to plain text in text editing before placing it in my page layouts. I've never had this problem before and can not know if I messed up a preference or what. Previously, when I placed the new text, it took on the formatting of whatever it replaced. I work in CS5.

    Thank you!

    Looks like you're looking for "paste without formatting."

    This can be found in Edition > paste without formatting or with the shortcut Shift + Cmd (Ctrl) + V.

  • Find the text and apply the format paragraph tag in Framemaker 11

    Help!

    I am trying to automate the search text in a file FM11 and CE marking with a specific paragraph tag. Once it is, I want to be able to search for the same string again and delete it. The research will include wildcard characters. I'm moving Word files on and bring with manual numbering of paragraphs. Thus, when they arrive, they "2.3.4.5" before paragraphs for example. I want to search all of the numbers at the beginning of paragraphs, tag all those with the appropriate para format (starting a catalog) and then remove the manual numbering.

    At this time do us it manually, using find/replace and by using wildcard search strings to find (such as '\P[1-9]*.*.*.*[0-9]', which will find all the para numbering at the beginning of a paragraph 4-digit), then using the change option to paste to paste in a paragraph of the catalog tag. Then we repeat the same search and delete the text, leaving only the tag para to the number format. It works very well, but errors can occur if the search string in set incorrectly or if the numbers are not deleted (in this case, it is found on the next search and re-labeled incorrectly). For example

    I work for the Air Force collection of entries from the field and creating publications out of them, so there is no mobile profit here, just trying to be efficient. Any help is greatly appreciated!

    Thanks in advance

    b

    Hi Brian,.

    I guess right here because I've never done this before, but... In my view, there is definitely something wrong with your mission to find the property values. The way you wrote, you are trying to assign two properties to a single table space. That's why you need to remove these two lines to make him find work, because they are replacing the FindText property apparently. Here is my proposal for how it should be:

    findParams = AllocatePropVals (2);

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

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

    findParams [0].propVal.sval = searchString.

    findParams [1].propIdent.num = Constants.FS_FindCustomizationFlags;

    findParams [1].propVal.valType = Constants.FT_Integer;

    findParams [1].propVal.ival = Constants.FF_FIND_USE_WILDCARDS;

    In any case, let me point out again once it is a hypothesis and I did not test this. I am sure, however, that the solution is somewhere along this path.

    Russ

  • GREP - Positive look behind - find the text beyond the space

    I have a GREP in a paragraph with a positive Outlook style behind. This research finds the characters up to a space and apply a style, but applies style beyond a space.

    What should I include in my GREP search to find text following a space? TIA

    Right. He finds only upper case and lower case letters, while the game ends on what is not one of these. Do you want to match the end of the paragraph? You can use (?.)<>

    for two words use (?)<>

    for a game for one or two words (two if there are two, otherwise only one), try (?.)<=\#)[\l\u]+(\s[\l\u]+)? (not="">

  • May not substitute the text format in the former document InDesing CS4...

    I opened an InDesign Cs5 document in InDesign Cs4, I created my own paragraph styles, but in trying to apply the text in the document, it will not take the police, just the colors.

    I tried to open the copy in word and Notepad, re - format, then copy and paste again in my InDesign document with no luck. I've used InDesign for many years and I never had this problem before, anyone know how to fix this?

    Thank you

    This really, really looks like there is a style of character applied to this text as well.

    (This style of character can even be selected as default, so whenever you are trying to overwrite everything that you do is re - apply all over again.)

  • Firefox can't find the text on the HTML table cells

    Firefox cannot find (Ctrl + F) the text inside HTML tables, as in
    http://www.dip-Badajoz.es/BOP/ventana_anuncio.php?id_anuncio=22714 & FechaSolicitada = 2008-02-20
    If you try to search "Solano", Firefox will not find any matches, but "Solano" is here. This works fine on Chrome, for example.

    Thank you

    I am also on Linux, but if I start a version of Firefox 6 via Wine the I don't have a problem with a search for "Solano".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • How to show the white space of the text formatted?

    Hello

    I use Jdev 11.1.1.6.0 with ADF Faces.

    I have a requirement to show a text report page in recorded format. The report in text format is saved as a text report several records with each line containing the maximum 78 characters.

    Each drive is formatted with a space to display the data in the column. For example:

    SUMMARY

    -------

    Col1 Col2 Col3

    xyz1234 abc9999 mno1234

    ...

    The report data appears currently unformatted. It removes the white space and shows just with a few default spaces. Something like:

    SUMMARY

    -------

    Col1 Col2 Col3

    xyz1234 abc9999 mno1234

    ...

    Thus, you cannot read the data with the appropriate column header. If you query the table in SQL Developer, it shows with perfect formatting. Also our legacy Oracle Forms application to display with the correct format.

    Currently, I tried following, but it does not work:

    < af:outputText value = "#{row.rptText}" id = 'ot1' "

    inlineStyle = "do-family:"Courier New";" font-size: 12.0pt; »

    noWrap = "false" / >

    I tried this on af:column too, especially noWrap = 'false', but so far without success.

    Any help is appreciated.

    Thank you

    JAI

    If you can use a converter custom jsf (validation and conversion of entry) to change in the query using "pre" helped the (text with pre sourrounf) when the data is rendered. The converter must implement two methods. Then you can try to use ' ' as a space of unbreakeable instead of simple spaces.

    Timo

  • Paste the text formatted in inDesign

    Hi all

    I'm trying unsuccessfully to paste text formatted in InDesign CC (2015)

    I tried the following:

    Preferences ()Clipboard handling > option button for pasting of formatted text) in InDesign are defined to manage information. No chance!

    I tried with different formats, .rtf, .doc, etc., using the show import options when placing the text. No luck.

    Can someone guide me in the right direction?

    Best/Jonas

    Sorry about the URL, try this: http://www.lynda.com/InDesign-tutorials/Using-Word-InDesign-Together/122930-2.html

    You can map Word styles to Indesign Styles.

    Derek

  • Try to find the text import preferences (retainFormat)

    In my (model only) plugin wich only deals with custom data binding, I'm trying to find the preference of the user selected last for things like "retainFormat" for import files.

    What I want is my plugin to do exactly the same as when a text file is slipped on the desktop, but then my own source.

    Everything works fine, except for the options of 'IImportManagerOptions '.

    I can't find a way to get these. Who is available for the UI plugins?

    Anyone?

    Thank you!

    Hi Bart

    You have an example of using IImportManagerOptions in ExtendedLink sample.

    Because ExtendedLink is a plugin for model I guess it should also work in your case.

    Concerning
    Bartek

  • Find the text overflow

    Hello world

    Is there a script that helps find text with the text in overflow areas (as in indesign with overset text)

    OK, now that I see your document, I see the problem. My script has been fixed to ignore the unnamed stream, and your captions are flows without a name, which is fine. Here's the script updated to the:

    var doc = app.ActiveDoc;
    var flow = doc.FirstFlowInDoc;
    
    while (flow.ObjectValid()) {
    
        var textFrame, subCol;
    
        // Get the last TextFrame and its last Sub Column.
        textFrame = flow.LastTextFrameInFlow;
        subCol = textFrame.LastSubCol;
        if (subCol.Overflowed === 1) {
            alert ("TextFrame is overflowed.");
        }
        flow = flow.NextFlowInDoc;
    }
    
  • ToolTip with the text formatting and the scroll bar

    Hello

    is there an easy way to Acrobat Reader, how to display a ToolTip with scrolling with a long text, you can in addition formatted?

    Thank you

    The ToolTip is provided for this function and will size itself to the amount of text that you post. You cannot format the text... .He is simple police and size.

    Paul

  • adding to the text format within the framework

    Hello

    Im trying to add text with different styles (for example, font, size, color) of formatting that is not separated by a space:

    An example:

    'frame' is a textframe

    frame.parentStory.insertionPoints.item(-1).contents = "text1";

    frame.parentStory.words.lastItem () .appliedFont = "Arial";

    frame.parentStory.words.lastItem () .pointSize = 10 ";


    frame.parentStory.insertionPoints.item(-1).contents = "text2";

    frame.parentStory.words.lastItem () .appliedFont = "Times New Roman";

    frame.parentStory.words.lastItem (.pointSize) = 12 ";

    After that, "text1text2" is formatted in "Times New Roman., 12Pts.

    I tried to separate 'text1' and 'text2' with 'SpecialCharacters.hairSpace', but this did not help.

    Someone has an idea?

    Thank you!!

    Use the ranges of characters rather than words:

    frame.parentStory.insertionPoints.item(-1).contents = "text1";
    frame.parentStory.words.lastItem().appliedFont= "Arial";
    frame.parentStory.words.lastItem().pointSize = 10;
    endIndex = frame.parentStory.characters.item(-1).index;
    frame.parentStory.insertionPoints.item(-1).contents = "text2";
    frame.parentStory.characters.itemByRange(endIndex+1, frame.parentStory.characters.item(-1).index).appliedFont= "Times New Roman";
    frame.parentStory.characters.itemByRange(endIndex+1, frame.parentStory.characters.item(-1).index).pointSize = 12;
    

    .. Although in this case, it is easier to first change of setting in shape from the last insertion point and then insert the text:

    frame.parentStory.insertionPoints.item(-1).appliedFont= "Arial";
    frame.parentStory.insertionPoints.item(-1).pointSize = 10;
    frame.parentStory.insertionPoints.item(-1).contents = "text1";
    
    frame.parentStory.insertionPoints.item(-1).appliedFont= "Times New Roman";
    frame.parentStory.insertionPoints.item(-1).pointSize = 12;
    frame.parentStory.insertionPoints.item(-1).contents = "text2";
    
  • Where can I find the text to an empty TextFrame fillColor? [CS3]

    I have a Javascript that needs fillColor text in a TextFrame.

    You can set the fill color of text on an empty block and InDesign will use this value when you enter the text... but before enter you text, where can I get this value?

    Currently, for the empty linked text frames I use pageItem.appliedObjectStyle.appliedParagraphStyle to retrieve the other settings. However, the value "fillColor" always seems to be (0,0,0,100).

    Where I find this value?

    Thank you!

    Hello

    try to read from

    pageItem.parentStory

    Robin

    www.adobescripts.co.UK

Maybe you are looking for

  • Upgrade to XP 7

    I heard the upgrade directly to 7 from XP is going to be super painful.  I see the Microsoft Web site meantions none of this, but seems to be forcing people to buy Vista and get a free upgrade to 7 when it is released.  Is it true that the update of

  • Slow connections to the internet wireless

    I have problems with my wireless with my brand new Dell laptop running Vista 32 bit.  I spent a lot of time to read about it online but have not been able to solve my problem.  Here are my steps, I took so far D/led drivers Dell Wireless-J' uninstall

  • BlackBerry 10 How can I transfer my calendar from a 9000 "BOLD" to a new Q10 v4.6.0.162?

    I could not use Blackberry link to copy my calendar form my V4.4.0.162 9000 "BOLD" to my new Q10. Do you know what works? (tasks & notes would also be nice to transfer)

  • Windows Error Reporting error re #1001 Event Viewer: MpTelemetry, MSE

    I am running Windows 7 Home premium 64-bit.  Get the Windows Error Reporting (information level) #1001- Log name: ApplicationSource: Windows Error ReportingDate: 18/01/2011 10:52:08 AMEvent ID: 1001Task category: noLevel: InformationKeywords: Classic

  • BlackBerry Storm Smartphone keyboard does not

    So here's my problem: my keypad does not work. When I push a number nothing happens. The works of 0 and when I hold down the 1 goes to voicemail. When he goes to voicemail, however, where the numbers should be there are letters. If I have someone in