#show text: it => {
// keep this format
show "11":"22"
it
}
11 $11$
I want show rules won’t be used to 11 in math.equation.
More specifically, how to make this code work
#let en2ch_point_dict = (
"\\.\\s*": "。",
"\\,\\s*": ",",
)
#let auto_chinese_point_text(it) = {
for (pat, replacement) in en2ch_point_dict {
it = {
show regex(pat): replacement
it
}
}
it
}
#let auto_chinese_point(doc) = {
show par: it => {
show text: it => {
show: auto_chinese_point_text
it
}
it
}
show list: it => {
if it.has("label") and it.label == <processed> {
return [1] //it
}
show text: it => {
show: auto_chinese_point_text
it
}
it
}
show enum: it => {
if it.has("label") and it.label == <processed> {
return it
}
show text: it => {
show: auto_chinese_point_text
it
}
it
}
doc
}
#show: auto_chinese_point
$3.4$
3.4
$3.4$ should show 3.4(don’t use show rule), 3.4 should show 3。4(use show rule).
