- Unit label was vertical-centered on a box derived from a baseline
coordinate, shifting it 3.34mm too low and making the generated
deliverables inconsistent with E440-Scale_template.svg. UNIT_Y is now
used directly as the baseline; regenerated E440-Scale_paths.svg and
E440-Scale_text.svg accordingly.
- sqrt scale's minor-tick angle formula double-applied the square-root
mapping, badly misplacing minor ticks. Removed the special case so sqrt
falls through to the already-correct generic value-interpolation branch.
Corrected README's sqrt row (crowds toward the high end, not low).
- Removed dead code: unused _has_markup(), identity-transform wrapper and
_UNIT_SCALE_X in _markup_unit_svg, unreachable max_val<=0 check,
redundant math.isinf() in the minor-tick condition.
- Linear scale with min==max now raises ValueError like the other three
mappings, instead of silently producing a degenerate dial.
- Form numeric parsing moved inside the try/except so bad input returns
400 instead of crashing with 500.
- left_label/right_label now split on splitlines() to handle CRLF from
browser textareas correctly.
- Formatting consistency: PIVOT_CIRCLE_R/R0 use :.5f like other constants;
font_face indentation matches its sibling elements.
- LICENSE and CLAUDE.md: last M1730-Scale references and a doc inaccuracy
about which labels are live text vs. outlined paths.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Changed from top half (y0=92.8, y1=103.8) to bottom half (y0=103.8,
y1=114.8). The label baseline sits at y≈101.5mm, so the lower half
starts 2.3mm below it — clean visual separation without the unit
appearing high up on the panel.
Paths-mode unit rendering now always goes through _markup_unit_svg,
which fits the font's actual ink bounds (width AND height) to the
unit box — correct for all fonts, not just ГОСТ тип А.
Added half-height unit toggle: restricts the unit label to the upper
half of the panel box (y1 = midpoint at 103.8 mm), keeping it clear
of the numeric labels when they visually crowd the unit area.
All .ttf files in fonts/ are loaded at startup. The web form now has a
font selector dropdown. Glyph-rendering helpers that previously used
module-level font globals now accept a _FontData parameter threaded
through from generate_svg().
Dockerfile updated to copy all of fonts/ into the image rather than a
single hardcoded .ttf path.
Minor ticks on 1/x scales were using linear value interpolation between
harmonically-spaced major ticks. Because 1/v is highly convex, equal value
steps near a large major-value (left side of the first interval) map to tiny
physical steps, piling all ticks against the left wall. At a 1:1000 ratio the
first four minor ticks land at 0%/0%/1%/2% of the interval.
Fix: interpolate in position space (uniform physical spacing) for all
reciprocal intervals, matching how major ticks are laid out (also equal
physical steps) and matching the already-correct ∞-first-interval handling.
Also documents 1/x scale and ∞ max in README.
Lighter shorthand (^x, _x, {a/b}) rendered as glyph paths in the ГОСТ
font — no LaTeX engine, so typography and self-contained output are
preserved. Constructs nest (e.g. {m/s^2}, x^{1/2}). A marked-up unit is
sized to its true ink bounding box and centered in the unit box with
white space, fitting in both axes so tall fractions don't overflow.
Also fit plain units by measured glyph width rather than a per-character
estimate. Bump to 0.77.
- New "Label size (mm)" field controlling the numeric-label font size,
defaulting to a clean 9 mm (was the inherited Inkscape value 8.89194)
- Pin k8s deployment to image tag 0.76
- New Linear/Log mapping toggle; log mode uses geometric major-tick
values with log-positioned minor ticks (validates min/max > 0)
- Optional comma-separated custom labels that override the calculated
numbers and set the label count
- Format numbers in fixed-point at 4 significant figures (no more
scientific notation like "1e+04"), snapping log-scale FP drift to ints
- Bump version to 0.75