To make the cake batter, beat the margarine, sugar and ginger with a wooden spoon until well combined. Stir in the flours, egg yolks and pears. Using electric beaters, whisk egg whites in a clean bowl until soft peaks form. Stir into the cake batter.