unicode

Branch: main

Switch branches or tags

Branch: main
Go to file t

413 files indexed

History
Code

normalization/composition.mbt
1///|2/// Try to compose two characters into one3/// Handles both Hangul and general composition4fn try_compose(first : Char, second : Char) -> Char? {5  // Try Hangul composition first (algorithmic, no table lookup)6  if try_compose_hangul(first, second) is Some(h) {7    return Some(h)8  }910  // Look up in composition table11  @composition.lookup_composition(first, second)12}13