Combine the cranberries with the sugar, water, ginger, cinnamon, allspice, and peppercorns in a medium saucepan. Place over low heat and bring to a bare simmer, 180 F to 190 F, about 20 minutes. Keep cooking, stirring often, until the cranberries are very soft, about 20 more minutes.