-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Consider supporting standard direction names in addition to cardinal directions #714
Comments
Not a fan of having multiple names for the same thing. |
I mean, yes, but what is the actual problem? I think the freedom of choice is great. There are definitely a lot of people that would prefer one or the other naming scheme any day of the week. The consistency of the names inside a project is the project author's problem, not the library's. |
How should it work? Hardcoding "n" to resolve to "north-west"? |
You can define some variables: |
Same as it works in fletcher? Or not, because fletcher is pretty much a cetz wrapper, so they differ. I'm talking about "top-left" == "north-west". The direction names are even builtins in Typst, surely they deserve to be first-class directions in cetz too. |
But names like |
It's personal preference at it's core. I never in my life used cardinal directions outside of Earth map and compass. So I don't want to start using it now. This highly depends on the country too.
I don't understand what kind of conflicts could possibly appear when supporting multiple names. If you wanna override something using other names, then just do it, there are no conflicts here.
That's the problem. I would have to add this for every single document where I use anchors. The library should reduce the boilerplate, not the other way round. It's not even some niche obscure feature that only I will use. It's a normal one, to say the least. I can cope with my overrides if I was able to import my library at any point, but git repos aren't supported yet and I don't want to increase amound of local packages that can't be easly used elsewhere. |
Even though this might very well be a skill issue, I still don't like using the cardinal directions in my vector graphics in Typst. First, it's confusing/disorienting to me. But I think it mostly has to do with the fact that top/bottom/right/left directions are just too common to use anything but them. I think it's correct to say that Americans love using cardinal directions, but still. Everyone uses standard names, and so does Typst.
I would like to be able to anchor my elements in cetz with
"top-left"
ortop + left
instead of"north-west"
.I honestly think that this is one of my main issues with cetz (and tikz) when I want to fine-tune something. It doesn't break anything, but I struggle (even if ever so slightly) every time I have to use them.
This is also why I love fletcher, as it provides up to 3 names for the same direction, which is described under the "Relative coordinate shorthands" section:
I like the fact that all of these start with a unique letter, so you can even use the 1-letter shorthands (in addition to the full names). Not sure if it will work for cetz, but would be cool if shorthands are also supported (you wouldn't even have to write the dash for compound directions).
(I also found a typo: Jollywatt/typst-fletcher#52.)
The text was updated successfully, but these errors were encountered: