Identify Combined Letters in Unicode

How to tell precomposed letters, combining marks, ligatures, digraphs and emoji sequences apart in Unicode, and what that means for copying, reversing and search.

A letter that looks like a single character on screen may be stored as one Unicode code point, as several code points that a font draws together, or as ordinary separate letters that only appear joined because of the font. Which one you have determines whether a transformation such as reversing, restyling, searching or counting will treat the text the way you expect. This guide explains how to identify what kind of combined letter you are dealing with and how to judge whether a transformation built on it is fit for your purpose.

Short answer: is combined-letter text suitable for your use?

Combined letters are reliable when they represent real language: accented letters, letters in scripts that depend on combining marks, and standard emoji sequences. Their main benefit is that they let a small set of characters express a very large range of written forms. The decisive tradeoff is that the same visible text can be stored in more than one way, so search, comparison, character limits and naive reversal can all behave inconsistently unless the software normalizes the text or works on whole user-perceived characters.

Plain text is preferable when combining marks are used only for decoration, such as stacked marks, strikethrough or underline effects built from combining characters, or enclosed-letter effects. In those cases the meaning is carried by the appearance rather than the characters, and screen readers, search tools and fonts may not reproduce that appearance. If the text needs to be found, read aloud, edited or quoted accurately, keep a plain version.

What "combined letters" can mean

People use the phrase for several different things. Identifying which one applies is the first step, because each behaves differently under normalization and transformation.

Kind | Example | How it is stored | Normalization behavior
Precomposed letter | é | One code point, U+00E9 LATIN SMALL LETTER E WITH ACUTE | NFD splits it into U+0065 followed by U+0301
Base letter plus combining mark | é | U+0065 LATIN SMALL LETTER E followed by U+0301 COMBINING ACUTE ACCENT | NFC joins the pair into U+00E9
Compatibility ligature | fi | One code point, U+FB01 LATIN SMALL LIGATURE FI | Unchanged by NFC and NFD; NFKC and NFKD replace it with f and i
Digraph letter | Dž | One code point, U+01C5 LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON | NFKC replaces it with D followed by ž
Letter with no decomposition | æ | One code point, U+00E6 LATIN SMALL LETTER AE | Unchanged by all four normalization forms
Emoji ZWJ sequence | 👨‍👩‍👧 | U+1F468, U+200D ZERO WIDTH JOINER, U+1F469, U+200D, U+1F467 | Unchanged; treated as one grapheme cluster
Font ligature | fi drawn as one shape | Two ordinary code points, U+0066 and U+0069 | Nothing to normalize; the joining is purely visual

Two terms help keep these straight. A code point is a single numbered Unicode character. A grapheme cluster is what a reader perceives as one character, which can be made of several code points. Most identification problems come from the gap between the two.

Stored characters versus visual presentation

Some combined letters are a change to the stored text; others exist only in how the text is drawn. Combining marks, compatibility ligatures, digraph code points and emoji sequences are all stored characters: they travel with the text when it is copied and they affect length, search and comparison. Font ligatures, kerning and CSS effects such as text-decoration or transforms are presentation: the underlying characters remain the ordinary letters, and the effect disappears when the text is pasted somewhere that uses a different font or no styling.

The word "font" adds confusion. Many online text stylers advertise "fonts" but actually substitute different Unicode characters, such as mathematical alphanumeric symbols or combining marks layered over each letter. Those are character substitutions, not fonts, and they behave like stored text with all the compatibility limits that implies. A real font change, by contrast, alters only appearance and does not survive being pasted as plain text.

How to identify what you are looking at

  • Paste the text into a code point inspector or a programming console and list every code point with its name. If you see a name containing COMBINING, the letter is built from a base plus marks.
  • Count the code points and compare with the number of characters you see. More code points than visible characters means combining marks, joiners, variation selectors or similar sequences are present.
  • Look for U+200D ZERO WIDTH JOINER between emoji. Its presence means several emoji are meant to display as one.
  • Check whether the name contains LIGATURE or describes two letters, as with U+FB01 or U+01C5. Those are single code points representing a pair.
  • If the inspector reports two ordinary letters for something that looks joined, the joining comes from the font, not the text.
  • Apply NFC, NFD, NFKC and NFKD and compare results. Text that changes under NFD contains precomposed letters; text that changes only under NFKC or NFKD contains compatibility characters such as ligatures or styled letter variants.

Python's standard unicodedata module is one documented way to do this inspection without installing anything extra. The script below lists each code point, its canonical combining class (zero for base characters, nonzero for combining marks) and its name.

import unicodedata

text = "cafe\u0301"
for ch in text:
    print(f"U+{ord(ch):04X}", unicodedata.combining(ch), unicodedata.name(ch, "<no name>"))

# Output:
# U+0063 0 LATIN SMALL LETTER C
# U+0061 0 LATIN SMALL LETTER A
# U+0066 0 LATIN SMALL LETTER F
# U+0065 0 LATIN SMALL LETTER E
# U+0301 230 COMBINING ACUTE ACCENT

In JavaScript, the distinction between code units, code points and grapheme clusters is visible directly, and the built-in normalize method shows whether two spellings are equivalent.

const s = "e\u0301";
s.length;                          // 2 (UTF-16 code units)
[...s].length;                     // 2 (code points)
[...new Intl.Segmenter("en", { granularity: "grapheme" }).segment(s)].length; // 1
s.normalize("NFC") === "\u00E9";   // true
"\uFB01".normalize("NFKC");        // "fi"

What transformations do to combined letters

Reversal is where combined letters cause the most visible damage. A combining mark always attaches to the character before it, so reversing text one code point at a time moves each mark onto the wrong letter or leaves it with nothing to attach to.

Take "naïve" stored in decomposed form: n, a, i, U+0308 COMBINING DIAERESIS, v, e. Reversing the code points gives e, v, U+0308, i, a, n, which renders as "ev̈ian" with the diaeresis now on the v. Reversing by grapheme cluster keeps i and its mark together and gives "evïan", which is what a reader expects. The same text stored in precomposed form, with ï as U+00EF, reverses correctly even with a naive tool, which is why a reverser can appear to work on one copy of a word and fail on another that looks identical.

Emoji sequences have the same problem. Reversing the family emoji code point by code point produces girl, joiner, woman, joiner, man. Whether that displays as a different family arrangement, as separate figures, or as something else depends on the font and platform, but it is no longer the original sequence. Two-code-point flags built from regional indicator letters can likewise turn into a different flag or into letters when reversed.

Mirroring by character substitution, which replaces letters with look-alikes that appear flipped, typically has no substitutes for combining marks, so accents may be dropped or left in their original orientation. Normalization to NFKC, which some systems apply on input, turns compatibility ligatures and styled letter variants back into plain letters, so a styled effect can vanish silently after submission.

When evaluating any reverse, mirror or styling tool with combined letters, test it with at least one decomposed accented word, one emoji ZWJ sequence and one flag, and inspect the output code points rather than relying on how it looks in a single application.

Copying, sharing, accessibility and search

Because combining marks, ligature code points and joiners are real characters, they are normally included when text is copied. What happens next depends on the destination. Some software normalizes pasted text, which can merge or split characters; some counts length in code points or code units rather than visible characters, so a short-looking string may exceed a character limit; and a font that lacks proper mark positioning may show marks offset, stacked oddly, or attached to a placeholder dotted circle. No destination-specific testing was supplied for this article, so any particular platform's behavior should be checked directly rather than assumed.

Search and comparison are the most common practical failure. A decomposed é and a precomposed é are canonically equivalent, but software that compares raw code points treats them as different, so a search for one may not find the other. Ligature code points such as fi only match "fi" in systems that apply compatibility normalization. If text must be searchable, store and compare it in a consistent normalization form, usually NFC for general text.

For assistive technology, combining marks that belong to a language are generally part of how the word is meant to be read. Decorative uses are different: stacked marks, strikethrough or underline built from combining characters, and enclosed letters may be announced character by character, announced by symbol name, or skipped, depending on the screen reader, its version and its verbosity settings. No scoped screen reader tests were supplied here, so this is a known risk rather than a measured result. Where accessibility matters, provide the plain wording, either instead of the styled version or alongside it.

Editing is also affected. Some editors move the cursor or delete by code point rather than by grapheme cluster, so pressing backspace after a decomposed letter may remove only the accent, and selecting part of an emoji sequence can break it into its components.

When to keep a plain-text equivalent

  • The text must be found by search, indexed, or matched against other records.
  • The text will be read by screen reader users or needs to meet accessibility requirements.
  • The destination enforces a character limit and you cannot confirm how it counts.
  • The text will be reversed, sorted or otherwise processed by tools you have not checked for grapheme awareness.
  • The combined characters are decorative rather than part of the language being written.
  • The text will be quoted, translated or edited by other people later.

Search terms that lead to the right tools

Named tools could not be verified for this article, so the most dependable approach is to search for the capability using the correct terminology. Useful phrases include "Unicode code point inspector", "Unicode character name lookup", "show combining characters", "Unicode normalization NFC NFD converter", "grapheme cluster segmentation" and "zero width joiner sequence". For decorative effects, the common terms are "combining strikethrough", "combining underline", "Zalgo text" for heavily stacked marks, and "enclosed alphanumerics" for circled letters. For programming, the relevant built-in features are Python's unicodedata module and, in JavaScript, String.prototype.normalize and Intl.Segmenter with grapheme granularity. Before relying on any tool found this way, check that it reports code point names and handles grapheme clusters, and do not assume anything about how it treats pasted text based on its appearance or description.

Gaps in the available evidence

This article relies on documented Unicode behavior: character names, normalization forms, combining classes and the general rules for grapheme clusters. It does not include tests of specific social platforms, messaging apps, browsers, fonts or screen readers, and it does not evaluate any particular online styling or reversing tool. Rendering of emoji sequences and combining marks varies by font and platform, so any result that matters should be confirmed in the actual destination with the actual audience's tools.