In a large mixing bowl, combine 5 oz all purpose flour, 3 oz cake flour, 1 ½ teaspoons baking powder, ¼ teaspoon table salt, 1 tablespoon cinnamon, 1 teaspoon ginger, ½ teaspoon nutmeg, ¼ teaspoon cardamom, ¼ teaspoon cloves,¼ teaspoon white pepper, ¼ teaspoon ground anise and 6 oz brown sugar. Use a hand whisk to combine the ingredients.
Toss 4 oz unsalted butter into the flour and mix with your fingers or a pastry cutter until there are no pieces of butter larger than a pea. You can also do this on a stand mixer or with a hand mixer. Add 2 oz whole milk and 1 egg yolk and mix until the dough comes together.
Turn the dough out onto a lightly floured surface and knead briefly form it into a ball. Divide the dough into two pieces, 2/3 and 1/3 of the dough. Wrap and refrigerate the dough for several hours or overnight.
Using a stand or hand mixer, mix 12 oz almond paste with 1 oz confectioner's sugar. Add 2 egg whites and mix until it is smooth. Refrigerate the almond paste until you're ready to assemble the cake. Preheat the oven to 350 °F °F.
Roll one piece of the dough to a 12" circle and fit it into the bottom and sides of a 9" or 10" tart or cake pan with a removable bottom.
Spread the almond paste over the dough. Roll the other piece of dough to a 10" circle and cover the almond paste. Trim the edges flush with the pan.
Whisk the remaining egg yolk with a little water. Brush the top of the cake with the yolk and arrange the almonds around the edge of the cake, pressing lightly so they are embedded in the dough.
Bake until the center of the cake is set, about 40 minutes. Cool completely before removing the sides of the pan. The cake will keep for several days at room temperature.