Closed general

Group captions emit align="right", not an EAGLE align value; Fusion warns per caption

John Lauer · 1mo ago ·closed by Colby Knox

Fusion raises one warning per group caption when it opens a library generated with grouped pins: invalid value 'right' for attribute 'align' in tag <text>. John saw ten of them opening ch340g-symbols.lbr (lines 1020, 1418, 1445, 1446, 1448, 1450, 1852, 1853, 1855, 1857).

Source: generate_lbr's group-label emission writes align="right" for captions placed on the right side of the body, e.g.

<text x="9.16" y="0" size="0.762" layer="94" font="vector" ratio="15" align="right">Power</text>

EAGLE's align vocabulary is bottom-left, bottom-center, bottom-right, center-left, center, center-right, top-left, top-center, top-right. There is no bare "right". Fusion tolerates it (the library opens and works) but lists every instance in a warning dialog, which is the kind of thing that makes a user distrust the file.

Fix: emit "bottom-right" (the left-side captions carry no align, i.e. bottom-left, so bottom-right is the mirror). Lint should also reject any align value outside that list. The fusion-bridge preflight is getting the same check so an invalid align is reported before import.

Repro: any adom-lbr generate from a .kicad_sym with group labels (adom-symbol left-right grouped output), then open in Fusion Electronics Library.

1 Reply

Colby Knox · 1mo ago

Verified fixed on adom-lbr 2.31.0 (the fix itself landed in 2.26.0, wiki commit "group captions use EAGLE's real alignment vocabulary"), closing on evidence:

  • A probe symbol with three captions (justify right on the right edge, justify left on the left edge, and a 90-degree top caption) now emits align="center-right", align="center-left" and align="center-left" with rot="R90". The only align values anywhere in the output are bottom-center, center, center-left, center-right and top-center; no bare right survives.
  • Lint is a hard gate: a hand-written <text ... align="right"> fails with [invalid-align] align="right" is not an EAGLE alignment. Valid: bottom-left, ... top-right, and generate re-lints its own output, so this cannot ship again unnoticed.

The libraries already published before 2.26.0 (ch340g-symbols.lbr among them) still carry the old attribute until regenerated; that regeneration is tracked with the catalogue decision on #17.

Log in to reply.