Forum Replies Created
-
AuthorPosts
-
Theunis De Jong
MemberThat's because GREP styles don't do any replacements. They only can apply character styles to text.
Theunis De Jong
MemberThere is no setting for an exact amount of space between the plain text and the first footnote, because:
- Footnotes are always placed at the very bottom of the text frame.
- The text above the footnote and the text inside the footnote may have a different leading.
- Widow/orphan prevention may move one or more lines from the straight above the footnote to the next page.
Point (1) is totally beyond your control.
To counteract Point (2) you could make the leading for your footnote text the same as the leading for your main text. The leading needs to be the same. The only alternative is to have the same number of lines in all of your footnotes.
Point (3) can only be circumvented if you totally and utterly ignore all window and orphans in your text (which is, actually, frowned upon) and never use any blank line at all in your text (because that might end up right before a footnote), and — worse of all! — if you don't mind having a heading at the very bottom of a page … (because moving the heading to the top of the next page would leave a blank line above the footnote, and you don't want that).
As you can see — hopefully! –, these alternatives are way, way more ugly than having slightly different spacing between note and text. Absolutely nobody would noticed that, but having headings at the bottom of a page …
Just don't be bothered about this.
(Seems like a very cool text, though. Heavy Metal Rulez!)
Theunis De Jong
MemberIt doesn't work like that. The Running Header variable picks up the plain text from the style (paragraph or character), all formatting gets lost.
(Somewhere in my long, long wish list is that Character styles optionally could get picked up.)
Check the glyphs list for the font you're using: if you are in luck, you can insert that character immediately as a superscript one in the chapter title. It depends on the font; not all fonts come with all (or even some) pre-drawn superscript characters.
If not, you'll have to use the Old Skool method, pre-variables-style: copy the master page, put the running header in the any way you like, then apply this master page for that particular chapter only. For the rest, you can use your automated headers.
Theunis De Jong
MemberIt's not possible, GREP styles are meant to look for text patterns only.
Theunis De Jong
MemberIt probably can be scripted, but it'd still need some manual tidying up.
Perhaps you could mark the 'updates' in the real text with Conditions — these are visible in your InDesign document, easy to insert (rather than XML), invisible in all output, and a script can gather all text marked with some condition and copy it into a new document.
It's also possible to automatically add a source page number to the copied fragments.
September 23, 2010 at 4:55 pm in reply to: Why don't the page up or page down keys work properly? #57102Theunis De Jong
MemberIt's easy to change the behavior to what you'd expect, though. “Next Page” & “Previous Page” can be found somewhere in the Keyboard Shortcut Editor.
(I'd tell you in what section, if I only could remember it — it was somewhere unexpected, I know that. Use the “Show Set” command to get a list of all commands, then search in there.)
September 19, 2010 at 4:06 pm in reply to: Paragraph Style with auto fractions and normal integers #57053Theunis De Jong
MemberAside, Chuckie:
Find: d+/d+
Change: d+/d+
(with backslashes in the most likely positions) Nope :-)
GREP codes only are there for finding, not for replacing. Either type any replacement text, or use a special code for 'what was found' in the Replace field. The code '$0' will insert the entire found item, and, when working with parenthesized groups in the Find field, you can use $1, $2..$9 to move them around or insert stuff between them. In your case I'd say every occurrence of a fraction would have gotten replaced with the literal text “d+/d+”, but your comment says it didn't work at all, which is A Bit Strange.
If you only want to apply formatting to found text, you don't even need '$0'. Just make sure the Replace field is empty. And, of course, provide some formatting, or else the text will get replaced with nothing.
September 19, 2010 at 3:44 pm in reply to: Paragraph Style with auto fractions and normal integers #57052Theunis De Jong
MemberOdd. d+/d+ appears to work just fine …
You really shouldn't be using your d+/d*, because that will match 1024/ — since the asterisk stands for zero or more characters … But perhaps the Opentype coding in your particular font is protecting you against this. The below image is Minion Pro:

You must keep in mind the “Fraction” Opentype feature isn't really strictly defined, and may well work quite good in one font (when done by a good Opentype-savvy designer) and not-at-all in other fonts. There are long discussions on 'how to write good Fraction code' on Typophile, but actually implementing all that code is left to the designer.
(Double backslashes show up as one. Be careful when editing, because then they'll be single ones and you'll have to double them before re-posting. I dunno about the images, I can upload one if I want to. It's possible David rigged that up for me ;-) )
September 15, 2010 at 1:22 pm in reply to: Change telephone nr formatting? (Jongware, I need your help buddy!) #57020Theunis De Jong
MemberThat's really good, Roland! Pat on the back from Holland.
I had a go at it, and you seem correct: it needs 5 groups (perhaps 4, if you don't include the '6' and put it in the replace).
You are in luck if all of the phone numbers are formatted the way you shown, otherwise it'd need .. let me see … This monstrosity:
Find
31 6(d) *(d) *(d) *(d) *(d) *(d) *(d) *(d)Replace
31 6 $1$2$3$4 $5$6$7$8— and you'd better hope all of them start with the same “31 6” prefix, because InDesign's GREP stops counting at $9!
Theunis De Jong
MemberThe usual (recommended!) settings for plain text is to keep at least 2 lines together at the top and at the bottom. In this case, the last two lines of the paragraph on p. 9 are kept together on p. 11 (what happened to p. 10?). These two lines do not fit on the previous page because they both contain a footnote, and therefore there must be enough space at the bottom of p. 9 for those two lines plus their footnotes.
It seems you are not allowing to break footnotes across pages, which is commendable, but in this case shows it not always produces “nice” results.
It's also possible the keep options in the footnote's paragraph style prevents them from breaking.
Try this: drag out the bottom of the text frame on p. 9 until you see the text wrap into place. The amount you have to enlarge the text frame is what you should try to win, on this page or earlier, to get what you want.
Theunis De Jong
MemberSo the text goes, “name address address name address name address address (etc.)”, right?
How do you know what a name and what the address is?
Do they come in with some formatting applied? (even though it's the wrong formatting) — because then you could use Search & Replace. Search for 'blue' text and put your Name style in the Replace With formatting. Search for 'black' text and put your Address style in there.
Are there blank lines between successive names, for example, a single Hard return? Because then you can apply “Address” to everything, then use GREP to format all paragraphs-after-a-double hard return. (Ask & ye shall receive guidance on this.)
Okay, had to try first ;) This GREP Find will find and replace either the first paragraph in a story, or just those preceded by two hard returns (and no spaces on that blank line, please):
^((?<!r)|(?<=rr)).Make sure the Replace With text field is empty, and your paragraph style is in the Replace With formatting field.
Theunis De Jong
MemberDavid, that podcast was from 2008 — I just stumbled upon (™, no doubt) these “Notes on InDesign 2 as compared to FrameMaker 7“, which places it around 2002 AD:
11. There are convenient shortcuts for all types of navigation in tables: move to first/last cell in a column/row, add/delete row/col, etc. Also, you can add rows or columns to a table simply by option-dragging the table boundary.
Theunis De Jong
MemberI have written a Javascript to test, and it seems to work fine for basic elements — text and fill/stroke on object, applied through styles.
It does not work for items on a master page (you have to override these) and for bulleted lists (you have to convert these to text). It also doesn't work on table and cell styles, but theoretically that should be possible as well — I left it out for now because it's a bit more work ;-)
But it requires discipline in your document setup and style usage!
- First, you create swatches named “Page 1”, “Page 2”, “Page 3/4”, “Page 5/6/20”, and so on. The “x/y” notation lists multiple pages where the same swatch may be used — sorry, no niceties such as “Page 5-20” or “Page xxiv and xxvi up to the end” are allowed.
- You create one single swatch called “Color Placeholder”. Make it a bright “bad” color (I suggest Hot Pink) so it's clearly visible when applied.
- You apply this color only and exclusively through paragraph styles, character styles, and object styles. You cannot apply it directly to text or objects; that is because the applied color will get changed by the script, but the style color (“Color Placeholder”) will still be 'underneath'.
- If you run the script, it scans all paragraph, character, and object styles for a fill color “Color Placeholder”, and for object styles also a stroke color “Color Placeholder”. If it finds a style with that color in the definition, it finds all occurrences where that style was applied, checks on what page it occurs, and changes the color in place — leaving the style unchanged.
It's important that it changes the color “in place”, by directly changing the applied color. That's so you can run the script again, after inserting or removing pages, and editing text, and that's why you have to apply the color through styles.
It's also important that you actually define a swatch for every page — if the script cannot find a color for page x, all items on that page will remain in their original color (Hot Pink, or one that was assigned in a previous run).
You can download the test script by right-clicking here; select “Save Target As” (or equivalent) and save it right into your User Script folder. Don't forget to create the swatches and set up your styles before running!
September 10, 2010 at 2:55 pm in reply to: Any Way to Synchronize a Book to Turn On/Off Layers? #56977Theunis De Jong
MemberMr. Screens, no need to leave it at that!
Try this script: layersPerBooks.jsx (right-click and select “Save Target As”, or equivalent, into your User Scripts folder. You might need to remove the .txt extension that some browsers automatically add.)
It works like this:
- First, it checks if you have one single Book file open. Due to an unfortunate mistake of Adobe's, one cannot trust ID to handle more than one Book at a time when scripting …
- Then it opens all of the individual documents from that book.
- It checks all layers of all documents, and builds a list of just the ones that occur in every book. That's just to make sure, because …
- then it displays a tiny dialog, where you can check on and off the individual layers! The initial setting is taken from the first document in the book, but you are free to check and uncheck all of them at will.
- It applies the changes to all documents, and then you can:
- Do nothing — the documents stay open, unsaved, on your screen. I'd recommend this when running it for the first time. I tested the script, of course, but please make sure it works as I am hoping it does.
- Save. All documents are saved when changed but stay opened on the screen.
- Save and Close. (No explanation needed, methinks.)
Theunis De Jong
MemberNot necessarily. If you only need the text, you can click your text cursor anywhere into a running story and select “Export”, then select “Rich Text Export” in the “Format” drop down menu. Word can read RTF text as good (hum hum) as it can read its own files.
But it depends on what you are expecting … RTF export doesn't include any text or images that are in a frame of their own, and I'm not too sure about embedded images either. InDesign also has loads more text formatting options than Word does (oh — Word has “word underlining” … can't think of anything else that would be useful), and this formatting will get Lost in Translation, as will custom non-mapped glyphs, and — I think there was a question regarding that on the Adobe InDesign Forum — Word cannot handle large font families with more weights than “Regular” and “Bold”.
The Light Side, then, is both Paragraph and Character styles ought to translate to their Word counterparts, meaning, you can export to RTF, edit the text in Word using the same paragraph and character styles, then read back into ID and have your original style styling back. (Or so I've heard. I've never been tempted to try it — What Happens in InDesign, Stays in InDesign, is my credo. Well, one of them, anyway.)
-
AuthorPosts
