Questions to copy text, including GREP styles

Hello.

I have a block of text, which contains text formatted with styles, and a particular style by contains a GREP style, making a certain word "BOLD" and colored.

When I copy this document to a new document that does not contain the styles, paragraph styles are made, but the character GREP style is not fired.

If the character style in the receiving document, then all is good.

Is this normal? I was expecting the character style that is attached to the paragraph style to be included automatically in the target document.

Is there a way to get around this? I want to make it as perfect as possible, but for now I need to make sure that I have loaded before as I have paste the character style.

See you soon


Roy

It should not. Try trashing the prefs - see replace your preferences

Tags: InDesign

Similar Questions

  • Copy text with styleinformation

    Hello

    I work in Indesign CS5 with javascript.


    The problem:

    I want to replace the parentStory of managers of related texts related with the contents of a Table of contents newly created (which is a story). After which I can delete the newly created TOC.

    Why not just update the Table of contents? Simple, at a Table of contents of a tocStyle which is not in the document, I get a new table of contents in a new textFrame. I only need 1 table of contents, but the tocStyle may change, so it's not quite an update. (If someone has an idea to solve this problem, it is fine also.)

    My first thoughts went to put the history of the textFrame I need to replace in the oldStory and do it with content: oldStory.content = newStory.contents;

    But when I copied the content I lost all the style information. All paragraphs have the same style, and I lost the characterstyles.

    Maybe my mind has a bad day, but I don't seem to be able to copy text with the style from one place to the other information.

    Can someone help me?

    Thanks in advance,

    Glen

    By his description, the "content" of all text objects only contain ASCII/Unicode characters and overall SpecialCharacters stuff. Formatting is handled "elsewhere".

    Try oldStory.move (), that should work.

  • GREP style allows text in square brackets

    I'm just starting to understand some ways that I can use GREP in the messy confusion of the documents that I have to work here, so patient with me...

    We have a load of technical writers here who do not necessarily have a lot of experience InDesign, but be used to enter text. A text must be "BOLD" to attract the attention of the end user, so I thought I could use GREPs for apply a bold style to certain words and phrases that occur in any of the documents. Such a forum is intended for users to renew the clips or bolts or similar, so I did what I think is a GREP which finds 'renew' and applies to every word between it and a return or a period (but exclude the word "renewed", because the other permutations that follows):

    renew (?.) Ed.*?). +(\.| \r)

    That works very well in most places. But I fell on cases where there is an image reference in parentheses after the occurrences of 'renew' in places (such as "you must renew the clips (see figure 6)'") and I would like to exclude the media and their content of style. But as a beginner, I had a little if bogged down hit brick walls trying to find ways to do it. Can anyone offer a suggestion?

    Thanks for any help.

    Doug, you use GREP (to find and replace) or GREP Styles? (by your description of what it does)

    If GREP Styles:

    1 no need to use (\. | \r) at the end GREP Styles automatically stop at the end of each paragraph.

    2. no need to use (?) Ed.*?) a simple (?.) ED) is enough here, as long as this corresponds to what didn't really matter if / what follows.

    Try it shorter:

    renew (?.) ED) [^ ()] +

    -This text makes bold to 'renew' and the end of the paragraph * or * up to the first parenthesis.

  • Is it possible that the text Variables can be sensitive GREP style?

    I grep styles defined within a paragraph style and they apply to everything correctly except for one repetitive text variables?

    Is this a limitation of the software?

    Yes, the composition engine handles all conent of the variable as a single character. For the same reason the content of a variable cannot break and crushed to two lines.

  • GREP Style question

    I need help with a formula of GREP styles.

    My customer needs to put in the form of specific letters within a word in all uses, so my solution is to character styles applied via the number styles, GREP styles. I don't know the formula to use, however.

    Say the word is "ThisBrand", and character styles should be applied to the "s", "B" "a" and "n". Do you know that can GREP I use in the paragraph style?

    Hello pariah Burke,

    You want to use a grep style (s) only on the word Thisbrand?

    Try this:

  • GREP style quandry

    Hello

    I have problems with a piece of GREP style to a paragraph.

    The question is this:

    I have a long paragraph of information that is punctuated by coloned headers. There is no paragraph breaks between the inputs and the next kN, only a Euclidean space. Each subheader is different in number of words and some of the entries have barely more than 1.

    I used the following simple GREP to apply a 'fat' style for headers:

    (?<=\.). +?:

    This concludes the colon and the text fine, but the postanalyse positive for the fullpoint stop design merges if there is more than one fullpoint (IE more than one sentence) in the previous entry and will include all the text after the first fullpoint in the previous entry as well.

    That is to say, a section which is:

    ... end of the previous entry. Another: blah, blah. BLADY boo. Next: Boohoo. ...

    Makes me:

    ... end of the previous entry. Another: Blah, blah. Blady boo. Next: Boohoo. ...

    Instead of:

    ... end of the previous entry. Another: Blah, blah. Boo Blady. Next: Boohoo. ...

    It seems that the GREP is to see the first fullpoint (after "blah" as the only important and not close to the colon (the one after "boo").

    Unfortunately, you try to use the matching shorter codes before the postanalyse seems to break the GREP entirely.

    So the question is:

    Is it all the same to a positive (or equivalent) postanalyse this first fullpoint before the colon? Or I am in cloud cuckooland with this one?

    This was the crazy driving all week, because it seems simple, but this new man GREP can't break it!

    I tried a lot of combinations and even attempted a second GREP style to cancel the error in the first, but this due to its own problems.

    Thanks for any help/pointers and thanks for looking, even if you can't.

    Hi, I am not an expert in GREP, but had a similar thing not so long ago.

    Give this one a try: (?)<>

    Here you can find a good helper:

    http://www.jongware.com/idgrephelp.html

    http://blog.gilbertconsulting.com/2009/12/grep-lesson.html

    http://InDesignSecrets.com/grep

  • Temporarily stop the execution of grep styles

    Hello

    I still bring a book with lots of texts in three languages. I have several paragraph styles with up to 10 grep styles. So my short of very slow InDesign files, I think that cause grep styles in my paragraph style.

    My question is, is there a way to prevent the grep style to run in the paragraph style without removing them?

    Concerning

    Sascha

    Hi Sascha,

    Add an asterisk in front of the GREP expression: *.

    Uwe

  • Delicate required... GREP style using a subexpression not staining to find space characters

    I have the section headers in my paper which have a paragraph that are applied to their style. They are always of the form \d\.\d\.\d\.\d(\t) follow in a short sentence of the text. For example:

    5.2.2.1 the rain in Spain falls gently on the crane

    I'm looking for a style GREP can highlight the character of each word with a character style, but not the spaces between words. It seems to imply nested iterations which I do not know how to do, including an expression not staining. Well, it isn't working how I think it should...

    5.2.2.1 the rain in Spain falls gently on the crane



    I think that this style of GREP should get it: (? < = \t) ((\S) +(?:\ s)) + positive looks on the tab between the last digit of the section number and the first word, but the hair subexpressions are not spaces to underscores, instead, I find myself with all the head text highlights as follows:


    5.2.2.1 the rain in Spain falls gently on the crane

    "Nonmarquantes" subexpressions mean nothing to InDesign; You can only use in search operations and replace GREP.

    There may be a single GREP (complicated) style that works, but it might be easier to point out everything and then apply a second GREP style that takes away the underlining of your spaces.

  • GREP styles - excluding whole words

    A project of datamerge we were experimenting GREP styles to see if we can get the text to change the names automatically.

    We basically data that came with "Firstname Lastname" in a few places. In only one of the occurrences we want to remove 'Lastname' then thought we would experience a GREP style for this. We use a character with a fill of none style to achieve.

    So we have "Dear Firstname Lastname," and you want to make a style of GREP that is just "Lastname", but leaves the "Dear" and "First name" single. Targeting "Dear" and "First name" with a GREP style was easy. "Dear\s\S +" is "Dear" followed by a space, followed by anything that is not a space until it reaches the next space. However, applying the same logic to exclude it was not so easy.

    We tried a postanalyse to say look for "Dear" followed of a Word and exclude them, then apply the style to the rest of the line. We started with (? < = expensive) \S+ who worked to exclude just 'Dear' and apply the style to the rest of the line, but when we added the rest of the expression to create (? < = Dear\s\S +) we got nothing? We were able to get (? < = Dear\s\S) \D+ to work. It excluded "Dear", more space and the first letter of "Lastname", but we can't seem to find a combination that will include the whole second word ("Firstname").

    Maybe it's that there is an even easier way to do that simply target the first two words of a paragraph, but we have not been able to find a way to do either. Maybe we're just too ask many GREP styles and it is not possible... but we approach!

    I know it's probably easier to address this issue in the data by doing a new field in advance, but we don't have that luxury this time.

    Thanks for the pointers that anyone may be able to give.

    Steve

    OK, I guess that I do not take your sense of the first time through. Can I use the deprivation of sleep as an excuse?

    Of course, that's just my opinion, but I think that if there are some styles to make, either nested or GREP, we should limit the paragraph style so that those paragraphs that would be greetings, even if it means using a realtionship of style based on the isolate. Given the description of the problem where the paragraphs seem to begin with 'Dear', I'd be willing to bet that there no cases of paragraphs in this position in the merger that doesn't start like that.

    And I really don't like your solution.

  • GREP style - applies to some extent

    Hello

    We run a catalog with products that are often part of their range excluded, and the style for the product descriptions is to have everything after the word "exclude" in italics.

    We use a GREP style Excludes(.+\n) *. + \r to apply the italic word "exclude" from, and it works fine.

    For example, we can have a description like "company name cheese slices 250 g slices of low fat does not include", so our GREP style applies the italic style on just "excludes Low Fat slices '."

    A new situation happened where there is perhaps now some content that appear after the text "excludes" where we do not want the italic style applied. The new text will be always start with a dollar sign, but I can't work on how stop style GREP right here.

    So the description can now be "company name cheese 250 g sliced Exclut Low Fat slices $1.50 each or'.»» "We want the ' excludes Low Fat slices" to be picked up and italic with the GREP style, but don't want the ' $1.50 each or "at the end to be affected. We want to stay in the original style, unitalicised.

    I guess it's a matter of telling the GREP style to arrest whenever he meets a "$" after "does not understand", but I can't get out.

    Is it possible to do?

    Thank you

    Steve

    Is this the first time that appears a $? If If you can use a second GREP style to apply [no style] to the $ and following.

  • Using grep Style

    Hello!

    I need a grep for this style:

    I got a list of style names. I need to DIMENSIONS: at the beginning of all the names of styles, what is grep for this style?

    Thank you!

    b GREP Styles can add (or change) text. To do this, you need a regular GREP search / replace.

    (b) Eugene is partially right--is the code for "the beginning of the paragraph.

    ^

    but he forgot that you can search for a 'position' but you cannot use it in a search/replace operation, and you must always include at least a single character. To do this, you can use the wildcard character. (period) like this:

    Search

    ^.

    Replace it with

    SIZE: $0

  • In my GREP style, I want it to find another / (slash) in defined glyph

    Hello!

    I have a GREP style that I used to find fractions and it works fine.

    The question now is, we will not use the standard / in the set of glyphs, but another. This is a unique integrated into the police.

    It's the GREP style part I find her.

    ( ? < =\d)/(?=\d)

    Now, I need to replace the symbol between the 2 sets of parenthesis, the sound thing actually apply a style of character, to a unique symbol of the search in the set of glyphs, but I don't know how to replace it. I tried to copy and paste, but it did not work.

    Is there a way to tell a GREP Style to find a GLYPH UNICODE or GID number?

    So, it might look more like this:

    (? < = \d) GID217(?=\d)

    Thank you

    Babs

    I think \x {} is the correct syntax to refer to a unicode value.

  • Point to add to the script or Grep Style?

    Hello

    Is it possible to add a hightlight to a script?  Basically, what I want to do is highlight the text and the tricky part is that the text changes size depending on the size of the file, we are working on that.  I want to highlight automatically the "FOR PROFESSIONAL USE ONLY" the way that we do now is to underscore that in the menu options underscore: say my font size is 8, leading 9.6 (these will always change).

    Weight: = 9.6

    Shift: = - 8*.33

    Color = yellow

    It's the way we do now.  Can it be scripted or Grep style which will automatically do this for certain lines of text only?  And no matter the font size calculate what he needs to do if its 2pt, 10pt 100 PT etc... It will highlight the text specified correctly?

    I hope it's possible...

    Thank you

    The lower one is best.

    I remove a bug and also if not 'what' is provided to the point function culminating and there is no entry in find it which is the find panel of text and text is selected, then this text is highlighted.

    An idea in the script is that a shortcut can be applied to it and it will get its information from the Panel of text search.

    So for now to change the answer to this one

    // Highlight function by Trevor
    // http://creative-scripts.com
    // Custom Scripts for Adobe InDesign, Illustrator and a lot more
    // Beta Version 1
    // https://forums.adobe.com/message/8898663#8898663
    
    function highlight(what, color) {
        var range, s, doc;
        doc = app.properties.activeDocument;
        if (!doc) {
            return 'No Active Document';
        }
        s = app.selection && app.selection[0];
        range = (s && s.properties.underline !== undefined && s.characters.length) ? s : doc;
        app.doScript(f, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, 'Highlight Text');
    
        function f() {
            var finds, find, l, leading, pointSize, currentChangeProps;
            color = color || app.activeDocument.colors.itemByName('Yellow');
            // Store current find change text settings
            currentFindTextWhat = app.findTextPreferences.findWhat;
            currentChangeProps = app.changeTextPreferences.properties;
            what = what || currentFindTextWhat;
            if (what !== '') {
                // if no what is provided then the current entry in the find text panel will be used
                app.findTextPreferences.findWhat = what;
                app.changeTextPreferences.changeTo = '';
                app.changeTextPreferences.underline = true;
                app.changeTextPreferences.underlineColor = color;
                finds = range.findText();
                range.changeText();
                l = finds.length;
                while (l--) {
                    find = finds[l];
                    leading = find.leading;
                    pointSize = find.pointSize;
                    leading = pointSize * find.autoLeading / 100;
                    find.underlineWeight = leading + 'pt'; // This is presuming that font and leading size is set to points!
                    find.underlineOffset = (pointSize - leading) * 1.5; // The 1.5 might need tweaking but seems to work well
                }
                app.findTextPreferences.findWhat = currentFindTextWhat;
                app.changeTextPreferences.properties = currentChangeProps;
            } else if (range !== app.activeDocument) {
                leading = range.leading;
                pointSize = range.pointSize;
                leading = pointSize * range.autoLeading / 100;
                range.underline = true;
                range.underlineColor = color;
                range.underlineWeight = leading + 'pt'; // This is presuming that font and leading size is set to points!
                range.underlineOffset = (pointSize - leading) * 1.5; // The 1.5 might need tweaking but seems to work well
            }
        }
    }
    
    /***************************************************************************************************************************************
    ** If text is selected then the "highlighting" is only applied within the selected text                                              **
    ** Otherwise the "highlighting" is applied within the whole document                                                                **
    ** One could change this to apply to what ever is selected in the Find text document if one wanted to                                **
    ** To highlight the word(s) in the find text panel just use highlight(); or highlight(undefined, app.activeDocument.swatches[5]);    **
    ** One can use highlight('Foo'); to highlight "foo" and ignore what's in the find text panel                                        **
    ** The formating / styles etc. for the find are taken from the find panel                                                            **
    ** If one provides a swatch as the second argument highlight(undefined, app.activeDocument.swatches[5]); that swatch will be used    **
    ** otherwise yellow will be used                                                                                                    **
    ** If one provides a swatch as the second argument highlight(undefined, app.activeDocument.swatches[5]); that swatch will be used    **
    ** If text is selected and what argument is given and the find what in the find panel is empty then the selected text is highlighted **
    **************************************************************************************************************************************/
    
    highlight();
    
  • GREP style - apply character style to the opening and closing parentheses surrounding a 0 (but not 0)

    Hello

    I'm relatively new to GREP style and will have to put in shape about 600 postcards containing various data (via the merger of data), including phone numbers. Consider the following data set:

    1. + 44 (0) 123467800

    2 (©) copyright

    3. (name of the program)

    I want to tell Indesign to stagger the opening and the closing parenthesis of the baseline (with a character style), but only the bracket that include a 0 and, possibly, without affecting the 0 value between them.

    Seems like an easy task, but it is impossible to find a solution. Could someone help?

    Thank you very much

    Antonio

  • Find whole words with Grep Style

    Hi, need some help with this, he cannot know.

    I need to find some words in the style of a paragraph. I have created a character style to 'be bold' and you want to paraghaph style 'ainesosat' to use it when there are words in the paragraph.

    the words are for example

    Rasvaton maitojauhe

    Maitojauhe

    Juustojauhe

    Kerma

    VOI

    I know I can find these with this string:

    Rasvaton maitojauhe | Maitojauhe | Juustojauhe: Kerma. VOI

    but I don't want to find for example:

    Voimakassuolainen

    -includes "Voi".

    Also the words could begin with capital letter or not. I can of course dublicate chain and do both, with or without capital letters, but if there is a better solution for it, I'd be happy to hear...

    Tero

    1. add parentheses and word limits:

    \b(rasvaton maitojauhe | Maitojauhe | Juustojauhe | Kerma. \B voi)

    2. Add the flag "ignore case" at the beginning:

    (? i) \b(Rasvaton maitojauhe | Maitojauhe | Juustojauhe | Kerma. \B voi)

    See InDesign help | Find/replace for GREP options. You can use almost all the search commands in a GREP style, but does not replace those. ('Almost', because a GREP style, by definition, is limited to a single paragraph to work, and tempting to cross paragraphs automatically him will fail.)

Maybe you are looking for

  • Question mark flashing at startup

    Spring 2011 MBP with EL Capitan.  Thus, used my MBP last night and he started beachballing and force apps to quit smoking, I started but performance has not improved and the beachballing continued.  Was not yet able to click on the Apple icon to rest

  • MiniNote does not open

    I clicked on the application, but it does not work. He does not even recognize that I clicked it.

  • elements of permutation ring photo

    I can't understand something. I design a ring photo with three symbols for imitate a manual valve with 3 States (open, closed, unknown state). I dropped the 3 photos required via the Clipboard. I realized that the order was not good, so I wanted to r

  • Office 2007, MS Binder replacement?

    Upgrade us to OFfice 2007, several people have asked about a replacement for MS Binder (Office 2000).If something is a simple to use replacement to help people to develop complex manuscripts which may include documents in Word, Powerpoint, Excel, Ima

  • Photosmart Premium C410 and XL cartridges

    I have a Photosmart Premium C410.  It comes with 1 Black XL cartridge and 4 ordinary cartridges. I bought replacement cartridges which are XLs in all colors and the picture, too. However, I don't think I can replace the regular cartridges with XLs.