Build a translate mapping that strips likely-unintended control characters.
    See :func:`ftfy.fixes.remove_control_chars` for a description of these
    codepoint ranges and why they should be removed.

def _build_control_char_mapping():
    """
    Build a translate mapping that strips likely-unintended control characters.
    See :func:`ftfy.fixes.remove_control_chars` for a description of these
    codepoint ranges and why they should be removed.
    """
    control_chars = {}

    for i in itertools.chain(
            range(0x00, 0x09),
            [0x0b],
            range(0x0e, 0x20),
            [0x7f],
            range(0x206a, 0x2070),
            [0xfeff],
            range(0xfff9, 0xfffd),
            range(0x1d173, 0x1d17b),
            range(0xe0000, 0xe0080)
    ):
        control_chars[i] = None

    return control_chars