Automate

Automate

Make your phone or tablet smarter with automation

Get it on Google Play

unorm

text unorm(text, form)

Returns the text normalized to the (Unicode Normalization Form) form.

Supported forms:

  • "nfc" for canonical decomposition, followed by canonical composition, the default
  • "nfd" for canonical decomposition
  • "nfkc" for compatibility decomposition, followed by canonical composition
  • "nfkd" for compatibility decomposition

Parameters

  1. text — text to normalize.
  2. form — optional normalization form, defaults is "nfc".

Returns

  • the normalized text, or null if invalid form.
Note! This documentation is also accessible within the app from Help & feedback menu.