diff --git a/leipzig-gloss.typ b/leipzig-gloss.typ index 8c2deb7..c9d7d10 100644 --- a/leipzig-gloss.typ +++ b/leipzig-gloss.typ @@ -18,6 +18,7 @@ for item_index in range(0, len) { let args = () for (line_idx, formatter) in formatters.enumerate() { + let label_string = "leipzig-glossing-" + formatter.label let formatter_fn = if formatter.fn == none { (x) => x } else { @@ -25,7 +26,7 @@ } let item = gloss_line_lists.at(line_idx).at(item_index) - args.push([#formatter_fn(item) #label(formatter.label)]) + args.push([#formatter_fn(item) #label(label_string)]) } make_item_box(..args) h(spacing_between_items) diff --git a/new-example.typ b/new-example.typ index 6758742..43b65d9 100644 --- a/new-example.typ +++ b/new-example.typ @@ -1,8 +1,8 @@ #import "leipzig-gloss.typ": gloss, numbered_gloss, gloss_count #import "linguistic-abbreviations.typ": * -#show label("header_text"): set text(blue) -#show label("source_text"): set text(weight: "bold") +#show label("leipzig-glossing-header_text"): set text(blue) +#show label("leipzig-glossing-source_text"): set text(weight: "bold") = Saimiar