Skip to content

DRAW-32 Free-standing text, or a note that is of no kind (TODO, Information, Caution, Debug, Critical, Layout, Cost, Ref) by its box colour or its prefix

Severity Status Implementation
suggestion runs in better_erc mid, depends on NET-26

Data it needs: drawing geometry.

Looks at. Text and text boxes.

What it catches. A free text that is no heading, no cost line and has no kind prefix; a free text that starts with . but is no simulator directive; a text box that is of no note kind; and a text box whose stroke colour names one kind while its prefix or heading names another.

Why it matters. Loose text has no owner and no weight: a design reason, a forgotten TODO and a layout instruction look the same. A note's kind tells the reader at a glance what it is and how much it matters. House style (Roman, 31 Oct 2026).

How a note gets its kind. A note has one of eight kinds: TODO, Information, Caution, Debug, Critical, Layout, Cost and Ref (a pointer to notes kept elsewhere). Its kind comes from either of two marks:

  • the stroke colour of its text box, within drawing.note.colour_slack counts per channel of the kind's colour;
  • a prefix: the first word of its text, followed by a colon, names the kind (TODO:, Information: or Info:, Caution:, Debug:, Critical:, Layout:, Cost:, Ref:), case ignored. For a text box, the first word of a text grouped with the box (its heading, Caution or Caution: back-feed) counts as well.

A prefix tags a short text without a box, or a box on a sheet that does not use colours. For example, the free text Debug: J3 shorts the boot pin is a Debug note, and so is a plain black box whose text starts with debug:. A cost line ($0.19 @25 · $0.12 @1k, also after a label such as Sheet:) is a Cost note by itself, with no prefix, and a text that starts with See and a note number (See N4, see N12, N14, See N18 for the firmware) is a Ref note by itself. The note number list must come first: see N16 at the end of a sentence leaves the note's kind to its colour.

Where the colours come from. The way to set them is a legend: a sheet with one text box per kind, each box's whole text the kind's name and its stroke the kind's colour (drawing guide). Each kind's colour comes from the first of these that gives one:

  1. The setting drawing.note.colour.<kind> in the project file, such as [drawing.note.colour] caution = "rgb(194, 194, 0)", for a project without a legend sheet.
  2. A legend box: a text box anywhere on the board whose whole text is the kind's name, with or without a colon (Caution, Info:). Its stroke colour is the kind's colour; the first such box in sheet order counts.
  3. The colours of the drawing guide, only as the fallback. Cost has none, so a Cost box needs a setting, a legend or a prefix.

The run notes once where the colours came from (note colours (DRAW-32): ... under Notes), naming the sheet of each legend box used, so a wrong colour can be traced to its source.

Scope. Accepted outside a note box: section and group headings (text at drawing.group_heading_size or larger, bold or not), a bold or kind-named text grouped with a text box (the box's heading), the captions in a sheet box, simulator directives, cost lines, pointers to notes and texts with a kind prefix. A parameter box (a solid stroke in the Information colour, rgb(110, 110, 110) by default) needs no kind.

Settings

Set them in the project file under [checks."DRAW-32"], or for one run with --set DRAW-32.NAME=VALUE. A name that starts with drawing. is shared by several checks and is set under that name alone.

Setting Default Meaning
drawing.heading_size 2.54 mm height of a section heading; larger bold text is a title
drawing.group_heading_size 1.905 mm height of a group heading inside a section
drawing.note.colour_slack 8 counts difference per colour channel a note box's or leader's stroke may have from its colour
drawing.note.colour.todo unset stroke colour of a TODO note box; unset: a legend box's, else rgb(0, 131, 143)
drawing.note.colour.information unset stroke colour of an Information note box; unset: a legend box's, else rgb(110, 110, 110)
drawing.note.colour.caution unset stroke colour of a Caution note box; unset: a legend box's, else rgb(167, 118, 1)
drawing.note.colour.debug unset stroke colour of a Debug note box; unset: a legend box's, else rgb(232, 113, 10)
drawing.note.colour.critical unset stroke colour of a Critical note box; unset: a legend box's, else rgb(210, 40, 70)
drawing.note.colour.layout unset stroke colour of a Layout note box; unset: a legend box's, else rgb(21, 101, 192)
drawing.note.colour.cost unset stroke colour of a Cost note box; unset: a legend box's, else none
drawing.note.colour.ref unset stroke colour of a Ref note box (a pointer to notes elsewhere); unset: a legend box's, else rgb(230, 0, 160)

Test schematics

Each schematic below is in test_schematics/sources. The block under it is what berc check --only DRAW-32 reports on it.

draw-32_free_text

The test schematic draw-32_free_text The test schematic draw-32_free_text

  suggestion DRAW-32 #x5s   text ".notes for later" starts with a dot and is no simulator directive
                            sheet /, item text ".notes for later"
                            fix: start the text with a kind (TODO:, Information:, Caution:, Debug:, Critical:, Layout:, Cost:, Ref:), or put it in a box of a kind's stroke (TODO rgb(0, 131, 143), Information rgb(110, 110, 110), Caution rgb(167, 118, 1), Debug rgb(232, 113, 10), Critical rgb(210, 40, 70), Layout rgb(21, 101, 192), Ref rgb(230, 0, 160)); a heading is drawing.group_heading_size or larger
  suggestion DRAW-32 #ytm   text "A loose remark" stands free at 1.27 mm: no heading, no cost line, no kind prefix
                            sheet /, item text "A loose remark"
                            fix: start the text with a kind (TODO:, Information:, Caution:, Debug:, Critical:, Layout:, Cost:, Ref:), or put it in a box of a kind's stroke (TODO rgb(0, 131, 143), Information rgb(110, 110, 110), Caution rgb(167, 118, 1), Debug rgb(232, 113, 10), Critical rgb(210, 40, 70), Layout rgb(21, 101, 192), Ref rgb(230, 0, 160)); a heading is drawing.group_heading_size or larger
  suggestion DRAW-32 #bw7   text box "Keep this short" has a Caution stroke but reads as Layout
                            sheet /, item text box "Keep this short"
                            fix: start the text with a kind (TODO:, Information:, Caution:, Debug:, Critical:, Layout:, Cost:, Ref:), or put it in a box of a kind's stroke (TODO rgb(0, 131, 143), Information rgb(110, 110, 110), Caution rgb(167, 118, 1), Debug rgb(232, 113, 10), Critical rgb(210, 40, 70), Layout rgb(21, 101, 192), Ref rgb(230, 0, 160)); a heading is drawing.group_heading_size or larger
  suggestion DRAW-32 #bet   text box "No kind at all" is of no note kind: its stroke is no kind's colour and its text has no kind prefix
                            sheet /, item text box "No kind at all"
                            fix: start the text with a kind (TODO:, Information:, Caution:, Debug:, Critical:, Layout:, Cost:, Ref:), or put it in a box of a kind's stroke (TODO rgb(0, 131, 143), Information rgb(110, 110, 110), Caution rgb(167, 118, 1), Debug rgb(232, 113, 10), Critical rgb(210, 40, 70), Layout rgb(21, 101, 192), Ref rgb(230, 0, 160)); a heading is drawing.group_heading_size or larger

DRAW-32 also fires on the test schematics of other checks: draw-49_placeholders, draw-9_text_overlap.