Documentation

Lean.Data.Markdown.Unicode.CaseFolding

This module implements Unicode full case folding, as specified by the entries with status C and F in CaseFolding.txt of Unicode 18.0.0, for ASCII, the Latin-1 Supplement block, and the Greek and Coptic block, together with every character elsewhere whose folding consists of characters from those blocks, such as Ÿ, ẞ, the Kelvin sign, and the ligature fi. Every other character folds to itself.

Appends the Unicode full case folding of c to out, for ASCII, the Latin-1 Supplement block, the Greek and Coptic block, and the other characters whose foldings are drawn from those blocks. Any other character is appended unchanged.

Equations
Instances For

    The Unicode full case folding of c for the following characters:

    • ASCII
    • The Latin-1 Supplement block
    • The Greek and Coptic block
    • All other characters whose foldings are drawn from the above blocks:
      • Ÿ, ẞ, ſ
      • The Ohm, Kelvin, and Angstrom signs
      • The Latin ligatures ff to st
      • The polytonic Greek letters with iota subscript.

    For characters not in the above set, caseFold is equivalent to String.singleton. In particular, letters with case in Cyrillic, the Latin Extended blocks (Turkish, Vietnamese, Polish, Czech, and others), Armenian, Georgian, Cherokee, Greek Extended (polytonic Greek), and the fullwidth and enclosed forms are not folded. This limitation may be lifted in the future.

    Equations
    Instances For