Forum Replies Created

Viewing 15 posts - 481 through 495 (of 1,335 total)
  • Author
    Posts
  • in reply to: Change Style attributes #60826

    Designate one of your styles as the Master and base all of your other styles on that one. Then you only have to change the text color in this one.

    Alternative #1: if all of your styles already have some custom swatch applied, delete it in the Swatches panel and replace with the new one.

    Alternative #2: well I guess it can be scripted as well.

    in reply to: Grep simple query #60825

    That oughtn'tn'tt've happened. Which of the two GREPs are you using? (They don't mix!)

    in reply to: Grep simple query #60798

    Only for today I'll offer you not one but two ways.

    Search for

    (d.)[a single space]+

    Replace with

    $1t

    The parentheses mark “Found group #1”, and you can insert this back again in the Replace expression with “$1”. This feature is particularly useful when you need to swap two items around (in Replace you can use something like “$2 $1”) or want to repeat something (simply write “$1 $1 $1 $1” to get five copies of whatever you found).

    There is a more advanced way, though: you can search for one or more spaces and then use a Positive Lookbehind to ensure these are preceded by a digit plus a period. The advantage is the expression doesn't “touch” the digits, only (I believe it is an advantage, but for reasons more spiritual rather than practical. It may also run a bit faster.).

    Search for

    (?<=d.)[a single space]+

    Replace with

    t

    in reply to: Simple relink script help! #60779

    Kasyan, it's okay to use forward slashes in an InDesign script – even under Windows.

    in reply to: The Pub doesn't mean EPUB #60769

    We got our booze / bragging / pool table corner back to ourselves!

    But honestly David, excellent idea.

    So… no-one noticed I got rid of the long hair & 'stache? (As he inquired while lifting a cold one to his lips.)

    … Here is a script that does just that. Warning: it may change more than you want, and it's hard to see what it changed! Uncomment the fill-with-color lines if you need to know where the changes occurred (and run on a copy).

    indentStyle = “Body-Indent”;
    noIndentStyle = “Body-No Indent”;

    if (app.documents.length > 0 && app.selection.length == 1 && app.selection[0].hasOwnProperty(“baseline”))
    {
    story = app.selection[0].parentStory.paragraphs;
    lastStyle = null;
    for (i=0; i<story.length; i++)
    {
    // Do we need to change?
    if (story[i].appliedParagraphStyle.name == indentStyle ||
    story[i].appliedParagraphStyle.name == noIndentStyle)
    {
    // Do we want an indent?
    if ((lastStyle == indentStyle || lastStyle == noIndentStyle))
    {
    lastStyle = indentStyle;
    if (story[i].appliedParagraphStyle.name == noIndentStyle)
    {
    story[i].appliedParagraphStyle = indentStyle;
    // story[i].fillColor = “Red”;
    }
    } else if (!(lastStyle == indentStyle || lastStyle == noIndentStyle))
    {
    lastStyle = noIndentStyle;
    if (story[i].appliedParagraphStyle.name == indentStyle)
    {
    lastStyle = story[i].appliedParagraphStyle = noIndentStyle;
    // story[i].fillColor = “Green”;
    }
    }
    } else
    {
    lastStyle = null;
    }
    }
    }

    I presume you mean you might move “1st paragraph after a heading” and “any next paragraphs” around, and there should always be a “don't indent” style after any sort of heading (*) and “indent” after any “don't indent” OR “indent” style.

    I bet Framemaker does this out-of-the-box :) but in InDesign you'd have to run a script after every major edit.

    (*) Typically, one would never indent a plain text paragraph after a heading or some white space, such as at the end of a list.

    Ah, how ingenious mr. Bunt.

    Actually, I may have used your method before I knew how to script and thus had to use my brains!

    in reply to: Place image and change position? #60759

    Use move to move an image.

    .. whacked this out in 30 seconds:

    app.findTextPreferences = null;
    app.findTextPreferences.appliedParagraphStyle = “H2”;
    var myResults = app.activeDocument.findText();
    for (i=0; i<myResults.length; i++)
    myResults[i].parentStory.paragraphs.nextItem(myResults[i].paragraphs[0]).appliedParagraphStyle = “No Indent Body”;

    Can't be done, it needs a script.

    in reply to: Animation conumdrum: Is an Auto slideshow possible in IDCS5? #60738

    I don't think InDesign would be the program to design advanced SWF animations in. The Export-to-SWF option is rather intended for re-purposing a printed book, and not really meant as a full replacement for a Flash editor.

    in reply to: Help creating title/cover page in inDesign for epub #60737

    As you noticed, ePubs don't care about blank pages. You need to tell at what points you want a page break before exporting:

    Creating Two Kinds of Page Breaks in EPUB with CS5.5

    or fix it afterwards.

    [OT] Why is it people seem to interpret this forum name “The Pub” as “Th ePub”?

    in reply to: Change individual character height? #60696

    So the font is named “Verlag”? This one? https://www.typography.com/font&#8230;..eID=100009

    Well … not sure what to tell you. It's possible to change the height some characters 'globally' but I'm not going to tell you before you explain why you think 'u', 'y', 'v' and 'x' are “lower than the rest”. Perhaps it's just a screen artefact due to rounding, and it will disappear when you zoom in on the page or print it on paper. Or perhaps the font designer thought it would be nice to make his font that way.

    in reply to: how to grep ID5 #60692

    Mine, for example :D But that's not for beginners or faint-of-heart, though, as it focuses on the limits of what's possible.

    There are a few different flavors of GREP, but the differences are quite obscure and you can in general try any 'normal' GREP expression you find anywhere on the web. David gathered a couple of references:

    https://development.creativepro.com/grep

    and one of the first mentioned is Peter Kahrel's Shortcut, which especially targets GREP-for-InDesign users and has frequently been called “the best you can buy for a tenner”.

Viewing 15 posts - 481 through 495 (of 1,335 total)