Skip to content

Make **Note:** non-normative: relocate the 14 Notes carrying BCP 14 keywords into body text #147

Closed

Description

@balloob

Problem

The spec defines the BCP 14 keywords in the section "Normative Language". But many requirements are in **Note:** blocks.

A note looks like a comment. The reader can omit it. But 14 of the 30 notes contain MUST, MUST NOT, SHOULD, SHOULD NOT or MAY.

One example is in roles/player/v1.md: "a volume change MUST NOT clear the mute state". Thus the reader cannot safely omit a note.

Change

Use **Note:** for comments only. Move each sentence with a BCP 14 keyword into the body text.

Move the text. Do not change the keyword to lower case. A lower-case keyword gives a different problem: the requirement becomes unclear.

Notes to move

These are the line numbers on main:

  • connection.md:19 — SHOULD. The TXT name and client/hello.
  • connection.md:54 — SHOULD. The TXT name and server/hello.
  • messaging.md:239 — SHOULD. The minimal activity set.
  • messaging.md:241 — MAY. The server can omit a role.
  • messaging.md:328 — MAY. The client can send unchanged fields again.
  • messaging.md:436 — SHOULD. The reason shutdown.
  • messaging.md:440 — SHOULD NOT. The reconnect backoff, in the list in the note.
  • roles/player/v1.md:4 — SHOULD. The volume-to-amplitude calculation.
  • roles/player/v1.md:6 — SHOULD. The volume ramp.
  • roles/player/v1.md:8 — MUST NOT. The volume change and the mute state.
  • roles/player/v1.md:25 — SHOULD, MAY. The format selection.
  • roles/source/v1.md:20 — MUST. The server supports all audio codecs.
  • roles/source/v1.md:22 — SHOULD. The server accepts the source format.
  • roles/source/v1.md:98 — SHOULD, SHOULD NOT. The source timestamps.

Some notes give advice at SHOULD level. One target section is already a large paragraph. Thus write the new text again. Do not only move it.

Related problems

Some notes give a requirement with a lower-case keyword. The files roles/artwork/v1.md:21 and roles/player/v1.md:23 say "Servers must support …". The file roles/source/v1.md:20 gives the same requirement with MUST. Thus the spec has three copies and two styles.

There are more examples at messaging.md:381, messaging.md:440, roles/player/v1.md:27 and roles/player/v1.md:86.

The note at messaging.md:243 has the opposite problem. It gives a requirement for the server, but it uses no keyword. To move this note is not sufficient.

Issue #100 asks for a general keyword pass. This issue gives a smaller subset with a mechanical test: a **Note:** block must not contain an upper-case BCP 14 keyword.

Refs #100.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions