: Underline all initials after a tab In my Indesign Style (CS6 on Windows 7) I want to apply the style underline to all initials that come after a tab. NASCAR National Association for Stock
In my Indesign Style (CS6 on Windows 7) I want to apply the style underline to all initials that come after a tab.
NASCAR National Association for Stock Car Racing
So the initials all get underlined in the expansion to indicate the letters for the acronym. I am making a list of acronyms, so I want to grep this.
Here is what I have:
(?:(?<=t))(<.)*
(?<=t)(<.)
These will only underline the first letter after the tab.
So I thought of just underlining capital letters in the expansion, because in acronyms it's not always just the first letters of words:
(?<=t)((?i)[A-Z])
But that does the same thing.
How can I do this?
More posts by @RJPawlick971
2 Comments
Sorted by latest first Latest Oldest Best
Solution 1
You can achieve this with 2 Grep styles (in the right order).
First catch all uppercase characters and apply underline character style to this first query: u+
Then catch all characters before tab and apply a new character style set with no underlining:
.+(?=t)
Solution 2
For an 'all-in-one' solution, try this: u(?!.*t)
Which basically would translate as Catch all uppercase characters except those followed by the pattern 'Any character (zero or more times) followed by a tab'
It’s all depends of your actual text...
If you just have a bunch of lines with Acronymes you can use this simple one.
u(?=l+)
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.