@hebcal/leyning
    Preparing search index...

    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[]

        untranslated parsha name(s), e.g. ['Pinchas']

      • hd: HDate

        the Hebrew date of this Shabbat

      • il: boolean

        true for the Israel schedule

      • aliyot: AliyotMap

        the parsha's regular Shabbat aliyot (not modified)

      Returns SpecialReading

      the special-reading overrides (see SpecialReading)