GREP in parastyle - all the words in tiny paragraph outside the first word

Hello. I hope for more assistance with the implementation of a GREP in a paragraph style.

I'm composition several books and the many subtitles (all in the same paragraph style) are written so that each word is capitalized. The editor here now only the first word of each subheading to be capitalized, and instead of working my way through them manually, I was wondering if a GREP could achieve this? I know there are exceptions with proper names, but they are few.

Any help appreciated, as any quick explanation on each part of the GREP so I understand better how it works!

If the text was actually indexed using corks, it cannot be changed using GREP, but it may be film script. Script updated Dave Saunders style find/change case script would probably do what you want (change because of the sentence).

Tags: InDesign

Similar Questions

  • GREP style: Find all the letters between

    I am trying to create a GREP style to deal with a signature of two lines like this:

    -Name of the author,

    Source cited

    I want the name of the author to be caps/sc and the font that I use has an established expert, so I need to replace only the lowercase characters of the name of the author with the sc. character style

    So far, what I did is creat a character style that is defined as the Roman. I then to my grep styles:

    peps.jpg

    The italic style applies to the 2nd line (after a forced line break) very well.

    However, I can't do it sc style to apply to my lc between the em dash characters and the comma. I can get the sc to be applied to the whole line, if I use '. ' for any character, but "\l" does nothing for me...

    Someone at - it advice?

    Thank you

    Chris

    Thanks for the help. You led me in the right direction.

    I was doing too complicated and I still don't have a firm grasp on what GREP may or may not do.

    I solved the problem with GREP styles:

    The reason that I can't apply sc for the first line is because the font I'm using is old and includes a set of expert. In police expertise, there are only small capitals. Strikes in uppercase are reserved for the factions, currency symbols and other glyphs not standards.

    Best,

    Chris

  • Grep / select text before the first comma

    Hi all

    is the GREP expression to select all the caracheter before the comma frst of a paragraph and turn all the carachter in small capitals

    example:

    Cesare della Manna, Napoli. Omicidio. [u.d.i.]. 31 May 1589.

    Giovanni Angelo Rosa, Nola (Naples). Omicidio. [u.d.i.]. June 3, 1589.

    Giovanni Maria Valente. Omicidio. [u.d.i.]. 28 July 1589.

    TO:

    CESARE DELLA MAMMA, Napoli. Omicidio. [u.d.i.]. 31 May 1589.

    GIOVANNI ANGELO ROSA, Nola (Naples). Omicidio. [u.d.i.]. June 3, 1589.

    GIOVANNI MARIA VALENTE. Omicidio. [u.d.i.]. 28 July 1589.

    Any help will be appreciated,

    You can use ^. +?, but you don't need GREP at all to do. Create a character Style to all caps, then in your paragraph style, add a nested style to apply it up to 1.

  • GREP string to select the first 2 characters of an e-mail address

    I want o apply the formatting for the first two characters of an e-mail address:

    [email protected]

    the party @domain.com never changes so I can simply place in parentesis.

    So far I managed to isolate the word in front of the e-mail domain:

    \w+([email protected])

    I want to select only the first two characters of the word before the @domain.com

    any ideas?

    Thank you!

    No, sorry. Try this:

    \b[-\w]{2}(?=[-\w]+@domain\.com)

  • Find the first paragraph of each specific chained text block...

    Hi all

    I have this kind of layout:

    Capture d’écran 2015-08-27 à 10.46.02.png

    Capture d’écran 2015-08-27 à 10.46.20.png

    ... with several groups of text blocks chained [red, green,...].

    I want to find in the identity document all the first para of each text block defined by a "BLOCK of TEXT GREEN" object style and apply a paragraph style "GREEN PARA STYLE while FIRST THE block"! as:

    Capture d’écran 2015-08-27 à 10.47.01.png

    Thank you much for the help!

    Here is a new version:

    main();
    
    function main() {
        if (app.documents.length > 0) {
            var story, containers, container,
            doc = app.activeDocument,
            stories = doc.stories;
    
            try {
                app.findTextPreferences = app.changeTextPreferences = NothingEnum.NOTHING;
                app.findTextPreferences.appliedParagraphStyle = doc.paragraphStyles.item("GREEN PARA STYLE FIRST ON BLOCK");
                app.changeTextPreferences.appliedParagraphStyle = doc.paragraphStyles.item("GREEN PARA STYLE");
                doc.changeText();
                app.findTextPreferences = app.changeTextPreferences = NothingEnum.NOTHING;
            }
            catch(err) {
                $.writeln(err.message + ", line: " + err.line);
            }
    
            for (var i = 0; i < stories.length; i++) {
                story = stories[i];
                containers = story.textContainers;
                if (containers.length > 1) { // process only chained text blocks
                    for (var j = 0; j < containers.length; j++) {
                        container = containers[j];
                        if (container.appliedObjectStyle.name == "GREEN TEXT BLOCK") {
                            try { // if the style or the 1st paragraph is missing, write error message to console and continue
                                container.paragraphs[0].appliedParagraphStyle = doc.paragraphStyles.item("GREEN PARA STYLE FIRST ON BLOCK");
                            }
                            catch(err) {
                                $.writeln(err.message + ", line: " + err.line);
                            }
                        }
                    }
                }
            }
        }
        else {
            alert("Please open a document and try again.", "Error", true);
        }
    }
    
  • All the fonts in the browser are bold, italic & fonts in XL, wrong word...

    Hello, I am desperate to find a solution...

    I have a new HP6604f, windows 7 (64-bit) Home Premium, full office 2010 pro. It seemed to work Ok when pulled up and after all updates have been made employment insurance policies are tiny, most of them are in italics. Tried it on firefox and all the "BOLD" fonts, many are in italics.

    At the same time my XL, Word files have fonts that display ittalic and there is no way to recover them as not italic. The format is shown as used... the files are very good on my lap top and other PC

    even in typing this shows italic!

    Thanks for your help!

    Hello

    I did a restore of the system complete, all wiped out and restarted from scratch. All was well in the browser, no problems with fonts and attributes are displayed.

    As with all new PC, they come with a bunch of stuff..., j that I deleted all the things that I don't agree with or use etc... One of them being PressReader from Newspaperdirect provider digital press, you can subscribe. After that I started from scratch I checked carefully the State of the browsers and fonts whenever I uninstalled unwanted software.

    Of course once I uninstalled PressReader police problem was ironed in browsers and in my XL and Word files. I started from scratch once again and this time do not uninstall Pressreader... it works.

    It's a shame that you have to keep things you did not because in the first place and you should be able to choose to keep or not without it affecting your system. So that solved my problems of police & hope it will never happen again!

    Thank you for all help everyone!

    Martie

  • How to use GREP expression to group the last two words of a paragraph?

    Hi guys, I'm dealing with a document that is riddled with the orphan and want to use GREP to get rid of them all.

    I found this thread talking about how to group all the last 10 characters. But in my language, you can have up to 4 words together (almost a third of the sentence!) and still not break the limit of 10 characters. So if I use this expression, a sentence cut in half way, which make the whole paragraph looks horrible. I also tried the (\s\w+)? $ expression, but he left a few intact orphans (No. very random, model at all).

    So is there any other expression that can make the last 2 words of any paragraph together like glue stick?

    (\H+?\h ?) {2} $

    (^/)

  • Only second grepping through letters from the end of a Word

    I want to convert all text located in a certain style of character of capital letters at the beginning of Word. A script by a man named Peter... can perform the conversion, but I grep' disputed ed and can not handle the selection. Thank you!

    Example:

    HELLO Hello convert

    Thank you!

    I found it! Negative look back allows to eliminate the first character of each word (?)

    Then use the script to change all lowercase. Damn!

  • How can I add a style "BOLD" grep on the first occurrence of a Word?

    Hi all

    I need help on adding a style "BOLD" grep on the first occurrence of a Word.

    I can add the "BOLD" to the word, but it adds to all occurrences, see below:

    GREP style (Incorrect)

    Apply Style: "BOLD"

    Text: \ < Lorem Ipsum\ >

    Nam Lorem Ipsum semper pellentesque tincidunt. UT nisi sit amet arcu nulla tristique dictum. SED commodo total non mauris cursus pretium. Lorem Ipsum Aliquam erat volutpat. Morbi id pretium justo. Nam lorem quis facilisis molestie risus fermentum. Vestibule ut sem elit. Nunc eget neque Sed elementum augue EU outbound.

    I need only the "BOLD" to add to the first occurrence of the word, as below:

    Nam Lorem Ipsum semper pellentesque tincidunt. UT nisi sit amet arcu nulla tristique dictum. SED commodo total non mauris cursus pretium. Lorem Ipsum Aliquam erat volutpat. Morbi id pretium justo. Nam lorem quis facilisis molestie risus fermentum. Vestibule ut sem elit. Nunc eget neque Sed elementum augue EU outbound.


    Thanks in advance for the help!

    This should do it for you

    Apply style

    "BOLD"

    text (? i) ^(.+?) Lorem Ipsum

    apply the stye

    Book

    text: ^. * ? (? = Lorem Ipsum)

    The first expression search all the text from the beginning of the parapgrah through the Lorem Ipsum

    The other defines the rest of the text before the Lorem Ipsum to the base style (book, novel, or whatever your basic style)

  • Image Viewer does not offer native zoom level unless layout.css.devPixelsPerPx is set to 1.0, which makes all the tiny interface.

    Asked me to shake my question in one sentence, so this is.
    Image Viewer does not offer native zoom level unless layout.css.devPixelsPerPx is set to 1.0, which makes all the tiny interface.

    DevPixelsPerPx is - 1.0 by default, which causes Firefox to scale with the parameter of the BONE, which is perfectly fine. The problem is that it causes also open image files and especially the zoom level, nationwide also identical to the user interface. A zoom level is adapted to the screen, the other is native. (One is a magnifying glass with a '+', the other a '-'.) Or rather, the other * should * be native, but in practice, it is not native, is climbed by the setting of the BONE, making it as arbitrary and fuzzy like any other level of zoom, which defeats the whole point and does not allow access to a native scaling in any reasonable way.

    If you want to experiment, here is something you can try, a bookmarklet that inserts a 'Native' button on the page. It takes into account your level of "net" zoom current and reduced the image natural dimensions.

    (1) select and copy the following script:

    javascript:var btn=document.createElement('button'); btn.style.cssFloat='right'; btn.appendChild(document.createTextNode('Native')); document.body.insertBefore(btn, document.body.firstChild); btn.addEventListener('click', function(){var img=document.querySelector('img');img.style.transform='scale('+(1/window.devicePixelRatio)+')';}, false); void 0;

    (2) right-click a task on your bookmarks bar or, if you do not display this bar, click on the bookmarks menu button and right click a place there, and then click new bookmark

    (3) paste the script in the location line

    (4) assign a name like native, and then click Add a bookmark

    While you look at a picture, click the bookmark (let) to inject the button. Then click on the button to resize the image.

    Success?

    If you change the zoom level of the 'page', click on the new button to resize it due to the change.

  • Updates for silverlight, word 2003, outlook 2003 andpublisher 2003 filter junk still fail to install. All the answers?

    Updates for silverlight, word 2003, outlook 2003 Junk mail filter, and publisher 2003 appear in the form of automatic updates, but still do not settle. All the answers?

    Re: Silverlight

    See this thread: http://answers.microsoft.com/en-us/windows/forum/windows_xp-windows_update/silverlight-error-code-0x5df/891d1d79-f50d-4cc2-b879-1d749d8e30ab

    Re: Office updates (you forgot to mention why you couldn't install updates).

    Download the complete and even install (if necessary with the support of Office 2003 installation in the drive).

    or

    Code error '0 x 80070646', '646', or '1606' when you try to install the Office updates
    http://support.Microsoft.com/kb/2258121

  • Search in all the files for a word or phrase

    I need to check primary batch files but eventually need to check all the hard drive for files that may contain a word or phrase.   How can I do?

    Download, install and use The Agent Ransack. It is much better than the built-in search tool. And it's free.

  • All my Word documents somehow got converted to the format of WordPad and not change back. Why?

    I just noticed that all the documents I have stored on my hard drive got converted to format WordPad somehow.  I have no idea why.  When I open Word and then open the file in Word and click to save it in word, it always records in WordPad format.  I have no idea why this started happening.  When I create a new file with Word and save it, it also converts somehow in WordPad format.  I'm totally stumped.  How can I fix?

    Hello
    Right-click on the .docx file, select Properties,general in G tab, click Edit , select the Microsoft word application, if don't figure does not, please browse the path where you have installed on the local system & select the EXE file.apply
    Then check!

    Hope it will be you.
    Kind regards
    Chauvet J.
  • My disaapeared just Microsoft Word 2003 to my Microsoft Office Suite, all the rest is still there, but it disappeared. What can I do to get it back?

    My disaapeared just Microsoft Word 2003 to my Microsoft Office Suite, all the rest is still there, but it disappeared. What can I do to get it back? I used it just a week ago and now when I CLICK IT IT SAYS ON the FOUND NOT.

    try doing a System Restore on your PC.

    or insert your product CD and the fix

    or reinstalled it.

  • Word 2007 file type and icon changed file DOCX type credits and icon on all THE Documents in Word 2007

    All of the files in Word 2007 suddenly turned into generic DOCX files when you check the properties. All the icons have also changed. Opened my backup disk, and now those that changed everything. How can I change them all back to Microsoft Word 2007 as file type and retrieve the correct icon?  Was it a Windows update that caused the change? I have Windows Vista Home Premium with service pack 2, 64-bit and a laptop HP dv4-1430us.  I am petrified to send one of these files to anyone that concerns me, that it might cause the same happen on their computer. Thanks to anyone who can help! News Forum on the issue seem to be for Windows 7 and Word 2010.

    Hello

    1. This only happens with Word icon or any other program icons?

    2. did you of recent changes on the system?

    You try to use Word as the default program to access documents and check if it helps.

    For more information, you can consult the following article:

    Change the programs that Windows uses by default

Maybe you are looking for

  • How can I fix my browser settings?

    My cat walked on my keyboard and set it where a text entry cursor appears when I click on my browser window. Buttons home and end does not work and I don't know what it is she has done, as she used to open random programs when she does. I would like

  • Thumbnail/photo

    Hey I have a few question 2 days ago before I updated my firefox, this site "Animekompi.web.id" showed the picture/thumbnail normally. And yesterday so far I've already updated my firefox twice, when I opened this website, the image did not appear li

  • I am suddenly unable to print a page then through firefox. Still capable of if I go through IE.

    I went to print a bill payment confirmation and it would not print, he asked me to send documents,... which he did not no more. Last week it worked fine and if I go through IE it works fine.

  • HP Pavillion DV6 laptop: HP Pavilion dv6 notebook HD, win7 need replacement

    I have a HP Pavilion dv6 notebook. It came with win7 preinstalled. I have the product key but when I goto the MS site to download it says that they produced key came from an OEM install then goto to the OEM to get the operating system. OK HP I need b

  • Color laser jet 2600n: Color laser jet 2600n

    I can't find a driver for Windows 10 for my laser jet 2600n Colorado? Thérèse any driver that works for Windows 10?