Welcome to the staging ground for new communities! Each proposal has a description in the "Descriptions" category and a body of questions and answers in "Incubator Q&A". You can ask questions (and get answers, we hope!) right away, and start new proposals.
Are you here to participate in a specific proposal? Click on the proposal tag (with the dark outline) to see only posts about that proposal and not all of the others that are in progress. Tags are at the bottom of each post.
Comments on How can Typst check whether a string is alphanumeric?
Post
How can Typst check whether a string is alphanumeric? Question
I personally think that alphanumeric postal codes (such as used in the UK, Canada, and Ireland) look best in small block capitals and old-style numbers. So I created a postcode function to do that:
#let postcode(it) = {
set text(number-type: "old-style")
let l = lower(it)
smallcaps(l)
}
However, most countries use purely numeric postal codes, and they probably look better in lining numbers. Can Typst check whether a string is alphanumeric or numeric?
1 comment thread