Free online file hosting. Host your large files with one click. The easiest way to upload, download and host files.Indesign GREP Help. GREP is one of the most powerful features in In. Design. It can save lots of time: anything you can do with the regular text search and replace, you can do with GREP, and there are lots more things you can only do with GREP. But using GREP is hard .. The basics are easy enough to grasp: the concept of wildcards for any character, upper- and lowercase, and digits; start and end of paragraphs; zero- , once- and more- repeats; and even basic inclusion and exclusion groups. On September 14, 2016, Microsoft announced the release of OpenType version 1.8. This announcement was made together with Adobe, Apple, and Google at the ATypI. This is an index of all 7866 pages in PrintWiki. 1 | 2 | 3 | 4 | 6 | 8 | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X. Add nested grouping and OR bars, and things tend to get muddy (even though this allows for some fairly advanced tricks). Mention Negative and Positive Lookbehind and Lookahead, and your average In. Designer's eyes will start to glaze over. Throw in Expression Modifiers, Unicode and POSIX classes, and Atomic groups. Then, for good measure, take a look at If/Then/Else constructions .. GREP user will soon loose his grip over his own creations. Adobe doesn't make it easy to figure out why a certain GREP expression fails to find anything, as this may ultimately be for several reasons: Perhaps the text just isn't in your document. That's what Search is for, after all. Perhaps you made a logical error, and your GREP expression is syntactically correct, but not what you meant. And perhaps your GREP expression is simply wrong; an invalid expression always fails - - but In. Design doesn't tell you it is, only that it "Cannot find match". While I cannot help you on the first point, I can sure make the second easier, and the third point - - validating a GREP expression - - is "only" an exercise in programming acumen. That's where I wrote a script that lets you enter a GREP expression and test it for "correctness". In doing so, I had the pleasure of vastly expanding my GREP knowledge, up to and beyond In. Design's capabilities, as there are things even In. Design's version cannot do. It even revealed a few tidbits of knowledge about In. Design itself. For example, it's perfectly valid to enter a NULL character into the GREP search box, but at that point, the interface to Javascript breaks (apparently, Javascript strings are what's known as "zero- terminated" - - the first NULL character in a Javascript string will signify the string end). Another factoid is that the "Case Insensitive" switch in GREP translates your string into lowercase, rather than uppercase. I'll keep it a secret how I found that out, as it's a nice exercise for the reader, and quite unlikely to cause problems in daily use.) Another one is that the "Non- Marking Group" (?: text) is not really a group with a special command ?: , but in reality a "Modifier" list without any modifier at all (FYI, the allowed 'modifiers' here are i, s, m, and x - - you can enter more than one, but evidently also none at all). I was delighted when I deduced that, and a simple experiment, searching for (?- :text) proved me right (that's a Modifier Off Group, with a hyphen but containing no modifiers). But enough about me. What's this all about? What the GREP!? That's what people are shouting when their GREP doesn't seem to be working, and that's the name of the script. Before continuing with explaining what it does and what it doesn't do, download it here: whatthegrep- 0. KB; v. 0. 1(b), dated 1. Nov- 2. 01. 1)Unpack the ZIP to a temporary location. Copy the file "What. The. Grep. jsx" into your Users Script folder; if put into the correct place, it should magically appear inside your Scripts Panel in In. Design. Double- click the script to run. So .. what the GREP does it do? This is what it looks like: On running the script, it opens a dialog where you can enter or paste a GREP expression in. Initially, the last GREP expression you used is automatically shown, but you can edit it at will, or simply delete it and replace with another one. The Close button does just that - - it closes the dialog. May be handy if you changed your mind about running the script. The Show Me button creates a new document in your In. Design and writes out a full explanation of each of the codes in the expression, with all of its special characters explained, and all groupings enumerated and indented. This is the part where some expression may suddenly be more comprehensible! If the expression contains an error somewhere, it'll be mentioned in this explanation. As with all scripted dialogs, the Return key closes the dialog and runs the default action ("Show Me"), and the Escape key closes it without doing anything at all. Fortunately, that's not a problem with GREP - - no need to insert hard returns. You can insert Soft Returns (Ctrl+Return) but beware these will also pop up in the explanation. At the top of the new document, the original GREP expression is shown. At the bottom, a cleaned- up version is written out, with color codings and super- and subscripts denoting various properties. Any erronous code will be shown in bright red bold italics, so you can immediately see why and where the expression fails."What the GREP" understands a fair part of the regular daily commands. There are only a few cases where it reports an error where there is none - - for example, the expression [a- z[] is perfectly legal in In. Design, yet my script will notice the second opening [ and assume it's an error. However, in general, you are supposed to trust its judgement .. There are also a few rarely used command sequences that are baffling me, and that may cause the script to either accept a faulty expression (hopefully, very rare), or signal an error where there is none (not quite as rare as I'd hope..). Then again, if you are confident to actually use one of those functions, you'll be able to judge by yourself what your error was, as well as appreciate the amount of work I put into this. What the GREP only explains Find What expressions. Beginners, beware! Replace With" expressions are different from this, and you cannot enter a "Replace With" expression into the dialog and expect any meaningful results.(Some day I just might look into that as well, but not on any short notice!)In. Design's GREP flavor. Following www. regular- expressions. GREP features and In. Design's support for these, as I understand them. There are a few question marks, because I'm not really sure how these functions should to work .. Any comments on this list are highly appreciated! Note: not all commands listed as "YES" are recognized by What the GREP itself. Characters. Feature.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
October 2017
Categories |