Skip to content

Conversation

@ndevenish
Copy link
Owner

This enables all label bases to take units in the width parameter, e.g. --width 3, --width 4u, --width 30mm, --width 4in. Labels which have defined standard sizes will accept plain or -u units, but specifying exact width for any label will mean the label is generated at exactly that width.

The default unit, if you do not specify, is a property of each base e.g. pred or cullenect will by default assume -u, but plain bases will assume millimeters (and won't accept u-units).

Added upon request from @Marus - does this do what you wanted?

The --width parameter can now take units e.g. "-w 3u", "-w 40mm",
"-w 3in". If units are not specified, each label base has a default
kind (e.g. pred- labels default to matching Xu bins, but the plain
label will always default to mm).

For label bases that have standardised sizes, specifying unit-widths
will work the same as before, including adjustment/tolerances, but
specifying custom length dimensions will make the label match exactly.

e.g. for Cullenect labels, "-w 2" or "-w 2u" will make a label 78mm
wide, but "-w 80mm" will make a label exactly 80mm wide.
@Marus
Copy link

Marus commented Jan 3, 2025

Yeah - this is awesome - just makes in that much more flexible for non-standard use-cases - but still easy to use for the standard ones.

@ndevenish ndevenish merged commit 34af0cb into main Jan 3, 2025
1 check passed
@ndevenish ndevenish deleted the width_units branch January 3, 2025 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants