Skip to content

Commit

Permalink
Add new counting symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicEricEE committed Nov 16, 2024
1 parent 93d838c commit 0f3f101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/equate.typ
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
let num = numbering(
if type(it.element.numbering) == str {
// Trim numbering pattern of prefix and suffix characters.
let counting-symbols = ("1", "a", "A", "i", "I", "", "", "", "", "", "", "א", "", "", "*")
let counting-symbols = ("1", "a", "A", "i", "I", "", "", "", "", "", "", "א", "", "", "*", "", "")
let prefix-end = it.element.numbering.codepoints().position(c => c in counting-symbols)
let suffix-start = it.element.numbering.codepoints().rev().position(c => c in counting-symbols)
it.element.numbering.slice(prefix-end, if suffix-start == 0 { none } else { -suffix-start })
Expand Down

0 comments on commit 0f3f101

Please sign in to comment.