Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 15 posts - 826 through 840 (of 1,338 total)
  • Author
    Posts
  • in reply to: Best way to create a gig guide? #56743

    Sounds like we should be able to improve your workflow in a couple of different (possibly excluding) ways. You say you've made a few — can you post a link to a PDF, so we can see how it should look? One of those pages ought to be enough.

    …[Copying] also copies over lots of spaces into the text which I end up having to delete manually …

    Look up Find/Replace in the Help :D

    in reply to: Synchronising footnote options #56737

    They fall under “something else” for sure. Footnotes are objects, just like text frames, rectangles, documents, and find/change sets, and have loads and loads of properties. Normally, I would write a script to copy all of the settings one by one, but … footnotes sure have a lot of them.

    So I wrote an entirely new sort of script :) It tries to copy intelligently whatever it can, from your currently active document (which should be in front of you), to either one single document of your choice, or to all open ones. In your case, you should open all of the documents in your book, then make sure the “source” for your footnote options is in front, and then run my script.

    It may display an alert telling you what items it cannot copy: not everything in the destination options can simply be “set” to the equivalent value in the source document. For example, if you created a custom character and paragraph style for your footnote options, there should be one with the same name in the destination documents. The same goes for colors and stroke styles.

    The script only copies the names of these objects, not their definitions! So if you used a stroke color “MyOwnSpecialColor” that is defined as blue in your source but purple in one of the other documents, the color will not change.

    The script is a bit too long to post in-line so d/l it here: ftnoptcopier.jsx (alternatively, download directly from my site: https://www.jongware.com/binaries/ftnoptcopier.zip)

    Download (use a right click and select “Save target as”, or equivalent) and move it to your User Scripts folder. Double-click to run — well, after opening all documents you need to adjust, that is.

    (After trying it: it seems it gets a .txt added to the file name for free. Remove this, it should simply be “fntoptcopier.jsx”, otherwise InDesign Does Not Compute.)

    in reply to: Word Count a book #56729

    Sure. Change the loop from

    for (var d=0; d<book.bookContents.length; d++)
    {
    doc = app.open (book.bookContents[d].fullName);
    words_a += countWords_a (doc);
    words_b += countWords_b (doc);
    doc.close(SaveOptions.NO);
    }

    to

    for (var d=0; d<app.documents.length; d++)
    {
    doc = app.documents[d];
    words_a += countWords_a (doc);
    words_b += countWords_b (doc);
    }

    in reply to: Transparency icon no longer visible? #56726

    I forgot to add: the Pages panel display options are exactly those of CS4, but of course that has the Transparency Icon on by default.

    in reply to: Word Count a book #56725

    Counting words is a sort of Black Art: What is a Word?

    This script will open all of the documents in your book, count the words according to 2 different methods (I'm sure other scripters will find more ways), then display the results. Then choose which number to believe ;)

    //DESCRIPTION:Count Words Per Book
    // A Jongware Script 18-Aug-2010
    book = app.activeBook;
    words_a = 0;
    words_b = 0;

    for (var d=0; d<book.bookContents.length; d++)
    {
    doc = app.open (book.bookContents[d].fullName);
    words_a += countWords_a (doc);
    words_b += countWords_b (doc);
    doc.close(SaveOptions.NO);
    }
    alert (“Number of words: “+words_a+”rOr possibly: “+words_b);

    function countWords_a (aDoc)
    {
    var w = aDoc.stories.everyItem().words.length;
    return w;
    }

    function countWords_b (aDoc)
    {
    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = “\w+”;
    var w = aDoc.findGrep().length;
    return w;
    }

    I still feel “Dimensions Include Stroke Weight” is what Hyland is looking for :)

    Check the Transformation panel popup menu — I think the setting you seek is in there.

    in reply to: Transparency icon no longer visible? #56705

    It seems to be off by default.

    The usual: close all documents, switch on in Pages Panel menu/Panel Options, there you go.

    Odd choice, Adobe.

    in reply to: MathMagic plug-in automation #56691

    Since you are new to InDesign, this will suffice (for the above equation; adjust for your own needs):

    • drag out a new text frame and type “N (subscript) j” into it
    • draw a horizontal line and position it somewhere below the N frame
    • drag out a new text frame and type “Sigma N (subscript) j” into it.
    • drag this frame to the correct position below the horizontal line
    • select all three objects and group. Now you can move it around at will and place anywhere you want.

    How could anyone automate this, for any equation? You tell me.

    in reply to: MathMagic plug-in automation #56686

    1. Ask MathMagic.

    2. What do you mean with “any way”? There is no hidden equation editor in InDesign, or something like that. I do things like these all the time, entirely manual:

    in reply to: GREP MULIT LINE SEARCH #56672

    Slightly easier is to use the Single-Line Modifier ?s — this puts GREP into “single line mode”, where ^ and $ will match start/end of story, and the period may also match a hard return (which it does not by default):

    (?s)(?<=<XYZ>).+?(?=</XYZ>)

    Afterthought: this will also apply the paragraph style to the first line containing the marker. If you don't want that and it's always followed by a hard return, use this:

    (?s)(?<=<XYZ>r).+?(?=</XYZ>)

    in reply to: Figure spacing script/plugin? #56659

    Not minus, use hyphens. But perhaps something else got formatted nicely :)

    I've put the script onto my website: AlignNumbers.jsx — Download from there and save as “alignNumbers.jsx” into your Scripts folder (etc.); then, if it still fails it must be Some Other Error. I wrote & tested it using CS4, but I don't think there is something to make either CS3 or CS5 trip over.

    in reply to: Figure spacing script/plugin? #56655

    Eh!

    That should be “add hyphen hyphen”, not “add en-dash” (!).

    in reply to: Figure spacing script/plugin? #56649

    I agree with you both: if I can, I select an entire column and set a decimal tab. But there are occasions where I opt for Figure spaces — I even assigned a hotkey to it.

    This script has been in the making for some time, because usually when I only have to align 1 or 2 numbers (or 3 or 4 or …), I set my mind on Blank and go moovin' that ol' cursor around an' hittin' the Figure Space shortcut, but all the while I'm thinking “hold on, there's got to be a better way”.

    Surprisingly, this script is quite versatile: you can select any number of cells, horizontally, vertically, or even an entire Table. It uses a tiny GREP instruction to count the number of leading digits, so it will ignore anything that may come after it (such as decimal points, percentage signs, or a text such as “bottles of beer”). The longest decimal run count is saved, then it loops again over your selection, counting the digits that are in each cell and inserting Figure Spaces at the start to match the longest run.

    Copy, paste into the ESTK Editor that came with InDesign. Save into your User Scripts folder, select any number of cells, then run the script:

    //DESCRIPTION:Align Digits in Selected Column(s) in Table with Figure Spaces
    // 11-Aug-2010 A Jongware Script
    if (app.documents.length > 0 && app.selection.length == 1 && (app.selection[0] instanceof Column || app.selection[0] instanceof Cell || app.selection[0] instanceof Row || app.selection[0] instanceof Table))
    {
    txt = app.selection[0].cells.everyItem().contents;
    longest = 0;
    for (i=0; i<txt.length; i++)
    {
    nspan = txt[i].match(/^d+/);
    if (!nspan) continue;
    if (nspan[0].length > longest)
    longest = nspan[0].length;
    }
    for (i=0; i<txt.length; i++)
    {
    nspan = txt[i].match(/^d+/);
    if (!nspan) continue;
    add = longest-nspan[0].length;
    while (add– > 0)
    app.selection[0].cells[i].texts[0].insertionPoints[0].contents = SpecialCharacters.FIGURE_SPACE;
    }
    } else
    alert (“No table column(s) selected”);

    in reply to: replace with unnamed swatch #56648

    No idea why it's designed that way. Perhaps it's swatches that were added later on, since you can just create any color you want using the RGB or CMYK sliders.

    But of course you can use its pendant: add unnamed colors to swatches. That'll show you exactly what colors are applied, somewhere in your document.

Viewing 15 posts - 826 through 840 (of 1,338 total)