Apply the paragraph style to a glyph and not the glyph displayed?

I have a large Word document I have to mark up with different paragraph styles. Fortunately the data contains different glyphs for specific text strings, and so I might have the styles of paragraph kick in when he meets the glyph. But ultimately, I need to remove the glyphs when I go to print, and therefore the style will be deleted also.

I wonder if it is possible to change the glyph to some kind og hidden state. I could mess with the x position of the text string, but I'm not not to keen on this solution. Someone has an idea?

You must use 'GREP', not 'text', in the Find/Replace window!

Tags: InDesign

Similar Questions

  • WTH?  I have a gap in the text that I can't fill.  There is no hidden formatting that I can find, and I apply a paragraph style to text.

    WTH?  I have a gap in the text that I can't fill.  There is no hidden formatting that I can find, and I apply a paragraph style to text.

    I'm not well-versed in indesign, but what I've discovered, is that the box around the page number on the master was wrapping text, which was originally my text to break around her at the center bottom of the pages.  Problem solved, and amiellemiel is right.

  • Apply a paragraph style to the first cell in the first row of a table

    I want to apply a paragraph style to the first cell in the first row of a table.

    I use JavaScript with ID CS 5.

    Thank you.

    . aragraphStyles.itemByName ("NameOfStyle") .p appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.itemByName ("NameOfGroup")

  • Why apply a paragraph style let substitutions sometimes? How to prevent this?

    Sometimes when I apply a paragraph of a text style he chooses replace some attributes, making me have click on the button "ignore substitutions" constantly. If I tell indesign to apply a paragraph style why it assumes that my intention was not to implement also the font weight or other random attributes? I can't seem to find the reason for it or how to prevent it, your time and cause errors of formatting if I missed something. Any ideas? No style of characters used in the document.

    Thank you!

    If you want to remove manual replacements you must hold down the ALT key when you apply the style.

    And for the local formatting, you must use character styles.

  • Default fonts to 50 points when you apply a paragraph style

    I ran into this many times.  To update a file, InDesign from a previous version (now using CS5) when I apply a paragraph style, the default font is 50 points no matter the style settings.  Is it possible to avoid this.  Currently, I copy and paste the chart into a new file and have to set the text.  If I copy some old text, it causes the same problem.

    Most of our text is copied and pasted from Microsoft Word (old version and new text changes), however, the text that was already in the document and the new text both do the same thing when a style is applied.

    CS5

    Win 7 Pro 64-bit

    Your styles are based on standard paragraph, or is it an applied character style? If so, check to see if any of them have 50 as the size.

  • Apply a paragraph style for the XML elements that have a specific attribute

    (1) I am an almost complete noob when it comes to XML

    (2) I have a XML with a ssstructure like this:

    <chapter>
         <paragraph> bla bla </paragraph>
         <paragraph> bla bla </paragraph>
         <list type="disk">
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
         </list>
    
         <list type="square">
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
         </list>
    </chapter>
    

    Is there an easyer (except the xmlElements) way to find all the lists and apply the appropriate paragraph style (I have a definition of 'list_with_disk' and a 'list_with_square' one)?

    Hi Vamitul,

    Please try the JS code below.

    var myDoc = app.activeDocument;
    //____________________ disk bullet style apply
    try{
        var rootElement = myDoc.xmlElements.item(0);
        var linkElementList = rootElement.evaluateXPathExpression("//list[@type='disk']//paragraph");
        for(i=linkElementList.length-1; i>=0; i--){
            var myAttribute = linkElementList[i];
            myAttribute.xmlContent.appliedParagraphStyle = myDoc.paragraphStyles.itemByName("Disk");
            }
        }catch(e){}
    //_______________________________________________________________________________
    
    //____________________ Squar bullet style apply
    try{
        var rootElement = myDoc.xmlElements.item(0);
        var linkElementList = rootElement.evaluateXPathExpression("//list[@type='square']//paragraph");
        for(i=linkElementList.length-1; i>=0; i--){
            var myAttribute = linkElementList[i];
            myAttribute.xmlContent.appliedParagraphStyle = myDoc.paragraphStyles.itemByName("Square");
            }
        }catch(e){}
    //_______________________________________________________________________________
    

    THX,

    csm_phil

  • Automatically apply "next paragraph Style...". "in place of the text

    I want to import an Excel (arrow) line 8 500 spreadsheet into InDesign and have it add the necessary number of pages and text related frameworks can flow text AND format her, lines spare in 1 2 paragraph styles. I can do everything until it automatically formatting the text. Paragraph Styles are set up for "Style of next paragraph...". "but it doesn't seem to work on the text. Can anyone help?

    I don't know if this can be done with a table, which is probably what you get from placing your excel file. A table Style might work.

    If you convert a table to text, however, you can select all, right-click on the name of the first style that you need in the paragraph styles Panel, and then choose apply and following style.

  • How can I apply a new style with an excerpt and DW artifact of the old style?

    Hello

    I use Dreamweaver CS5 in Windows XP SP3. My problem seems simple, but the resolution remains elusive.

    Let's say I'm stuck-in editing the text in MS Word that DW auto-formaté. I highlight text and use a clip to attach the text of the h2.

    Rather than delete the old style and its replacement by h2, DW applies the h2, but copy the old style, enclosing nothing and it bumps to the next line. If the old style included a paragraph tag, which flows into the extra space. For anything.

    Now, this seems to be a minor thing, but it is not so little, when you try to quickly prepare a large document with different header styles. Having to make dozens of changes that, in my view, should be completely useless becomes a burden.

    Is it possible to attach some text in a new style with an excerpt without the old style of stick around?

    Thanks for all the answers!

    Oreo Say

    If I pointed out this bit and click to apply my excerpt:

    The header

    the result is:

    The header

    You need not of snippets for this.

    Select it

    tag with the selector tag between (bottom of the design view) and the top of the property inspector, then, in the property inspector, Select Heading 2 in the dropdown Format menu.

    DW will replace

    with

  • How to apply two different styles to help find and replace

    Hi all

    In the manuscript, I have many paragraphs list of ball. In indesign, I have three styles (first Bullet, intermediate ball and the last ball). I can easily applied the style of ball intermediate (BL) to all paragraphs of bullet list. Now I need to apply the first Bullet (BL1) and last bullet (BL2) style. I used the script below, but it is not applied in specific styles.

    app.findTextPreferences.appliedParagraphStyle=app.activeDocument.paragraphStyles.item("BL");
    var myResults = app.activeDocument.findText();
         for (i = 0; i <= myResults.length - 1; i++) 
         { 
              myResults.select; 
              var mySel = app.selection[0];
              var myParagraphs = mySel.paragraphs.length;
              //alert(myParagraphs);
              mySel.paragraphs[0].appliedParagraphStyle = "BL1";
              mySel.paragraphs[myParagraphs-1].appliedParagraphStyle = "BL2";
         }
    

    Kindly help me on this...

    As so often said in this forum, there is no need to choose anything:

    for (i = 0; i< myresults.length;="">

    {

    myResults [i] .paragraphs .appliedParagraphStyle [0] = 'BL1;

    .appliedParagraphStyle .paragraphs [-1] myResults [i] = 'L2 ';

    }

    Peter

  • Can I apply changes in tone to a layer and not only some cut of my film?

    I can't explain it properly, I'm eager to apply the same color to my whole film correction and not only the edited part of my film that I would need to do this for all the clips, and that feels like a marathon task.

    So I want to affect blacks and shadows for all "Video 1"and not just the clip cut as shown below."

    Thank you in advance...

    Screen Shot 2016-10-01 at 22.48.53.pngScreen Shot 2016-10-01 at 22.49.03.png

    Remove the Lumetri effect on the first clip.

    Go to the menu sequence > add tracks.

    Set it to add a video track after track 1 and 0 audio tracks. Click OK.

    Go to the file menu > New > adjustment layer and create an appropriate adjustment layer.

    Once it is created in your program Panel, drag it to the new video track (empty), you just create and stretch the length of the clip it so that it covers all the video clips on track 1.

    Click on the adjustment layer to select it, go to the color workspace and make the desired settings. Everything below the adjustment layer will receive the same treatment of color.

    MtD

  • retention of the words italic when you apply the paragraph style

    When you place text in InDesign, I want to apply a paragraph style, but keep some (foreign) words in italics without having to search for each word and apply the italic character style. Texts are long and not originated by myself.

    The most recommended book for beginners here on the forum is Visual QuickStart of Sandee Cohen for InDesign. The 'bible' in my opinion, for very advanced users is Real World InDesign.

  • Script will not apply the paragraph style

    Hello

    I'm new to scripting in InDesign (CS3), and I'm trying to understand why the scipt below does not apply a style in the following text file? :

    < ASCII-WIN >

    < ParaStyle: Heading 1 > who are we? < ParaStyle >:

    For ease of reading, I have shortend the text file to just two lines.

    The script that I use to open and to format the text file is:

    Create a new document.

    myDocument var = app.documents.add ();

    Set the units of measure and the origin of the rule.

    myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;

    myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

    myDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;

    Get a reference to the first master spread.

    var myMasterSpread = myDocument.masterSpreads.item (0);

    Get a reference to preferences on the margins of the first page in the Master spread.

    var myMarginPreferences = myMasterSpread.pages.item (0) .marginPreferences;

    Now set up the page margins and columns.

    myMarginPreferences.left = 4;

    myMarginPreferences.top = 70;

    myMarginPreferences.right = 70;

    myMarginPreferences.bottom = 78;

    myMarginPreferences.columnCount = 2;

    myMarginPreferences.columnGutter = 14;

    The margins of page and columns for the right-hand page.

    var myMarginPreferences = myMasterSpread.pages.item (1) .marginPreferences;

    myMarginPreferences.left = 48;

    myMarginPreferences.top = 70;

    myMarginPreferences.right = 70;

    myMarginPreferences.bottom = 78;

    myMarginPreferences.columnCount = 3;

    myMarginPreferences.columnGutter = 14;

    Adding Master Page items

    var myMasterSpread = myDocument.masterSpreads.item (0);

    var myLeftPage = myMasterSpread.pages.item (0);

    var myRightPage = myMasterSpread.pages.item (1);

    var myLeftFooter = myLeftPage.textFrames.add ();

    myLeftFooter.geometricBounds = [70, 742, 728, 528];

    myLeftFooter.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myLeftFooter.contents = SpecialCharacters.autoPageNumber;

    myLeftFooter.parentStory.characters.item (0) .pointSize = 11;

    myLeftFooter.parentStory.characters.item (0) .leading = 14;

    var myRightFooter = myRightPage.textFrames.add ();

    myRightFooter.geometricBounds = [48, 742, 728, 542];

    myRightFooter.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myRightFooter.contents = SpecialCharacters.autoPageNumber;

    myRightFooter.parentStory.characters.item (0) .pointSize = 11;

    myRightFooter.parentStory.characters.item (0) .leading = 14;

    myRightFooter.parentStory.characters.item (0) .justification = Justification.rightAlign;

    Adding master text frames

    var myLeftPage = myMasterSpread.pages.item (0);

    var myRightPage = myMasterSpread.pages.item (1);

    var myLeftTextFrame = myLeftPage.textFrames.add ();

    myLeftTextFrame.geometricBounds = [70, 70, 714, 528];

    myLeftTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myLeftTextFrame.textFramePreferences.textColumnCount = 3;

    myLeftTextFrame.textFramePreferences.textColumnGutter = 14;

    Add a label to make the image easier to find later.

    myLeftTextFrame.label = "BodyTextFrame";

    var myRightTextFrame = myRightPage.textFrames.add ();

    myRightTextFrame.geometricBounds = [70, 48, 714, 542];

    myRightTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myRightTextFrame.textFramePreferences.textColumnCount = 3;

    myRightTextFrame.textFramePreferences.textColumnGutter = 14;

    Add a label to make the image easier to find later.

    myRightTextFrame.label = "BodyTextFrame";

    Link the two frames using the nextTextFrame property.

    myLeftTextFrame.nextTextFrame = myRightTextFrame;

    The substitution of Master Page points and adds text

    var myTextFrame = myDocument.masterSpreads.item (0).pages.item (1).textFrames.item (0) .override (myDocument.pag es.item (0));

    Add text by setting the contents of the insertion of a string.

    In JavaScript, "\r" is a return character.

    .silence myTextFrame.insertionPoints.item (0) = "dok\r";

    Adding and applying a paragraph Style

    var myParagraphStyle = myDocument.paragraphStyles.item ("title 1");

    try {}

    var myName = myParagraphStyle.name;

    }

    {} catch (MonErreur)

    //The style of paragraph don't have not exist, so create it.

    myParagraphStyle = myDocument.paragraphStyles.add ({name: 'Title 1'});

    }

    We need to create a color. Check if the color already exists.

    myColor var = myDocument.colors.item ("Green");

    try {}

    myName = myColor.name;

    }

    {} catch (MonErreur)

    //The color have not exist, so create it.

    myColor = myDocument.colors.add ({name: 'Green', model: ColorModel.process, colorValue:[100,0,100,0]});})

    }

    Now set the formatting of the paragraph style.

    myParagraphStyle.appliedFont = "Arial";

    myParagraphStyle.fontStyle = "Bold";

    myParagraphStyle.pointSize = 24;

    myParagraphStyle.spaceAfter = 24;

    myParagraphStyle.spaceBefore = 24;

    myParagraphStyle.fillColor = myDocument.colors.item ("Green");

    Apply the style to the paragraph.

    myDocument.pages.item (0).textFrames.item (0).paragraphs.item (0) .applyParagraphStyle (myParag raphStyle, true);

    You can also use:

    myDocument.pages.item (0).textFrames.item (0).paragraphs.item (0) .appliedParagraphStyle = //myParagraphStyle;

    Import a text file

    Display a standard dialog box open the file to select a text file.

    var monFichierTexte is File.openDialog ("choose a text file");.

    If you selected a text file, and if you didn't press Cancel,

    Place the file of text on the first insertion point after the title.

    If ((monFichierTexte! = "") & & (monFichierTexte!) (= null)) {}

    myTextFrame.insertionPoints.item(-1).place (myTextFile);

    }

    Place a graphic

    Display a standard dialog box open the file to select a graphic file.

    var myGraphicFile is File.openDialog ("choose a graphic file");.

    If you have selected a graphics file, and if you didn't press Cancel,

    Place the graphic file on the page.

    If ((myGraphicFile! = "") & & (myGraphicFile!) (= null)) {}

    var myGraphic = myDocument.pages.item (0) .place (myGraphicFile);

    //Since you can place multiple graphics at once, the place method

    //returns a table. For the graph you have placed, get the first

    //item in the table (beginning of JavaScript arrays with element 0).

    myGraphic = myGraphic [0];

    //Create a style object to apply to the graphic image.

    var myObjectStyle = myDocument.objectStyles.item("GraphicFrame");

    try {

    var myName = myObjectStyle.name;

    }

    catch (MonErreur) {}

    //The an object style have not exist, so create it.

    myObjectStyle = myDocument.objectStyles.add({name:"GraphicFrame"});)

    }

    myObjectStyle.enableStroke = true;

    myObjectStyle.strokeWeight = 3;

    myObjectStyle.strokeType = myDocument.strokeStyles.item("Solid");

    myObjectStyle.strokeColor = myDocument.colors.item("Green");

    //The frame containing the graphic is the parent of the graphic.

    myFrame var = myGraphic.parent;

    myFrame.applyObjectStyle (myObjectStyle, true);

    //Resize the frame to a specific size.

    myFrame.geometricBounds = [0,0,600,600];

    //Fit the graph in the image proportionally.

    myFrame.fit (FitOptions.proportionally);

    / / Next, mount the frame to the resized image.

    myFrame.fit (FitOptions.frameToContent);

    var myBounds = myFrame.geometricBounds;

    var myGraphicWidth = myBounds [3] - myBounds [1];

    //Move the graphic frame.

    var myPageWidth = myDocument.documentPreferences.pageWidth;

    var myTopMargin = myDocument.pages.item (0).marginPreferences.top;

    myFrame.move ([myPageWidth-myGraphicWidth, myTopMargin]);

    //Apply a wrap to the graphic frame.

    myFrame.textWrapPreferences.textWrapType = TextWrapTypes.boundingBoxTextWrap;

    myFrame.textWrapPreferences.textWrapOffset = [12, 24, 12, 24].

    }

    I hope someone can point me in the right direction.
    Thanks in advance.
    Ron

    Hey, Ron.

    The problem has nothing to do with your script. You can see if you attempt to place the file from indesign tagged text by hand.

    Your instinct for divide and conquer for debugging is a good - have a short text file to work with is very useful - of course this is also true for the script.

    During the validation of the scripts on the forum, please do not use the syntax insert > feature Java which lies behind the > arrow in the toolbar. Otherwise, cut and paste your script are difficult requiring manual corrections.

    Anyway, your problem is that each paragraph can have only a single paragraph style, and it's the last one that you define.

    So in your IDTT file, you set the heading 1 paragraph style, enter the content of the paragraph and then set the style of paragraph votes to zero.

    If you have included a line break before setting the style of paragraph votes to zero, you must set the None style for the following paragraph. But since you have not, it resets just the style to the current paragraph.

    In short: success back before .

  • (JS) How to apply the existing paragraph styles to text in a textFrame

    @I have a definition called "Header" in my Document.

    How to apply this paragraph style "Header" textFrame selected with the text "This is my head" using JS

    Please advise...

    Thank you..

    @I have a definition called "Header" in my Document.

    How to apply this paragraph style "Header" in textFrame selected with the text "This is my head" using JS

    as directed by your initial thread in question that asked you to change only the text block selected, so I gave code such as

    myDoc1 = app.selection [0];

    but myDoc1 = app.activeDocument; lets you apply the styleforwholedocument

    FYI

  • Automatic table row apply the paragraph style

    Hello

    I am new to scripting in Indesign. I would like to write a script to apply a paragraph on a line style in a table like this:

    1 search for the string 'XX' in a table

    2. when the 'XX' string is found, apply a paragraph style named "ParA" to the line that contains the string "XX".

    3. apply a cell style named "CellA" to the cell that contains the sting "XX".

    4. apply the style of paragraph called 'Service' to the string "XX".

    5 search for the string "XX" to the end of the table

    Can someone help me?

    Hi Syd,

    For the selected table, use the below a.

    var doc = app.activeDocument,
        _tables = app.selection[0],
        i, j, k, l, a =0, _rows,_cells, rowlen; 
    
    _rows = _tables.rows;
    for(k =0;k<_rows.length;k++)
    {
        _cells = _rows[k].cells;
        for(l =0;l<_cells.length;l++)
        {
            if(_cells[l].contents == "xx")
            {
                rowlen = _cells[l].parent.cells.length;
                a = 0;
                while(rowlen--)
                {
                      _cells[l].parent.cells[a].paragraphs.everyItem().appliedParagraphStyle = doc.paragraphStyles.item("ParA");
                      a++;
                    }
                _cells[l].paragraphs.everyItem().appliedParagraphStyle = doc.paragraphStyles.item("ParB");
                _cells[l].appliedCellStyle = doc.cellStyles.item("CellA");
                }
            }
        }
    

    Kind regards

    Cognet

  • Application of paragraph style problem and adding page breaks

    I work on the formatting of a novel in InDesign.   I met two problems.   The first of them is to apply a paragraph style to a specific paragraph.  Every time I try the paragraph in question shows a '+' after the style in question and will not apply the style.   I know that the sign '+' means that the style changes were made but I want to apply the style as it was before those changes were made and InDesign doesn't let me.

    The second problem concerns export ePub.   I inserted page breaks in some places inside the InDesign file, but when I export to ePub, the export process ignores the page breaks.  I know that I deal with text content may be but I don't want my scene headers (chapter) appears at the bottom of a page in the ePub.

    Thank you

    Command-click to erase the wrinkles too.

    Re page breaks, in the paragraph style for the scene (chapter) headings, try to tick in the paragraph Options of Style, tab Panel Options export, Split Document (ePub only).

    I can't remember, but you will need to check the document page can be Split in the EPUB - export of content Options. (see below).

    (Is there a forum for InDesign ePub).

Maybe you are looking for

  • Cannot get into the BIOS of the Satellite Pro 4340 due to non-functional keyboard

    I seem to have changed some BIOS settings that cause the keyboard no longer works.If I press ESC when you start the computer, I get the message waiting "verification system. Then press [F1]. »However, pressing the F1 key does not bring me anywhere. I

  • Satellite Pro A200 does not start

    Hello I have an A200 with XP PRO installed.After a defrag routine and restart the laptop when starting BACK gets to my page of the screensaver then made noise off closing down. No toolbar appears is just all right tomy log in page and I have to stop

  • Data acquisition mx with two Async. Events

    Hi all I have very little experience in the use of hardware DAQ-mx and I having some problems of implementation of the following task: With the help of the NOR-6259 I try to use the counter 0 to count a random semi TTL pulse train for a number of pre

  • mix and cut video

    How to cut and combine a .avi file...? I say a video file that contains frame 0 to 100, 40 to 60 frame are useless.

  • WRT160Nv2 - drops of LAN connection

    I just bought and installed a WRT160N.  Connection Wi - Fi works very well. Wired also OK but it falls without error in the logs: unable to connect to the URL but connection status is "connected." IP / release renew seems to fix the problem but it's