diff --git a/CHANGELOG.md b/CHANGELOG.md index 672fa48..f232284 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,5 +4,6 @@ ## 0.2.0 (upcoming) * renamed `numbered_gloss` to `numbered-gloss`, `gloss_count` to `gloss-count`, in light of the -Typst style preference for kebab-case +Typst style preference for kebab-case. Also renamed their arguments to use snake-case as well. * Documented standard abbreviations +* Removed all default gloss line formatting diff --git a/leipzig-gloss-examples.pdf b/leipzig-gloss-examples.pdf index aaa91a6..4bd0d0c 100644 Binary files a/leipzig-gloss-examples.pdf and b/leipzig-gloss-examples.pdf differ diff --git a/leipzig-gloss-examples.typ b/leipzig-gloss-examples.typ index ad3917c..0fcad05 100644 --- a/leipzig-gloss-examples.typ +++ b/leipzig-gloss-examples.typ @@ -1,7 +1,6 @@ #import "leipzig-gloss.typ": abbreviations, gloss, numbered-gloss, gloss-count #show link: x => underline[*#x*] -//#show raw: x => text(fill: rgb("#43464b"))[#x] #let codeblock-old(contents) = block(fill: luma(230), inset: 8pt, radius: 4pt, breakable: false, contents) @@ -48,6 +47,8 @@ parameters. For more information or to inform devs of a bug or other issue, visit the module's Github repository #link("https://github.com/neunenak/typst-leipzig-glossing") +#show raw: x => highlight(fill: luma(230), extent: 1pt)[#x] + = Basic glossing functionality @@ -72,8 +73,9 @@ for common glossing abbreviations: source: ([I'm], [eat-ing], [your], [head]), source-style: (item) => text(fill: red)[#item], morphemes: ([1#sg.#sbj\=to.be], [eat-#prog], [2#sg.#poss], [head]), - morphemes-style: text.with(fill: blue), + morphemes-style: text.with(size: 10pt, fill: blue), translation: text(weight: \"semibold\")[I'm eating your head!], + translation-style: (item) => [\"#item\"], ) ", addl-bindings: (poss: poss, prog: prog, sg: sg, sbj: sbj)) @@ -90,6 +92,7 @@ text and translation, without a gloss: #codeblock( "#gloss( source: ([Trato de entender, debo comprender, qué es lo que ha hecho conmigo],), + source-style: emph, translation: [I try to understand, I must comprehend, what she has done with me], ) ") @@ -130,7 +133,6 @@ same arguments as `gloss`: #codeblock( "#gloss( source: ([გვ-ფრცქვნ-ი],), - source-style: none, transliteration: ([gv-prtskvn-i],), morphemes: ([1#pl.#obj\-peel-#fmnt],), translation: \"You peeled us\", @@ -139,7 +141,6 @@ same arguments as `gloss`: #numbered-gloss( source: ([მ-ფრცქვნ-ი],), - source-style: none, transliteration: ([m-prtskvn-i],), morphemes: ([1#sg.#obj\-peel-#fmnt],), translation: \"You peeled me\", diff --git a/leipzig-gloss.typ b/leipzig-gloss.typ index 375350d..91e3c6a 100644 --- a/leipzig-gloss.typ +++ b/leipzig-gloss.typ @@ -39,7 +39,7 @@ header: none, header-style: none, source: (), - source-style: emph, + source-style: none, transliteration: none, transliteration-style: none, morphemes: none, @@ -47,6 +47,7 @@ additional-lines: (), //List of list of content translation: none, translation-style: none, + item-spacing: 1em, gloss-padding: 2.0em, //TODO document these left_padding: 0.5em, @@ -101,7 +102,7 @@ linebreak() if translation-style == none { - ["#translation"] + translation } else { translation-style(translation) }