Text this: Legitimacy and succession in Iranian history