Skip to content

Main content

Transliteration Letter Mark Count Tool

Count explicitly supplied transliteration mark code points without transliterating or inferring pronunciation.

Loading tool…

Description

Optionally normalize text to NFD and count code points exactly matching any supplied single-code-point mark.

A visible character can contain multiple Unicode code points, and equivalent letters may have composed or decomposed representations. Mark counts differ from grapheme counts or linguistic correctness.

Optionally normalize text to NFD and count code points exactly matching any supplied single-code-point mark.

When to use this tool

Use Transliteration Letter Mark Count when you need a narrowly defined Unicode mark or delimiter check.

How to use the tool and how it works

  1. Enter text, suppliedMarks, decompose. 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 count. Use the output convention below.

Optionally normalize text to NFD and count code points exactly matching any supplied single-code-point mark.1

Input fieldMeaning and unitsAccepted input
textTextRequired. Text; maximum UTF-16 length 8192.
suppliedMarksSupplied MarksRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
decomposeDecomposeRequired. Boolean.
Output fieldInterpretationReturned shape
countCountRequired. Safe integer.
json
{
  "input": {
    "text": "āḍ",
    "suppliedMarks": [
      "̄",
      "̣"
    ],
    "decompose": true
  },
  "output": {
    "count": 2
  }
}

Limitations and assumptions

  • Duplicate suppliedMarks do not multiply counts; no script-specific transliteration standard or semantic interpretation is applied.
  • 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.

Alternative or Complementary methods

Use Unicode normalization and grapheme-aware comparison where visual equivalence or text editing behavior matters.

References

  1. Calculation and input contract: islamic-studies/transliteration-letter-mark-count — tool.io

Similar or alternative tools

  • Public Place Name Accent Key

    Optionally apply JavaScript lowercase, then NFD normalization and removal of all Unicode marks to form key.

  • Public Calendar Day Start Offset

    Subtract suppliedDayStart from recordedTime, divide by positive suppliedDayLength with floor for dayIndex, and return a nonnegative withinDay remainder.