Skip to main content
Inspiring
Jan 29, 2026 6:12 PM UTC
Question

Problem when applying small caps to CE and AH

I am applying a grep style small caps using the following grep code:

 

‭\<‬AH‭\>|\<‬CE‭\>

in some places it successfully works and in other places it only applies the small caps to the first letter. See image.

 

I’m not sure why it does this.

 

    5 replies

    FRIdNGE
    Jan 29, 2026 8:02 PM UTC

    Thanks to remove your “moderation” on my posts!

    \<AH\>|\<CE\>

    or

    \<(AH|CE)\>

     

    (^/)  The Jedi

    Translate
    FRIdNGE
    Jan 29, 2026 8:00 PM UTC

    \<(AH|CE)\>

     

    (^/)  The Jedi

    Translate
    Peter Spier
    Community Expert
    Community Expert
    Jan 29, 2026 7:03 PM UTC

    You might also try using \b in place of \<  and \>

    Translate
    Mike Witherell
    Community Expert
    Community Expert
    Jan 29, 2026 6:52 PM UTC

    Did you try applying OpenType All Small Caps ?

    This GREP Style worked for me:

    (?<=\s)(AH|CE)(?=\))

    Translate
    Mike Witherell
    Inspiring
    Feb 15, 2026 6:23 PM UTC

    Yes i applied open type all small caps.

    My method works on some but doesn’t work on others.

    I also tried your code - again works on some and not others.

    Translate