User:CHGiffen/StripAccents

From ChoralWiki
< User:CHGiffen
Revision as of 23:10, 3 January 2020 by BarryJ (talk | contribs) (Multireplace -> replaceset)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


New Code, uses Replaceset:

Removes all diacritics from a text or name

Usage:

  • {{StripAccents|Antonín Dvořák}} returns "Antonin Dvorak "
  • {{StripAccents|Gegrüßet, Maria}} returns "Gegrusset, Maria " (not "Gegruesset", for proper sorting)

It is meant to be used in conjunction with template NameSorter in order to generate appropriate sort keys.