As reference to a post to handle text wrapping ,
Hello,
I am formatting a table from the following input json:
[
[
"Date",
"Tran Type",
"Tran ID",
"Withdrawals",
"Deposits",
"Another Head",
"One more head",
"Last one"
],
[
"01/05/2024",
"TFR",
"S81420904S81420",
"S81420904",
"S81420904",
"S81420904",
"700.00",
""
],
[
"01/05/2024",
"TFR",
"S84554541",
"S84…
show table.cell.where(x: 2): cell => {
show regex("\b.+?\b"): it => it.text.codepoints().join(sym.zws)
cell
}
but this will splits both consonants and vowels.
So i have tried the custom regex to handle for kannada fonts,
#show table.cell: cell => [
#show regex("[\u0C95-\u0CB9][\u0C80-\u0C83\u0CBE-\u0CD6&&[^\u0CCD]]+|[\u0C95-\u0CB9]([\u0C80-\u0C83\u0CBE-\u0CD6][\u0C95-\u0CB9])*[\u0C80-\u0C83\u0CBE-\u0CD6&&[^\u0CCD]]+") : it => it.text.replace(it.text, it.text + sym.zws)
#cell
]
but this will up to an extent, after that it will throw the error as
‘maximum show rule depth exceeded’.
how to solve this?
Hi there! Can you include a minimally reproducible example that causes the error you’ve mentioned? It sounds like the show
rule might be applied recursively, but I’m not sure.
3 Likes
Andrew
April 11, 2025, 8:32pm
3
@Rajat_Hegde , hello. If you are new to posting code, please read How to post in the Questions category .
If your question pertains to a bit of Typst markup you have problems with, put it in the question body! You can syntax-highlight Typst code by wrapping it in ` ```typ … ````. It will then look like this:
#set font(size: 12pt)
Hello from *Typst* at $ pi.var + 1 $ o'clock!
If you need to highlight a code or math mode snippet instead, the language tags typc
and typm
do that, respectively.