Skip to content
Fourohtwo

detect.halowerk.com/v1/F-TD2000-DOCUMENTS-14/tex82-paragraph-glue-penalty-fitnes

Returns a JSON finding that finds every minimum-demerit TeX paragraph break sequence under explicit boxes, glue, penalties, fitness and adjacent hyphen rules. Compare...

BaseAnswering
POSThttps://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-14/tex82-paragraph-glue-penalty-fitness-hyphen-demerit-break-optimization

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-14/tex82-paragraph-glue-penalty-fitness-hyphen-demerit-break-optimization", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"artifact":{"knuthPlass":{"claim":null,"data":{"adjacent_fitness_demerits":1000,"double_hyphen_demerits":100,"final_hyphen_demerits":200,"hyphen_penalty":50,"line_penalty":10,"line_width":9,"nodes":[{"kind":"box","width":5},{"kind":"glue","shrink":1,"stretch":4,"stretch_order":0,"width":2},{"kind":"box","width":5},{"kind":"end"}],"tolerance":10000}}}}),
});
console.log(await res.json());

Example input

{
  "artifact": {
    "knuthPlass": {
      "claim": null,
      "data": {
        "adjacent_fitness_demerits": 1000,
        "double_hyphen_demerits": 100,
        "final_hyphen_demerits": 200,
        "hyphen_penalty": 50,
        "line_penalty": 10,
        "line_width": 9,
        "nodes": [
          {
            "kind": "box",
            "width": 5
          },
          {
            "kind": "glue",
            "shrink": 1,
            "stretch": 4,
            "stretch_order": 0,
            "width": 2
          },
          {
            "kind": "box",
            "width": 5
          },
          {
            "kind": "end"
          }
        ],
        "tolerance": 10000
      }
    }
  }
}