Back

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

Forum Replies Created

Viewing 15 posts - 61 through 75 (of 110 total)
  • Author
    Posts
  • Matt Mayerchak
    Participant

    If you need someone to test it, I’m happy to oblige.

    Matt Mayerchak
    Participant

    Chris,

    I would try to set up my workflow so that I would never need such a thing. Even so, I can think of a few real-world examples of where it would be useful:

    For instance, I’ve worked on financial reports for mutual funds where you have 15 different 2-page documents and they all have the same “disclosures” i.e. legal copy on the sides and bottom, but the main body is different for each. So, could you run this script to see if the legal copy has been updated to match all of them?

    Conversely, we have run into problems where we wanted the legal copy to be different – but only in a specific place – and make sure it wasn’t just copied from one doc to another by the production artist. So we might want to run the script and make sure it finds the different fund names in the legal copy for each. It would be nice to have it highlight just the parts that were different, so you don’t have to read through 4 paragraphs of 6-point type to try to find the 3 words that are supposed to be different in each, and make sure the rest of it was the same.

    Would it work this way?

    in reply to: Grep style for finding words at the end of a line #65797
    Matt Mayerchak
    Participant

    In a regular GREP, you can combine words as an OR expression with the vertical bar. So, for example, you could use just one GREP style for [and|but|or|for]. I have not tested this but it seems like it ought to work in this case.

    in reply to: Requesting help with GREP Look Behind … #65796
    Matt Mayerchak
    Participant

    Jongware wote:

    “a lookbehind cannot test for a variable length of characters. This is just too complicated for a single GREP.”

    I believe this may provide a clue to why I’m having trouble with a completely different GREP search of my own . . . Is this documented somewhere, or do you know this just from experience?

    in reply to: GREP removing parentheses #65795
    Matt Mayerchak
    Participant

    The expression above will remove ALL parenthetical expressions from your text. Is that what you want?

    You could narrow it down to just finding sets of dimensions using centimeters by changing it to \((\d+ x \d+ cm)\) – but this won’t find fractions or decimal percentages. However, there are ways to do all of those as well, so it’s just a matter of how specific you need to be or how general you can get away with being.

    in reply to: Placing Word .docx file with Nonbreaking Hyphens #65781
    Matt Mayerchak
    Participant

    Oops! Just realized a mistake in my post above. To clarify: If you place a Word file with NonBreaking Hyphens as a .doc file, they DO come through as Nonbreaking Hypens (not normal hyphens). They don’t LOOK any different – you can’t see a code character for them. But if you search for them with Find/Change, you can find them.

    So, the problem only shows up if you place the .docx file. Editors can still use them in Word, but should save the file as a .doc file so you don’t lose them.

    in reply to: Mirrored sequential numbering? #33757
    Matt Mayerchak
    Participant

    Something to try (It works, but may not be what you need):

    1. Create a new document.
    2. On the master page, put a text box for the backwards number (could be within the ticket art)
    3. Click on the flip horizontal button so the page # box is mirrored.
    4. Add pages to the document.
    5. Create the numbers in Excel, then save the column as a text file and place the text file into Indesign, one # per page or per ticket. Since the master text frame is flipped horizontally, all the text that is placed will be flipped on each page.
    6. To get the #s to be only one per page, you can change all the paragraph returns to Column Breaks. You could run several ticket on a page, or one page per ticket. Should work either way.

    I tried the idea of having the page #s be your ticket #s, and this works, but you are limited to 6 digits. There are options for using prefixes and text variables that might help with that, but I think generating the #s in Excel is probably easier.

    in reply to: Calculate in tabels #33735
    Matt Mayerchak
    Participant

    It’s not doing it in Indesign, but if you link to an Excel table, you can update the linked file and maintain the formatting. Or just copy the column, paste to Excel, do the math, and then copy & paste it back in. Not ideal for a long document but it’s worth mentioning for just a few tables because when you paste into a table from outside of Indesign, you can retain the Indesign formatting.

    in reply to: Varible space with paragraph rules #33675
    Matt Mayerchak
    Participant

    It’s not a great solution, but you could make a series of paragraph styles with different settings and apply them based on how many items you had in the column. If it were only a few variations, and a short document, this might be a viable approach.

    Alternately, you could have a separate paragraph that is blank, following the price, and that is the one that has the rule style applied to it. Either just a return, or, if that will mess up your QA, you could have a special character such as an em space or any of the fixed white space characters, so you don’t see two returns in a row when doing QA checking. Not sure if that will give you the desired result. But I don’t know of any “proportional” scaling option in the paragraph rules dialog.

    in reply to: Search and Change Case Script #33674
    Matt Mayerchak
    Participant

    I have the script and it works in CS6. But you can’t select a paragraph style, or All Caps . . . you have to search for a GREP string. Will that work for you? Doesn’t sound like this will do what you want.

    Dave Saunders wrote a script that worked in CS2, but not later versions. So, a few others got together and updated it. I just tried it and it works in CS6. You have to apply a character style to the ALL CAPS text and run the script (the script searches by character style). Then, either remove that character style or just change its case to normal to remove the All Caps and you’ll see that the text is still all uppercase.

    Here’s the link to the script:

    https://forums.adobe.com/thread/899486

    in reply to: Mirrored sequential numbering? #33663
    Matt Mayerchak
    Participant

    Ah – yes, I see I missed that “mirror” part. So, you just select the text box and click “flip horizontal”.

    If it needs to be anchored in other text, you anchor a flipped text box.

    in reply to: Need regex help #33659
    Matt Mayerchak
    Participant

    So is the Spanish formatting different in different places? And is it always the same as its English counterpart?

    I’m having a hard time visualizing what this document is supposed to look like when it’s done.

    Sound like you are trying to create 2 sets of the same text, but with different formatting? But,not all of the Translated (or 2nd set of English) text has the same format – is that right?

    Are all the pairs of English paragraphs supposed to look the same?

    Or are all of the “English 2” paragraphs supposed to look the same?

    in reply to: Misbehaving Import from Word… #33658
    Matt Mayerchak
    Participant

    Hi – sounds like this is related to the problem I was having with Tracked Changes coming in from Word .docx files. See this article:

    https://creativepro.com/clearing-word-track-changes-markup-indesign.php

    Check your Import Options when you place the text. What settings are you using? Are you stripping formats and keeping only local formatting? Make sure any buttons are turned off that you don’t want, such as track changes, even in the sections that are greyed out. Apparently, the XML format of a .docx file stores the formatting info in a different way than in a .doc file so it still gets through Indesign’s import filter.

    So, adjust your Import Options and try again until it works. And let me know what happens!

    in reply to: Mirrored sequential numbering? #33656
    Matt Mayerchak
    Participant

    You could gang up a bunch of GREP searches, one for each # of digits. If all #s ended with something like a tab or a return, for instance – you have to include that or it will reapply to the ones it already reversed.

    Start with the largest – in this case, a 10-digit #.

    Find (\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)\r Replace with $10$9$8$7$6$5$4$3$2$1\r

    Then repeat for 9 digits, 8 digits, etc. As long as you have the ending code (\r) for a return, or () for a tab, or even a space character, you can control how many digits it will find at a time.

    You can run them all at once using FindChangebyList (a free script) or gang them up into a set with the $39 Multi-Find/change plugin from Automatication.

    in reply to: Need regex help #33655
    Matt Mayerchak
    Participant

    Jaime,
    The problem is that you are finding both sets of the English text, so that when you apply formatting to what you find, you apply that to everything. You could be using a positive look behind command to find only the Spanish text, but then it won’t have the English text to replace it with.

    Without seeing your document, it looks like this may require a multi-step process to isolate the Spanish text, because if there is only one return between each set of paragraphs, and they just alternate, Find/Change may not be able to tell which ones to trap and which to ignore. Is there anything unique about the Spanish? Sounds like it has unique formatting – if you can search for that and apply a unique paragraph style to it, that would be a good start.

    Then, you can find all of the Spanish and add something unique before it, such as ???, then you could do the (.+)\r???(.+) and replace with $1\r???$1 (replace what would be $2 with $1. Then you could reapply the Translation paragraph style to all paragraphs that begin with ???, and then remove all of the ???.

    Again, without seeing your document, this is an approximation, but the idea is that you need to do something to make the Spanish text unique so that you can replace it.

Viewing 15 posts - 61 through 75 (of 110 total)