Complex sentence: All marriage contracts are arranged by the "father" of the female (whether the first marriage or a remarriage) and when a man dies the new partner of each women takes on the role of father for all of the women's children from previous marriages.
Split into simpler sentences: All marriage contracts are arranged by the "father" of the female (whether its the first marriage or a remarriage). When a man dies, the woman's new partner takes on the role of father for all of the woman's children from all previous marriages.