18 Commits

Author SHA1 Message Date
adebaumann 6bf7c70231 Font-aware unit sizing; half-height unit toggle; bump to 0.86
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.
2026-07-15 00:10:02 +02:00
adebaumann 62d9f02a82 Add font selector; load all fonts from fonts/ directory; bump to 0.85
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.
2026-07-14 23:51:55 +02:00
adebaumann f19c462c1b Add infinity max option for reciprocal scale 2026-07-14 23:28:40 +02:00
adebaumann cf844d007b Add reciprocal (1/x) scale mapping 2026-07-14 23:25:01 +02:00
adebaumann 73917aca1e Add square-root scale mapping 2026-07-14 19:17:35 +02:00
adebaumann f676651edb Add unit-label markup: super/subscripts and stacked fractions
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.
2026-07-14 16:40:50 +02:00
adebaumann 54a7f072c4 Add configurable label font size; bump to 0.76
- 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
2026-07-13 00:59:14 +02:00
adebaumann 5ae79499cb Add logarithmic scale, custom labels, and fixed-point number formatting
- 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
2026-07-13 00:40:36 +02:00
adebaumann f84f677123 Add Umami analytics and session recording 2026-07-12 15:31:20 +02:00
adebaumann 6cf04a427c Add source link and increase version tag contrast 2026-07-12 15:07:15 +02:00
adebaumann 71c0e5f498 Add divisor hint below Labels field 2026-07-12 14:58:22 +02:00
adebaumann 60a35b526f Fix mode toggle border stretching full width 2026-07-12 14:51:00 +02:00
adebaumann 9bf10f184b Suppress :focus-visible outline on mode toggle buttons 2026-07-12 14:48:36 +02:00
adebaumann dd841443b8 Remove focus outline from mode toggle buttons 2026-07-12 14:46:41 +02:00
adebaumann 624aa8828e Add Paths/Text output mode toggle with descriptions 2026-07-12 14:44:17 +02:00
adebaumann 71f4e65538 Redesign UI with Baumann Works branding and logo 2026-07-12 01:28:41 +02:00
adebaumann ebba1ade5e Fix fetch URL resolution when served under a subpath 2026-07-12 01:21:55 +02:00
adebaumann 9e7223a1f5 Add web SVG generator, container, and Kubernetes manifests
- Flask app (web/) generates M1730 scale SVGs from a form; embeds
  GOST typ A font as base64 so output is self-contained
- Dockerfile builds the app into git.baumann.gr/adebaumann/m1730-generator
- k8s/ deploys as a ClusterIP service for NPM to proxy at
  works.adebaumann.com/M1730-generator/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-12 00:29:55 +02:00