Back

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

Forum Replies Created

Viewing 15 posts - 541 through 555 (of 584 total)
  • Author
    Posts
  • in reply to: Indesign "Grep" #94071

    David,

    Why not if 1 line! … … but if 4? ;-)

    I often (maybe too often) think more globally because if this fixes this problem now, that won’t fix another more complex later!! …

    https://www.dropbox.com/s/zre3v170jyaffsa/Capture%20d%E2%80%99%C3%A9cran%202017-05-02%20%C3%A0%2012.21.16.png?dl=0

    (^/)

    Question: How post a screenshot here? =D

    in reply to: Indesign "Grep" #94056

    Peter,

    Volander seems to be bored by an “underlined” title!
    One way I use avoids, if his title has only 2 lines, to add “false spaces”, playing with 2 para rules (with no effect on the TOC)!

    (^/) ;-)

    in reply to: Indesign "Grep" #94054

    Hi Peter,

    If only 2 lines, 2 para rules.
    If more, 2 para rules + 1 grep style: [^\r]. + 1 regex: find \x20 replace by $0\x20 [I suppose each line is separated by a soft-return]

    (^/)

    in reply to: Superscript with underline #94040

    Kai, I totally agree!

    A very important point: They don’t want to pay … but they no more want to search if such a script has already been written by somebody!!
    So I’ve decided now not to give code for free and … not to indicate them where they can find a free script!!!

    I know people will find I’m not cool! … but I don’t care and I remain a Jedi!

    (^/) ;-)

    in reply to: Index from Character Style #94021

    Jack,

    In your case, you need consulting!

    Maybe David has time to spend with you!

    Not me! … And I’m not really sure the guys who tried to help you on the InDesign Adobe forum would be glad to read your present comments if they don’t run, as others and me, on the main forums about ID!

    More people would need to seriously read the ID “help” giving by Adobe rather than spend time on forums to try to find someone to make their work for free!

    Boring! :(

    (^/)

    in reply to: Superscript with underline #94006

    Kai,

    Personally, no scripts for free now!
    If somebody wants to save time (and money) using a script, it’s time for him (or her) to pay for Scripters’ knowledge!

    (^/)

    in reply to: Change to "Wildcard" in GREP? #93972

    Hi,

    If I understand well, you want to replace all “YYY XXXXXY” by, randomly:

    CND 48248w
    JND 28585i
    WLU 10982m
    DWJ 99209k
    DMX 65542e
    ORK 61765f
    CCA 10155l
    OUH 98115y
    MQR 70956o
    RHQ 60107h

    But, maybe I’m wrong and … the truth is out there!

    (^/)

    in reply to: Trying to resize a table, frame resizing but not table..? #93971

    Hi Kaila,

    (^/)

    in reply to: INDD file search by (software) version? #93970
    in reply to: Superscript with underline #93969

    (^/) ;-)

    in reply to: Superscript with underline #93960

    I love this kind of answer: If you don’t want to have a problem, don’t do it! =D

    Based on default settings, I do it in 1 click for all the doc, regardless fonts/sizes [to be parametered in the script].

    2 char styles: “Underlined” & “Underlined_Superscript”.

    (^/)
    [Script not for free! — Beta]

    Cool!

    (^/) Join The Rebellion!

    in reply to: Help fixing a GREP style #93720

    PSM\K2

    (^/)

    in reply to: Excluding from a GREP style #93718

    Hi David,
    That’s what I’ve called a “back door”!
    Don’t search it! I’ve Invented the concept! =D
    You use a “global” grep style but sometimes you don’t want it to be applied!
    So, you include into it a “back door”!

    (^/)

    function checkWhichTable() {
    if (app.selection.length != 1) return null;
    var currentTable = app.selection[0];
    if (currentTable.hasOwnProperty(“baseline”)) currentTable = app.selection[0].parent;
    while (currentTable instanceof Cell || currentTable instanceof Row || currentTable instanceof Column) currentTable = currentTable.parent;
    if (!(currentTable instanceof Table)) return null;
    return currentTable;
    }

    app.doScript(checkUserSelection, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, “Process Table”);

    function checkUserSelection() {
    var a_table = checkWhichTable();
    if (a_table == null) {
    if (confirm(“No table selected. Do you want to process *all* tables?”) == false)
    return;
    allTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
    for (var a = 0; a < allTables.length; a++) processTable (allTables[a]);
    } else processTable (a_table);
    }

    function processTable(myTable) {
    myTable.rows.everyItem().height = “36pt”;
    myTable.cells.everyItem().autoGrow = true;
    var myParas = myTable.cells.everyItem().texts[0].paragraphs.everyItem().getElements(),
    P = myParas.length,
    myTextInCell = [“Activity”, “Possible Answers”],
    myParaStyle = “table H2”,
    myRegEx = new RegExp(“b(” + myTextInCell.join(“|”) + “)b”);
    for ( var p = 0; p < P; p++) if (myParas[p].contents.match(myRegEx)) myParas[p].appliedParagraphStyle = myParaStyle;
    }

    //__(^/)

Viewing 15 posts - 541 through 555 (of 584 total)