@hebcal/leyning
    Preparing search index...

    Function makeLeyningParts

    • Collapses an AliyotMap into the minimal set of contiguous passages.

      Adjacent aliyot from the same book are merged; a non-contiguous passage (such as a special 7th aliyah or maftir from another book) becomes its own part. Useful for building a compact summary.

      Parameters

      • aliyot: AliyotMap

        map of aliyot keyed by '1''7' plus 'M'

      Returns Aliyah[]

      the contiguous passages, in reading order