-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use short as key if no key specified #84
Comments
Hello! Thanks for the issue. I have encountered the same feeling when writing my glossary, so I understand the issue here. I can add an option to consider short as key in
Overall, I think it is bad practice to link the two, but I will add an option with a warning. |
An option would be a good solution, thanks! I am not sure I understand why using short as key would cause mess, but in any case an option would work. Just to make sure we are understanding each other correctly, I would think that if we have e.g. a record |
The key is used for references, eg changing from short abc would render all
@abc invalid. My own convention is to use lower case for keys, and
uppercase for short entries.
In which case, you will have to rename all @abc to @abb:abc.
The reverse is technically easier, just use key: "abc" and change short:
"abcd".
Le mar. 10 déc. 2024, 09:08, CasVisser ***@***.***> a écrit :
… An option would be a good solution, thanks! I am not sure I understand why
using short as key would cause mess, but in any case an option would work.
Just to make sure we are understanding each other correctly, I would think
that if we have e.g. a record (short: "abc", long: "all blue cows") and
we want to change the key to abb:abc without changing short, we could
update the record as follows: (key: "abb:abc", short: "abc", long: "all
blue cows"). I don't think this is messy, but maybe I am missing
something. In any case, thanks for your response!
—
Reply to this email directly, view it on GitHub
<#84 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE3OKGXKBYAK2HMY6P3CEH32E2OOBAVCNFSM6AAAAABTIMB3CSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZQG4ZTKMBYGQ>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
I see, but how is that different when using an option? Changing the key still would still require changing all the For example, suppose we have an entry |
I see it, thank you! |
I'll add it as "use key as short". From |
Hi, this is my first ever issue on an OS project, so let me know if there is anything I should do differently!
My suggestion is as follows. Currently, for all my glossary entries, I simply use the short form as the key. This allows for a natural flow when writing, i.e.
Thanks to @ABC, we can ...
where ABC is some abbreviation. Specifying both key and short feels like unnecessary double work, as they are always the same anyway. If short is used as key when no key is specified, this would allow for cleaner Typst files.The text was updated successfully, but these errors were encountered: