Add leipzig-glossing- prefix

This commit is contained in:
Greg Shuflin 2023-07-06 01:41:07 -07:00
parent af92697063
commit 30ede7255a
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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