1 Commits

Author SHA1 Message Date
730e4d7fc3 change default fonts
Change them to ones that come included w/ Typst.

Closes #15, closes #9
2025-11-10 09:25:14 +01:00
3 changed files with 9255 additions and 10081 deletions

19302
manual.pdf

File diff suppressed because it is too large Load Diff

View File

@@ -152,34 +152,6 @@ The range name (or key) defines the left- and rightmost bits (e.g. `7-4` goes fr
}
```
=== Start <format-start>
By default, structures start at bit 0, but you may want to number bits from 1, or another arbitrary value. To do this, you can set the `start` property of a structure to the desired start value. For example,
```json
"main": {
"bits": 8,
"start": 4,
"ranges": {
"11-7": { ... },
"6-4": { ... }
}
}
```
#let start-schema = (structures: (main: (bits: 8, start: 4, ranges: ("11-7": (name: ""), "6-4": (name: "")))))
would render as
#align(
center,
schema.render(
schema.load(start-schema),
width: 50%
)
)
== Range <format-range>
A range represents a group of consecutive bits. It can have a name (displayed in the bit cells), a description (displayed under the structure) and / or values.

View File

@@ -387,10 +387,8 @@
}
let range-boundaries = ()
for r in struct.ranges.values() {
let start-i = to-real-i(if config.ltr-bits {r.start} else {r.end})
let end-i = to-real-i(if config.ltr-bits {r.end} else {r.start}) + 1
range-boundaries.push(start-i)
range-boundaries.push(end-i)
let i = to-real-i(if config.ltr-bits {r.start} else {r.end})
range-boundaries.push(i)
}
// Draw colors