Function specialReadings2

  • Determines if the regular parashat haShavua coincides with an event that requires a special maftir or Haftara (for example Shabbat HaGadol, Shabbat Chanukah, Rosh Chodesh or Machar Chodesh, etc.).

    This function does not modify aliyot. Instead, it returns a deep copy with aliyot['M'] replaced and sets reason.M (and in some cases the 6th and 7th aliyah, setting reason['7']).

    If a special Haftarah applies, the result will have a haft property pointing to Haftarah object and sets reason.haftara.

    Parameters

    • parsha: string[]
    • hd: HDate
    • il: boolean
    • aliyot: AliyotMap

    Returns SpecialReading