Forum Replies Created
-
AuthorPosts
-
Masood Ahmad
ParticipantYes there is:
Find What:
(\[bold\])(.+?)(\[bold\])
Change to:$2
Change Format:bold character styleMasood Ahmad
ParticipantThen this will suit you best:
Find What:
(?<=(\[bold\])).+?(?=(\[bold\]))
Change to: Change Format:bold character styleHope this works :)
Masood Ahmad
ParticipantClyde, what do you mean by
[bold]. Is it a bold character or is it the word ‘bold’ within the square brackets.If it is the word ‘bold’ within square brackets then here is the code for you:
Find What:
(?<=(\[bold\])).+?(?=(\[bold\]))Masood Ahmad
ParticipantHi Eugene,
Thanks for trying this for me, but this is not the case. Nested Styles won’t work as the string I’m trying to style is a part of huge text, running into multiple pages. In that long-text, the location occurs several times, therefore, I’m trying to automate the styling. The only condition that matches with the location is that there are two hard returns and a heading ‘about the location’ running after it.
To Text:
^.+(?=(\r\r(?i)about the location(?-i)))I have achieved this through a trick but that is leading me to an additional step.
Any other ideas…
Masood Ahmad
ParticipantYou can upload it to your Dropbox and share the link here or can email me at
masoodahmad@inbox.comBy the way has the code for your “free package” (listed above) worked?
Masood Ahmad
ParticipantHi Paul, try this to apply style to the Free Package:
Apply Style:
Your Character Style
To Text:(?i)free package(?-i)Regarding your second query, It seems I haven’t understood your query very well. I would suggest you to upload your InDesign file or atleast provide three-four paragraph of text to understand it better along with your query in detail. For example: what the text will look like and what you want to achieve.
Waiting….. to help :)
Masood Ahmad
Participant@David, It seems the site has become a fun-site for fun-lovers :)
Funny post by Pan.Masood Ahmad
ParticipantSo, in the above example, where do you exactly wants to insert the line-break?
Masood Ahmad
ParticipantLuis, based on the text you gave in the starting, I created a code and tested it in CS6. If it is not working for you, then please supply some more text, lets say three to four paragraphs.
Masood Ahmad
ParticipantOr
Find What:(^[\u ]+\.?)([\u ]+)Masood Ahmad
ParticipantHi Luis, try this using GREP Find/Change:
Find What:
(^[\u ]+\.?)([ ]+)
Change to:$1\r$2Please let me know if it works…
May 22, 2015 at 6:37 am in reply to: When creating a calendar using tables, how do you move the days forward/backward #75553Masood Ahmad
ParticipantJongware, that was a great script. I love the way you share your talent and experience with others. Thanks.
Masood Ahmad
ParticipantHi Paul,
I was not available for the last couple of days and I didn’t realized that there is another question hidden in this thread. If you would have started a new post with your newer question, then someone else might have answered it.
However, here are the codes as per my understanding:
1. How do you find a work to apply a style to? ie ‘Free package’ anywhere within a paragraph?Answer:
Apply Style:YourStyle
To Text:Free package2. Apply one style to ie. ‘The Crown Hotel’ \r this is any name at the start of a paragraph before the soft return, then followed by location ‘Dorset’?
The paragraph would look like this….The Crown Hotel
DorsetAnswer:
Apply Style:YourStyle
To Text:(^.+\r)(?=Dorset)Hope these will help.
Regarding your hyperlink question, I think that is not possible. Might be someone else could have a better idea…
Masood Ahmad
ParticipantI’m not sure what is going wrong even if you have tried all the possibilities. Just thinking about the Keep options. Might be the “Keep Lines Together” is clicked ON.
Masood Ahmad
ParticipantThat is under File Menu > Action Wizard > Edit Actions > Import
I’m talking about Acrobat X Pro. -
AuthorPosts
