Skip to content

Main content

Poetic Caesura Line Position

Split one supplied verse line at an explicit zero-based Unicode code-point boundary without detecting a caesura.

Loading tool…

Description

Split a supplied poetic line at a code-point boundary.

Comparative literary records preserve editions, translations, source lines, rhyme classes and editorial omissions. A code-point count differs from a grapheme count, while an aligned token span depends on the supplied text and indexing convention. A source-qualified label does not establish faithful translation, authorship or an interpretation.

Split a supplied poetic line at a code-point boundary.

When to use this tool

Use Poetic Caesura Line Position when you already have lineText, boundaryCodePoints and need to split a supplied poetic line at a code-point boundary.

How to use the tool and how it works

  1. Enter lineText, boundaryCodePoints. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read before, after. Use the output convention below.

Require safe boundary in [0,Array.from(lineText).length]; split and rejoin the two code-point slices.1

Input fieldMeaning and unitsAccepted input
lineTextLine TextRequired. Text; maximum UTF-16 length 8192.
boundaryCodePointsWhole boundary into Array.from(lineText); counts code points rather than graphemes or UTF-16 code units.Required. Safe integer; minimum 0.
Output fieldInterpretationReturned shape
beforeBeforeRequired. Text; maximum UTF-16 length 8192.
afterAfterRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "lineText": "Sing | muse",
    "boundaryCodePoints": 5
  },
  "output": {
    "before": "Sing ",
    "after": "| muse"
  }
}

Limitations and assumptions

  • The operation can split a grapheme cluster. No caesura, meter, word boundary, UTF-8 offset or editorially appropriate position is inferred.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Read the original passage, translation and relevant editions alongside the stated editorial conventions. Verify context, source locators and attribution when preparing quotations or comparative arguments; local string operations do not make those scholarly judgments.

References

  1. Calculation and input contract: comparative-literature/poetic-caesura-line-position — tool.io

Similar or alternative tools