def pgnum_from_pgint(pgint):
    """
    Return the number of the pointgroup (from 1 to 32) from the
    international pointgroup name.
    """
    table = {
        u"C1": 1,
        u"C2": 3,
        u"C2h": 5,
        u"C2v": 7,
        u"C3": 16,
        u"C3h": 22,
        u"C3i": 17,
        u"C3v": 19,
        u"C4": 9,
        u"C4h": 11,
        u"C4v": 13,
        u"C6": 21,
        u"C6h": 23,
        u"C6v": 25,
        u"Ci": 2,
        u"Cs": 4,
        u"D2": 6,
        u"D2d": 14,
        u"D2h": 8,
        u"D3": 18,
        u"D3d": 20,
        u"D3h": 26,
        u"D4": 12,
        u"D4h": 15,
        u"D6": 24,
        u"D6h": 27,
        u"O": 30,
        u"Oh": 32,
        u"S4": 10,
        u"T": 28,
        u"Td": 31,
        u"Th": 29,
    }

    return table[pgint]