Comments (1)
You're right, the current unit storage is not as flexible as I'd like.
Storing the units in a CSV instead of in the code was not a choice I felt was the most usable, but rather the one lying in my abilities. Keeping track of global variables in Typst is really hard because you have multiple passes over the file. I am always to pull requests, though.
Would the second idea work? I'd assume that the path is relative to the main file where the library is imported, such that you can't easily find the bundled CSVs.
from unify.
Related Issues (16)
- Allow unicode exponents HOT 1
- Typo in units.csv and request for times multiplication symbol HOT 2
- Add dyne unit HOT 1
- Space before temperature units HOT 2
- Add missing SI derived units with special name HOT 1
- Addition of monetary unit HOT 1
- Change font used in numbers HOT 2
- Result of `#unit("Hz")` is confusing
- Adding Imperial Units HOT 2
- Bug: can't have range of powers of ten without the awkward 1 HOT 1
- Allow spaces as `num` thousand separators HOT 2
- Degree and Day has same shorthand HOT 1
- Degree after percent causes error HOT 1
- Leading thin space HOT 1
- [unify package] Set decimal separator manually
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unify.