I want Typst to automatically increase tracking for both uppercase and small caps text.
For small caps I used this code:
show smallcaps: set text(tracking: 0.5pt)
but when I do the same with the upper function I get the following error message: “only element functions can be used as selectors.”
Could someone help me bypass this (without creating a custom function to use for uppercase text)?
This solution breaks kerning between uppercase and lowercase letters because sequences of capital letters are set apart by the show rule. Of course, if it is set to affect only whole words of capital letters, there are no such cases.
Word Avail \
#show regex("[[:upper:]]+"): set text(tracking: 0em)
Word Avail