Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

cms / cms minimum ragged line breaks

An agent that lays out a CMS paragraph from measured word widths needs whether its proposed breaks reach the minimum complete squared-free cubic slack cost under an explicit line width.

POST https://detect.halowerk.com/v1/cms/cms-minimum-ragged-line-breaks

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "artifact": {
      "type": "object",
      "properties": {
        "word_widths": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4096
          },
          "minItems": 1,
          "maxItems": 512
        },
        "space_width": {
          "type": "integer",
          "minimum": 0,
          "maximum": 128
        },
        "line_width": {
          "type": "integer",
          "minimum": 1,
          "maximum": 4096
        },
        "claimed_breaks": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 1,
            "maximum": 512
          },
          "minItems": 1,
          "maxItems": 512
        }
      },
      "required": [
        "word_widths",
        "space_width",
        "line_width",
        "claimed_breaks"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "artifact"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "artifact": {
    "word_widths": [
      2,
      2,
      2
    ],
    "space_width": 1,
    "line_width": 5,
    "claimed_breaks": [
      2,
      3
    ]
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →