Copy link to clipboard
Copied
What is the easiest way to get every time a specifc word appears to be capitilized (first letter only)?
Create a character style and call it's 'Cap first letter' or something similar
so then you go to the paragraph style and insert the GREP code and apply the style
Style is Cap
code is
\b(w)(?=ord\b)
for whatever word you want - you can replace it like tbps - I think you asked in another thread
so the code would be
\b(t)(?=bps\b)
or if it's concrete
\b(c)(?=oncrete\b)
any word you want
if you change the word - say in my example to 'words' or 'wording' then the w reduces back to low
...Copy link to clipboard
Copied
Create a character style and call it's 'Cap first letter' or something similar
so then you go to the paragraph style and insert the GREP code and apply the style
Style is Cap
code is
\b(w)(?=ord\b)
for whatever word you want - you can replace it like tbps - I think you asked in another thread
so the code would be
\b(t)(?=bps\b)
or if it's concrete
\b(c)(?=oncrete\b)
any word you want
if you change the word - say in my example to 'words' or 'wording' then the w reduces back to lowercase, as it no longer matches the string.
Copy link to clipboard
Copied
thanks.
but why wouldn't it be working here?
Copy link to clipboard
Copied
Take out the full stop in your code - not required anyway
\b(t)(?=bsp\b) is sufficient
Copy link to clipboard
Copied
Do you need "specific" words - or just everything at the beginning - number of units + type of the unit?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now