What is IA? What is the another IA?
Define a character style for it and use it as GREP style in the paragraph styles.
Or do a find & replace with GREP.
- Specify a Character Style for the A
- In the Paragraph Style define a GREP where you define the A after an I before a space or punctation.
Thanks for your help.
I am not feeling very comfortable with these Styles and GREPS but I shall try.
I defined a character style where I could define a 3pt baseline shift under "Advanced Character Formats". I did not touch any other of the many options.
I defined a paragraph style. I suppose I have to define something inside the GREP Style section. But what? I am not familiar with GREP-"language".
And even if I know the "code" and save it as a new GREP-style, what is next to do?
Thank you for your patience to help a blind through the country of one- or two-eyed Indesign Guru's.
In the GREP section of a Paragraph Style you should write the code, for an A after a capital letter I at the end of a word.
to apply the character Style.
Test it, and when some unwanted results come, you should correct this code, like include the space or something before when other instances of this combination are found.
Probably would be helpful to isolate it as a two-character string using: (?<=\<I)A\>
That would prevent matches on the ends of longer words in all caps, like MEDIA, and would also match if there was no space before, as the first word in a story.
As a small aside, here, the GREP strings above will only work on "real" uppercase letters, not text to which All Caps has been applied. (?<=\<[Ii])[Aa]\> would find any combination of upper and lower, with or without All Caps or Small Caps applied.
Are you saying that there is still the potential for error with expressions that use the A as a subscript or sperscript in a formula of some sort? That's true, and you'd need to limit the scope of the search in some way to prevent that. I suspect, though, that we're not trying to deal with cases that use subscript or superscipt.
What I mean by that is that Grep can not replace human intelligence.
In the following example of a highly mathematical book, there could be a grep style to put "by default" parentheses in MMTimes font (eg. 2 & 3 // parentheses used by equations editor which fit in height depending on the context).
However, it would be a mistake because many parentheses are "normal" parentheses (eg 1).
What justifies examples 1 and 2 are be treated differently?
In the example 1, which is stated in parentheses is a comment, a precision... about "A"; in the example 2, it is a mathematical equation (as well as the example 3). The 2 examples are correct and different at the same time.
Grep, as any IA [in French: IA means "Intelligence artificielle" // artificial Intelligence], can not show such subtlety.
That is why I think we should be very careful!
You won't find any disagreement here. GREP is very powerful, but it cannot distinguish between "good" matches and "bad" matches except by the user providing other limiting factors, such as look-arounds or scope limiters like styles or selected text. In cases where one might get a match that's undesired you should either use a GREP style and use a different paragraph style to limit where the GREP will be applied, or you should use find/change and go match-by-match deciding if the change would be appropriate. At least that's faster than scanning an entire document looking for matches yourself.
Totally agree with you!