Given a collection of Unicode diacritics, return a function that takes a
    Unicode character and returns the member of the collection the character
    has (or None).

def extract_diacritic(*diacritics):
    """
    Given a collection of Unicode diacritics, return a function that takes a
    Unicode character and returns the member of the collection the character
    has (or None).
    """
    def _(ch):
        decomposed_form = unicodedata.normalize("NFD", ch)
        for diacritic in diacritics:
            if diacritic in decomposed_form:
                return diacritic
    return _