Back

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

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: GREP find not working in javascript #67427

    rZ does appear to work in InDesign CC.

    in reply to: GREP find not working in javascript #67426

    I thought that should work, but I tried rZ using InDesign CS6 on Mac and could not get it to work.

    in reply to: Changing a text character to a symbol or solid box help #67423

    I was not thinking in terms of using a grep style, but I suppose you could, but you still have to change the 1 and 0 characters to something else. You could do 2 find change grep operations through the find change dialog, using the grep panel.

    findWhat: \A1\Z changeTo: \x{F0A2} — unicode for solid black square character in Wingdings2

    findWhat: \A0\Z changeTo: \x{F0A3} — unicode for open square character in Wingdings2

    For changeTo formatting for both, also indicate Wingdings2 font or character style that specifies it, or use grep style. I’m working on a Mac, so I not certain you would be using the same values if you are on a PC.

    in reply to: Changing a text character to a symbol or solid box help #67420

    What do you mean by making the textbox “into a solid”? Are you trying to simulate checked and unchecked check boxes? I don’t think you can alter the fill color of the box using grep alone, but you could probably simulate the same visual appearance using two different symbol characters using a grep find and replace. Assuming the targeted textframes each contain only a single character, either 1 or 0:

    \A1\Z would match a solitary 1 in a textframe

    \Z0\Z would match a solitary 0 in a textframe

    Replace the 1 and 0 with appropriate symbol characters. Would that work for your situation?

    in reply to: GREP find not working in javascript #67404

    In a script, try using positive lookahead “r(?=Z)” for findWhat property. Note, this will also delete the last return at the end of any table cell as well. Works in InDesign CS6.

    I’ve updated the script to expose the grep expression used to match the format of the chapter/section identifiers in the user interface of the script, so it can be customized. The default setting matches what you describe, I think. New version available at https://press.matthewmariani.us. My contact info can be found at https://www.matthewmariani.us

    Hope that helps.

    Alexandro,

    If I’ve understood your requirements correctly, I may have written a script that meets your need. This script has been very MINIMALLY tested. The requirements for the script to work are:

    1. A specific paragraph style is assigned to each section heading
    2. The chapter/section identifier is normal text and comprises the first characters of each section heading.
    3. The chapter number is separated from the section number by a colon character.
    4. A specific character style is assigned to each case name
    5. No section heading appears inside of a table (It’s OK for case names to reside inside of tables)

    I’m posting the script to my site https://press.matthewmariani.us along with an idml file you can use to do some initial testing.

    So each section begins with a chapter/section designator, for example, 1.07 and this text has an applied character style of RUNNING HEADER? I mistakenly thought that the RUNNING HEADER style was applied to text in a running header. That would provide a hook to identify which section each case belongs to. Then the script would have to aggregate the chapter/section designators for multiple occurrences of the same case, right? I think that could be done if each citation of a given case is identical to every other citation of the same case.

    This can be done, but the script would need a way of determining which chapter/section each bit of text formatted with the CASE TABLE style appears in. Is the chapter/section indicated in the running header of every single document page? How is the chapter/section numbering implemented? Does the chapter/section number appear in a running header on a master spread? If so, is the master spread text frame containing the running header ever overridden to a publication page? The script would have to work based on the way the document is set up.

Viewing 9 posts - 1 through 9 (of 9 total)