typst-community / glossarium

Glossarium is a simple typst glossary.
MIT License
37 stars 10 forks source link

Remove unnecessary spaces and support long: false #6

Closed dscso closed 11 months ago

dscso commented 1 year ago

Remove unnecessary spaces after the #gls("fpga"). blabla bla as example. Using it in combination with a , or a . afterwards it generates an unnecessary space after the label.

Screenshot 1

After this patch:

Screenshot 2

and support for long: false if you are using

#gls("ddr-ram", long: false)

the long: false will not be ignored as it was before the patch

dscso commented 12 months ago

and support for long: false if you are using

#gls("ddr-ram", long: false)

the long: false will not be ignored as it was before the patch

slashformotion commented 12 months ago

I think i will refactor the code a bit this WE, and make a release, are you ok with me including your changes in my commits ? you will get attribution in the release note and the changelog (which is not created yet, i'll do this before the release)

dscso commented 12 months ago

Ok good! Thank you very much for the plugin! It helped me a lot with my bachelor thesis.

If you are already about to refactor: maybe it is worth noting that it is more readable to make the introduction of a word the other way around: Transmission Control Protocol (TCP) instead of TCP (Transmission Control Protocol) how it is now.

in scientific articles I’ve always seen the first version.

if you want I can open an issue

slashformotion commented 12 months ago

go ahead you can open the issue.