diff --git a/jacow.typ b/jacow.typ index 8015e76..8b4054a 100644 --- a/jacow.typ +++ b/jacow.typ @@ -133,7 +133,9 @@ words += txt.matches(regex("()(\\w{4,})")) // words with 4+ letters for m in words { let (pre, word) = m.captures - word = upper(word.at(0)) + word.slice(1) + word = ( + upper(word.codepoints().at(0)) + word.codepoints().slice(1).join("") + ) txt = txt.slice(0, m.start) + pre + word + txt.slice(m.end) } txt