Skip to content
HALOWERK

Textwerk

l10n grapheme cursor offset map

Return grapheme boundaries and cursor snapping between UTF16, Unicode code points and UTF8 bytes.

POST https://text.halowerk.com/v1/l10n-grapheme-cursor-offset-map

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
textstringYes
offsets_utf16arrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 2048
    },
    "offsets_utf16": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 4096
      },
      "maxItems": 100,
      "minItems": 1
    }
  },
  "required": [
    "text",
    "offsets_utf16"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "text": "Aé😀",
  "offsets_utf16": [
    0,
    2,
    3,
    4,
    5
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub →